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
574cf324dd7e3124ebf51b524833be21ee9c36b2
2,144
py
Python
OOP Week 2/6310545566_Week12/run_board3.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP Week 2/6310545566_Week12/run_board3.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
OOP Week 2/6310545566_Week12/run_board3.py
HelloYeew/helloyeew-lab-computer-programming-i
60b05072f32f23bab4a336b506ba7f66e52c045d
[ "MIT" ]
null
null
null
from player import * from board import * from cell import * a = Player("A") b = Player("B") board = Board('board1.txt') board.add_player(a) board.add_player(b) ### For testing function move print(">>> A moves") print(a) # Set player A to move 4 steps a.current_move = 4 print(a) a.move(board) print(a) print() print(...
25.831325
102
0.734142
8de08f30f4be7057951699a66441357c473c84d6
3,695
py
Python
module/malware/30.py
5l1v3r1/saydog-framework
92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6
[ "Xnet", "TCP-wrappers", "X11" ]
2
2020-09-26T16:43:11.000Z
2021-02-09T21:46:08.000Z
module/malware/30.py
5l1v3r1/saydog-framework
92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6
[ "Xnet", "TCP-wrappers", "X11" ]
null
null
null
module/malware/30.py
5l1v3r1/saydog-framework
92d6d2a80958ecf5724c95d1d3c76d8ca95db8d6
[ "Xnet", "TCP-wrappers", "X11" ]
1
2022-03-19T06:40:56.000Z
2022-03-19T06:40:56.000Z
import os,sys import time u='\033[4m' w='\x1b[00m' r='\x1b[91m' b='\x1b[36;1m' y='\x1b[33m' def exit(): print(r+'[!]'+w+' The user forces it to stop') print(r+'[!]'+w+' Exiting program') sys.exit(1) def corrupt(): print(r+'[?]'+w+' Command not found, please type help') ...
49.932432
178
0.347226
e912162e98a071826f62ad98af891120325dbaa8
2,327
py
Python
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
null
null
null
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
1
2018-03-17T19:15:41.000Z
2018-03-17T19:18:24.000Z
lab1/domanda3.py
D33pBlue/Algoritmi
76088f40b49d51416919515a274ba076ae6a197e
[ "MIT" ]
null
null
null
from domanda1 import * import random import time class DPATrial: def __init__(self,m): self.numNodes = m self.nodeNumbers = list() for i in range(m): for _ in range(m): self.nodeNumbers.append(i) def runTrial(self,m): V = [] random.shuffle(s...
25.855556
73
0.588311
12bdc0e0b4fc10f76ab0c7e32c691033a994b60e
8,789
py
Python
grblas/_automethods.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
16
2020-07-28T22:14:56.000Z
2022-03-26T14:45:41.000Z
grblas/_automethods.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
75
2020-07-27T04:06:16.000Z
2022-03-30T19:23:08.000Z
grblas/_automethods.py
vishalbelsare/grblas
d181ac4cb495d1bc806253137f53a42d65693b5e
[ "Apache-2.0" ]
4
2020-07-23T19:04:13.000Z
2022-03-18T00:34:14.000Z
""" Define functions to use as property methods on expressions. These will automatically compute the value and avoid the need for `.new()`. To automatically create the functions, run: ```python common = { "_name_html", "_nvals", "gb_obj", "isclose", "isequal", "name", "nvals", "to_py...
20.631455
100
0.656616
5f1fbb8f563b9b5cf0bb7496ee223845c1da1c0e
10,912
py
Python
hanlp/components/parsers/parse_alg.py
antfootAlex/HanLP
e8044b27ae1de54b9070db08549853d3ca8271e2
[ "Apache-2.0" ]
3
2022-03-22T05:47:50.000Z
2022-03-22T05:47:58.000Z
hanlp/components/parsers/parse_alg.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
hanlp/components/parsers/parse_alg.py
hushaoyun/HanLP
967b52404c9d0adbc0cff2699690c127ecfca36e
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-04-02 23:20 from collections import defaultdict import hanlp.utils.span_util from hanlp.components.parsers.chu_liu_edmonds import decode_mst import numpy as np class Tarjan: """Computes Tarjan's algorithm for finding strongly connected components (cycles) of a...
34.86262
119
0.591459
bfc78aba7a65c5242a9f8828e068975eece9e10b
7,921
py
Python
tail/modecoupling.py
ickc/TAIL
3b4e49d6d5a4c2b57f7de5cbfcb2441e405efbeb
[ "BSD-3-Clause" ]
1
2020-12-10T22:58:02.000Z
2020-12-10T22:58:02.000Z
tail/modecoupling.py
ickc/TAIL
3b4e49d6d5a4c2b57f7de5cbfcb2441e405efbeb
[ "BSD-3-Clause" ]
1
2017-04-24T09:31:29.000Z
2017-04-24T09:31:29.000Z
tail/modecoupling.py
ickc/TAIL
3b4e49d6d5a4c2b57f7de5cbfcb2441e405efbeb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numba import jit, prange from scipy.fftpack import fft2, next_fast_len from dautil.util import zero_padding from tail.numba_wrap import fftfreq from tail.util import fill_nan, norm_fft, normalize_row @jit(nopython=True, nogil=True, parallel=True) def _bin_psd2(pixel_size, l_max, mask): ''...
29.337037
111
0.550309
36a24eae5aaf60ceb72a84728799a20ce4d64699
65,572
py
Python
plasmapy/physics/transport/collisions.py
pep8speaks/PlasmaPy
d00f32b0266f8f39ff1ce4a1b38afbc1b9c7b733
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-04-10T06:00:46.000Z
2019-04-10T06:00:46.000Z
plasmapy/physics/transport/collisions.py
pep8speaks/PlasmaPy
d00f32b0266f8f39ff1ce4a1b38afbc1b9c7b733
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/physics/transport/collisions.py
pep8speaks/PlasmaPy
d00f32b0266f8f39ff1ce4a1b38afbc1b9c7b733
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
"""Functions to calculate transport coefficients. This module includes a number of functions for handling Coulomb collisions spanning weakly coupled (low density) to strongly coupled (high density) regimes. Coulomb collisions ================== Coulomb collisions are collisions where the interaction force is conveye...
36.550725
107
0.614088
0f34ca172e9437c1a2f288d343c81965f753ed44
3,044
py
Python
segmentation_models_pytorch/common/blocks.py
vinnamkim/segmentation_models.pytorch
f967ded34df6fb536e8e8cba9b6491ae63b939f5
[ "MIT" ]
null
null
null
segmentation_models_pytorch/common/blocks.py
vinnamkim/segmentation_models.pytorch
f967ded34df6fb536e8e8cba9b6491ae63b939f5
[ "MIT" ]
null
null
null
segmentation_models_pytorch/common/blocks.py
vinnamkim/segmentation_models.pytorch
f967ded34df6fb536e8e8cba9b6491ae63b939f5
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class ZeroCenter(nn.Module): def __init__(self): super().__init__() def forward(self, x): """x : [B, C, H, W]""" return x.sub_(x.flatten(1).mean(1, keepdim=True).unsqueeze(-1).unsqueeze(-1)) EPS = 1e-5 class ZeroNorm(nn.Module): ...
35.811765
175
0.524967
245554ca3f1836c597210282087c81a43378a5cc
179
py
Python
models/elm.py
likeand/ml
fa54cebeb9998d8aa1241445b4b9492695bb4073
[ "MIT" ]
1
2020-09-14T06:32:20.000Z
2020-09-14T06:32:20.000Z
models/elm.py
likeand/ml
fa54cebeb9998d8aa1241445b4b9492695bb4073
[ "MIT" ]
null
null
null
models/elm.py
likeand/ml
fa54cebeb9998d8aa1241445b4b9492695bb4073
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Date : 2020/5/31 # @Author: Luokun # @Email : olooook@outlook.com import numpy as np class ELM: """ Extreme learning machine(极限学习机) """
13.769231
35
0.586592
2cf1f1ec562d20749a8ef0298d55afa9d1576843
593
py
Python
app/pokemon/migrations/0004_auto_20201114_2342.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
app/pokemon/migrations/0004_auto_20201114_2342.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
app/pokemon/migrations/0004_auto_20201114_2342.py
innacroft/PokemonService
3dade01c3fe5d5bc56ff631f69a5548fafe4d076
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-11-14 23:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pokemon', '0003_auto_20201114_2333'), ] operations = [ migrations.AddField( model_name='pokemon', name='height', ...
24.708333
79
0.591906
5dc67b983976e6e03a32e00a0265a29b1b558a24
1,725
py
Python
onlinepayments/sdk/domain/get_payment_products_response.py
wl-online-payments-direct/sdk-python2
eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/get_payment_products_response.py
wl-online-payments-direct/sdk-python2
eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/get_payment_products_response.py
wl-online-payments-direct/sdk-python2
eac2d5ad1945700cdfdffe7ff7da161eb8bfaf04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This class was auto-generated. # from onlinepayments.sdk.data_object import DataObject from onlinepayments.sdk.domain.payment_product import PaymentProduct class GetPaymentProductsResponse(DataObject): """ | The response contains an array of payment products that match the filters ...
35.9375
104
0.671884
87a71ca46b239d4272834ca71bbd5110b0b3c18b
5,963
py
Python
app.py
vanandsh/dash_live_demo
3eae09e7b9146316081df61a8c7b6a3a276ecc61
[ "MIT" ]
null
null
null
app.py
vanandsh/dash_live_demo
3eae09e7b9146316081df61a8c7b6a3a276ecc61
[ "MIT" ]
null
null
null
app.py
vanandsh/dash_live_demo
3eae09e7b9146316081df61a8c7b6a3a276ecc61
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import altair as alt #import utility as util #from ./src import utility as util app = dash.Dash(__name__, assets_folder='assets') server = app.server app.title = 'Dash app with pure Altair HT...
31.219895
121
0.533959
374d98af4201b4130e19522a682682be318589c7
5,244
py
Python
rivalcfg/devices/rival310.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
604
2016-03-31T12:22:26.000Z
2022-03-31T18:51:50.000Z
rivalcfg/devices/rival310.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
162
2016-04-17T10:58:08.000Z
2022-03-11T18:59:18.000Z
rivalcfg/devices/rival310.py
Clueninja/rivalcfg
f7e2a3480c5f0b9a0b992ba5af7ff2025b2af346
[ "WTFPL" ]
89
2016-04-10T08:56:58.000Z
2022-03-18T21:04:10.000Z
from .. import usbhid # fmt: off _RGBGRADIENT_HEADER = { "header_length": 26, # Length of the header excuding command / LED ID "led_id_offsets": [0], # Offset of the "led_id" fields "duration_offset": 1, # Offset of the "duration" field "duration_length": 2, # Length of the "durati...
36.929577
146
0.502288
a04f72af495a456f87194a084e2ad71a152aacbe
380
py
Python
Quad_Code_share/ADC.py
EvanHope/SeniorProject
0980f7187d49988d2d81e34506fa97e7c8cca3a4
[ "MIT" ]
null
null
null
Quad_Code_share/ADC.py
EvanHope/SeniorProject
0980f7187d49988d2d81e34506fa97e7c8cca3a4
[ "MIT" ]
null
null
null
Quad_Code_share/ADC.py
EvanHope/SeniorProject
0980f7187d49988d2d81e34506fa97e7c8cca3a4
[ "MIT" ]
1
2021-12-02T21:39:18.000Z
2021-12-02T21:39:18.000Z
import sys, time import numpy as np import navio.adc import navio.util navio.util.check_apm() adc = navio.adc.ADC() data = np.zeros(1000) start_time = time.clock()*1000.0 for i in range(0,1000): analog_val = adc.read(4)*0.001 data[i] = analog_val print analog_val time.sleep(0.25) end_time = time.clock()*1000.0 av...
19
36
0.728947
14d63e648b7dec620431a5b5dc4834c6aca0d6f4
5,308
py
Python
lstm.py
sankalpg10/NLP-Sarcasm-Detection
7012aa28b51046f8bafb7e24a52f58c88535824e
[ "MIT" ]
1
2021-02-22T19:08:38.000Z
2021-02-22T19:08:38.000Z
lstm.py
sankalpg10/NLP-Sarcasm-Detection
7012aa28b51046f8bafb7e24a52f58c88535824e
[ "MIT" ]
null
null
null
lstm.py
sankalpg10/NLP-Sarcasm-Detection
7012aa28b51046f8bafb7e24a52f58c88535824e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.models import Sequential from keras.layers import Dense, Embedding, LSTM, SpatialDropout1D from keras.utils.np_utils import to_categori...
33.175
187
0.727581
cefdb0f2c6ef1e75aa5c9e8174aaa1ca6224df36
771
py
Python
src/optoforce/optoforce_ros-indigo-devel/test/rosbag_utilities.py
Slifer64/ur_ws
314e66df22e81342a2baa82185d24b3badf77654
[ "MIT" ]
null
null
null
src/optoforce/optoforce_ros-indigo-devel/test/rosbag_utilities.py
Slifer64/ur_ws
314e66df22e81342a2baa82185d24b3badf77654
[ "MIT" ]
null
null
null
src/optoforce/optoforce_ros-indigo-devel/test/rosbag_utilities.py
Slifer64/ur_ws
314e66df22e81342a2baa82185d24b3badf77654
[ "MIT" ]
null
null
null
#!/usr/bin/env python import roslib #roslib.load_manifest('kdl') import PyKDL as kdl import rosbag import os import sys,getopt import matplotlib.pyplot as plt import matplotlib def extract_data_from_bag(bag_name, list_topics): bag = rosbag.Bag( bag_name) data = dict() #todo make sure these default data ...
21.416667
69
0.634241
cb7f9dbd8b7cd03fa7b44383f9cd728a7b2c3041
1,222
py
Python
tests/test_preparation.py
kyusque/percival
31f204f7988c6acff6a489a2ffc698d19a259e09
[ "MIT" ]
null
null
null
tests/test_preparation.py
kyusque/percival
31f204f7988c6acff6a489a2ffc698d19a259e09
[ "MIT" ]
2
2019-09-05T10:31:09.000Z
2020-01-07T04:58:46.000Z
tests/test_preparation.py
kyusque/percival
31f204f7988c6acff6a489a2ffc698d19a259e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from percival.preparation.domain.value_objects import Smiles from percival.preparation.domain.molecule import MoleculeFactory, Molecule from percival.preparation.service.input_generator import InputGenerator import unittest class PreparationTest(unittest.TestCase): """Basic test cases."""...
34.914286
83
0.697218
e14d2ef8e493f16d989d69f70cf6f956fd5c768d
3,265
py
Python
visualization/owned_listener.py
suhasini-gesis/IWAAN
343b48908198019e9be25332639cded204f8e7b4
[ "MIT" ]
null
null
null
visualization/owned_listener.py
suhasini-gesis/IWAAN
343b48908198019e9be25332639cded204f8e7b4
[ "MIT" ]
null
null
null
visualization/owned_listener.py
suhasini-gesis/IWAAN
343b48908198019e9be25332639cded204f8e7b4
[ "MIT" ]
null
null
null
import datetime import numpy as np import pandas as pd import plotly from plotly import graph_objs from IPython.display import display, Markdown as md class OwnedListener(): def __init__(self, df, editor): self.df = df.sort_values(['token_id', 'rev_time'], ascending=True).set_index('token_id') se...
37.102273
123
0.508729
5f843d72c1a07110c59dde129199a7ceb98990f0
17,828
py
Python
pinnwand/http.py
millefalcon/pinnwand
5f4319cfe37f06b71a46838a145d1f8858884bc3
[ "MIT" ]
null
null
null
pinnwand/http.py
millefalcon/pinnwand
5f4319cfe37f06b71a46838a145d1f8858884bc3
[ "MIT" ]
null
null
null
pinnwand/http.py
millefalcon/pinnwand
5f4319cfe37f06b71a46838a145d1f8858884bc3
[ "MIT" ]
null
null
null
import json import logging import secrets import docutils.core from typing import Any, List from urllib.parse import urljoin import tornado.web from tornado.escape import url_escape from pinnwand import database, path, utility, error, configuration log = logging.getLogger(__name__) class Base(tornado.web.Request...
32.064748
97
0.541956
5bfa904763d72f715cbc674e44bf3bf937c51c19
4,654
py
Python
API_FULL/api_python/resources/Tabla6/P1.py
JoseMiguelGutierrezGuevara/ASR-Preguntas
4123c744f71fda99256c2fcc10f66e0208fbfcbd
[ "MIT" ]
null
null
null
API_FULL/api_python/resources/Tabla6/P1.py
JoseMiguelGutierrezGuevara/ASR-Preguntas
4123c744f71fda99256c2fcc10f66e0208fbfcbd
[ "MIT" ]
1
2021-05-09T02:45:44.000Z
2021-05-09T02:45:44.000Z
API_FULL/api_python/resources/Tabla6/P1.py
jmiguelgg/ASR-Preguntas
4123c744f71fda99256c2fcc10f66e0208fbfcbd
[ "MIT" ]
null
null
null
import json import os import time import telnetlib from ..Util.Notifications import Notifications from flask import Flask, request, jsonify, url_for from werkzeug.datastructures import ImmutableMultiDict from flask_restful import Resource, Api ALOWED_EXTENSIONS = set(['txt']) user = "humberto" password = "123456" show...
35.526718
88
0.544263
58b1a85b4be68c3d4439163b63b933ca261e3e17
2,353
py
Python
allesina_stability_function.py
galeanojav/Stability_equations
22e881569f46e7c02a0985bae8b9bd7757bad764
[ "MIT" ]
null
null
null
allesina_stability_function.py
galeanojav/Stability_equations
22e881569f46e7c02a0985bae8b9bd7757bad764
[ "MIT" ]
null
null
null
allesina_stability_function.py
galeanojav/Stability_equations
22e881569f46e7c02a0985bae8b9bd7757bad764
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Sep 25 10:36:42 2018 @author: javiergaleano """ # Sommers's stability import numpy as np import matplotlib.pyplot as plt def random_matrix(S,center,sigma, ty=None): """ Function to calculate the random matrix. S = size of the matrix S...
22.409524
80
0.613685
66b34181aa9970b2e5472d08ab4c8da63703431b
354
py
Python
openfda/spl/extract_one.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
null
null
null
openfda/spl/extract_one.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
2
2021-03-25T23:41:00.000Z
2021-06-02T01:34:44.000Z
openfda/spl/extract_one.py
hobochili/openfda
9958c4bc3d04d2e9cfc75f9cd894ad07a45e9141
[ "CC0-1.0" ]
1
2021-01-18T01:34:45.000Z
2021-01-18T01:34:45.000Z
#!/usr/local/bin/python import extract import sys tree = extract.parse_xml(sys.argv[1]) methods_to_call = [] for method in dir(extract): if method.find('Extract') == 0: methods_to_call.append(method) methods_to_call.sort() for method in methods_to_call: print method.replace('Extract', '') + ':', eval('extr...
20.823529
88
0.700565
f79cc4760079a4ff4a1278a20afa4118be8a303a
18,149
py
Python
quiz/quiz.py
keanemind/Keane-Cogs
c0a04d2b5c12ca8f3fbf2eaff9df5c220ab5bc93
[ "MIT" ]
null
null
null
quiz/quiz.py
keanemind/Keane-Cogs
c0a04d2b5c12ca8f3fbf2eaff9df5c220ab5bc93
[ "MIT" ]
5
2017-06-17T05:21:50.000Z
2018-04-17T04:33:47.000Z
quiz/quiz.py
keanemind/Keane-Cogs
c0a04d2b5c12ca8f3fbf2eaff9df5c220ab5bc93
[ "MIT" ]
null
null
null
"""A trivia cog that uses Open Trivia Database.""" import os import html import asyncio import time import datetime import random import math import aiohttp import discord from discord.ext import commands from __main__ import send_cmd_help from .utils import checks from .utils.dataIO import dataIO SAVE_FILEPATH = "da...
43.627404
107
0.551601
be43fd0b89a13298e2a312e28c84b431a770e615
340
py
Python
pirates/npc/DistributedBomberZombieAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/npc/DistributedBomberZombieAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/npc/DistributedBomberZombieAI.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal class DistributedBomberZombieAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedBomberZombieAI') def __init__(self, air): DistributedObjectAI...
42.5
85
0.835294
f8a12363aa921f7d8482baa192a6b7c26431c7c6
482
py
Python
python/exercicios mundo 2/ex36_45.py/ex004.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
1
2022-01-05T08:51:16.000Z
2022-01-05T08:51:16.000Z
python/exercicios mundo 2/ex36_45.py/ex004.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
null
null
null
python/exercicios mundo 2/ex36_45.py/ex004.py
LEXW3B/PYTHON
1ae54ea709c008bd7fab7602e034773610e7985e
[ "MIT" ]
null
null
null
#38-escreva um programa que leia dois numeros inteiros e compare os, mostrando na tela uma menssagem. #-o primeiro valor e maior #-o segundo valor e maior #-nao existe valor maior, os dois sao iguais. n1 = int(input('digite um numero: ')) n2 = int(input('digite um numero: ')) if n1 > n2: print('O primeiro valor é m...
34.428571
101
0.649378
8494656e895f75c1119dd1503cae11b193ac86ac
1,278
py
Python
config/urls.py
RohitRepo/onepunch
6c0eca944e63e74f0a94c3d5cfdbecc5e96541de
[ "BSD-3-Clause" ]
null
null
null
config/urls.py
RohitRepo/onepunch
6c0eca944e63e74f0a94c3d5cfdbecc5e96541de
[ "BSD-3-Clause" ]
null
null
null
config/urls.py
RohitRepo/onepunch
6c0eca944e63e74f0a94c3d5cfdbecc5e96541de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
35.5
91
0.70579
73e8691d8fe72d8b259780d25b967a8fc4ff64b1
476
py
Python
2-mouth02/day09/read.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
4
2021-02-01T10:28:11.000Z
2021-02-01T10:34:40.000Z
2-mouth02/day09/read.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
2-mouth02/day09/read.py
gary-gggggg/gary
d8ba30ea4bc2b662a2d6a87d247f813e5680d63e
[ "Apache-2.0" ]
null
null
null
"""pymysql数据读操作 """ import pymysql db_dic = { "host": "localhost", "port": 3306, "user": "root", "password": "123456", "database": "gary", "charset": "utf8" } # 链接数据库 db = pymysql.connect(**db_dic) # 一个链接口 # 创建游标 游标对象:执行sql得到结果的对象 cur = db.cursor() # 打开完成 # 操作数据 sql="select name, grade from...
15.354839
52
0.615546
06eca3be10ebb8f32ee2c9ff05fd6471592bd754
1,892
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/linux_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/linux_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/linux_configuration_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.3
166
0.688161
4acc19edf282eb5b236597954e9a151b39a88cd2
640
py
Python
InvenTree/stock/migrations/0043_auto_20200525_0420.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
656
2017-03-29T22:06:14.000Z
2022-03-30T11:23:52.000Z
InvenTree/stock/migrations/0043_auto_20200525_0420.py
ArakniD/InvenTree
0ebf2ebd832b2d736e895abe054ca56bfd1cc477
[ "MIT" ]
1,545
2017-04-10T23:26:04.000Z
2022-03-31T18:32:10.000Z
InvenTree/stock/migrations/0043_auto_20200525_0420.py
fablabbcn/InvenTree
1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd
[ "MIT" ]
196
2017-03-28T03:06:21.000Z
2022-03-28T11:53:29.000Z
# Generated by Django 3.0.5 on 2020-05-25 04:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('part', '0042_auto_20200518_0900'), ('stock', '0042_auto_20200523_0121'), ] operations = [ migration...
30.47619
227
0.65625
15d02a7b7e23602640e33d3c326f60148380329f
1,966
py
Python
Conet/posting/models.py
JJack27/CMPUT404-Project
24bb293ce4da1643f51bb8162bc9372a139df1b3
[ "MIT" ]
1
2021-04-26T18:08:34.000Z
2021-04-26T18:08:34.000Z
Conet/posting/models.py
JJack27/CMPUT404-Project
24bb293ce4da1643f51bb8162bc9372a139df1b3
[ "MIT" ]
4
2020-02-11T23:59:31.000Z
2021-06-10T21:19:04.000Z
Conet/posting/models.py
JJack27/CMPUT404-Project
24bb293ce4da1643f51bb8162bc9372a139df1b3
[ "MIT" ]
2
2019-03-29T20:16:01.000Z
2019-04-03T21:03:32.000Z
import uuid from django.db import models from Accounts.models import Author #from django.apps import apps # Create your models here. content_type_choice = ( ('text/plain', 'text/plain'), ('text/markdown', 'text/markdown'), ('application/base64', 'application/base64'), ('image/png;base64', 'image/png;ba...
40.958333
100
0.72177
a43eabc66867e9950ef82949e00bf9dddba4a323
1,455
py
Python
wouso/core/qpool/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
null
null
null
wouso/core/qpool/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
null
null
null
wouso/core/qpool/admin.py
AlexandruGhergut/wouso
f26244ff58ae626808ae8c58ccc93d21f9f2666f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from wouso.core.qpool import models from django.forms import ModelForm class AnswersInline(admin.TabularInline): model = models.Answer extra = 0 verbose_name = "Answer" verbose_name_plural = "Answers" class TagsInline(admin.TabularInline): model = models.Question.t...
28.529412
111
0.716838
37037d62c2358cc09cbdbfc771ca742430d38d69
3,490
py
Python
python/GafferImageUI/RampUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
561
2016-10-18T04:30:48.000Z
2022-03-30T06:52:04.000Z
python/GafferImageUI/RampUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
1,828
2016-10-14T19:01:46.000Z
2022-03-30T16:07:19.000Z
python/GafferImageUI/RampUI.py
ddesmond/gaffer
4f25df88103b7893df75865ea919fb035f92bac0
[ "BSD-3-Clause" ]
120
2016-10-18T15:19:13.000Z
2021-12-20T16:28:23.000Z
########################################################################## # # Copyright (c) 2018, Image Engine Design 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: # # * Redistrib...
27.054264
97
0.666762
166f27ae819911d9834ce03269a394029e0d202f
19,903
py
Python
aasaan/communication/api.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
null
null
null
aasaan/communication/api.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
15
2020-06-05T19:26:26.000Z
2022-03-11T23:33:53.000Z
aasaan/communication/api.py
deepakkt/aasaan
77ef72e785e6ae562f51ae64fa9d85faf860c315
[ "MIT" ]
null
null
null
import requests from sys import modules from functools import partial from django.core.exceptions import ValidationError, ObjectDoesNotExist, ImproperlyConfigured from django.core.mail import get_connection from django.core.mail.message import EmailMultiAlternatives from django.conf import settings from .settings imp...
42.346809
113
0.641562
b22af5fb06bb9f4ac6c404e8c4e6c0610c0754ba
3,650
py
Python
2019/exercise3_R/reinforcement_learning/agent/dqn_agent.py
f2010126/DL_Labs
ee81d8aa6027846fc32c98feb9079211c59aa0e9
[ "BSD-3-Clause" ]
null
null
null
2019/exercise3_R/reinforcement_learning/agent/dqn_agent.py
f2010126/DL_Labs
ee81d8aa6027846fc32c98feb9079211c59aa0e9
[ "BSD-3-Clause" ]
null
null
null
2019/exercise3_R/reinforcement_learning/agent/dqn_agent.py
f2010126/DL_Labs
ee81d8aa6027846fc32c98feb9079211c59aa0e9
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf import numpy as np from dqn.replay_buffer import ReplayBuffer def soft_update(target, source, tau): for target_param, param in zip(target.parameters(), source.parameters()): target_param.data.copy_(target_param.data * (1.0 - tau) + param.data * tau) class DQNAgent: def __init__(self...
40.555556
161
0.633151
effa28cc6cfb1b871a263cc249fb5ad03d2d17ef
1,963
py
Python
firmwire/vendor/mtk/mtk_task.py
j4s0n/FirmWire
d3a20e2429cb4827f538d1a16163afde8b45826b
[ "BSD-3-Clause" ]
null
null
null
firmwire/vendor/mtk/mtk_task.py
j4s0n/FirmWire
d3a20e2429cb4827f538d1a16163afde8b45826b
[ "BSD-3-Clause" ]
null
null
null
firmwire/vendor/mtk/mtk_task.py
j4s0n/FirmWire
d3a20e2429cb4827f538d1a16163afde8b45826b
[ "BSD-3-Clause" ]
null
null
null
## Copyright (c) 2022, Team FirmWire ## SPDX-License-Identifier: BSD-3-Clause import inspect from struct import unpack TASK_STRUCT_SIZE = 0x20 TASK_NAME_PTR_OFFSET = 0 TASK_SCHED_PRIO_OFFSET = 8 TASK_STACKSIZE_OFFSET = 0xC TASK_MAIN_FN_OFFSET = 0x10 class TaskEntry: def __init__(self, parent_task, offset): ...
29.742424
87
0.613347
e11cd57261f64cfb9f7914fcca7a10a5b3762f5e
83
py
Python
re_gen/__init__.py
lahwran/regex_generator
4494287fcb2a9c1686a0f6381f8347f45cc15d78
[ "MIT" ]
1
2017-05-25T10:32:04.000Z
2017-05-25T10:32:04.000Z
re_gen/__init__.py
lahwran/regex_generator
4494287fcb2a9c1686a0f6381f8347f45cc15d78
[ "MIT" ]
null
null
null
re_gen/__init__.py
lahwran/regex_generator
4494287fcb2a9c1686a0f6381f8347f45cc15d78
[ "MIT" ]
null
null
null
# Copyright (c) 2012 # Licensed under the terms of the MIT license; see LICENSE.txt
41.5
62
0.759036
3e3fa0570fdaf3ce7fc9c53fcb46ca418066aa8a
10,311
py
Python
tests/test_models/test_video_interpolator/test_basic_interpolator.py
wangruohui/mmediting
6577d307caf9edfb34c6e46547994e6314fffc37
[ "Apache-2.0" ]
45
2022-03-05T06:54:34.000Z
2022-03-30T02:15:42.000Z
tests/test_models/test_video_interpolator/test_basic_interpolator.py
wangruohui/mmediting
6577d307caf9edfb34c6e46547994e6314fffc37
[ "Apache-2.0" ]
1
2022-03-25T14:04:39.000Z
2022-03-31T04:48:38.000Z
tests/test_models/test_video_interpolator/test_basic_interpolator.py
wangruohui/mmediting
6577d307caf9edfb34c6e46547994e6314fffc37
[ "Apache-2.0" ]
1
2022-03-24T05:07:29.000Z
2022-03-24T05:07:29.000Z
# Copyright (c) OpenMMLab. All rights reserved. import tempfile import mmcv import pytest import torch import torch.nn as nn from mmcv.runner import obj_from_dict from mmedit.models import build_model from mmedit.models.losses import L1Loss from mmedit.models.registry import COMPONENTS @COMPONENTS.register_module()...
35.071429
78
0.600427
2ba692d802bf9f06f9a5b92c9b00d7c5597ce6eb
3,447
py
Python
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_retirable_grants_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_retirable_grants_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/list_retirable_grants_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class ListRetirableGrantsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and t...
25.917293
77
0.561648
a7deb4a0a74056224e56cd2f3bd938e8e247d036
4,261
py
Python
numba/tests/test_recursion.py
mawanda-jun/numba
8c6658375c1f8fe50e1a5ccd11d4e7bf5a8053de
[ "BSD-2-Clause", "Apache-2.0" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_recursion.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/tests/test_recursion.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import print_function, division, absolute_import import math import warnings from numba import jit from numba import unittest_support as unittest from numba.errors import TypingError, NumbaWarning from .support import TestCase, tag class TestSelfRecursion(TestCase): def setUp(self): # A...
32.776923
77
0.652664
bed13f8236aaefcf8dfd8df84d4d351c9660400b
23,495
py
Python
tests/data/metrics/conftest.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
tests/data/metrics/conftest.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
tests/data/metrics/conftest.py
nickaustinlee/labelbox-python
45eb808165849e5a55fb6869ca5cc415d74772ce
[ "Apache-2.0", "MIT" ]
null
null
null
from io import BytesIO from types import SimpleNamespace import pytest import numpy as np from PIL import Image import base64 class NameSpace(SimpleNamespace): def __init__(self, predictions, labels, expected, classifications=None): super(NameSpace, self).__init__(predictions=predictions, ...
34.653392
78
0.328325
bcbb72650e609ba968c7c0b6c7e63a33a6f1bbaa
213
py
Python
refugio/apps/usuario/urls.py
sebas095/DjangoCF
42c359da6a92a093d17d6b8ca8dd1d2d7a161983
[ "MIT" ]
null
null
null
refugio/apps/usuario/urls.py
sebas095/DjangoCF
42c359da6a92a093d17d6b8ca8dd1d2d7a161983
[ "MIT" ]
null
null
null
refugio/apps/usuario/urls.py
sebas095/DjangoCF
42c359da6a92a093d17d6b8ca8dd1d2d7a161983
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import RegistroUsuario, UserAPI urlpatterns = [ url(r'^registrar', RegistroUsuario.as_view(), name='registrar'), url(r'^api', UserAPI.as_view(), name='api'), ]
30.428571
68
0.70892
aaaf12aa48354dee2789996d4a998518ecbd9a3f
3,675
py
Python
local_server/test/unit/data_common/fbs/test_matrix.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
3
2019-11-11T15:41:07.000Z
2020-12-14T08:47:35.000Z
local_server/test/unit/data_common/fbs/test_matrix.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
null
null
null
local_server/test/unit/data_common/fbs/test_matrix.py
prete/cellxgene
11acea86c4b3df334300fac7e9e034c1e61e67bc
[ "MIT" ]
1
2021-05-12T15:15:05.000Z
2021-05-12T15:15:05.000Z
import unittest import pandas as pd import numpy as np from scipy import sparse import local_server.test.unit.decode_fbs as decode_fbs from local_server.data_common.fbs.matrix import encode_matrix_fbs, decode_matrix_fbs class FbsTests(unittest.TestCase): """Test Case for Matrix FBS data encode/decode """ de...
44.277108
114
0.58966
e64481d931dc07a2d19b379d1ad93faafdfe07ab
7,407
py
Python
SCRIPTS/DATA_PRESENT/Figure3C.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
SCRIPTS/DATA_PRESENT/Figure3C.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
SCRIPTS/DATA_PRESENT/Figure3C.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
''' Example reaction networks determined from amplitude data. Specifically illustrating the variation of reaction pathways as the formaldehyde concentration is variated. Figure 2B. ''' import sys import pickle import pandas as pd import networkx as nx from pathlib import Path import matplotlib.pyplot as plt from matplo...
35.271429
90
0.6371
59f40c52f2e688e9d51a91c17579a6ef9f16bdc4
21,464
py
Python
nova/objects/fields.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/objects/fields.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
null
null
null
nova/objects/fields.py
bopopescu/Trusted-Platform-Module-nova
20d28ef29daf6fd7a67b37b87ec2561c34b4230b
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2013 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 a...
27.16962
79
0.673779
1f743c02283dc30da9d8d27f91bfea97189e3052
306
py
Python
setup.py
sjwo/asv_sim
fd5383e1e8325d342f14fe0f1ba97d6b2e28d220
[ "BSD-2-Clause" ]
null
null
null
setup.py
sjwo/asv_sim
fd5383e1e8325d342f14fe0f1ba97d6b2e28d220
[ "BSD-2-Clause" ]
2
2018-05-23T13:35:17.000Z
2018-05-23T14:32:47.000Z
setup.py
sjwo/asv_sim
fd5383e1e8325d342f14fe0f1ba97d6b2e28d220
[ "BSD-2-Clause" ]
5
2018-04-05T19:59:50.000Z
2021-07-07T18:11:58.000Z
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['asv_sim'], package_dir={'': 'src'}) setup(**setup_args)
23.538462
61
0.761438
17b1b68a63f762b26923d9170b4529614760ea67
2,393
py
Python
test/test_app.py
GermanG/puppetboard
b6fb68a3c1d7b056da6485659a998caaa92d1a29
[ "Apache-2.0" ]
null
null
null
test/test_app.py
GermanG/puppetboard
b6fb68a3c1d7b056da6485659a998caaa92d1a29
[ "Apache-2.0" ]
null
null
null
test/test_app.py
GermanG/puppetboard
b6fb68a3c1d7b056da6485659a998caaa92d1a29
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup from puppetboard import app from . import MockDbQuery def test_first_test(): assert app is not None def test_no_env(client, mock_puppetdb_environments): rv = client.get('/nonexistent/') assert rv.status_code == 404 def test_offline_mode(client, mocker, ...
26.88764
72
0.630589
2799095c7e83debaf6c6d5e5823b5ad7491d173a
1,431
py
Python
tests/utils.py
anshul217/django-rest-framework-mongoengine
2fe6de53907b31a5e8b742e4c6b728942b5fa4f0
[ "MIT" ]
594
2015-01-02T19:51:28.000Z
2022-03-27T05:16:19.000Z
tests/utils.py
anshul217/django-rest-framework-mongoengine
2fe6de53907b31a5e8b742e4c6b728942b5fa4f0
[ "MIT" ]
224
2015-01-05T14:06:20.000Z
2022-03-27T07:58:06.000Z
tests/utils.py
anshul217/django-rest-framework-mongoengine
2fe6de53907b31a5e8b742e4c6b728942b5fa4f0
[ "MIT" ]
181
2015-01-06T07:47:22.000Z
2022-02-17T11:59:43.000Z
import pytest from rest_framework.exceptions import ValidationError def dedent(blocktext): return '\n'.join([line[12:] for line in blocktext.splitlines()[1:-1]]) def get_items(mapping_or_list_of_two_tuples): # Tests accept either lists of two tuples, or dictionaries. if isinstance(mapping_or_list_of_two...
34.902439
80
0.69392
605f633553961d1ce2a9563fd5908327a4211782
8,242
py
Python
sdgym/synthesizers/tablegan.py
patricebechard/SDGym
827272b877661d65cc91dc055799c53682834c41
[ "MIT" ]
null
null
null
sdgym/synthesizers/tablegan.py
patricebechard/SDGym
827272b877661d65cc91dc055799c53682834c41
[ "MIT" ]
null
null
null
sdgym/synthesizers/tablegan.py
patricebechard/SDGym
827272b877661d65cc91dc055799c53682834c41
[ "MIT" ]
1
2020-09-22T14:54:48.000Z
2020-09-22T14:54:48.000Z
#!/usr/bin/env python # coding: utf-8 import numpy as np import torch from torch.nn import ( BatchNorm2d, Conv2d, ConvTranspose2d, LeakyReLU, Module, ReLU, Sequential, Sigmoid, Tanh, init) from torch.nn.functional import binary_cross_entropy_with_logits from torch.optim import Adam from torch.utils.data import Data...
35.834783
99
0.581412
95f44926652a51cb3fc2a5554d8079384eaaf951
1,192
py
Python
configs/detection/tfa/voc/split2/tfa_r101_fpn_voc-split2_5shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
376
2021-11-23T13:29:57.000Z
2022-03-30T07:22:14.000Z
configs/detection/tfa/voc/split2/tfa_r101_fpn_voc-split2_5shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
51
2021-11-23T14:45:08.000Z
2022-03-30T03:37:15.000Z
configs/detection/tfa/voc/split2/tfa_r101_fpn_voc-split2_5shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
56
2021-11-23T14:02:27.000Z
2022-03-31T09:01:50.000Z
_base_ = [ '../../../_base_/datasets/fine_tune_based/few_shot_voc.py', '../../../_base_/schedules/schedule.py', '../../tfa_r101_fpn.py', '../../../_base_/default_runtime.py' ] # classes splits are predefined in FewShotVOCDataset # FewShotVOCDefaultDataset predefine ann_cfg for model reproducibility. data = ...
37.25
71
0.708893
36a0345af3ae1e7cbde7c542ecdd9729984003cf
6,221
py
Python
1-9/9. float_range/test_float_range.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
1-9/9. float_range/test_float_range.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
1-9/9. float_range/test_float_range.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
import sys import unittest from collections.abc import Generator from timeit import default_timer from float_range import float_range class FloatRangeTests(unittest.TestCase): """Tests for float_range.""" def test_has_iterability(self): self.assertEqual(list(float_range(1, 11, 2)), [1, 3, 5, 7, 9])...
34.561111
77
0.551519
a2910a53900e4c20c9ab1ed85bef5ac8ec5a1425
316
py
Python
fbauth/__init__.py
hellhound/django-fbauth-templatetag
0b8ab91f2421f61b92c33cf2dcd9c829d65590ae
[ "BSD-3-Clause" ]
null
null
null
fbauth/__init__.py
hellhound/django-fbauth-templatetag
0b8ab91f2421f61b92c33cf2dcd9c829d65590ae
[ "BSD-3-Clause" ]
2
2020-02-12T00:11:50.000Z
2020-06-05T17:52:45.000Z
fbauth/__init__.py
hellhound/django-fbauth-templatetag
0b8ab91f2421f61b92c33cf2dcd9c829d65590ae
[ "BSD-3-Clause" ]
2
2015-08-11T16:58:59.000Z
2021-01-04T08:18:37.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import, unicode_literals __all__ = ['VERSION'] try: import pkg_resources VERSION = pkg_resources.get_distribution( 'django-fbauth-templatetag').version except Exception: VERSION = 'unknown' default_app_config = 'fbauth.apps.FBAuthConfig'
22.571429
56
0.734177
d1e781cc90238c916db5bbb1e5010059de9ad780
10,725
py
Python
qa/rpc-tests/listtransactions.py
mirzaei-ce/core-hellebit
bd56d29dffb10313b587785151126e2a365c17ed
[ "MIT" ]
null
null
null
qa/rpc-tests/listtransactions.py
mirzaei-ce/core-hellebit
bd56d29dffb10313b587785151126e2a365c17ed
[ "MIT" ]
null
null
null
qa/rpc-tests/listtransactions.py
mirzaei-ce/core-hellebit
bd56d29dffb10313b587785151126e2a365c17ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the listtransactions API from test_framework.test_framework import HellebitTestFramework from...
49.197248
112
0.597762
d88e91b462c18511fcb9705abf3bb11457c02caa
601
py
Python
src/main.py
h3nnn4n/odeen
3a7fe0b717bbdc9d04a9e78f51ec09846c381b6d
[ "MIT" ]
null
null
null
src/main.py
h3nnn4n/odeen
3a7fe0b717bbdc9d04a9e78f51ec09846c381b6d
[ "MIT" ]
null
null
null
src/main.py
h3nnn4n/odeen
3a7fe0b717bbdc9d04a9e78f51ec09846c381b6d
[ "MIT" ]
null
null
null
from de import DE from problem_data import ProblemData from config import Config def test(self): print('%6.2f %6.2f' % ( self.score, self.config.population.best_score) ) if __name__ == "__main__": config = Config() config.size = 100 config.dimensions = 5 config.set_function_...
20.033333
49
0.667221
71c7397a9aa9b39fdf9e024d5ca5dfdc737b974f
1,820
py
Python
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
1
2021-11-19T21:37:01.000Z
2021-11-19T21:37:01.000Z
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[9]: import requests import pandas as pd from lxml import etree from bs4 import BeautifulSoup import datetime import io import numpy as np from alphacast import Alphacast from dotenv import dotenv_values API_KEY = dotenv_values(".env").get("API_KEY") alphacast = Alphacast(A...
27.575758
95
0.686813
1a39ee4b48491a7784db9b304b583e188e934161
6,927
py
Python
src/datadog_api_client/v2/model/logs_list_request_page.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v2/model/logs_list_request_page.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v2/model/logs_list_request_page.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 from datadog_api_client.v2.model_uti...
40.508772
145
0.582503
93603490c0301a2984a79b3845ee7df0864b79bf
4,122
py
Python
tests/Traffic/t_intersection/ppo_continuous.py
maxiaoba/rlk
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
1
2021-09-28T21:16:54.000Z
2021-09-28T21:16:54.000Z
tests/Traffic/t_intersection/ppo_continuous.py
maxiaoba/rlkit
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
null
null
null
tests/Traffic/t_intersection/ppo_continuous.py
maxiaoba/rlkit
3e23473f6bbc59552b6b2bcd97245e024d7ca95d
[ "MIT" ]
null
null
null
import gym from torch import nn as nn from rlkit.torch.vpg.ppo import PPOTrainer from rlkit.torch.policies.tanh_gaussian_policy import TanhGaussianPolicy, MakeDeterministic from rlkit.torch.networks import Mlp import rlkit.torch.pytorch_util as ptu from rlkit.data_management.env_replay_buffer import EnvReplayBuffer fr...
34.638655
91
0.660116
b79672e8b0d30ae04431efd48d6c07629595f9a8
458
py
Python
jobsapp/migrations/0017_auto_20210622_2334.py
Sukriti-sood/Recruit-pursuit
00c75d9101b94d8066c2648af3dd7a646d869df7
[ "MIT" ]
null
null
null
jobsapp/migrations/0017_auto_20210622_2334.py
Sukriti-sood/Recruit-pursuit
00c75d9101b94d8066c2648af3dd7a646d869df7
[ "MIT" ]
3
2021-10-07T14:21:52.000Z
2021-10-19T16:44:09.000Z
jobsapp/migrations/0017_auto_20210622_2334.py
Sukriti-sood/Recruit-pursuit
00c75d9101b94d8066c2648af3dd7a646d869df7
[ "MIT" ]
1
2021-10-12T08:49:30.000Z
2021-10-12T08:49:30.000Z
# Generated by Django 3.1.2 on 2021-06-22 23:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jobsapp', '0016_auto_20210622_2325'), ] operations = [ migrations.RenameModel( old_name='skillset', new_name='skillset_table...
20.818182
47
0.585153
89e040e98ef0c255b70f07cd75066534f9c2be52
417
py
Python
myvenv/Scripts/pip-script.py
IngMachine/compiladores
d8cd2cde29af09188037e7627fc63403a322f5c7
[ "Apache-2.0" ]
null
null
null
myvenv/Scripts/pip-script.py
IngMachine/compiladores
d8cd2cde29af09188037e7627fc63403a322f5c7
[ "Apache-2.0" ]
null
null
null
myvenv/Scripts/pip-script.py
IngMachine/compiladores
d8cd2cde29af09188037e7627fc63403a322f5c7
[ "Apache-2.0" ]
null
null
null
#!C:\Users\Lenovo\PycharmProjects\CompiladorWeb\myvenv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip' __requires__ = 'pip==9.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys...
32.076923
73
0.673861
3744089e6937ae1df575e71530c9908949c35829
21,211
py
Python
tests/milvus_doc_test/markdown-link-extractor.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
1
2020-04-26T08:16:43.000Z
2020-04-26T08:16:43.000Z
tests/milvus_doc_test/markdown-link-extractor.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
1
2019-11-22T07:07:47.000Z
2019-11-22T07:07:47.000Z
tests/milvus_doc_test/markdown-link-extractor.py
ReigenAraka/milvus
b2f19ace0e1dcd431a512141f42b748581d4b92d
[ "Apache-2.0" ]
1
2021-04-30T18:54:18.000Z
2021-04-30T18:54:18.000Z
# -*- coding: utf-8 -*- # Using Python 3.x import urllib.request import urllib.error from pathlib import Path import requests import json from urllib.parse import urlparse import markdown import os from os.path import join, getsize from bs4 import BeautifulSoup import re from sys import platform import argparse clas...
50.502381
277
0.494649
47ed43d295f5c11f85b434badd9967e22d0479fd
5,595
py
Python
nuitka/tools/release/Documentation.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
nuitka/tools/release/Documentation.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
nuitka/tools/release/Documentation.py
Mortal/Nuitka
5150eeff7ff845ed4993c773449cd81b7f127c6b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
33.502994
119
0.598928
bf5f2c27af77bee633c5516b06bd06cfd97a8463
8,306
py
Python
tests/test_app.py
yougov/influxproxy
107440472c82522c8289ddd5dc69886758668415
[ "MIT" ]
1
2017-03-06T07:22:16.000Z
2017-03-06T07:22:16.000Z
tests/test_app.py
yougov/influxproxy
107440472c82522c8289ddd5dc69886758668415
[ "MIT" ]
null
null
null
tests/test_app.py
yougov/influxproxy
107440472c82522c8289ddd5dc69886758668415
[ "MIT" ]
null
null
null
import json from unittest.mock import patch from .base import AppTestCase, asynctest from influxproxy.configuration import config from influxproxy.drivers import MalformedDataError DB_USER = 'testing' DB_CONF = config['databases'][DB_USER] class PingTest(AppTestCase): @asynctest async def receives_a_pong(s...
32.83004
79
0.650614
9013eb62561242237c334e0cdd5700a7880b13f0
2,727
py
Python
starepandas/tools/temporal_conversions.py
SpatioTemporal/STAREPandas
cb33d0cd8c61d960cd7e5070d8b56d1a8805edae
[ "MIT" ]
1
2021-01-03T18:17:01.000Z
2021-01-03T18:17:01.000Z
starepandas/tools/temporal_conversions.py
SpatioTemporal/STAREPandas
cb33d0cd8c61d960cd7e5070d8b56d1a8805edae
[ "MIT" ]
66
2020-09-09T21:15:14.000Z
2022-03-25T21:30:53.000Z
starepandas/tools/temporal_conversions.py
SpatioTemporal/STAREPandas
cb33d0cd8c61d960cd7e5070d8b56d1a8805edae
[ "MIT" ]
2
2020-07-28T14:17:32.000Z
2021-01-21T19:24:23.000Z
import astropy.time import pystare def tivs_from_timeseries(series, scale='utc', format='datetime64', forward_res=48, reverse_res=48): """ Converts a timeseries to temporal index values. A timeseries is to be understood as either - a pandas.Series of dtype('<M8[ns]') as retrieved by pandas.to_datetime() ...
39.521739
120
0.482215
4594701a8fa8cf014031023783fa8e259a1c535f
1,801
py
Python
src/lumigo_tracer/extension/sampler.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/extension/sampler.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
src/lumigo_tracer/extension/sampler.py
MattBillock/python_tracer
0bd8ee0400687390820fc0e6c848f04ad71a8a4d
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from typing import Optional, List, Union, Dict from dataclasses import dataclass import signal from lumigo_tracer.extension.extension_utils import get_current_cpu_time DEFAULT_SAMPLING_INTERVAL = 500 @dataclass class CpuSample: start_time: datetime end_time: datetime cpu...
29.52459
84
0.649639
25d62da64c8583675cd96ec2da27f258feaa8342
5,235
py
Python
python/stepspy-current/demo/demo_dynamic.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
29
2019-10-30T07:04:10.000Z
2022-02-22T06:34:32.000Z
python/stepspy-current/demo/demo_dynamic.py
cuihantao/steps
60327bf42299cb7117ed5907a931583d7cdf590d
[ "MIT" ]
1
2021-09-25T15:29:59.000Z
2022-01-05T14:04:18.000Z
python/stepspy-current/demo/demo_dynamic.py
changgang/steps
9b8ea474581885129d1c1a1c3ad40bc8058a7e0a
[ "MIT" ]
8
2019-12-20T16:13:46.000Z
2022-03-20T14:58:23.000Z
from stepspy import STEPS, POUCH_CSV simulator = STEPS(is_default = False, log_file = 'test.log') simulator.info() simulator.set_toolkit_log_file("newtest.log", log_file_append_mode=False) simulator.set_parallel_thread_number(1) simulator.set_dynamic_model_database_capacity(10000000) max_bus = simulator.get_allowe...
40.898438
91
0.792359
6f370f809021da0ae597c2af2beefff3aefd3585
820
py
Python
api/models/initiate_database.py
ethanlong1/xsshunter
ba359c804d6ea9a0a5091546aa5d41caae1d5a4c
[ "MIT" ]
1,199
2016-05-30T06:54:37.000Z
2022-03-31T13:02:44.000Z
api/models/initiate_database.py
ethanlong1/xsshunter
ba359c804d6ea9a0a5091546aa5d41caae1d5a4c
[ "MIT" ]
27
2016-05-31T08:11:37.000Z
2021-11-04T14:12:09.000Z
api/models/initiate_database.py
ethanlong1/xsshunter
ba359c804d6ea9a0a5091546aa5d41caae1d5a4c
[ "MIT" ]
285
2016-05-30T12:02:24.000Z
2022-03-12T15:55:28.000Z
import yaml try: with open( '../config.yaml', 'r' ) as f: settings = yaml.safe_load( f ) except IOError: print "INITIATEDB: Error reading config.yaml, have you created one? (Hint: Try running ./generate_config.py)" exit() from sqlalchemy import create_engine engine = create_engine('postgresql://' +...
48.235294
213
0.746341
8033c07715fb158414f30948eb5169d3b072a0f6
28,696
py
Python
utils/aux_functions.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
utils/aux_functions.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
utils/aux_functions.py
shhommychon/WrongMaskTheFace
9950988e6fa2ec395af8c2ef0682d47139402181
[ "MIT" ]
null
null
null
# Author: aqeelanwar # Created: 27 April,2020, 10:21 PM # Email: aqeel.anwar@gatech.edu from configparser import ConfigParser import cv2, math, os from PIL import Image, ImageDraw from tqdm import tqdm from utils.read_cfg import read_cfg from utils.fit_ellipse import * import random from utils.create_mask import textu...
33.328688
147
0.610712
2e762d8520c06786fc05f3c727d1aae434f8d89d
71
py
Python
integration/keeper_secrets_manager_ansible/tests/__init__.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
9
2022-01-10T18:39:45.000Z
2022-03-06T03:51:41.000Z
integration/keeper_secrets_manager_ansible/tests/__init__.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
10
2022-01-27T00:51:05.000Z
2022-03-30T08:42:01.000Z
integration/keeper_secrets_manager_ansible/tests/__init__.py
Keeper-Security/secrets-manager
0044dec7f323ae2e531f52ef2435bd7205949fe9
[ "MIT" ]
6
2021-12-17T18:59:26.000Z
2022-03-28T16:47:28.000Z
# This needs to be here or pytest does like to find the test framework
35.5
70
0.774648
512d7b449fae9a57b2159a00897df95363f9111f
5,749
py
Python
nasbench/lib/model_spec.py
Naruu/nasbench
b94247037ee470418a3e56dcb83814e9be83f3a8
[ "Apache-2.0" ]
621
2018-12-21T18:59:46.000Z
2022-03-26T04:33:15.000Z
nasbench/lib/model_spec.py
Naruu/nasbench
b94247037ee470418a3e56dcb83814e9be83f3a8
[ "Apache-2.0" ]
29
2019-03-02T19:36:00.000Z
2022-01-13T00:37:58.000Z
nasbench/lib/model_spec.py
Naruu/nasbench
b94247037ee470418a3e56dcb83814e9be83f3a8
[ "Apache-2.0" ]
111
2018-12-21T19:32:13.000Z
2022-03-31T01:47:22.000Z
# Copyright 2019 The Google Research Authors. # # 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 agree...
34.42515
80
0.693512
e44247ed546240a29e1cfe54cf53d93aca171a13
1,309
py
Python
poc/classes/ContextInstanceBlock.py
bookofproofs/fpl
527b43b0f8bb3d459ee906e5ed8524a676ce3a2c
[ "MIT" ]
4
2021-11-08T10:09:46.000Z
2021-11-13T22:25:46.000Z
poc/classes/ContextInstanceBlock.py
bookofproofs/fpl
527b43b0f8bb3d459ee906e5ed8524a676ce3a2c
[ "MIT" ]
1
2020-09-04T13:02:09.000Z
2021-06-16T07:07:44.000Z
poc/classes/ContextInstanceBlock.py
bookofproofs/fpl
527b43b0f8bb3d459ee906e5ed8524a676ce3a2c
[ "MIT" ]
1
2021-11-08T10:10:12.000Z
2021-11-08T10:10:12.000Z
""" This file was generated by the tool TatSuSAG (the TatSu syntax analyser generator) Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """ from poc.classes.AuxISourceAnalyser import AuxISourceAnalyser from poc.classes.AuxInterpretation import AuxInterpretation from poc.cl...
39.666667
101
0.734912
7c6c1926d4a8383848446bf10e2488be460d90f6
2,482
py
Python
api/desecapi/tests/test_throttling.py
unuseless/desec-stack
399b64ea87775585b825ecdabcf5ea917269dc90
[ "MIT" ]
null
null
null
api/desecapi/tests/test_throttling.py
unuseless/desec-stack
399b64ea87775585b825ecdabcf5ea917269dc90
[ "MIT" ]
null
null
null
api/desecapi/tests/test_throttling.py
unuseless/desec-stack
399b64ea87775585b825ecdabcf5ea917269dc90
[ "MIT" ]
null
null
null
from unittest import mock import time from django.core.cache import cache from django.test import TestCase, override_settings from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView from rest_framework.test import APIRequestFactory def override_rates(ra...
37.044776
119
0.660355
f0642460a1e8663ed08e2f4d4cb3d6ca752b3924
1,653
py
Python
lib/model/__init__.py
fretboardfreak/space
76dd5ea96f2daf9a44cd041bd5adf315d1b8fd1c
[ "Apache-2.0" ]
1
2015-04-13T00:24:01.000Z
2015-04-13T00:24:01.000Z
lib/model/__init__.py
fretboardfreak/space
76dd5ea96f2daf9a44cd041bd5adf315d1b8fd1c
[ "Apache-2.0" ]
17
2015-04-13T00:57:16.000Z
2015-04-13T05:00:34.000Z
lib/model/__init__.py
fretboardfreak/space
76dd5ea96f2daf9a44cd041bd5adf315d1b8fd1c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Curtis Sand # # 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, ...
35.934783
78
0.739867
eace6f43e82e18048a51115f0e578e7ea97b155c
771
py
Python
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/install/cmd/shutdown/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
9
2019-11-22T04:58:40.000Z
2022-02-26T16:47:28.000Z
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/install/cmd/shutdown/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
null
null
null
Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/install/cmd/shutdown/errors.py
bidhata/EquationGroupLeaks
1ff4bc115cb2bd5bf2ed6bf769af44392926830c
[ "Unlicense" ]
8
2017-09-27T10:31:18.000Z
2022-01-08T10:30:46.000Z
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: errors.py import mcl.status ERR_SUCCESS = mcl.status.MCL_SUCCESS ERR_INVALID_PARAM = mcl.status.framework.ERR_START ERR_MARSHAL_FAILED = mcl.status.f...
42.833333
67
0.77821
51c2ffa36cc5cd0dd18397dec77efc3f270a50f0
1,399
py
Python
pyro/distributions/testing/naive_dirichlet.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
pyro/distributions/testing/naive_dirichlet.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
pyro/distributions/testing/naive_dirichlet.py
cnheider/pyro
60bcab73ada30c2b3f05d525690c9664ff6fc22e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import torch from pyro.distributions.torch import Beta, Dirichlet, Gamma from pyro.distributions.util import copy_docs_from @copy_docs_from(Dirichlet) class NaiveDirichlet(Dirichlet): """ Implementation of ``Dirichlet`` via ``Gamma``. Thi...
32.534884
77
0.699071
c78a85346446b614c99d3a2fa9e167d792012318
5,118
py
Python
networking_nec/nwa/l2/rpc/nwa_l2_server_callback.py
nec-openstack/networking-nec
4a8410422b02c3df8eb4bcf9fe325354dc659185
[ "Apache-2.0" ]
null
null
null
networking_nec/nwa/l2/rpc/nwa_l2_server_callback.py
nec-openstack/networking-nec
4a8410422b02c3df8eb4bcf9fe325354dc659185
[ "Apache-2.0" ]
null
null
null
networking_nec/nwa/l2/rpc/nwa_l2_server_callback.py
nec-openstack/networking-nec
4a8410422b02c3df8eb4bcf9fe325354dc659185
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 NEC 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 requ...
36.820144
78
0.631301
91492c8c308eeabb0b278dd0e0b5ad51f87494db
546
py
Python
tools/scitools/conf/understand/python/python3/strop.py
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
1
2020-01-20T21:26:46.000Z
2020-01-20T21:26:46.000Z
tools/scitools/conf/understand/python/python3/strop.py
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
tools/scitools/conf/understand/python/python3/strop.py
brucegua/moocos
575c161cfa35e220f10d042e2e5ca18773691695
[ "Apache-2.0" ]
null
null
null
def atof(): pass def atoi(): pass def atol(): pass def capitalize(): pass def count(): pass def expandtabs(): pass def find(): pass def join(): pass def joinfields(): pass def lower(): pass def lstrip(): pass def maketrans(): pass def replace(): pass def rfind(): pass def rstrip(): pass def split(): pass...
21.84
41
0.681319
5d049c537c7af46841c4ee070a1d8dcd9c0019f5
8,867
py
Python
generalized_lloyd_quantization/null_uniform.py
spencerkent/generalized-lloyd-quantization
6d27b1b1a16a128104f224b06ee8361f6ed600d9
[ "BSD-3-Clause" ]
20
2018-11-25T07:12:43.000Z
2022-02-14T23:40:23.000Z
generalized_lloyd_quantization/null_uniform.py
spencerkent/generalized-lloyd-quantization
6d27b1b1a16a128104f224b06ee8361f6ed600d9
[ "BSD-3-Clause" ]
null
null
null
generalized_lloyd_quantization/null_uniform.py
spencerkent/generalized-lloyd-quantization
6d27b1b1a16a128104f224b06ee8361f6ed600d9
[ "BSD-3-Clause" ]
5
2018-11-25T07:12:48.000Z
2021-08-01T11:27:58.000Z
""" Most basic null-model alternative to Lloyd quantization, uniformly spaced bins. We can place assignment points uniformly in an n-dimensional space and then apply the quantizations based on nearest neighbor assignments. The one choice that remains to be specified is the precise offset or 'phase' of the assignment p...
47.92973
80
0.700688
d617b1b70031eb6c50b040554b584e5619d66304
560
py
Python
tests/test_plot.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
tests/test_plot.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
tests/test_plot.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# test_plot.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,W0611 # Putil imports from tests.plot.ccontracts import TestContracts from tests.plot.basic_source import TestBasicSource from tests.plot.csv_source import TestCsvSource from tests.plot.series import TestSe...
37.333333
77
0.844643
956eed64ff312be30605fbb486c8883a2a55e7fe
5,115
py
Python
alipay/aop/api/domain/SearchOrderDetailDataBrandItems.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/SearchOrderDetailDataBrandItems.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/SearchOrderDetailDataBrandItems.py
alipay/alipay-sdk-python-all
1b63620431d982d30d39ee0adc4b92463cbcee3c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.SearchOrderBrandDetail import SearchOrderBrandDetail class SearchOrderDetailDataBrandItems(object): def __init__(self): self._biz_id = None self._box_status =...
32.373418
87
0.590225
776ff0d708c1c6215155d41a73acf82085b6bd91
806
py
Python
manage.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
manage.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
manage.py
newnone/Jotto-Web
52d5d0bfca0a102567bbd4c6d5d3077e21eac4c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "JottoWeb.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
35.043478
77
0.64268
8d373d5184777a819cdca64943ef81521e6eec3d
2,878
py
Python
main.py
rohinidas0709/bandit.rl
2f5fcb86fd9ea7cfaa50e7629d91abf614d6bb52
[ "MIT" ]
null
null
null
main.py
rohinidas0709/bandit.rl
2f5fcb86fd9ea7cfaa50e7629d91abf614d6bb52
[ "MIT" ]
null
null
null
main.py
rohinidas0709/bandit.rl
2f5fcb86fd9ea7cfaa50e7629d91abf614d6bb52
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from agent import RandomAgent, GreedyAgent, EpsilonGreedyAgent from bandit import Bandit import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm NUM_ARMS = 10 NUM_GAMES = 2000 NUM_STEPS = 1000 def simulate_random_agent(games): data = { "actions": [], "rew...
27.150943
85
0.648019
01803470c264f953770dddc11bc29240e3541b78
37,464
py
Python
bot/cogs/Fun.py
ConchDev/Conchbot-Rewrite
4c7593287d95e0146aaca549d727654720034c2f
[ "MIT" ]
6
2021-05-15T02:20:27.000Z
2021-06-21T18:14:40.000Z
bot/cogs/Fun.py
ConchDev/Conchbot-Rewrite
4c7593287d95e0146aaca549d727654720034c2f
[ "MIT" ]
3
2021-05-14T01:28:32.000Z
2021-11-16T01:25:22.000Z
bot/cogs/Fun.py
ConchDev/Conchbot-Rewrite
4c7593287d95e0146aaca549d727654720034c2f
[ "MIT" ]
7
2021-05-14T02:26:01.000Z
2021-12-20T22:58:25.000Z
import json import urllib.request from aiohttp_requests import requests from aiohttp import request import random import os import dbl import aiohttp import asyncpraw import discord import DiscordUtils from discord.ext.commands.cooldowns import BucketType import httpx from discord.ext import commands from dotenv import...
49.885486
206
0.572229
95f2aeb800877141d64a614fb212d2e122c1cc85
9,231
py
Python
HW2/scripts/utils_rbf.py
UltronAI/Stochastic-Process
edbfe0eb2b62758e093306d18ba5a96415572be1
[ "MIT" ]
null
null
null
HW2/scripts/utils_rbf.py
UltronAI/Stochastic-Process
edbfe0eb2b62758e093306d18ba5a96415572be1
[ "MIT" ]
null
null
null
HW2/scripts/utils_rbf.py
UltronAI/Stochastic-Process
edbfe0eb2b62758e093306d18ba5a96415572be1
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as la import random def A(_): return min(1, _) def FindClosest(Mu, j1): mu1 = Mu[j1, :] d_min = 999999 j2 = j1 for i in range(Mu.shape[0]): if i == j1: continue mu2 = Mu[i, :] d = la.norm(mu1 - mu2) if d < d_min: ...
25.570637
111
0.469397
a393acfc6e9b6e96032b163b6abbbaec1d0db366
3,224
py
Python
targets/saturn/base.py
timvideos/litex-buildenv
a103774342c0265458979a79082b233d9ce08edb
[ "BSD-2-Clause" ]
198
2018-01-17T05:39:54.000Z
2022-03-15T08:59:16.000Z
targets/saturn/base.py
timvideos/litex-buildenv
a103774342c0265458979a79082b233d9ce08edb
[ "BSD-2-Clause" ]
610
2017-12-31T01:32:32.000Z
2022-03-19T22:07:28.000Z
targets/saturn/base.py
timvideos/litex-buildenv
a103774342c0265458979a79082b233d9ce08edb
[ "BSD-2-Clause" ]
85
2018-01-13T05:51:38.000Z
2022-02-11T18:54:14.000Z
# Support for the Numato Saturn (http://numato.com/product/saturn-spartan-6-fpga-development-board-with-ddr-sdram) from migen import * from litex.soc.integration.soc_sdram import * from litex.soc.integration.builder import * from litex.soc.interconnect import wishbone from litedram.modules import MT46H32M16 from lite...
37.488372
114
0.540943
d9560ad9f8f7507ac8cd08f3b96d401ab0ba741b
1,482
py
Python
neural_compressor/ux/web/service/model.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
neural_compressor/ux/web/service/model.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
neural_compressor/ux/web/service/model.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2022 Intel Corporation # # 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 applicab...
35.285714
91
0.738192
83f2ff3bfc12b38dd32b1b6e0d5e1aaaad239919
979
py
Python
netket/utils/optional_deps.py
rbktech/netket
847e120cad48f9c92d394e2078370e452f268a3d
[ "Apache-2.0" ]
null
null
null
netket/utils/optional_deps.py
rbktech/netket
847e120cad48f9c92d394e2078370e452f268a3d
[ "Apache-2.0" ]
8
2022-01-17T17:24:53.000Z
2022-03-28T17:31:04.000Z
netket/utils/optional_deps.py
inailuig/netket
ab57a6fb019edb9ac298969950724781f2ae2b22
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The NetKet Authors - 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 required by applicable ...
26.459459
74
0.745659
ef04867202c8d50203b07058cddb42b7b40e2584
26,378
py
Python
python/pyspark/mllib/clustering.py
tophua/spark1.52
464f406d04329634d5a8a0d6956d6d803a59d897
[ "Apache-2.0" ]
53
2016-04-22T03:57:05.000Z
2020-08-11T02:54:15.000Z
python/pyspark/mllib/clustering.py
tophua/spark1.52
464f406d04329634d5a8a0d6956d6d803a59d897
[ "Apache-2.0" ]
null
null
null
python/pyspark/mllib/clustering.py
tophua/spark1.52
464f406d04329634d5a8a0d6956d6d803a59d897
[ "Apache-2.0" ]
42
2016-04-22T03:56:50.000Z
2020-11-23T09:32:25.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 us...
36.892308
99
0.60759
0b6e9dac0bef8f79e10bfcf972fe89c8eb9fcc4b
18,901
py
Python
graphene/types/schema.py
DoctorJohn/graphene
05d96a983374f368bb1a2124be5878545ba3d2a9
[ "MIT" ]
null
null
null
graphene/types/schema.py
DoctorJohn/graphene
05d96a983374f368bb1a2124be5878545ba3d2a9
[ "MIT" ]
null
null
null
graphene/types/schema.py
DoctorJohn/graphene
05d96a983374f368bb1a2124be5878545ba3d2a9
[ "MIT" ]
null
null
null
import inspect from functools import partial from graphql import ( default_type_resolver, get_introspection_query, graphql, graphql_sync, introspection_types, parse, print_schema, subscribe, GraphQLArgument, GraphQLBoolean, GraphQLEnumValue, GraphQLField, GraphQLFloa...
37.726547
113
0.631871
090b31d40a84304bdcdf44e5401a77e6a5b93b69
662
py
Python
legacy-code/metric.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
1
2019-06-13T15:33:57.000Z
2019-06-13T15:33:57.000Z
legacy-code/metric.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
null
null
null
legacy-code/metric.py
developbiao/pythonbasics
a7549786629e820646dcde5bb9f1aad4331de9be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #-*- coding: utf-8 -*- import time, functools def metric(func): @functools.wraps(func) def decorator(*args, **kw): begin_time = time.time() retval = func(*args, **kw) spend_time = (time.time() - begin_time) * 1000 print('%s executed in %.2f ms' % (func.__n...
19.470588
69
0.577039
2a3b0ee01439d0a9403a0f13d9ba7391258bae5d
5,706
py
Python
extensions/skyportal/skyportal/handlers/api/db_stats.py
profjsb/fritz
59fed7bad6662291692889105ad3875a99c17b58
[ "BSD-3-Clause" ]
null
null
null
extensions/skyportal/skyportal/handlers/api/db_stats.py
profjsb/fritz
59fed7bad6662291692889105ad3875a99c17b58
[ "BSD-3-Clause" ]
null
null
null
extensions/skyportal/skyportal/handlers/api/db_stats.py
profjsb/fritz
59fed7bad6662291692889105ad3875a99c17b58
[ "BSD-3-Clause" ]
null
null
null
import datetime from astropy.time import Time from penquins import Kowalski from baselayer.app.access import permissions from baselayer.app.env import load_env from ..base import BaseHandler from ...models import ( DBSession, Obj, Source, Candidate, User, Token, Group, Spectrum, Cro...
38.816327
123
0.489485
9e6b4ce8794204d0264ce5f9b46e161ed62103ac
4,568
py
Python
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_applications_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_applications_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/list_applications_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class ListApplicationsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the ...
24.826087
75
0.551007
6bc017941448bdab58272ade3059d0e8decec799
2,238
py
Python
tests/test_generate_copy_without_render.py
pokoli/cookiecutter
394c02dc893c358f2faa37b2c6635ba7c881b96f
[ "BSD-3-Clause" ]
2
2019-06-03T12:44:14.000Z
2021-09-01T08:28:45.000Z
tests/test_generate_copy_without_render.py
pokoli/cookiecutter
394c02dc893c358f2faa37b2c6635ba7c881b96f
[ "BSD-3-Clause" ]
2
2015-03-14T09:07:54.000Z
2015-03-29T18:00:32.000Z
tests/test_generate_copy_without_render.py
pokoli/cookiecutter
394c02dc893c358f2faa37b2c6635ba7c881b96f
[ "BSD-3-Clause" ]
1
2021-01-29T10:04:27.000Z
2021-01-29T10:04:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_generate_copy_without_render --------------------------------- """ from __future__ import unicode_literals import os import pytest from cookiecutter import generate from cookiecutter import utils @pytest.fixture(scope='function') def remove_test_dir(request): ...
31.083333
73
0.632261
92f83cca10a838610bec194007348ef75d2555fa
94
py
Python
exotic_bay/apps.py
ansfarooq7/exotic_bay_project
170bbc1178d94e83bc2cc048f85568da0001eb78
[ "MIT" ]
2
2020-07-30T14:49:14.000Z
2020-08-13T19:35:05.000Z
exotic_bay/apps.py
ansfarooq7/exotic_bay_project
170bbc1178d94e83bc2cc048f85568da0001eb78
[ "MIT" ]
8
2020-03-04T17:04:07.000Z
2022-02-10T12:07:25.000Z
exotic_bay/apps.py
ansfarooq7/exotic_bay_project
170bbc1178d94e83bc2cc048f85568da0001eb78
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ExoticBayConfig(AppConfig): name = 'exotic_bay'
15.666667
33
0.765957
73b90773872f9e426fa66c8731a4cda42b3774fd
951
py
Python
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-Codes
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
1
2021-07-05T14:01:36.000Z
2021-07-05T14:01:36.000Z
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
GeeksforGeeks/Rotate by 90 degree.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
#User function Template for python3 class Solution: #Function to rotate matrix anticlockwise by 90 degrees. def rotateby90(self,a, n): # code here for row in a: row.reverse() for i in range(n): for j in range(i, n): a[j][i], ...
23.775
59
0.477392
a7b400809a58163ad1951472bc600ac95ee7fd98
742
py
Python
branch/migrations/0001_initial.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
4
2019-06-01T23:51:20.000Z
2021-02-24T11:23:31.000Z
branch/migrations/0001_initial.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
8
2020-06-13T23:10:46.000Z
2022-02-28T13:58:02.000Z
branch/migrations/0001_initial.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
1
2022-03-22T04:54:35.000Z
2022-03-22T04:54:35.000Z
# Generated by Django 2.1.5 on 2019-01-13 03:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Branch', fields=[ ('id', models.AutoField(p...
25.586207
76
0.520216
5baf80b2397975c3cb75b676568e5eef4b1a47f9
838
py
Python
mysite/mysite/urls.py
zach-king/Pynny
3dac355092084385c673fd94ef9693f046a835a0
[ "MIT" ]
null
null
null
mysite/mysite/urls.py
zach-king/Pynny
3dac355092084385c673fd94ef9693f046a835a0
[ "MIT" ]
42
2017-09-05T02:38:08.000Z
2021-06-10T18:32:57.000Z
mysite/mysite/urls.py
zcking/Pynny
3dac355092084385c673fd94ef9693f046a835a0
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
36.434783
79
0.690931
abb50e36c72ba7dd91a19a1f9285756b4e92d5ef
15,194
py
Python
Day5Labs/nso_api.py
rlachman/nso-5-day-training-1
f0a71ec9bad89d0287d9cf1a22b5ecc9d416fc95
[ "Apache-2.0" ]
null
null
null
Day5Labs/nso_api.py
rlachman/nso-5-day-training-1
f0a71ec9bad89d0287d9cf1a22b5ecc9d416fc95
[ "Apache-2.0" ]
null
null
null
Day5Labs/nso_api.py
rlachman/nso-5-day-training-1
f0a71ec9bad89d0287d9cf1a22b5ecc9d416fc95
[ "Apache-2.0" ]
2
2018-07-26T17:36:59.000Z
2021-08-02T07:15:52.000Z
import ncs import socket """ This File provides servel functions that give example sof executing common tasks using the NSO Maagic API These a written for use on a local NSO instance and are intended to be used for demonstration purposes. """ def create_session(): """ This is an example of how to create a sess...
47.779874
170
0.68843
e817386a112b36973e008b9047dc37f42dc52b12
5,100
py
Python
dist_utils.py
DonaldChung-HK/st2-auth-backend-keystone
4778319a019f1060df6fcaec12e1001f98922c51
[ "Apache-2.0" ]
16
2015-09-05T16:05:36.000Z
2022-02-22T12:48:58.000Z
dist_utils.py
DonaldChung-HK/st2-auth-backend-keystone
4778319a019f1060df6fcaec12e1001f98922c51
[ "Apache-2.0" ]
19
2016-02-26T23:36:30.000Z
2021-03-25T14:28:12.000Z
dist_utils.py
DonaldChung-HK/st2-auth-backend-keystone
4778319a019f1060df6fcaec12e1001f98922c51
[ "Apache-2.0" ]
26
2016-03-29T18:47:46.000Z
2021-03-25T08:35:03.000Z
# -*- coding: utf-8 -*- # NOTE: This file is auto-generated - DO NOT EDIT MANUALLY # Instead copy from https://github.com/StackStorm/st2/blob/master/scripts/dist_utils.py # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except...
30.357143
98
0.606275
262385c1ba5a967b0e9274c9754763f58ade0d0e
1,894
py
Python
ant/fs/test/test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
3
2016-07-19T12:04:46.000Z
2019-08-03T21:17:28.000Z
ant/fs/test/test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
null
null
null
ant/fs/test/test.py
ddboline/Garmin-Forerunner-610-Extractor_fork
3cea481bd103a1f20a3ff17f307d2a3a68068ba5
[ "MIT" ]
2
2019-02-18T08:57:30.000Z
2019-08-03T20:54:37.000Z
#from ant.base import Message from ant.easy.node import Node, Message from ant.easy.channel import Channel from ant.fs.manager import Application import array import logging import struct import sys import threading import traceback class App(Application): def setup_channel(self, channel): print "on...
29.138462
127
0.63886
16af6f87963dbfdc4559c47c7c5d3d1a2e615879
3,246
py
Python
ief_core/models/iefs/logcellkill.py
zeshanmh/ief
1b7dbd340ecb8ccf40d22de989e3bc3d92135a45
[ "MIT" ]
5
2021-04-11T04:49:24.000Z
2022-03-28T18:43:45.000Z
ief_core/models/iefs/logcellkill.py
clinicalml/ief
97bcaad85ec820fbe062a86c6c500a308904f029
[ "MIT" ]
1
2021-12-13T06:33:16.000Z
2021-12-16T02:04:14.000Z
ief_core/models/iefs/logcellkill.py
clinicalml/ief
97bcaad85ec820fbe062a86c6c500a308904f029
[ "MIT" ]
1
2022-02-01T03:10:16.000Z
2022-02-01T03:10:16.000Z
import torch import math import numpy as np import pickle from torch import nn import torch.functional as F from pyro.distributions import Normal, Independent, Categorical, LogNormal import sys, os from torch.autograd import grad class LogCellKill(nn.Module): def __init__(self, dim_stochastic, dim_treat, dim_hidd...
47.043478
132
0.582255
0e4e30b2180fcae15b7a47f17ab897311e2a895b
1,171
py
Python
PyMess/MAG/SaveAllDip.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/MAG/SaveAllDip.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/MAG/SaveAllDip.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
import numpy as np from ._SaveDip import _SaveDip from .DataAvailability import DataAvailability def SaveAllDip(Minute=False,StartI=0,EndI=None): ''' This procedure should save all magnetometer data rotated into a coordinate system useful for studying waves, with components in the poloidal, toroidal and paralle...
34.441176
67
0.747225