hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0944f3d49e659e1d21a529bdc1c50f31cfa4118e
2,991
py
Python
utils/enocean_equipment_profiles.py
sari-rev00/pyEnOceanDriver
ae94f121a4b0d4a6a93afbbfe094488ba0aaa2ad
[ "Apache-2.0" ]
1
2022-01-25T01:43:40.000Z
2022-01-25T01:43:40.000Z
utils/enocean_equipment_profiles.py
sari-rev00/pyEnOceanDriver
ae94f121a4b0d4a6a93afbbfe094488ba0aaa2ad
[ "Apache-2.0" ]
null
null
null
utils/enocean_equipment_profiles.py
sari-rev00/pyEnOceanDriver
ae94f121a4b0d4a6a93afbbfe094488ba0aaa2ad
[ "Apache-2.0" ]
null
null
null
# rocker switch ------------------- def F6_02_04(list_data): # exception handler ----------- if len(list_data) != 1: print("data length doesn't match specified EEP.") return None # data derivation ------------- int_data = int(list_data[0], 0) dict_ret = dict() dict_ret["e_bow"] =...
30.520408
83
0.573387
3c1ae9364e93cf5387a1b3d066c13ba19592a0a1
37,927
py
Python
pandas/core/panel.py
theandygross/pandas
d420334d7e3e52fd812e0648bb3ef8e90c10cc82
[ "BSD-3-Clause" ]
null
null
null
pandas/core/panel.py
theandygross/pandas
d420334d7e3e52fd812e0648bb3ef8e90c10cc82
[ "BSD-3-Clause" ]
null
null
null
pandas/core/panel.py
theandygross/pandas
d420334d7e3e52fd812e0648bb3ef8e90c10cc82
[ "BSD-3-Clause" ]
null
null
null
""" Contains data structures designed for manipulating panel (3-dimensional) data """ # pylint: disable=E1103,W0231,W0212,W0621 import operator import sys import numpy as np from pandas.core.common import (PandasError, _mut_exclusive, _try_sort, _default_index, _infer_dtype) from panda...
31.267106
80
0.571308
bc150f4c595637d7b15acd1fca8b7276297ac2d4
9,066
py
Python
python3/vimspector/stack_trace.py
tinmarino/vimspector
68c47edabb627705e6c8beff1909f63a5041e6cd
[ "Apache-2.0" ]
null
null
null
python3/vimspector/stack_trace.py
tinmarino/vimspector
68c47edabb627705e6c8beff1909f63a5041e6cd
[ "Apache-2.0" ]
null
null
null
python3/vimspector/stack_trace.py
tinmarino/vimspector
68c47edabb627705e6c8beff1909f63a5041e6cd
[ "Apache-2.0" ]
null
null
null
# vimspector - A multi-language debugging system for Vim # Copyright 2018 Ben Jackson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
30.628378
80
0.62784
fb6df8f0d749789fef53451700961648b50b16cd
7,933
py
Python
ROAR/control_module/pid_controller.py
bcwingnut/ROAR
8c4210d25625c0d72949cb8c55d4262e937d7e40
[ "Apache-2.0" ]
1
2021-01-26T00:33:54.000Z
2021-01-26T00:33:54.000Z
ROAR/control_module/pid_controller.py
bcwingnut/ROAR
8c4210d25625c0d72949cb8c55d4262e937d7e40
[ "Apache-2.0" ]
null
null
null
ROAR/control_module/pid_controller.py
bcwingnut/ROAR
8c4210d25625c0d72949cb8c55d4262e937d7e40
[ "Apache-2.0" ]
5
2020-12-15T08:31:40.000Z
2021-08-13T21:05:26.000Z
from pydantic import BaseModel, Field from ROAR.control_module.controller import Controller from ROAR.utilities_module.vehicle_models import VehicleControl, Vehicle from ROAR.utilities_module.data_structures_models import Transform, Location from collections import deque import numpy as np import math import logging f...
45.073864
125
0.592714
c21e8b033501d16442cde0176b6da38803be7d71
1,353
py
Python
data/user_input/project/loadProjectInput.py
open-pulse/OpenPulse
ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf
[ "MIT" ]
23
2020-01-14T12:49:11.000Z
2021-11-10T05:19:29.000Z
data/user_input/project/loadProjectInput.py
open-pulse/OpenPulse
ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf
[ "MIT" ]
101
2020-01-23T19:29:00.000Z
2022-03-15T17:56:23.000Z
data/user_input/project/loadProjectInput.py
open-pulse/OpenPulse
ef49cd1ff672821c4b57729c0ef9f4ff5a83eadf
[ "MIT" ]
3
2020-01-14T12:49:26.000Z
2022-01-13T02:06:53.000Z
from PyQt5.QtWidgets import QToolButton, QLineEdit, QDialogButtonBox, QFileDialog, QDialog, QMessageBox, QTabWidget, QProgressBar, QLabel, QListWidget from pulse.project import Project from PyQt5.QtGui import QIcon from os.path import basename, expanduser, exists from PyQt5 import uic import os import configparser from...
38.657143
150
0.686622
6fd4f6c0052876af6a7c178eaf437031f6475aef
4,252
py
Python
src/amuse/test/suite/codes_tests/test_parallel.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
src/amuse/test/suite/codes_tests/test_parallel.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
src/amuse/test/suite/codes_tests/test_parallel.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
from amuse.test.amusetest import TestWithMPI import os import sys from amuse.community.hermite.interface import Hermite from amuse.community.bhtree.interface import BHTree import numpy import threading from amuse.units import nbody_system from amuse.units import units from amuse.datamodel import Particles try: f...
36.655172
112
0.624882
ff9d305e563ee2af30fba3fcbdf0dc1c2b7b7558
869
py
Python
entry/sumo_config/sumo_eval_default_config.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
49
2021-12-28T08:10:44.000Z
2022-01-24T04:09:41.000Z
entry/sumo_config/sumo_eval_default_config.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
null
null
null
entry/sumo_config/sumo_eval_default_config.py
opendilab/DI-smartcross
362c6c6dcfd2e1f59d3e7c955ffe2d9d1b13d8d2
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict sumo_eval_default_config = dict( env=dict( manager=dict( # Whether to use shared memory. Only effective if manager type is 'subprocess' shared_memory=False, context='spawn', retry_type='renew', ), n_evaluator_epis...
27.15625
92
0.654776
bdc5463ca813a7e7162af9a7b29fa8e452919a67
22,098
py
Python
noaa_sdk/noaa.py
windyrose/noaaAPI
00e52e9cccce526070b1b2bb95b01e0643e0b0b2
[ "MIT" ]
null
null
null
noaa_sdk/noaa.py
windyrose/noaaAPI
00e52e9cccce526070b1b2bb95b01e0643e0b0b2
[ "MIT" ]
null
null
null
noaa_sdk/noaa.py
windyrose/noaaAPI
00e52e9cccce526070b1b2bb95b01e0643e0b0b2
[ "MIT" ]
1
2020-04-06T12:31:19.000Z
2020-04-06T12:31:19.000Z
""" API Wrapper for NOAA API V3 =========================== For more detailed information about NOAA API, visit: https://www.weather.gov/documentation/services-web-api Geoencoding is made possible by Open Street Map (© OpenStreetMap contributors) For copyright information, visit: https://www.openstreetmap.org/copyrigh...
40.178182
99
0.587429
d6c89b1b864a31c7b092b140324abcfb4edb3bb5
7,540
py
Python
training/utils/uniio.py
iyush/manta
723a2dc9e10464d87810b3c2104c81912e1e9fcc
[ "Apache-2.0" ]
5
2021-05-11T21:19:54.000Z
2021-06-04T11:23:38.000Z
training/utils/uniio.py
iyush/manta
723a2dc9e10464d87810b3c2104c81912e1e9fcc
[ "Apache-2.0" ]
null
null
null
training/utils/uniio.py
iyush/manta
723a2dc9e10464d87810b3c2104c81912e1e9fcc
[ "Apache-2.0" ]
null
null
null
#****************************************************************************** # # MantaFlow fluid solver framework # Copyright 2017 Nils Thuerey, Boris Bonev # # This program is free software, distributed under the terms of the # Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Read manta...
36.601942
171
0.670292
0637ac2aca62d5d13fab0b77688ecbe522624769
2,716
py
Python
client/fase2/team04/arbol.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
client/fase2/team04/arbol.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
client/fase2/team04/arbol.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from tkinter import Menu, Tk, Text, DISABLED, RAISED,Frame, FLAT, Button, Scrollbar, Canvas, END from tkinter import ttk import tkinter as tk from tkinter import messagebox as MessageBox import json class Arbol(Frame): def __init__(self, *args, **kwargs): Frame.__init__(self, *args, **kwargs) # Est...
39.362319
96
0.627761
2982129ff308be6d97970fe4d8f03904f2a5362e
5,269
py
Python
recipes/logr/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1
2020-01-31T22:47:14.000Z
2020-01-31T22:47:14.000Z
recipes/logr/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
3
2020-05-05T11:27:44.000Z
2022-02-28T20:19:50.000Z
recipes/logr/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1
2020-10-12T10:45:13.000Z
2020-10-12T10:45:13.000Z
from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration import os class LogrConan(ConanFile): name = "logr" license = "BSD-3-Clause" homepage = "https://github.com/ngrodzitski/logr" url = "https://github.com/conan-io/conan-center-index" description = ( ...
35.126667
76
0.583792
db2584da9519061d7a8ce5f0df26f5c9abb3fc71
170
py
Python
models/__init__.py
cartologic/cartoview_cms
3f21a092c90db3d4560d69c1c2a6c7843b23ea0e
[ "BSD-2-Clause" ]
null
null
null
models/__init__.py
cartologic/cartoview_cms
3f21a092c90db3d4560d69c1c2a6c7843b23ea0e
[ "BSD-2-Clause" ]
null
null
null
models/__init__.py
cartologic/cartoview_cms
3f21a092c90db3d4560d69c1c2a6c7843b23ea0e
[ "BSD-2-Clause" ]
null
null
null
from .forms.FormPage import FormPage from .generic_module.GenericModule import GenericModule from .generic_module.GenericPage import GenericPage from .signals import *
24.285714
55
0.847059
ecc9f3b1e364dd13118439498ec3262d6f979930
1,994
py
Python
ise_mac_check_app.py
andrewohanian/ISE_MAC_Checker
4c9e6561cffd17684ce00bd48329e8df8a4138c5
[ "MIT" ]
null
null
null
ise_mac_check_app.py
andrewohanian/ISE_MAC_Checker
4c9e6561cffd17684ce00bd48329e8df8a4138c5
[ "MIT" ]
null
null
null
ise_mac_check_app.py
andrewohanian/ISE_MAC_Checker
4c9e6561cffd17684ce00bd48329e8df8a4138c5
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from ise_mac_search import get_endpoints, get_group_id, get_group, get_rejected_endpoints import re app = Flask(__name__) #result='' approved_groups = ['Phones', 'Printers', 'Video_Camers', 'IoT'] @app.route('/') def index(): return render_template('home.html') @...
40.693878
155
0.642929
209bace101b1d7acae81e53769c4d64aae33f1a2
4,577
py
Python
qa/rpc-tests/multi_rpc.py
Hinco01/Wolfcoin
d479d5e0aa6aef1a87379f9f8c19ca608dde5a2e
[ "MIT" ]
6
2019-01-13T02:43:45.000Z
2019-11-13T08:37:51.000Z
qa/rpc-tests/multi_rpc.py
Hinco01/Wolfcoin
d479d5e0aa6aef1a87379f9f8c19ca608dde5a2e
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
Hinco01/Wolfcoin
d479d5e0aa6aef1a87379f9f8c19ca608dde5a2e
[ "MIT" ]
3
2019-01-28T18:12:00.000Z
2019-05-27T17:48:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test multiple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTest...
37.826446
129
0.645401
1fbca7076e81d9f2aa8ee86e83068cac998bf609
3,419
py
Python
melodic/lib/python2.7/dist-packages/rqt_bag/message_listener_thread.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
melodic/lib/python2.7/dist-packages/rqt_bag/message_listener_thread.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/lib/python2.7/dist-packages/rqt_bag/message_listener_thread.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
# Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above...
37.988889
128
0.684411
5fbcf79f16ad484e6b9741754fc11c4fa60bc759
2,942
py
Python
lib/galaxy/work/context.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
47
2015-10-21T23:30:30.000Z
2022-03-09T06:51:32.000Z
lib/galaxy/work/context.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
20
2015-09-30T18:56:40.000Z
2019-04-12T19:32:59.000Z
lib/galaxy/work/context.py
rhpvorderman/galaxy
178015f8eff0b0c7a59c0d6756658f6428222837
[ "CC-BY-3.0" ]
35
2015-10-30T13:09:40.000Z
2021-05-03T23:17:46.000Z
from typing import Optional from galaxy.managers.context import ( ProvidesHistoryContext, ) from galaxy.model import History class WorkRequestContext(ProvidesHistoryContext): """ Stripped down implementation of Galaxy web transaction god object for work request handling outside of web threads - uses mix-...
37.240506
193
0.733175
5d22f0e04dc9613c9b614b4b0396c1891975caea
358
py
Python
tests/test_custom_data.py
xashru/tner
f61f7a377ad20f4bb3dd4c920b32151acdd29ea1
[ "MIT" ]
142
2020-12-10T22:32:33.000Z
2022-03-16T14:55:03.000Z
tests/test_custom_data.py
xashru/tner
f61f7a377ad20f4bb3dd4c920b32151acdd29ea1
[ "MIT" ]
8
2021-03-08T08:54:00.000Z
2022-01-24T13:59:48.000Z
tests/test_custom_data.py
xashru/tner
f61f7a377ad20f4bb3dd4c920b32151acdd29ea1
[ "MIT" ]
14
2021-02-15T11:28:19.000Z
2022-01-19T17:44:51.000Z
from tner import TrainTransformersNER trainer = TrainTransformersNER( checkpoint_dir='./ckpt', dataset='/Users/asahi/Desktop/data_seyyaw', transformers_model='xlm-roberta-base', random_seed=1234, lr=1e-5, total_step=10, warmup_step=10, batch_size=1, ...
27.538462
51
0.645251
6ef418578c42186a66c362a6ef7b2c3dc98082d3
485
py
Python
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_length_5_xsd/nistschema_sv_iv_list_unsigned_byte_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_length_5_xsd/nistschema_sv_iv_list_unsigned_byte_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/unsigned_byte/schema_instance/nistschema_sv_iv_list_unsigned_byte_length_5_xsd/nistschema_sv_iv_list_unsigned_byte_length_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "NISTSchema-SV-IV-list-unsignedByte-length-5-NS" @dataclass class NistschemaSvIvListUnsignedByteLength5: class Meta: name = "NISTSchema-SV-IV-list-unsignedByte-length-5" namespace = "NISTSchema-SV-IV-list-unsignedByt...
24.25
68
0.65567
0556bc2c7a9dde5b947749acee148cca00931cdb
15,009
py
Python
homeassistant/components/stream/__init__.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
2
2019-05-25T15:03:29.000Z
2019-06-30T08:32:24.000Z
homeassistant/components/stream/__init__.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
83
2020-07-31T21:32:45.000Z
2022-03-31T10:00:54.000Z
homeassistant/components/stream/__init__.py
PandaBaer92/core
4b30c9631f0f0a1ad59005f316b3f03975d2accd
[ "Apache-2.0" ]
4
2020-10-29T22:56:04.000Z
2020-12-12T21:51:40.000Z
"""Provide functionality to stream video source. Components use create_stream with a stream source (e.g. an rtsp url) to create a new Stream object. Stream manages: - Background work to fetch and decode a stream - Desired output formats - Home Assistant URLs for viewing a stream - Access tokens for URLs for vi...
35.566351
94
0.632754
d178004572d7706d76d407f4c4f986faa5244a47
4,311
py
Python
AdelaiDet/detectron2/tests/data/test_dataset.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
AdelaiDet/detectron2/tests/data/test_dataset.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
AdelaiDet/detectron2/tests/data/test_dataset.py
km1562/AdelaiDet2
293cd6410631d36145f9ae4eb06a63520c66b92d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import os import pickle import sys import unittest from functools import partial import torch from iopath.common.file_io import LazyPath from detectron2 import model_zoo from detectron2.config import instantiate from detectron2.data import ( DatasetFromList, ...
33.418605
92
0.658084
79a76d4826a56b03940d6e6a931903a8695c9db6
4,284
py
Python
ironic/api/controllers/v1/versions.py
NaohiroTamura/ironic
1fcb6c52a22c9c025dbf27931720ce2eda08704f
[ "Apache-2.0" ]
null
null
null
ironic/api/controllers/v1/versions.py
NaohiroTamura/ironic
1fcb6c52a22c9c025dbf27931720ce2eda08704f
[ "Apache-2.0" ]
null
null
null
ironic/api/controllers/v1/versions.py
NaohiroTamura/ironic
1fcb6c52a22c9c025dbf27931720ce2eda08704f
[ "Apache-2.0" ]
1
2022-03-25T14:26:10.000Z
2022-03-25T14:26:10.000Z
# Copyright (c) 2015 Intel Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
40.037383
79
0.777311
ebadb5c9dc46dce78e60a3d12982e18ffe4a0475
3,655
py
Python
tests/test_functional.py
j127/fca
c39e6dde48aefca0ab1d280cc9af03e2bbe9edee
[ "BSD-3-Clause" ]
1
2015-11-06T06:08:08.000Z
2015-11-06T06:08:08.000Z
tests/test_functional.py
j127/fca
c39e6dde48aefca0ab1d280cc9af03e2bbe9edee
[ "BSD-3-Clause" ]
null
null
null
tests/test_functional.py
j127/fca
c39e6dde48aefca0ab1d280cc9af03e2bbe9edee
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Functional tests using WebTest. See: http://webtest.readthedocs.org/ """ import pytest from flask import url_for from fca.user.models import User from .factories import UserFactory class TestLoggingIn: def test_can_log_in_returns_200(self, user, testapp): # Goes to homepage ...
32.345133
80
0.595622
69c854cd9a369bb787879909f89e1ac0da5bfacf
24,911
py
Python
sunpy/coordinates/frames.py
eteq/sunpy
706bb1dc7bbe77bc54791dbc1d86af9aaaf5af43
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/frames.py
eteq/sunpy
706bb1dc7bbe77bc54791dbc1d86af9aaaf5af43
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/frames.py
eteq/sunpy
706bb1dc7bbe77bc54791dbc1d86af9aaaf5af43
[ "BSD-2-Clause" ]
null
null
null
""" Common solar physics coordinate systems. This submodule implements various solar physics coordinate frames for use with the `astropy.coordinates` module. """ import numpy as np import astropy.units as u from astropy.coordinates import Attribute, ConvertError from astropy.coordinates.baseframe import BaseCoordinat...
43.857394
184
0.631167
b926a242216b316fb746439dd60d61b0892262f9
7,635
py
Python
maize/plotters/madmax.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
14
2021-07-21T19:45:05.000Z
2022-02-09T04:29:51.000Z
maize/plotters/madmax.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
9
2021-07-24T09:30:46.000Z
2021-12-05T19:51:29.000Z
maize/plotters/madmax.py
denern/maize-blockchain
b8639899f44b03232dda90c706d061e5e1158ca3
[ "Apache-2.0" ]
5
2021-10-04T17:33:47.000Z
2022-03-15T08:37:51.000Z
import asyncio import traceback import os import logging import sys from pathlib import Path from typing import Any, Dict, Optional from maize.plotting.create_plots import resolve_plot_keys from maize.plotters.plotters_util import run_plotter, run_command log = logging.getLogger(__name__) MADMAX_PLOTTER_DIR = "madm...
33.195652
100
0.587426
01aa855e4227a19c721e2bd3bba87ef82e518ebd
2,778
py
Python
examples/extensions/sudoku.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
3,285
2015-01-03T04:02:29.000Z
2021-04-19T14:51:29.000Z
examples/extensions/sudoku.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
1,138
2015-01-01T19:40:14.000Z
2021-04-18T23:37:31.000Z
examples/extensions/sudoku.py
phschiele/cvxpy
a43aed7447b87f6d0fbc6f71ae5c7b84183f3369
[ "ECL-2.0", "Apache-2.0" ]
765
2015-01-02T19:29:39.000Z
2021-04-20T00:50:43.000Z
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
27.78
83
0.556875
31bcc78b85c803b5d08fea1bdfd024e85bf1720c
7,625
py
Python
threeML/plugins/UnbinnedPoissonLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
42
2019-01-10T06:11:38.000Z
2022-03-21T20:08:37.000Z
threeML/plugins/UnbinnedPoissonLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
187
2019-01-15T13:21:16.000Z
2022-03-31T12:15:55.000Z
threeML/plugins/UnbinnedPoissonLike.py
jasonfan1997/threeML
21b1c76ad3423f745b9f56413d93ee01d1d5855f
[ "BSD-3-Clause" ]
32
2019-01-14T10:24:56.000Z
2022-03-10T10:09:59.000Z
import types from collections.abc import Iterable from typing import Optional, Tuple, Union import astromodels import numba as nb import numpy as np from threeML.io.logging import setup_logger from threeML.plugin_prototype import PluginPrototype __instrument_name = "n.a." log = setup_logger(__name__) _tiny = np.f...
28.033088
104
0.603279
04c1ee153b25193cafbe23fce6ccec739edff0de
3,104
py
Python
codes/03.FEM_laplacian/HEALPix/16_check_reordering_mask.py
MartMilani/PDM
cca07a8485c6933361536286279ae6c7e14d7fa1
[ "MIT" ]
null
null
null
codes/03.FEM_laplacian/HEALPix/16_check_reordering_mask.py
MartMilani/PDM
cca07a8485c6933361536286279ae6c7e14d7fa1
[ "MIT" ]
null
null
null
codes/03.FEM_laplacian/HEALPix/16_check_reordering_mask.py
MartMilani/PDM
cca07a8485c6933361536286279ae6c7e14d7fa1
[ "MIT" ]
null
null
null
from __future__ import print_function import matplotlib matplotlib.use('tkAgg') import matplotlib.pyplot as plt from scipy.sparse import csr_matrix from dolfin import * import scipy import numpy as np import healpy as hp from deepsphere import utils # Test for PETSc and SLEPc if not has_linear_algebra_backend("PE...
29.561905
88
0.566688
ed718e4fc06a2f6b0ca5e9ea5a7dbb93f266d733
5,862
py
Python
Python27/Tools/Scripts/patchcheck.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
1
2019-05-17T08:58:11.000Z
2019-05-17T08:58:11.000Z
Python27/Tools/Scripts/patchcheck.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
2
2016-12-12T05:54:58.000Z
2016-12-12T05:55:44.000Z
Python27/Tools/Scripts/patchcheck.py
Jeff-Tian/mybnb
1a42890a1d2f1344d5465f8be10c42df01964f5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import re import sys import shutil import os.path import subprocess import sysconfig import reindent import untabify SRCDIR = sysconfig.get_config_var('srcdir') def n_files_str(count): """Return 'N file(s)' with the proper plurality on 'file'.""" return "{} file{}".fo...
31.516129
79
0.582907
1be91587d98931bf770ac3016789dc904ee655c5
2,926
py
Python
trailblazer/store/models.py
jemten/trailblazer
dce3fe6ffd19e23c94fb6e223e4778a1c93960c9
[ "MIT" ]
null
null
null
trailblazer/store/models.py
jemten/trailblazer
dce3fe6ffd19e23c94fb6e223e4778a1c93960c9
[ "MIT" ]
null
null
null
trailblazer/store/models.py
jemten/trailblazer
dce3fe6ffd19e23c94fb6e223e4778a1c93960c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import alchy from sqlalchemy import Column, ForeignKey, orm, types, UniqueConstraint from trailblazer.mip import sacct from trailblazer.constants import TEMP_STATUSES STATUS_OPTIONS = ('pending', 'running', 'completed', 'failed', 'error', 'canceled') JOB_STATUS_OPTIONS = [cate...
30.479167
85
0.685919
228979e17efef97d77a95d2a452d57631eb3b6ea
1,253
py
Python
generate_changelog/_attr_docs.py
coordt/generate-changelog
ecbeb444a8cc5c3f35af3b29127cd347bda5ece9
[ "MIT" ]
1
2022-03-07T09:37:54.000Z
2022-03-07T09:37:54.000Z
generate_changelog/_attr_docs.py
coordt/generate-changelog
ecbeb444a8cc5c3f35af3b29127cd347bda5ece9
[ "MIT" ]
null
null
null
generate_changelog/_attr_docs.py
coordt/generate-changelog
ecbeb444a8cc5c3f35af3b29127cd347bda5ece9
[ "MIT" ]
null
null
null
"""Get the attribute documentation for a class.""" import ast import inspect from .utilities import pairs def attribute_docstrings(obj: type) -> dict: """Return the docstrings for all attributes of the object.""" cfg_source = inspect.getsource(obj) tree = ast.parse(cfg_source) if len(tree.body) != 1 ...
34.805556
108
0.632083
1347323828fa40f6b881ba008186ac75d77cb7bb
9,254
py
Python
hubspot/cms/site_search/models/error.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
1
2020-11-12T08:46:32.000Z
2020-11-12T08:46:32.000Z
hubspot/cms/site_search/models/error.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
hubspot/cms/site_search/models/error.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CMS Site Search Use these endpoints for searching content on your HubSpot hosted CMS website(s). # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from hubspot.cms.site_search...
29.009404
134
0.578453
79e778274d0d1f5b4376e9f14070a2bf5c691c9d
2,790
py
Python
framework/test_data.py
manimanasamylavarapu/OpenRank
0bfd721a69e6056d24f18b3bf1b0bf73c1d3317c
[ "MIT" ]
3
2020-05-08T04:34:26.000Z
2022-03-06T15:01:04.000Z
framework/test_data.py
manimanasamylavarapu/OpenRank
0bfd721a69e6056d24f18b3bf1b0bf73c1d3317c
[ "MIT" ]
null
null
null
framework/test_data.py
manimanasamylavarapu/OpenRank
0bfd721a69e6056d24f18b3bf1b0bf73c1d3317c
[ "MIT" ]
2
2020-11-22T21:28:03.000Z
2020-12-09T07:07:09.000Z
from framework.Classes import Testcase tc1 = Testcase() tc1.id = "1" tc1.input = '23\n34' tc1.timeout = 1 tc2 = Testcase() tc2.id = "2" tc2.input = """21 34""" tc2.timeout = 1 java_source_code_with_input = """ import java.util.*; class Solution{ p...
19.787234
66
0.506093
973d4ffd343f7273f1caef4ab4ae73a1b69dac01
3,574
py
Python
doctr/models/detection/core.py
thentgesMindee/doctr
f97e92ba1b7bcb785a60f2cf549f13f88e510609
[ "Apache-2.0" ]
null
null
null
doctr/models/detection/core.py
thentgesMindee/doctr
f97e92ba1b7bcb785a60f2cf549f13f88e510609
[ "Apache-2.0" ]
null
null
null
doctr/models/detection/core.py
thentgesMindee/doctr
f97e92ba1b7bcb785a60f2cf549f13f88e510609
[ "Apache-2.0" ]
1
2022-01-27T09:25:05.000Z
2022-01-27T09:25:05.000Z
# Copyright (C) 2021, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. from typing import List, Tuple import cv2 import numpy as np from doctr.utils.geometry import rotate_image from doctr.utils....
32.490909
98
0.605204
5e471765638ffb9f1a8e3cfcf7330649f0dc1baf
684
py
Python
products/migrations/0004_auto_20160914_2031.py
mneeko/Pharmacy
d42338b858f5310767e97e8e5db5e4587de9e202
[ "MIT" ]
null
null
null
products/migrations/0004_auto_20160914_2031.py
mneeko/Pharmacy
d42338b858f5310767e97e8e5db5e4587de9e202
[ "MIT" ]
null
null
null
products/migrations/0004_auto_20160914_2031.py
mneeko/Pharmacy
d42338b858f5310767e97e8e5db5e4587de9e202
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-14 17:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0003_auto_20160914_2026'), ] operations = [ migrations.AlterFie...
23.586207
64
0.576023
ca67b6c62695314029b7e5e302641953847b9ac6
12,894
py
Python
tests/fast_tests/test_util.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
1
2020-02-21T03:35:37.000Z
2020-02-21T03:35:37.000Z
tests/fast_tests/test_util.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
null
null
null
tests/fast_tests/test_util.py
weizi-li/flow
958b64ece8af6db715e6fb3b6042035b05b93bc2
[ "MIT" ]
1
2019-10-10T21:16:25.000Z
2019-10-10T21:16:25.000Z
import unittest import csv import os import json import collections from flow.core.params import VehicleParams from flow.core.params import TrafficLightParams from flow.controllers import IDMController, ContinuousRouter, RLController from flow.core.params import SumoParams, EnvParams, NetParams, InitialConfig, \ I...
37.701754
79
0.564604
c4914f054f3a1e0a48d26fd96c5cc7889b3383b5
8,822
py
Python
samples/search/entity_search_samples.py
sammydeprez/cognitive-services-python-sdk-samples
deb4483ec1db33138e32ce472a775f3ed874fb80
[ "MIT" ]
null
null
null
samples/search/entity_search_samples.py
sammydeprez/cognitive-services-python-sdk-samples
deb4483ec1db33138e32ce472a775f3ed874fb80
[ "MIT" ]
null
null
null
samples/search/entity_search_samples.py
sammydeprez/cognitive-services-python-sdk-samples
deb4483ec1db33138e32ce472a775f3ed874fb80
[ "MIT" ]
null
null
null
from azure.cognitiveservices.search.entitysearch import EntitySearchAPI from azure.cognitiveservices.search.entitysearch.models import Place, ErrorResponseException from msrest.authentication import CognitiveServicesCredentials # Add your Bing Entity Search subscription key to your environment variables. SUBSCRIPTION_...
39.918552
157
0.627069
b66bd554a9873254dd79c77293bb1b8a078756c1
264
py
Python
features.py
dracarys1312/speaker-recognition-py3
87bf3745fba85ab27bc63beffadeb5adeebe4928
[ "Apache-2.0" ]
240
2017-01-16T08:29:16.000Z
2022-03-08T18:09:42.000Z
features.py
dracarys1312/speaker-recognition-py3
87bf3745fba85ab27bc63beffadeb5adeebe4928
[ "Apache-2.0" ]
13
2018-08-21T14:02:21.000Z
2020-04-27T10:06:07.000Z
features.py
dracarys1312/speaker-recognition-py3
87bf3745fba85ab27bc63beffadeb5adeebe4928
[ "Apache-2.0" ]
92
2017-01-16T08:29:24.000Z
2022-03-10T15:16:19.000Z
from python_speech_features import mfcc import numpy as np def get_feature(fs, signal): mfcc_feature = mfcc(signal, fs) if len(mfcc_feature) == 0: print >> sys.stderr, "ERROR.. failed to extract mfcc feature:", len(signal) return mfcc_feature
29.333333
83
0.708333
036fd25ae60ae6d66395b3abd79e3c4ac08dbc67
280
py
Python
Alphabet/Small_Alphabet/Static_Small_Letter_While_Loop/While_LOOP_c.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
Alphabet/Small_Alphabet/Static_Small_Letter_While_Loop/While_LOOP_c.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
Alphabet/Small_Alphabet/Static_Small_Letter_While_Loop/While_LOOP_c.py
Polamreddykrishnareddy/PatternPackage
893ab468a637cd70a0dd8f6d60f7f5c75a3db58f
[ "MIT" ]
null
null
null
#c row=0 while row<7: col =0 while col<7: if (row==0 and col!=0) or (col==0 and row!=0 and row!=7 and row!=6)or (row==6 and col!=0): print("*",end=" ") else: print(" ",end=" ") col +=1 row +=1 print()
20
100
0.403571
641f6b998b15dd61c3524b0f67dd94b4017a2928
8,845
py
Python
tests/test_gmm.py
tatuanb/monai_V1
41e492b61c78bb3c303f38b03fe9fdc74a3c2e96
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
tests/test_gmm.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
tests/test_gmm.py
catherine1996cn/MONAI
ff9bbfa82763de46cbac75553e340633e3d84ecb
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
29.191419
118
0.36009
dad2db95c9242ebe28d4199607772d369b56cce2
4,825
py
Python
mmtbx/command_line/sisa.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/command_line/sisa.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/command_line/sisa.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
# LIBTBX_SET_DISPATCHER_NAME phenix.sisa ''' Author : Uervirojnangkoorn, M. Created : 12/1/2014 Description : Commands linked to sisa libraries. ''' from __future__ import absolute_import, division, print_function from cctbx.array_family import flex from libtbx.easy_mp import pool_map import math import sys,os...
37.695313
146
0.692021
3876ec6d9febc6f9c81a79c059b778a70b29c347
407
py
Python
getresponse/excs.py
OpenAT/getresponse-python
8ab41bdbc794e8699ab4fb16af5cf73c6d9bafe3
[ "MIT" ]
3
2019-08-21T19:51:49.000Z
2020-09-20T19:15:10.000Z
getresponse/excs.py
OpenAT/getresponse-python
8ab41bdbc794e8699ab4fb16af5cf73c6d9bafe3
[ "MIT" ]
4
2019-08-24T13:38:07.000Z
2021-02-05T11:30:54.000Z
getresponse/excs.py
OpenAT/getresponse-python
8ab41bdbc794e8699ab4fb16af5cf73c6d9bafe3
[ "MIT" ]
8
2018-06-23T15:00:32.000Z
2021-09-09T18:32:31.000Z
class BaseGetResponseError(Exception): def __init__(self, message, response, *args, **kwargs): super().__init__(message, *args, **kwargs) self.response = response class UniquePropertyError(BaseGetResponseError): pass class NotFoundError(BaseGetResponseError): pass class ValidationError(...
20.35
59
0.739558
7dada9d2b8c3c5a230d5ca9b38db28cecb6446af
1,261
py
Python
Graphs/CourseSchedule.py
PK-100/Competitive_Programming
d0863feaaa99462b2999e85dcf115f7a6c08bb8d
[ "MIT" ]
70
2018-06-25T21:20:15.000Z
2022-03-24T03:55:17.000Z
Graphs/CourseSchedule.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
4
2018-09-04T13:12:20.000Z
2021-06-20T08:29:12.000Z
Graphs/CourseSchedule.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
24
2018-12-26T05:15:32.000Z
2022-01-23T23:04:54.000Z
from collections import defaultdict class Solution: def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: if len(prerequisites) == 0: return True dependencies = defaultdict(list) for i,j in prerequisites: dependencies[i].appen...
28.022222
81
0.521015
c76088a563b59970b0e93004a5e013bcfaef5e9b
3,937
py
Python
baseline/Mixhop/logger.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
67
2021-04-02T22:57:32.000Z
2022-03-25T14:08:47.000Z
baseline/Mixhop/logger.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
1
2021-11-13T18:30:19.000Z
2021-11-24T18:22:22.000Z
baseline/Mixhop/logger.py
WWW2022PAGG/PAGG
f3eddec9157d1b34c100883193221d64c26be7ee
[ "MIT" ]
7
2021-04-07T14:42:11.000Z
2022-03-20T16:46:06.000Z
import torch from collections import defaultdict class Logger(object): """ Adapted from https://github.com/snap-stanford/ogb/ """ def __init__(self, runs, info=None): self.info = info self.results = [[] for _ in range(runs)] def add_result(self, run, result): assert len(result) == ...
38.980198
85
0.537973
4054ed150dff5a69d73d0be531136fe5ab29f0d3
5,588
py
Python
looker_client_31/looker_sdk/oidc_group_read.py
ContrastingSounds/looker_sdk_31
f973434049fff1b605b10086ab8b84f2f62e3489
[ "MIT" ]
null
null
null
looker_client_31/looker_sdk/oidc_group_read.py
ContrastingSounds/looker_sdk_31
f973434049fff1b605b10086ab8b84f2f62e3489
[ "MIT" ]
null
null
null
looker_client_31/looker_sdk/oidc_group_read.py
ContrastingSounds/looker_sdk_31
f973434049fff1b605b10086ab8b84f2f62e3489
[ "MIT" ]
null
null
null
# coding: utf-8 """ Experimental Looker API 3.1 Preview This API 3.1 is in active development. Breaking changes are likely to occur to some API functions in future Looker releases until API 3.1 is officially launched and upgraded to beta status. If you have time and interest to experiment with new or modifie...
27.800995
518
0.565855
d5bf1cb2b5d513df65da44c6b3981872d461fadd
1,149
py
Python
cookbook/gravmag_basin2d_trapezoidal.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
179
2015-03-08T08:50:45.000Z
2022-03-20T08:19:05.000Z
cookbook/gravmag_basin2d_trapezoidal.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
207
2015-01-12T17:04:57.000Z
2021-01-08T23:36:11.000Z
cookbook/gravmag_basin2d_trapezoidal.py
XuesongDing/fatiando
57a0e0802fde2e53628511d3a7a2964e69bb309a
[ "BSD-3-Clause" ]
114
2015-01-29T18:51:22.000Z
2022-03-25T12:35:43.000Z
""" GravMag: Simple gravity inversion for the relief of a 2D trapezoidal basin """ import numpy from fatiando import utils from fatiando.mesher import Polygon from fatiando.gravmag import talwani, basin2d from fatiando.vis import mpl verts = [(10000, 1.), (90000, 1.), (90000, 7000), (10000, 3330)] model = Polygon(vert...
31.054054
74
0.686684
d7175192e82569bf5a1d8a1140bea965480d982a
104,287
py
Python
resources_rc.py
adnaniazi/pytimer
7d50599b3f4e18121dd40fdf41a3cc31b7a17abb
[ "CC-BY-4.0" ]
null
null
null
resources_rc.py
adnaniazi/pytimer
7d50599b3f4e18121dd40fdf41a3cc31b7a17abb
[ "CC-BY-4.0" ]
null
null
null
resources_rc.py
adnaniazi/pytimer
7d50599b3f4e18121dd40fdf41a3cc31b7a17abb
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Jul 2 10:07:40 2015 # by: The Resource Compiler for PyQt (Qt v4.8.6) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = b"\ \x00\x00\x32\xd7\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x...
64.334978
96
0.727042
19cd3375c40063ac5ed4cd8f161c233a36949249
8,671
py
Python
osc_discoverer.py
gounau-dev/upload-scripts
c8a90926923795926d794ac7db15dea61d9df49b
[ "MIT" ]
null
null
null
osc_discoverer.py
gounau-dev/upload-scripts
c8a90926923795926d794ac7db15dea61d9df49b
[ "MIT" ]
null
null
null
osc_discoverer.py
gounau-dev/upload-scripts
c8a90926923795926d794ac7db15dea61d9df49b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """This script is used to discover video files, sensor info and return Sequences.""" import os import json import logging from typing import List, cast import constants from common.models import GPS, OSCDevice from io_storage.storage import Local from parsers.exif import ExifParser from parsers....
40.518692
100
0.663361
8dfeb4201c8da1714390d8be722dcc31d08bb987
397
py
Python
leads/migrations/0003_auto_20190211_1142.py
sauravpanda/Django-CRM
c6b8cde02c9cf3d3f30f4e05b825f77d00734e87
[ "MIT" ]
1,334
2017-06-04T07:47:14.000Z
2022-03-30T17:12:37.000Z
leads/migrations/0003_auto_20190211_1142.py
AhmedDoudou/Django-CRM-1
5faf22acb30aeb32f5830898fd5d8ecd1ac0bbd8
[ "MIT" ]
317
2017-06-04T07:48:13.000Z
2022-03-29T19:24:26.000Z
leads/migrations/0003_auto_20190211_1142.py
AhmedDoudou/Django-CRM-1
5faf22acb30aeb32f5830898fd5d8ecd1ac0bbd8
[ "MIT" ]
786
2017-06-06T09:18:48.000Z
2022-03-29T01:29:29.000Z
# Generated by Django 2.1.5 on 2019-02-11 06:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("leads", "0002_lead_tags"), ] operations = [ migrations.AlterField( model_name="lead", name="email", fiel...
20.894737
75
0.594458
68648b0b0bd547b469412fc6abbba1805d97a329
3,273
py
Python
main.py
matsueushi/discogs-xml-audacity
407781206980194462b25cc064a64f83fcf29067
[ "MIT" ]
null
null
null
main.py
matsueushi/discogs-xml-audacity
407781206980194462b25cc064a64f83fcf29067
[ "MIT" ]
null
null
null
main.py
matsueushi/discogs-xml-audacity
407781206980194462b25cc064a64f83fcf29067
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import discogs_client import re import urllib import xml.dom.minidom from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) SAVE_PATH = os.getenv('SAVE_PATH') USER_TOKEN = os.getenv('USER_TOKEN') FILE_NAME_TEMPLATE = os.getenv('FILE_NAME_TEMPLATE') d = dis...
31.171429
72
0.655362
30bd9dbdb5efe1e6f99d28d04bb787c09501e7f1
11,925
py
Python
fortran/generate-code.py
mschollmeier/xraylib
abf5005cd2a9c8d42d7d70a0f1ef21b6c6bd7ccd
[ "BSD-3-Clause" ]
null
null
null
fortran/generate-code.py
mschollmeier/xraylib
abf5005cd2a9c8d42d7d70a0f1ef21b6c6bd7ccd
[ "BSD-3-Clause" ]
null
null
null
fortran/generate-code.py
mschollmeier/xraylib
abf5005cd2a9c8d42d7d70a0f1ef21b6c6bd7ccd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys if sys.version_info.minor < 6: raise Exception("Execute this script with at least python 3.6 to ensure all dicts are ordered!") XRL_FUNCTIONS = { 'AtomicWeight': {'Z': int}, 'ElementDensity': {'Z': int}, 'CS_Total': {'Z': int, 'E': float}, 'CS_Photo': {'Z': int, '...
49.6875
166
0.58826
1b3ba5cf4dba23873eefa7a1335803905d8eb02e
12,305
py
Python
tests/utils/test_mol_to_graph.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
1
2020-06-22T19:19:24.000Z
2020-06-22T19:19:24.000Z
tests/utils/test_mol_to_graph.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
null
null
null
tests/utils/test_mol_to_graph.py
seqRep/dgl-lifesci
c4bd45be6dbb59dc270957ed90bb19d9ed6dc157
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import numpy as np import torch from dgllife.utils.featurizers import * from dgllife.utils.mol_to_graph import * from rdkit import Chem from rdkit.Chem import AllChem test_smiles1 = 'C...
50.430328
95
0.557416
59c6ea9ae107800ff9f0b9bc3a9dee45e28e9ace
2,975
py
Python
unified/models/fs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
unified/models/fs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
unified/models/fs.py
LoganCook/reporting-unified
9d2c7e083c5c400e9120bb8552348e41406a1bc1
[ "Apache-2.0" ]
null
null
null
from . import db, id_column, to_dict class Owner(db.Model): """Storage Owner""" id = id_column() name = db.Column(db.String(64), unique=True, nullable=False) usage = db.relationship("Usage", backref="owner") def json(self): """JSON""" return to_dict(self, ["name"]) class Project...
30.989583
75
0.552941
661b0c64f78e0fec331216cbda51fce168b0bb03
5,773
py
Python
io-control/configuration.py
wozio/home-system
ac73bec6e5050246f0e3debfbdfa43d4762bb144
[ "MIT" ]
null
null
null
io-control/configuration.py
wozio/home-system
ac73bec6e5050246f0e3debfbdfa43d4762bb144
[ "MIT" ]
null
null
null
io-control/configuration.py
wozio/home-system
ac73bec6e5050246f0e3debfbdfa43d4762bb144
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This Python file uses the following encoding: utf-8 #import logging import inputs import outputs # inputs definitions defined_inputs = [ { 'name': "Temperatura salon", 'service': "io.1wire", 'id': -6052829097502393072 }, { 'name': "Temperatura pole",...
24.883621
150
0.401005
1f8191dcd5cf8ada2a017d89611a991a15449f8b
38,034
py
Python
autotest/gcore/tiff_read.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
null
null
null
autotest/gcore/tiff_read.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
null
null
null
autotest/gcore/tiff_read.py
HongqiangWei/gdal
f7c427926438cc39d31e4459fa6401321f8e62f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test basic read support for a all datatypes from a TIFF file. # Author: Frank Warmerdam <warmerdam@pobox.com> # ##########################...
31.961345
596
0.589788
aa68b019b1129c135b0facd3ceddb81eb1dd901c
2,725
py
Python
cowait/cli/app/notebook.py
backtick-se/cowa
760ddb3ded1b3995bc68f4b74cf28af0c094481f
[ "Apache-2.0" ]
51
2020-06-04T06:08:14.000Z
2022-03-28T06:59:53.000Z
cowait/cli/app/notebook.py
backtick-se/cowa
760ddb3ded1b3995bc68f4b74cf28af0c094481f
[ "Apache-2.0" ]
121
2020-06-01T12:09:32.000Z
2022-03-31T20:47:57.000Z
cowait/cli/app/notebook.py
backtick-se/cowa
760ddb3ded1b3995bc68f4b74cf28af0c094481f
[ "Apache-2.0" ]
6
2020-06-11T16:05:20.000Z
2022-03-23T06:30:17.000Z
import yaml import click import cowait.cli.commands from cowait.cli import CliError from .utils import parse_input_list @click.group(help='start notebook', invoke_without_command=True) @click.option('-c', '--cluster', default=None, type=str, help='cluster name') @click.option...
29.945055
76
0.54055
04c3b2b7714ef37296e4fa9bcdeca2179a19a8bc
104,304
py
Python
pandas/core/internals/blocks.py
jsignell/pandas
83eb75bf04e9020a13b1109ac714207159d7c11a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/blocks.py
jsignell/pandas
83eb75bf04e9020a13b1109ac714207159d7c11a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/blocks.py
jsignell/pandas
83eb75bf04e9020a13b1109ac714207159d7c11a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from datetime import date, datetime, timedelta import functools import inspect import re from typing import Any, List import warnings import numpy as np from pandas._libs import NaT, Timestamp, lib, tslib, writers import pandas._libs.internals as libinternals from pandas._libs.tslibs import Timedelta, conversion from...
32.034398
88
0.576363
9066a001534f44d9707fdd69e098fcd4ab19ce0d
1,505
py
Python
old_models/proto__4f_all_folds.py
artyompal/imet
75d708392237a1392ac5fa2f598a747408a88f19
[ "Apache-2.0" ]
5
2019-06-11T09:11:56.000Z
2020-05-06T16:05:26.000Z
old_models/proto__4f_all_folds.py
artyompal/imet
75d708392237a1392ac5fa2f598a747408a88f19
[ "Apache-2.0" ]
null
null
null
old_models/proto__4f_all_folds.py
artyompal/imet
75d708392237a1392ac5fa2f598a747408a88f19
[ "Apache-2.0" ]
2
2019-06-12T14:14:35.000Z
2019-07-18T15:06:14.000Z
#!/usr/bin/python3.6 import itertools, os, re, sys from glob import glob from typing import List from debug import dprint IN_KERNEL = os.environ.get('KAGGLE_WORKING_DIR') is not None MODEL_PATH = '../input/' if IN_KERNEL else '../best_models/' def run(command: List[str]) -> None: res = os.system('export PYTHONPA...
29.509804
94
0.667774
8054e9cd627c251b8c101db962b827ecedad7158
3,724
py
Python
assignment1/run_experiment.py
yuhu0016/machine-learning-cs7641
b746acb1573317ff1ba2fbf72a6f9bac667f340d
[ "MIT" ]
null
null
null
assignment1/run_experiment.py
yuhu0016/machine-learning-cs7641
b746acb1573317ff1ba2fbf72a6f9bac667f340d
[ "MIT" ]
null
null
null
assignment1/run_experiment.py
yuhu0016/machine-learning-cs7641
b746acb1573317ff1ba2fbf72a6f9bac667f340d
[ "MIT" ]
null
null
null
import argparse from datetime import datetime import logging import numpy as np import experiments from data import loader # Configure logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) def run_experiment(experiment_det...
33.25
112
0.639903
b67bf5e62b966b79b86bcefb10feb36dc4f07868
1,372
py
Python
mindspore/ops/_op_impl/tbe/npu_clear_float_status.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
mindspore/python/mindspore/ops/_op_impl/tbe/npu_clear_float_status.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
mindspore/python/mindspore/ops/_op_impl/tbe/npu_clear_float_status.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.111111
79
0.700437
cc2e27ffb49035025d16d9d3948895cc0f4fd181
415
py
Python
pyproxy/settings.py
tukeJonny/pyproxy
06d44c30d16145f3f568b6a5b593c272eb46fa39
[ "MIT" ]
null
null
null
pyproxy/settings.py
tukeJonny/pyproxy
06d44c30d16145f3f568b6a5b593c272eb46fa39
[ "MIT" ]
null
null
null
pyproxy/settings.py
tukeJonny/pyproxy
06d44c30d16145f3f568b6a5b593c272eb46fa39
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import os import shutil from pathlib import Path # CA Settings BASE_PATH = Path('/', 'tmp', 'proxy_ca') try: shutil.rmtree(str(BASE_PATH)) except: pass os.mkdir(str(BASE_PATH)) SSL_BITS = '2048' SSL_DAYS = '365' # Proxy Handler Settings CACERT_DISTRIBUTOR='http://pyproxy.cacert/' REQUES...
17.291667
43
0.706024
bd7604c3bca3f4b8e6240e0947f502187404b8a2
528
py
Python
utils/notify_admin.py
DurbeKK/room-finder-bot
2d379cd8c70660dd01b4b18253a063acc6081786
[ "MIT" ]
2
2022-02-02T12:48:15.000Z
2022-03-03T18:55:15.000Z
utils/notify_admin.py
DurbeKK/countdown-tg-bot
ed7152d642ed746ddfbde36fd126a8d958fd8127
[ "MIT" ]
null
null
null
utils/notify_admin.py
DurbeKK/countdown-tg-bot
ed7152d642ed746ddfbde36fd126a8d958fd8127
[ "MIT" ]
null
null
null
import logging from aiogram import Dispatcher from data.config import ADMIN async def notify_on_startup(dp: Dispatcher): """Notify admin that the bot has launched.""" try: await dp.bot.send_message(ADMIN, "Bot launched!") except Exception as err: logging.exception(err) async def notify_...
25.142857
58
0.689394
9167e77052fc4014f2584b3db9804048484431ac
4,931
py
Python
neuralmonkey/decoders/sequence_classifier.py
hoangcuong2011/LDNMT
b0154d4ee7aa776adf02ef6bba03c9312345038a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/sequence_classifier.py
hoangcuong2011/LDNMT
b0154d4ee7aa776adf02ef6bba03c9312345038a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/decoders/sequence_classifier.py
hoangcuong2011/LDNMT
b0154d4ee7aa776adf02ef6bba03c9312345038a
[ "BSD-3-Clause" ]
null
null
null
from typing import cast, Any, Callable, Iterable, Optional, List import tensorflow as tf from neuralmonkey.dataset import Dataset from neuralmonkey.vocabulary import Vocabulary from neuralmonkey.model.model_part import ModelPart, FeedDict from neuralmonkey.nn.mlp import MultilayerPerceptron from neuralmonkey.decorato...
34.725352
79
0.628676
718163d9eba9f24abe4269312f60bbea190ec52b
6,475
py
Python
hmtl/models/layerCorefSrlBert.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
hmtl/models/layerCorefSrlBert.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
hmtl/models/layerCorefSrlBert.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
# coding: utf-8 import logging from typing import Dict import torch from transformers import AutoModel from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.modules import FeedForward from allennlp.modules import Seq2SeqEncoder from allennlp.modu...
35.190217
99
0.657297
465a94cab94d5cdb8de38c4f3d4f83a1d3927393
2,982
py
Python
grove/helper/os_sched.py
Hansen0314/grove.py
8edbf4678d7634623d9279bce5a8b73f32c56325
[ "MIT" ]
122
2018-12-04T16:42:32.000Z
2022-03-16T09:15:07.000Z
grove/helper/os_sched.py
Hansen0314/grove.py
8edbf4678d7634623d9279bce5a8b73f32c56325
[ "MIT" ]
28
2019-03-27T19:26:25.000Z
2022-03-30T04:49:54.000Z
grove/helper/os_sched.py
Hansen0314/grove.py
8edbf4678d7634623d9279bce5a8b73f32c56325
[ "MIT" ]
91
2018-06-30T06:35:23.000Z
2022-03-20T14:56:15.000Z
#!/usr/bin/env python # # This is the library for Grove Base Hat. # # OS Scheduler Classes # ''' provide functions to promote process real-time priority or change back to default ## License The MIT License (MIT) Grove Base Hat for the Raspberry Pi, used to connect grove sensors. Copyright (C) 2018 Seeed Technology ...
28.951456
81
0.735748
f31324736fba9cfb76a0dcc9c72154ea67de6f9d
1,020
py
Python
kubernetes/test/test_v1alpha1_role_binding_list.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_role_binding_list.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1alpha1_role_binding_list.py
TomasTomecek/kubernetes-python
c37c074303a13c72662b9201ccc023fb0ca45755
[ "Apache-2.0" ]
1
2020-05-09T07:16:55.000Z
2020-05-09T07:16:55.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.666667
105
0.72549
e47e87176e623ffa0ad8d40450904494c570bcdb
2,334
py
Python
translate.py
siboehm/hgraph2graph
91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9
[ "MIT" ]
null
null
null
translate.py
siboehm/hgraph2graph
91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9
[ "MIT" ]
null
null
null
translate.py
siboehm/hgraph2graph
91d0dc763be1f9bc97e0c2473b0a00a058b4a9f9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler from torch.utils.data import DataLoader import math, random, sys import numpy as np import argparse from hgraph import * import rdkit lg = rdkit.RDLogger.logger() lg.setLevel(rdkit.RDLogger.CRITICAL) parse...
32.873239
99
0.72108
71fe54be2fa2ad198c877096af802d4a6b25a90b
2,569
py
Python
tests/test_console.py
AndrasSzabo/andras-hypermodern-python
ec3193c5238ae5727f61da866e2b640a5451b90a
[ "MIT" ]
null
null
null
tests/test_console.py
AndrasSzabo/andras-hypermodern-python
ec3193c5238ae5727f61da866e2b640a5451b90a
[ "MIT" ]
null
null
null
tests/test_console.py
AndrasSzabo/andras-hypermodern-python
ec3193c5238ae5727f61da866e2b640a5451b90a
[ "MIT" ]
null
null
null
"""Test cases for the console module.""" from unittest.mock import Mock import click import click.testing from click.testing import CliRunner import pytest from pytest_mock import MockFixture import requests from andras_hypermodern_python import console @pytest.fixture def mock_wikipedia_random_page(mocker: MockFi...
32.518987
88
0.746594
f138940a65027c5a17836bdcacbfc95fc5c8cb80
13,221
py
Python
projectq/ops/_command.py
daisyrainsmith/ProjectQ
b8b6057a991a40ec9ad0a5d8c78f0ac90d13bcf9
[ "Apache-2.0" ]
null
null
null
projectq/ops/_command.py
daisyrainsmith/ProjectQ
b8b6057a991a40ec9ad0a5d8c78f0ac90d13bcf9
[ "Apache-2.0" ]
null
null
null
projectq/ops/_command.py
daisyrainsmith/ProjectQ
b8b6057a991a40ec9ad0a5d8c78f0ac90d13bcf9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
35.829268
105
0.62673
77834a426e1d00a96753c44d2649b1a157552d4a
2,146
py
Python
app/main/auth/forms.py
printdaigang/groupby
e222cc19751abcd05ebb8e18a086fd448148e8bf
[ "MIT" ]
null
null
null
app/main/auth/forms.py
printdaigang/groupby
e222cc19751abcd05ebb8e18a086fd448148e8bf
[ "MIT" ]
null
null
null
app/main/auth/forms.py
printdaigang/groupby
e222cc19751abcd05ebb8e18a086fd448148e8bf
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from app import db from app.models import User from flask.ext.wtf import Form from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms import ValidationError from wtforms.validators import Email, Length, DataRequired, EqualTo class LoginForm(Form): email = Stri...
47.688889
119
0.646785
a279e33bf1c2840ec8d857bd275621e4f84027fe
400
py
Python
beegarden/themes/dark/__init__.py
rosin55/beegarden
6d5173ead78d94ee39fec7182665ef950bf49fcc
[ "BSD-2-Clause-FreeBSD" ]
4
2017-08-08T08:17:55.000Z
2021-08-31T19:51:01.000Z
beegarden/themes/dark/__init__.py
rosin55/beegarden
6d5173ead78d94ee39fec7182665ef950bf49fcc
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
beegarden/themes/dark/__init__.py
rosin55/beegarden
6d5173ead78d94ee39fec7182665ef950bf49fcc
[ "BSD-2-Clause-FreeBSD" ]
4
2016-02-22T18:47:00.000Z
2019-03-25T21:30:32.000Z
# -*- coding: utf-8 -*- import os PICTURES_PATH = os.path.dirname(__file__) # BACKGROUND_COLOR = (13, 13, 13) BACKGROUND_IMAGE = 'background.jpg' METER_1_COLOR = (80, 80, 80) METER_2_COLOR = (70, 70, 90) FIELD_WIDTH = 1200 FIELD_HEIGHT = 600 TEAMS_COUNT = 4 DEBUG = False MAX_HEALTH = 100 STING_POWER = 50 HEALTH_...
16
41
0.7275
6829d96f67dd4943f71e2b9c0d1aa2f7d575581e
23,624
py
Python
peri2organise/tutor/views.py
jakemalley/peri2organise
fa3416103d08d7a86004d51d39dac2513ad5053b
[ "MIT" ]
null
null
null
peri2organise/tutor/views.py
jakemalley/peri2organise
fa3416103d08d7a86004d51d39dac2513ad5053b
[ "MIT" ]
null
null
null
peri2organise/tutor/views.py
jakemalley/peri2organise
fa3416103d08d7a86004d51d39dac2513ad5053b
[ "MIT" ]
null
null
null
# views.py # Jake Malley # Views used in the tutor blueprint. # Flask imports from flask import Blueprint from flask import abort from flask import flash from flask import redirect from flask import render_template from flask import request from flask import url_for from flask.ext.login import current_user from flask....
36.288786
121
0.646758
e8f73a6ab103203f908fa86b1a8be93b9692a71f
5,832
py
Python
third_party/google-endpoints/Crypto/SelfTest/Cipher/test_Blowfish.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/google-endpoints/Crypto/SelfTest/Cipher/test_Blowfish.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/google-endpoints/Crypto/SelfTest/Cipher/test_Blowfish.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# -*- coding: utf-8 -*- # # SelfTest/Cipher/test_Blowfish.py: Self-test for the Blowfish cipher # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that d...
51.157895
79
0.716564
5fd947fcb500841ac2e5ed3ce3c9f331fb0f317c
6,162
py
Python
pds_pipelines/ingest_process.py
amystamile-usgs/PDS-Pipelines
cdf5c03b08cf6c231117039ac44b8d78d98cd4c2
[ "Unlicense" ]
8
2019-04-18T01:41:26.000Z
2021-10-06T00:34:02.000Z
pds_pipelines/ingest_process.py
amystamile-usgs/PDS-Pipelines
cdf5c03b08cf6c231117039ac44b8d78d98cd4c2
[ "Unlicense" ]
420
2018-03-07T02:02:41.000Z
2022-01-31T18:23:06.000Z
pds_pipelines/ingest_process.py
amystamile-usgs/PDS-Pipelines
cdf5c03b08cf6c231117039ac44b8d78d98cd4c2
[ "Unlicense" ]
19
2018-03-13T19:52:04.000Z
2022-02-26T09:46:27.000Z
#!/usr/bin/env python import os import sys import datetime import logging import json import argparse import hashlib import pytz from ast import literal_eval from pds_pipelines.redis_queue import RedisQueue from pds_pipelines.redis_lock import RedisLock from pds_pipelines.db import db_connect from pds_pipelines.config...
34.617978
124
0.613924
4cc02e4320a2bda9cae1de7204c3995a3774693a
654
py
Python
correspondence_retrieval/code/run_single.py
JiwanChung/acav100m
51cb948d5682da69334a8d05d2df631971b60215
[ "MIT" ]
27
2021-10-13T07:49:14.000Z
2022-03-15T06:58:00.000Z
correspondence_retrieval/code/run_single.py
JiwanChung/acav100m
51cb948d5682da69334a8d05d2df631971b60215
[ "MIT" ]
3
2021-08-30T21:29:45.000Z
2021-11-18T08:02:32.000Z
correspondence_retrieval/code/run_single.py
JiwanChung/acav100m
51cb948d5682da69334a8d05d2df631971b60215
[ "MIT" ]
6
2021-08-30T18:48:32.000Z
2021-12-16T22:11:37.000Z
import argparse import json from cli import Cli def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('-g', '--path', type=str, default='search_targets/default.json') parser.add_argument('-l', '--large', action='store_true') args = parser.parse_args() with open(ar...
20.4375
88
0.629969
2483797b3bca883d02e773f5c8414c8e5e4d262d
38,262
py
Python
py/desisurvey/ephem.py
desi-bgs/desisurvey
dda5a40d93d1169d2313a0aa6ab44656a6a2fe5b
[ "BSD-3-Clause" ]
null
null
null
py/desisurvey/ephem.py
desi-bgs/desisurvey
dda5a40d93d1169d2313a0aa6ab44656a6a2fe5b
[ "BSD-3-Clause" ]
null
null
null
py/desisurvey/ephem.py
desi-bgs/desisurvey
dda5a40d93d1169d2313a0aa6ab44656a6a2fe5b
[ "BSD-3-Clause" ]
null
null
null
"""Tabulate sun and moon ephemerides during the survey. """ from __future__ import print_function, division import warnings import math import os.path import datetime import numpy as np import scipy.interpolate import astropy.time import astropy.table import astropy.utils.exceptions import astropy.units as u import...
43.928817
101
0.61186
edaa0aa99d4a4d19e1d50be2c7019bc5ea62a2b8
4,989
py
Python
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/config.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
1
2022-03-31T18:23:00.000Z
2022-03-31T18:23:00.000Z
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/config.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
2
2021-09-30T16:58:58.000Z
2021-11-26T17:58:59.000Z
airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/config.py
darian-heede/airbyte
504580d833582f8800b334f24e57a414d94389bf
[ "MIT" ]
2
2021-04-28T15:15:37.000Z
2022-03-28T17:32:15.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # from enum import Enum from pathlib import Path from typing import List, Mapping, Optional, Set from pydantic import BaseModel, Field, validator config_path: str = Field(default="secrets/config.json", description="Path to a JSON object representing a valid...
41.231405
137
0.742233
f7492e49c9c1c46f2df91362feee8c4fc02288c8
27,205
py
Python
docs/beta/code/Tracking.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
null
null
null
docs/beta/code/Tracking.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
null
null
null
docs/beta/code/Tracking.py
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # "Tracking Bugs" - a chapter of "The Debugging Book" # Web site: https://www.debuggingbook.org/html/Tracking.html # Last change: 2021-05-12 17:37:52+02:00 # # Copyright (c) 2021 CISPA Helmholtz Center for Information Security # Copyright (c) 2018-2020 Saarland University...
27.675483
131
0.671972
74a986e80b80360fabb0d6a93f47c35e73f23bc0
856
py
Python
example_code/assigned_functions_to_reactions.py
SysSynBio/PyFBA
433ce72d9d4bc6ad2cd0f30f16e61439a338f2ab
[ "MIT" ]
1
2021-12-10T03:20:35.000Z
2021-12-10T03:20:35.000Z
example_code/assigned_functions_to_reactions.py
SysSynBio/PyFBA
433ce72d9d4bc6ad2cd0f30f16e61439a338f2ab
[ "MIT" ]
null
null
null
example_code/assigned_functions_to_reactions.py
SysSynBio/PyFBA
433ce72d9d4bc6ad2cd0f30f16e61439a338f2ab
[ "MIT" ]
null
null
null
import PyFBA import argparse import os import sys parser=argparse.ArgumentParser(description='Convert an assigned_functions file to a list of roles') parser.add_argument('-a', help='assigned functions file') parser.add_argument('-r', help='roles file (one per line') parser.add_argument('-v', help='verbose', action='s...
27.612903
99
0.689252
29f71e6bc91a7ee7eb17aa9b401dc30f7697dc65
3,805
py
Python
dialogue-engine/src/programy/oob/defaults/alarm.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
104
2020-03-30T09:40:00.000Z
2022-03-06T22:34:25.000Z
dialogue-engine/src/programy/oob/defaults/alarm.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
25
2020-06-12T01:36:35.000Z
2022-02-19T07:30:44.000Z
dialogue-engine/src/programy/oob/defaults/alarm.py
cotobadesign/cotoba-agent-oss
3833d56e79dcd7529c3e8b3a3a8a782d513d9b12
[ "MIT" ]
10
2020-04-02T23:43:56.000Z
2021-05-14T13:47:01.000Z
""" Copyright (c) 2020 COTOBA DESIGN, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
47.5625
126
0.706702
7ae0e0dbea30e6540dc65eea8724fec26421af25
4,255
py
Python
bot.py
samkiani/discord_member_count_bot
c67f0675a6788083f2b18663f1bed51dbd65c3bf
[ "BSD-3-Clause" ]
1
2022-01-09T04:05:49.000Z
2022-01-09T04:05:49.000Z
bot.py
samkiani/discord_member_count_bot
c67f0675a6788083f2b18663f1bed51dbd65c3bf
[ "BSD-3-Clause" ]
1
2022-03-25T07:09:42.000Z
2022-03-25T07:14:34.000Z
bot.py
samkiani/discord_member_count_bot
c67f0675a6788083f2b18663f1bed51dbd65c3bf
[ "BSD-3-Clause" ]
7
2021-05-01T15:54:00.000Z
2022-03-29T18:50:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Konstantin (k0nze) Lübeck" __copyright__ = "Copyright 2021, Discord Member Count Bot" __credits__ = ["Alex Ronquillo: https://realpython.com/how-to-make-a-discord-bot-python/"] __license__ = "BSD 3-Clause License" __version__ = "0.1" __con...
32.234848
99
0.670035
4f5481a03cdde995f3365b9fa6dba88de8a881a9
225
py
Python
sinoera/solarterm/greatcold.py
sinotradition/sinoera
1e93482c0a56a8917bc7ceebeef5b63b24ca3651
[ "Apache-2.0" ]
1
2015-12-14T15:14:35.000Z
2015-12-14T15:14:35.000Z
sinoera/solarterm/greatcold.py
sinotradition/sinoera
1e93482c0a56a8917bc7ceebeef5b63b24ca3651
[ "Apache-2.0" ]
null
null
null
sinoera/solarterm/greatcold.py
sinotradition/sinoera
1e93482c0a56a8917bc7ceebeef5b63b24ca3651
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #coding=utf-8 ''' @author: sheng @contact: sinotradition@gmail.com @copyright: License according to the project license. ''' NAME='GreatCold' SPELL='dàhán' CN='大寒' SEQ='24' if __name__=='__main__': pass
13.235294
53
0.706667
8d6cff8664800416fa88d27c291f1bf4a22d2bb8
18,802
py
Python
elastic/tests/test_elastic.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
elastic/tests/test_elastic.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
elastic/tests/test_elastic.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import logging from copy import deepcopy import pytest import requests from six import iteritems from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metri...
36.579767
117
0.663227
56451baa37a14e6c04b4307419a051983cdceed1
5,688
py
Python
ietf/idindex/tests.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-09-02T19:53:12.000Z
2015-09-02T19:53:12.000Z
ietf/idindex/tests.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/idindex/tests.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
import os import datetime import shutil from django.conf import settings from ietf.doc.models import Document, DocAlias, RelatedDocument, State, LastCallDocEvent, NewRevisionDocEvent from ietf.name.models import DocRelationshipName from ietf.idindex.index import all_id_txt, all_id2_txt, id_index_txt from ietf.utils.t...
38.958904
153
0.638361
959bba163af7b22f94e9a51f02280f94b1a530ee
12,624
py
Python
geniushubclient/const.py
rbubley/geniushub-client
070a04f9274a646c5861095d93650e3cbd7178c9
[ "MIT" ]
8
2019-08-15T10:43:56.000Z
2021-10-31T12:00:45.000Z
geniushubclient/const.py
rbubley/geniushub-client
070a04f9274a646c5861095d93650e3cbd7178c9
[ "MIT" ]
12
2019-05-19T14:47:55.000Z
2021-08-15T13:55:25.000Z
geniushubclient/const.py
rbubley/geniushub-client
070a04f9274a646c5861095d93650e3cbd7178c9
[ "MIT" ]
3
2019-11-03T09:18:06.000Z
2020-03-27T12:09:18.000Z
"""Python client library for the Genius Hub API.""" from types import SimpleNamespace DEFAULT_TIMEOUT_V1 = 120 DEFAULT_TIMEOUT_V3 = 20 # see: https://docs.geniushub.co.uk/pages/viewpage.action?pageId=14221432 HUB_SW_VERSIONS = { "Dec 31 9999": "5.3.6+", "Jan 16 2020": "5.3.6", # confirmed in testing "Sep...
29.703529
119
0.549984
844850a325de0c12f0d033ea7285e334ae1196cc
26,501
py
Python
libcloud/compute/drivers/gandi.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
3
2015-09-11T15:42:16.000Z
2021-05-12T01:10:05.000Z
libcloud/compute/drivers/gandi.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
1
2015-10-26T21:29:56.000Z
2015-10-27T17:29:20.000Z
libcloud/compute/drivers/gandi.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
3
2016-02-08T23:38:18.000Z
2019-11-05T00:31:34.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
32.083535
79
0.541338
af8bbf48e665fa13d98f326a2b41526b54d5d205
1,589
py
Python
brushtech/doc_events/items.py
Momscode-Technologies/brushtech
0ad9e5b39f29ed0e75b71b0e40853bbda9e967c9
[ "MIT" ]
null
null
null
brushtech/doc_events/items.py
Momscode-Technologies/brushtech
0ad9e5b39f29ed0e75b71b0e40853bbda9e967c9
[ "MIT" ]
null
null
null
brushtech/doc_events/items.py
Momscode-Technologies/brushtech
0ad9e5b39f29ed0e75b71b0e40853bbda9e967c9
[ "MIT" ]
3
2022-03-30T04:00:34.000Z
2022-03-30T04:11:44.000Z
import frappe @frappe.whitelist() def validate_item(doc, method): item_name_based = frappe.db.get_single_value('Stock Settings', 'item_naming_by') doc.is_stock_item = frappe.db.get_value('Item Group', doc.item_group, "is_maintain_stock") doc.is_sales_item = frappe.db.get_value('Item Group', doc.item_grou...
63.56
155
0.753933
e3be6ee16833bcdfd59d1ab16c7eee69807bd01c
536
py
Python
apps/accounts/forms.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/accounts/forms.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/accounts/forms.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.forms import AuthenticationForm import floppyforms as forms class WocatAuthenticationForm(forms.Form, AuthenticationForm): """ Use floppyforms """ username = forms.CharField( max_length=255...
33.5
79
0.701493
b22ed7bf6f8f65e7e0957f81b09549c3b99d7efa
3,414
py
Python
pytorch/libs/nnet/transformer/embedding.py
ishine/asv-subtools
597dcb29a772b8113dbe7ab64f0d4cc1da298707
[ "Apache-2.0" ]
370
2020-05-31T16:28:08.000Z
2022-03-24T07:27:50.000Z
pytorch/libs/nnet/transformer/embedding.py
ts0923/asv-subtools
a678b8f3327de0e99c445a79a9e91e5e0e006b11
[ "Apache-2.0" ]
35
2020-07-01T12:08:31.000Z
2021-12-15T03:18:14.000Z
pytorch/libs/nnet/transformer/embedding.py
ts0923/asv-subtools
a678b8f3327de0e99c445a79a9e91e5e0e006b11
[ "Apache-2.0" ]
119
2020-06-08T11:27:09.000Z
2022-03-31T05:31:53.000Z
# -*- coding:utf-8 -*- # Reference: https://github.com/espnet/espnet. """Positonal Encoding Module.""" import math import torch def _pre_hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs): """Perform pre-hook in load_state_dict for backward compatibility. ...
31.036364
88
0.599297
51d3d9859dea36b5d48969c1f90e6b1f91154a78
2,090
py
Python
nicos_tuw/xccm/setups/optic_motors.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_tuw/xccm/setups/optic_motors.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_tuw/xccm/setups/optic_motors.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'motors moving the optics tool in the experiment chamber.' group = 'lowlevel' tangobase = 'tango://localhost:10000/box/' devices = dict( opt_Tx_m = device('nicos.devices.tango.Motor', description = 'Optics translation x-axis motor', tangodevice = tangobase + 'optics/Tx_Motor', ...
32.65625
72
0.6
e7c74eaf10e1f157ab993913992a2accf4c7a104
3,673
py
Python
pymagnitude/third_party/allennlp/data/dataset_readers/sequence_tagging.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/data/dataset_readers/sequence_tagging.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/data/dataset_readers/sequence_tagging.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
from __future__ import with_statement from __future__ import absolute_import #typing import logging #overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import TextField, SequenceLabelField, MetadataField, Fiel...
41.738636
107
0.649333
23cf3f9abfdd4762c03a9e13d9bfab032115b1f7
2,008
py
Python
pandapower/control/controller/trafo/USetTapControl.py
yougnen/pandapower
d206bd91e68dd03675f7fe8ddee141621ef437fc
[ "BSD-3-Clause" ]
2
2021-01-04T11:41:15.000Z
2021-01-04T11:41:26.000Z
pandapower/control/controller/trafo/USetTapControl.py
yougnen/pandapower
d206bd91e68dd03675f7fe8ddee141621ef437fc
[ "BSD-3-Clause" ]
3
2021-03-29T15:14:13.000Z
2021-05-29T09:29:19.000Z
pandapower/control/controller/trafo/USetTapControl.py
yougnen/pandapower
d206bd91e68dd03675f7fe8ddee141621ef437fc
[ "BSD-3-Clause" ]
1
2021-01-27T20:47:33.000Z
2021-01-27T20:47:33.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016-2021 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. from pandapower.control.controller.characteristic_control import CharacteristicControl from pandapower.control.util.characteristic ...
55.777778
189
0.719124
55d8fd14ff00b58d20c52e0093722e29b131e3cb
10,561
py
Python
SCODE-G/code_to_text/rouge_evaluator.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
22
2021-11-15T06:00:13.000Z
2022-03-25T14:33:15.000Z
SCODE-G/code_to_text/rouge_evaluator.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
2
2021-12-02T19:22:51.000Z
2022-02-19T10:50:58.000Z
SCODE-G/code_to_text/rouge_evaluator.py
rizwan09/REDCODER
e889b3d3f37573be8418c0ac536c2201e8f1be26
[ "MIT" ]
2
2021-10-07T15:27:25.000Z
2021-12-08T07:12:13.000Z
""" This is a modified verison of https://raw.githubusercontent.com/google/seq2seq/master/seq2seq/metrics/rouge.py """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import itertools, sys import numpy as np #pylint...
29.66573
80
0.695294
598198bbfe794324500f6b4ecd4f2614420dca24
43,034
py
Python
pytorch_lightning/trainer/training_loop.py
gcroci2/pytorch-lightning
eb648855110c604c547d04884f9352e8c4d81785
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/trainer/training_loop.py
gcroci2/pytorch-lightning
eb648855110c604c547d04884f9352e8c4d81785
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/trainer/training_loop.py
gcroci2/pytorch-lightning
eb648855110c604c547d04884f9352e8c4d81785
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
42.991009
119
0.663894
5c0388eaeb3aab3573b9d6d1d7abbc066e4d0b83
8,004
py
Python
drfpasswordless/utils.py
firstTimeCaller/django-rest-framework-passwordless
8dad95ab0b2ce33d0e9fee9455391893929ec0cf
[ "MIT" ]
null
null
null
drfpasswordless/utils.py
firstTimeCaller/django-rest-framework-passwordless
8dad95ab0b2ce33d0e9fee9455391893929ec0cf
[ "MIT" ]
null
null
null
drfpasswordless/utils.py
firstTimeCaller/django-rest-framework-passwordless
8dad95ab0b2ce33d0e9fee9455391893929ec0cf
[ "MIT" ]
null
null
null
import logging import os from django.contrib.auth import get_user_model from django.core.exceptions import PermissionDenied from django.core.mail import send_mail from django.template import loader from django.utils import timezone from rest_framework.authtoken.models import Token from drfpasswordless.models import Cal...
38.114286
137
0.653298
d79befe36c350d2d3458f05bc00193386bae043e
3,485
py
Python
src/DynamicPlot.py
tblaschke/autoencoder
ffea9fae646b869ea48f116ec08aa9e25463706b
[ "MIT" ]
1
2022-03-10T13:19:10.000Z
2022-03-10T13:19:10.000Z
src/DynamicPlot.py
tblaschke/autoencoder
ffea9fae646b869ea48f116ec08aa9e25463706b
[ "MIT" ]
null
null
null
src/DynamicPlot.py
tblaschke/autoencoder
ffea9fae646b869ea48f116ec08aa9e25463706b
[ "MIT" ]
1
2022-03-10T13:19:11.000Z
2022-03-10T13:19:11.000Z
# coding=utf-8 from rdkit import Chem from rdkit.Chem import Draw class DynamicPlot(object): def __init__(self, n_steps, min, max, save_file=None): import os if os.environ.get('DISPLAY', '') == '': print('no display found. Using non-interactive Agg backend') import matplot...
33.190476
129
0.493257
925b0faf62212869c2dcbd74fc31f218a44ff6d1
1,877
py
Python
HashTable/DesignTheKey/valid_sudoku.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
HashTable/DesignTheKey/valid_sudoku.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
HashTable/DesignTheKey/valid_sudoku.py
mamoudmatook/Leetcode
59fb1612ee648a9b99ff7cc779ada5656c01ecd2
[ "MIT" ]
null
null
null
# # Created on Tue Oct 19 2021 # # The MIT License (MIT) # Copyright (c) 2021 Maatuq # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the ri...
41.711111
122
0.603623
d9cc0f8fb59ec9a5b23014a199bda0ca2fde4c9a
2,111
py
Python
src/compas/com/rhino/client.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
1
2019-03-27T22:46:29.000Z
2019-03-27T22:46:29.000Z
src/compas/com/rhino/client.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
null
null
null
src/compas/com/rhino/client.py
yijiangh/compas
a9e86edf6b602f47ca051fccedcaa88a5e5d3600
[ "MIT" ]
1
2022-01-16T02:32:43.000Z
2022-01-16T02:32:43.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division import time import compas try: from comtypes.client import CreateObject from comtypes.client import GetModule except ImportError: compas.raise_if_windows() __all__ = ['RhinoClient'] class Rhino...
23.197802
106
0.580767
1d17379ce789d70097ac4232d3be691d6c43f7d7
2,245
py
Python
nova/virt/disk/mount/loop.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
7
2015-09-22T11:27:16.000Z
2015-11-02T12:33:46.000Z
nova/virt/disk/mount/loop.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
2
2015-09-07T22:14:46.000Z
2020-08-12T08:51:56.000Z
nova/virt/disk/mount/loop.py
gabriel-samfira/nova
5ef07cc04dbf0216452ae358e57d9ddac51f1803
[ "Apache-2.0" ]
4
2015-09-09T16:48:56.000Z
2022-03-15T20:52:57.000Z
# Copyright 2011 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
36.209677
78
0.647661
de13506dfcde4803030fb4eee704c44489b9d134
191
py
Python
reader.py
Taichinakai/Taichi-Nakai
83284b93b5739b264783bf849d990f33f8abae85
[ "MIT" ]
null
null
null
reader.py
Taichinakai/Taichi-Nakai
83284b93b5739b264783bf849d990f33f8abae85
[ "MIT" ]
null
null
null
reader.py
Taichinakai/Taichi-Nakai
83284b93b5739b264783bf849d990f33f8abae85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 13 16:40:29 2017 @author: taichi """ import read_functions as n import pandas as x n.read_whole() n.read_whole2() n.read_whole3()
14.692308
36
0.638743
f6a11877eece7b0ad6e008c8ec51592f21d3effa
1,829
py
Python
packages/sqlmap-master/plugins/dbms/derby/connector.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/sqlmap-master/plugins/dbms/derby/connector.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/sqlmap-master/plugins/dbms/derby/connector.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ try: import drda except: pass import logging from lib.core.common import getSafeExString from lib.core.data import conf from lib.core.data import logger from lib.core.ex...
29.031746
112
0.667031