hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
89ef47a9a017d8b54b108f58d3445d148f8ea44e
5,355
py
Python
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
1
2022-02-15T05:06:59.000Z
2022-02-15T05:06:59.000Z
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
null
null
null
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
null
null
null
import torch from torch import nn from modules.commons.layers import Embedding from modules.commons.nar_tts_modules import EnergyPredictor, PitchPredictor from modules.tts.commons.align_ops import expand_states from modules.tts.fs import FastSpeech from utils.audio.cwt import cwt2f0, get_lf0_cwt from utils.audio.pitch....
51.990291
118
0.630252
4,967
0.927544
0
0
0
0
0
0
453
0.084594
89ef989d17480fa0112f287631461695a1dfdc91
1,626
py
Python
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
59
2018-01-10T10:15:57.000Z
2021-02-23T14:51:28.000Z
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
5
2018-03-15T14:52:51.000Z
2019-01-10T08:01:26.000Z
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
10
2018-01-10T10:15:58.000Z
2019-06-05T03:25:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import tensorflow as tf import i3d, i3d_v2, r3d FLAGS = tf.flags.FLAGS networks_map = {'i3d_v1': i3d.I3D, 'i3d_v2': i3d_v2.I3D_V2, 'r3d_50': r3d.resnet_v1_50, ...
35.347826
108
0.710332
0
0
0
0
231
0.142066
0
0
685
0.421279
89f42518c22e0143df19da0c0902641c4788fd1c
188
py
Python
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
8
2021-01-25T07:34:04.000Z
2022-03-18T10:29:20.000Z
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
null
null
null
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
1
2022-01-27T08:12:38.000Z
2022-01-27T08:12:38.000Z
from .utils import * from .path_based import toolong_tooshort, opt_p from .graph_based import holes_marbles, opt_g from .pixel_based import corr_comp_qual from .junction_based import opt_j
37.6
47
0.845745
0
0
0
0
0
0
0
0
0
0
89f5028eff37603d75de75f5abd7c8d726c5c6e5
2,882
py
Python
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
6
2019-09-21T14:16:53.000Z
2021-04-05T12:21:03.000Z
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
3
2019-09-20T02:12:10.000Z
2021-01-26T20:24:14.000Z
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
14
2019-10-20T04:48:07.000Z
2022-01-29T14:51:09.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'guis/card.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class QLabelClickable(QtWidgets.QLabel): clicked = QtCore.pyqtSignal()...
37.428571
82
0.693616
2,632
0.913255
0
0
0
0
0
0
406
0.140874
89f68215a92b5962462d39d325a8ddbc3feb8d70
2,826
py
Python
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
from django.shortcuts import render,get_object_or_404, redirect from .models import Category, Tag, Post from game.models import GameCategory, Game from comment.forms import BlogCommentForm,SubBCommentForm from comment.models import BlogComment,SubBComment from .forms import PostForm def index(request): posts = Pos...
28.545455
109
0.63765
0
0
0
0
0
0
0
0
350
0.12385
89f877e4490404ffc1a3340b3e037743f3566d9c
302
py
Python
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
465
2016-05-07T00:22:59.000Z
2022-03-31T08:36:24.000Z
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
129
2016-05-17T08:00:15.000Z
2022-03-31T23:09:36.000Z
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
167
2016-05-09T16:19:27.000Z
2022-03-31T07:19:18.000Z
#!/usr/bin/env python """Cloudflare API via command line""" from __future__ import absolute_import import sys from .cli4 import cli4 def main(args=None): """Cloudflare API via command line""" if args is None: args = sys.argv[1:] cli4(args) if __name__ == '__main__': main()
17.764706
41
0.662252
0
0
0
0
0
0
0
0
105
0.347682
89f91a1961150ce12780225b7d9f50a8875e2688
40
py
Python
jsonate/exceptions.py
weswil07/JSONate
128bba5c33ce221675b35db5afe338cfe40acdc5
[ "MIT" ]
5
2015-07-13T23:12:29.000Z
2019-06-28T06:15:49.000Z
jsonate/exceptions.py
weswil07/JSONate
128bba5c33ce221675b35db5afe338cfe40acdc5
[ "MIT" ]
14
2015-07-13T23:25:23.000Z
2022-03-12T00:36:32.000Z
jsonate/exceptions.py
weswil07/JSONate
128bba5c33ce221675b35db5afe338cfe40acdc5
[ "MIT" ]
3
2019-01-10T21:34:58.000Z
2021-09-21T18:43:17.000Z
class CouldntSerialize(Exception): pass
20
39
0.85
39
0.975
0
0
0
0
0
0
0
0
89fa2898826320254df84429ac824ce1b3d478ec
8,942
py
Python
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
148
2021-05-27T20:52:51.000Z
2022-03-16T22:49:48.000Z
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
9
2021-06-21T18:45:07.000Z
2021-11-08T14:42:30.000Z
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
27
2021-06-01T18:29:02.000Z
2022-03-02T06:56:03.000Z
import inspect from collections import namedtuple import numpy as np from sklearn.ensemble import GradientBoostingRegressor from sklearn.model_selection import train_test_split from sklearn.exceptions import NotFittedError from uq360.algorithms.posthocuq import PostHocUQ class MetamodelRegression(PostHocUQ): """...
51.390805
124
0.632297
8,666
0.969134
0
0
0
0
0
0
4,694
0.524938
89fb5f59bb50131f97f5c4face1aa7480c5511fc
5,641
py
Python
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
1
2022-03-10T15:39:11.000Z
2022-03-10T15:39:11.000Z
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
null
null
null
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 DeepMind Technologies Limited # # 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...
31.513966
80
0.697217
3,114
0.55203
0
0
0
0
0
0
2,052
0.363765
89fd8cdfeb3e77602c5bf98124fe6cf01b3a5355
91
py
Python
test_example.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-pennyfea
87532a9ed76b1a06dbc40e18b1c774f3b597388e
[ "MIT" ]
null
null
null
test_example.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-pennyfea
87532a9ed76b1a06dbc40e18b1c774f3b597388e
[ "MIT" ]
null
null
null
test_example.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-pennyfea
87532a9ed76b1a06dbc40e18b1c774f3b597388e
[ "MIT" ]
null
null
null
def test_example(): num1 = 1 num2 = 3 if num2 > num1: print("Working")
15.166667
24
0.516484
0
0
0
0
0
0
0
0
9
0.098901
89ff18e78c669221542df841657ba147fbc35054
3,026
py
Python
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
import logging import subprocess from threading import Thread from ulauncher.api.client.Extension import Extension from ulauncher.api.shared.event import KeywordQueryEvent, ItemEnterEvent, \ PreferencesEvent, PreferencesUpdateEvent from ulauncher.api.shared.action.ExtensionCustomAction import \ ExtensionCustomA...
39.815789
88
0.581626
2,282
0.754131
0
0
0
0
0
0
372
0.122935
89ff6360ea1be91377db709efe114247c747be5c
2,295
py
Python
src/Deque/deque_scratch.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
src/Deque/deque_scratch.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
src/Deque/deque_scratch.py
shapovalovdev/AlgorythmsAndDataStructures
34d5f38c089e0ba902813607f08847fbdc7361ab
[ "Apache-2.0" ]
null
null
null
class Node: def __init__(self,v): self.next=None self.prev=None self.value=v class Deque: def __init__(self): self.front=None self.tail=None def addFront(self, item): node=Node(item) if self.front is None: #case of none items se...
27.987805
86
0.484967
2,294
0.999564
0
0
0
0
0
0
180
0.078431
89ffe4c285c8fb8adfe67fe8a61dca320dff8dfe
14,288
py
Python
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
30
2019-12-07T21:16:41.000Z
2022-03-07T15:12:25.000Z
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
42
2018-01-31T20:03:55.000Z
2019-11-12T19:42:13.000Z
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
15
2018-01-31T19:47:22.000Z
2019-11-26T10:27:50.000Z
# pylint: disable=redefined-outer-name # pylint: disable=too-many-lines import itertools import pytest from buzzard.test.tools import assert_tiles_eq from buzzard.test import make_tile_set ANY = 42 PARAMS1 = { 'extend', 'overlap', 'exclude', 'exception', 'shrink', } PARAMS2 = {'br', 'tr', 'tl',...
28.806452
100
0.428541
0
0
0
0
2,323
0.162584
0
0
2,258
0.158035
89fff27b673fe05fed979e15b76552aef5fb7f04
946
py
Python
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
1
2018-10-27T02:48:10.000Z
2018-10-27T02:48:10.000Z
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
null
null
null
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
null
null
null
"""Combine ar* functional data in along their 4th axes. usage: combined_func_redgreen datadir """ import sys import os from roi.pre import combine4d from roi.io import read_nifti, write_nifti # Process the argv if len(sys.argv[1:]) != 1: raise ValueError('Only one argument allowed') datadir = sys.argv[1] # Name ...
27.823529
71
0.688161
0
0
0
0
0
0
0
0
424
0.448203
89fff5868cf9600a0b84348158759e2ca26b2ae6
3,857
py
Python
es_sink/es_sink/flushing_buffer.py
avmi/community
94abc715845d17fb4c24e70c7c328b2d4da0d581
[ "Apache-2.0" ]
305
2019-03-11T15:25:53.000Z
2021-03-03T09:34:02.000Z
es_sink/es_sink/flushing_buffer.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
233
2019-03-11T14:52:59.000Z
2021-03-03T12:11:00.000Z
es_sink/es_sink/flushing_buffer.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
97
2019-03-17T20:56:46.000Z
2021-02-28T14:14:01.000Z
''' Copyright 2020, Amazon Web Services Inc. This code is licensed under MIT license (see LICENSE.txt for details) Python 3 Provides a buffer object that holds log lines in Elasticsearch _bulk format. As each line is added, the buffer stores the control line as well as the log line. Employs an line_buffer to hold lo...
37.813725
80
0.646617
2,739
0.710137
0
0
0
0
0
0
1,279
0.331605
d6002ee1619df2f3a01c18514eb41944710fe8cf
1,529
py
Python
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
2
2020-09-10T09:59:45.000Z
2021-02-18T06:06:57.000Z
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
9
2019-07-24T14:34:45.000Z
2021-06-01T01:43:45.000Z
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
1
2019-08-10T12:37:07.000Z
2019-08-10T12:37:07.000Z
import unittest from collections import defaultdict import numpy as np import pandas as pd from ife.io.io import ImageReader class TestMomentFeatures(unittest.TestCase): def test_moment_output_type(self) -> None: features = ImageReader.read_from_single_file("ife/data/small_rgb.jpg") moment = fe...
32.531915
78
0.689993
1,399
0.914977
0
0
0
0
0
0
112
0.07325
d6045b4c7f02b396222d75c9572cf50573b6e5e0
4,116
py
Python
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
1
2019-06-11T21:23:49.000Z
2019-06-11T21:23:49.000Z
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
"""The database models and form based on the timesheet model""" import datetime from django.db import models from django.forms import ModelForm, ValidationError # Create your models here. class Task(models.Model): """Used to support Timesheet class""" type = models.CharField(max_length=25) class Meta:...
34.881356
117
0.659864
3,904
0.948494
0
0
0
0
0
0
836
0.20311
d604e88c648108777cbfd88997a6da0f4142321d
972
py
Python
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
1
2021-07-30T19:06:07.000Z
2021-07-30T19:06:07.000Z
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
8
2021-04-22T20:47:48.000Z
2021-07-30T19:06:01.000Z
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 11, 2009 @author: schimaf ''' import gpib_instrument class Keithley2700Multimeter(gpib_instrument.Gpib_Instrument): ''' classdocs ''' def __init__(self, pad, board_number = 0, name = '', sad = 0, timeout = 13, send_eoi = 1, eos_mode = 0): ''' Constructor '...
24.923077
111
0.56893
897
0.92284
0
0
0
0
0
0
248
0.255144
d606536d7efc21d7e550e45069c0d3a0439a05b5
2,482
py
Python
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
468
2019-07-03T02:43:52.000Z
2022-03-30T05:51:03.000Z
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
126
2019-07-04T15:51:57.000Z
2021-07-31T13:14:40.000Z
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
117
2019-07-04T11:31:08.000Z
2022-03-18T12:21:32.000Z
"""Early stopping.""" import typing import torch import numpy as np class EarlyStopping: """ EarlyStopping stops training if no improvement after a given patience. :param patience: Number fo events to wait if no improvement and then stop the training. :param should_decrease: The way to judg...
30.641975
75
0.619662
2,409
0.970588
0
0
509
0.205077
0
0
744
0.299758
d606d36daa54b0bd3ddacafaed70c2ea09268701
33,552
py
Python
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
8
2022-02-21T12:54:25.000Z
2022-03-22T00:35:26.000Z
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
1
2022-03-19T02:44:08.000Z
2022-03-21T12:20:59.000Z
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
2
2022-03-18T08:59:38.000Z
2022-03-26T11:48:59.000Z
import numpy as np from math import pi import torch from pykeops.torch import LazyTensor from plyfile import PlyData, PlyElement from helper import * import torch.nn as nn import torch.nn.functional as F # from matplotlib import pyplot as plt from pykeops.torch.cluster import grid_cluster, cluster_ranges_centroids, fr...
40.767922
114
0.575346
11,984
0.357081
0
0
152
0.004529
0
0
17,605
0.524567
d60722b9887f89e13eb10b2c11b054a0ed09389f
324
py
Python
test/test_comment.py
ExiaSR/server
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
3
2017-02-22T21:15:27.000Z
2017-08-07T17:30:21.000Z
test/test_comment.py
ExiaSR/server
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
4
2017-02-24T00:47:02.000Z
2017-03-20T08:51:02.000Z
test/test_comment.py
TeamGhostBuster/restful-api
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
1
2017-01-27T16:22:46.000Z
2017-01-27T16:22:46.000Z
import pytest from test.conftest import * @pytest.mark.run(after='test_create_article_for_user') @post('/article/{}/comment', {"comment": "shit posting #1"}) def test_post_comment_to_article(result=None, url_id=['article_id']): assert result.status_code == 200 assert result.json()['content'] == 'shit posting ...
32.4
69
0.725309
0
0
0
0
279
0.861111
0
0
115
0.354938
d6072d0758d603f4485ac95d58c4efa0240eeb5f
1,426
py
Python
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
3
2019-04-03T19:34:09.000Z
2020-05-07T14:38:52.000Z
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
5
2019-03-25T11:23:34.000Z
2020-11-19T19:10:45.000Z
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
6
2020-05-28T15:35:49.000Z
2021-12-11T18:43:04.000Z
# ============================================================================= # MISC HELPER FUNCTIONS # ============================================================================= def push_backslash(stuff): """ push a backslash before a word, dumbest function ever""" stuff_url = "" if stuff i...
27.423077
79
0.546985
0
0
0
0
0
0
0
0
610
0.42777
d607862cf4892c18870cfcbccf290b4c451cd8b2
2,243
py
Python
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
2
2022-02-25T15:55:28.000Z
2022-03-24T17:41:42.000Z
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
1
2022-02-03T15:48:30.000Z
2022-02-17T08:52:21.000Z
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
null
null
null
from random import randint, seed import numpy as np from os import path, mkdir from maze_utils import generate_grid seed_number = 69 training_folder = "training" testing_folder = "testing" tot_elem_training = 100 # numero di matrici da generare tot_elem_testing = 20 # numero di matrici da generare max_w = 10 ...
25.488636
76
0.637539
0
0
0
0
0
0
0
0
909
0.405261
d607c50df384a8836cc766ca7abe51f12d75551d
13,980
py
Python
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
"""create tables Revision ID: 6fb351569d30 Revises: 4f72de1ff38b Create Date: 2019-05-06 21:59:43.998735 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6fb351569d30' down_revision = '4f72de1ff38b' branch_labels = None depends_on = None def upgrade(): # ...
53.155894
408
0.686767
0
0
0
0
0
0
0
0
4,230
0.302575
d607fe79bc3714c6dc68c45609c08cdff2b1fdf2
50
py
Python
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
from apps.user.filters.basicinfor_filters import *
50
50
0.86
0
0
0
0
0
0
0
0
0
0
d608c6ea338f66c4814b94450fe4d554011509ec
7,414
py
Python
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
22
2021-02-26T18:19:35.000Z
2022-03-05T19:01:00.000Z
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
1
2021-04-01T06:15:02.000Z
2021-04-23T13:14:12.000Z
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
2
2021-05-02T02:20:39.000Z
2021-05-06T16:24:35.000Z
"""Shapes and shape-fetching functions for common use across tasks.""" import numpy as np from moog import sprite from spriteworld import shapes # A selection of simple shapes. Elements in SHAPES can be looked up from their # string keys in sprite.Sprite, i.e. you can give a string key as the `shape` # argument to sp...
39.227513
80
0.64621
0
0
0
0
0
0
0
0
3,574
0.482061
d609e5377f95b25b66bc675ee9c1f59fbd12e687
5,097
py
Python
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
import prettytable as pt #Load and Store are special class BasicRs(object): def __init__(self, Type): self.Type = Type self.clear() #judge if the RS is busy def isBusy(self): return self.busy def clear(self): self.op = "" self.reg_value = -1 self...
34.910959
108
0.518933
5,016
0.984108
0
0
1,423
0.279184
0
0
435
0.085344
d60a9d3546e515e8493bad9ce9313c8e56baa037
5,215
py
Python
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from collections import namedtuple from unittest import mock import pytest import requests from globus_sdk.response import GlobusHTTPResponse, IterableResponse _TestResponse = namedtuple("_TestResponse", ("data", "r")) def _response(data=None, encoding="utf-8", headers=None): r = requests.Response(...
28.189189
86
0.703931
0
0
0
0
923
0.176989
0
0
1,105
0.211889
d60afac3cc3d2f0f7b60cb0d352d24f6b6647e0d
9,007
py
Python
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
2
2021-01-27T14:42:33.000Z
2021-03-30T04:16:15.000Z
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
null
null
null
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
null
null
null
"""Hparams""" import argparse as ap import tensorflow as tf from pathlib import Path HOME = str(Path.home()) HPARAM_CHOICES= { "model": ["cpdb", "copy", "bdrnn", "cpdb2", "cpdb2_prot"], "optimizer": ["adam", "sgd", "adadelta"], "unit_type": ["lstm", "lstmblock", "nlstm", "gru"], "train...
39.16087
89
0.601199
0
0
0
0
0
0
0
0
2,546
0.282669
d60b9e43d95710ca6c53adbaecd49a801012a6ac
660
py
Python
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
from kivy.lang import Builder from kivy.metrics import dp from kivy import properties as p from kivy.animation import Animation from kivymd.app import MDApp as App from kivymd.uix.screen import MDScreen class HomeMainScreen(MDScreen): bg_pos = p.NumericProperty(0) def toggle_bg_pos(self): bg_pos...
20
60
0.698485
283
0.428788
0
0
0
0
0
0
32
0.048485
d60ba3512a50dda2a4e6cd60cfa185e17be8c13c
1,792
py
Python
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
from typing import Tuple class BaseTimer: """ A timer controls the time passed into the the render function. This can be used in creative ways to control the current time such as basing it on current location in an audio file. All methods must be implemented. """ @property ...
27.569231
88
0.592076
1,760
0.982143
0
0
604
0.337054
0
0
943
0.526228
d60c263256042297b276978adacf12014f153b54
327
py
Python
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
null
null
null
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
6
2020-02-11T22:54:25.000Z
2022-01-13T00:47:14.000Z
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import CreateView from django.urls import reverse_lazy from accounts.forms import UserCreateForm # Create your views here. class Signup(CreateView): form_class = UserCreateForm success_url = reverse_lazy('login') template_name = "accounts/signu...
29.727273
43
0.798165
140
0.428135
0
0
0
0
0
0
54
0.165138
d60fbcd4c5db31db47d319f9c2fd9dae6d72dff3
260
py
Python
H/283. Move Zeroes.py
shaohy/leetcode
a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b
[ "MIT" ]
null
null
null
H/283. Move Zeroes.py
shaohy/leetcode
a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b
[ "MIT" ]
null
null
null
H/283. Move Zeroes.py
shaohy/leetcode
a5a4bbd768b5d5e394f327785bd99c8a3b11ae0b
[ "MIT" ]
null
null
null
class Solution: def moveZeroes(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ for i in nums: if i == 0: nums.append(i) nums.remove(i)
28.888889
61
0.476923
260
1
0
0
0
0
0
0
77
0.296154
d611e9107074951bab0a620dc787648f0af98fce
3,045
py
Python
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
# def draw_nx(g, labels=None): # import matplotlib.pyplot as plt # if labels is not None: # g = nx.relabel_nodes(g, labels) # pos = nx.kamada_kawai_layout(g) # nx.draw(g, pos, with_labels=True) # plt.show() # # def draw_nx_attributes_as_labels(g, attribute): # # import pylab # impo...
32.052632
129
0.639737
0
0
0
0
0
0
0
0
2,486
0.81642
d61294e73d1a3cf60fee4d45d2eefcf83295fa92
10,680
py
Python
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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 * class AlipayOverseasRemitFundInitializeModel(object): def __init__(self): self._bc_remit_id = None self._compliance_mid = None self._extend_info = None self._quote_route...
34.340836
87
0.615543
10,563
0.989045
0
0
4,818
0.451124
0
0
1,464
0.137079
d612e925c123019a0812dc8cafaa3b8e961aa72d
863
py
Python
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
38
2015-01-06T16:38:47.000Z
2022-03-28T12:55:25.000Z
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
16
2015-02-21T22:31:41.000Z
2022-03-28T12:55:28.000Z
from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.views.generic import ListView from .settings import TAGGED_ITEM_MODEL, TAG_MODEL class TagCanvasListView(ListView): template_name = 'taggit_templatetags2/tagcanvas_list.html' model = TAGGED_ITEM_MODEL ...
26.96875
75
0.699884
677
0.784473
0
0
0
0
0
0
128
0.14832
d61380847703495aa7703c1972406f6af045360d
4,292
py
Python
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
16
2020-10-07T10:24:30.000Z
2022-03-26T09:29:04.000Z
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
1
2022-03-31T13:02:55.000Z
2022-03-31T13:02:55.000Z
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
6
2020-11-19T10:37:34.000Z
2022-02-11T12:40:55.000Z
########################## # Nicola Altini (2020) # V-Net for Hippocampus Segmentation from MRI with PyTorch ########################## # python run/validate_torchio.py # python run/validate_torchio.py --dir=logs/no_augm_torchio # python run/validate_torchio.py --dir=path/to/logs/dir --verbose=VERBOSE ################...
35.180328
120
0.560345
0
0
0
0
0
0
0
0
1,435
0.334343
d6158bbaeefe9e6b8a41d596f2b3e07f74924255
4,833
py
Python
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import nltk, json, os, sys, operator, argparse, copy from nltk.tokenize import word_tokenize, sent_tokenize from tqdm import tqdm from nltk.corpus import stopwords sys.path.append('../') from utils import * # List of stopwords to excldue from text stop_words = set(stopwords.words('english')) de...
44.33945
145
0.693358
0
0
0
0
0
0
0
0
1,897
0.39251
d61667a462e9e3dc4a723ce323514ac9133d5c7d
2,614
py
Python
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
# Copyright 2016 Open Source Robotics Foundation, 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...
33.948052
106
0.657995
748
0.286151
0
0
0
0
0
0
705
0.269702
d616f567ae03b79441c969ca7804c5cf4f69ecb4
6,840
py
Python
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
import atexit import contextlib import time from typing import Any, List, Type from unittest import mock import pytest import region_profiler.global_instance import region_profiler.profiler from region_profiler import RegionProfiler, func from region_profiler import install as install_profiler from region_profiler imp...
30.810811
86
0.587865
0
0
1,916
0.280117
6,187
0.904532
0
0
1,210
0.176901
d617a8405308e7c9bd8ac24ab55429fb59a26e04
4,326
py
Python
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import logging import time from threading import Thread import requests from requests.auth import HTTPBasicAuth import settings def update_notiwire(data=None, relative_url=''): URL = settings.API_URL + settings.NAME + '/' if not data: data = {} data['api_key...
32.044444
112
0.568655
3,354
0.775312
0
0
0
0
0
0
599
0.138465
d61c6de0e82f8f872eba10ae8f409e791984f158
858
py
Python
Python3/0073-Set-Matrix-Zeroes/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0073-Set-Matrix-Zeroes/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0073-Set-Matrix-Zeroes/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution(object): def setZeroes(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """ m, n = len(matrix), len(matrix[0]) col_zero = any(matrix[i][0] == 0 for i in range(m)) row_zero = an...
35.75
76
0.434732
858
1
0
0
0
0
0
0
130
0.151515
d61df03e6189a1d966a8b4017a3bbba4ae49e046
708
py
Python
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from . import views urlpatterns=[ url('^$',views.index,name = 'index'), url(r'^profile/(\d+)',views.profile,name = "profile"), url(r'^create/post',views.new_post, name = "new-post"), url(r'^foll...
32.181818
80
0.658192
0
0
0
0
0
0
0
0
184
0.259887
d61df13867b70a38d3372196cc0b9b5a198d48c0
15,779
py
Python
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
1
2021-12-29T02:56:37.000Z
2021-12-29T02:56:37.000Z
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
null
null
null
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
null
null
null
from chart.models import * from chart.controllers import ai, get_data import key from pathlib import Path import os from django_pandas.io import read_frame import plotly.graph_objects as go from plotly.subplots import make_subplots import numpy as np import logging logger = logging.getLogger(__name__)...
56.153025
212
0.558654
15,343
0.9704
0
0
0
0
0
0
5,286
0.334324
d61e6516f718df3f31a9d34a9f5fa19b3f8b469f
2,071
py
Python
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import math """ Exercise 1.1: Diagonal Gaussian Likelihood Write a function which takes in Tensorflow symbols for the means and log stds of a batch of diagonal Gaussian distributions, along with a Tensorflow placeholder for (previously-generated) samples from those distri...
29.169014
112
0.638822
0
0
0
0
0
0
0
0
753
0.363592
d61eff1a921d2135040a6c02d46079a5efd10e3f
69
py
Python
src/pyrouge/rouge/pyrouge/__init__.py
bzhao2718/PreSumm
974f73a6baefc691d396e130c7d9fdc2b71c2a31
[ "MIT" ]
4
2020-09-24T10:12:36.000Z
2020-10-27T00:37:52.000Z
pyrouge/pyrouge/__init__.py
jackie930/TextRank4ZH
0462dd263737798c620fdf0d3a81e5306302e60f
[ "MIT" ]
1
2022-03-13T21:50:43.000Z
2022-03-15T05:18:12.000Z
pyrouge/pyrouge/__init__.py
jackie930/TextRank4ZH
0462dd263737798c620fdf0d3a81e5306302e60f
[ "MIT" ]
1
2022-03-11T16:41:20.000Z
2022-03-11T16:41:20.000Z
from pyrouge.base import Doc, Sent from pyrouge.rouge import Rouge155
34.5
34
0.84058
0
0
0
0
0
0
0
0
0
0
d620ca977f85bedcf66737660077fc3deabaeec7
6,982
py
Python
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
5
2022-03-25T17:15:04.000Z
2022-03-28T23:24:26.000Z
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
null
null
null
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
2
2022-03-26T06:33:30.000Z
2022-03-29T19:43:50.000Z
from unittest.mock import MagicMock from unittest.mock import patch import aiofiles from aiofiles import threadpool async def test_unit_get_current_version_both_files_dont_exist(mock_hub, hub, tmp_path): """ SCENARIO #1 - override_version_file DOES NOT EXIST - main_version_file DOES NOT EXIST """...
44.189873
101
0.664423
0
0
0
0
0
0
6,853
0.981524
2,506
0.358923
d62251a3f732e6d3445b6aaa9d46a183c953d427
262
py
Python
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
import setuptools setuptools.setup( name="fakeokpy", version='0.1', url="https://github.com/yuvipanda/fakeokpy", author="Yuvi Panda", author_email="yuvipanda@gmail.com", license="BSD-3-Clause", packages=setuptools.find_packages(), )
21.833333
48
0.679389
0
0
0
0
0
0
0
0
101
0.385496
d6225ce13fba3710da7c5601f7127c0706c16753
3,889
py
Python
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
3
2020-02-10T01:53:29.000Z
2022-01-13T09:23:40.000Z
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
null
null
null
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
1
2021-07-31T08:55:43.000Z
2021-07-31T08:55:43.000Z
# coding: utf-8 # $ \newcommand{\cat}[2][\phantom{i}]{\ket{C^{#2}_{#1\alpha}}} $ # $ \newcommand{\ket}[1]{|#1\rangle} $ # $ \newcommand{\bra}[1]{\langle#1|} $ # $ \newcommand{\braket}[2]{\langle#1|#2\rangle} $ # $\newcommand{\au}{\hat{a}^\dagger}$ # $\newcommand{\ad}{\hat{a}}$ # $\newcommand{\bu}{\hat{b}^\dagger}$ # ...
40.092784
280
0.651839
0
0
0
0
0
0
0
0
3,567
0.911577
d622dd5b922c94de5b402e9178f3a1ea69927d38
18,253
py
Python
lib/evaluation/frequency_based_analysis_of_methods.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
13
2021-04-24T12:32:48.000Z
2022-03-14T15:47:31.000Z
lib/evaluation/frequency_based_analysis_of_methods.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
5
2021-02-26T04:44:52.000Z
2022-03-31T07:16:53.000Z
lib/evaluation/frequency_based_analysis_of_methods.py
Vision-CAIR/relTransformer_github
ec3be058da9c4f2f68d7c4dfb759209748732b93
[ "MIT" ]
1
2022-03-30T08:06:08.000Z
2022-03-30T08:06:08.000Z
# Written by Sherif Abdelkarim on Jan 2020 import numpy as np import pandas as pd import json import os.path as osp # import seaborn as sns # not critical. import matplotlib.pylab as plt # In[9]: import os import re def files_in_subdirs(top_dir, search_pattern): # TODO: organize project as proper join = os.p...
48.416446
156
0.636005
0
0
486
0.026626
0
0
0
0
5,214
0.285652
d6240d57782a997c5e7d887f0b05f55415199e37
965
py
Python
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
158
2018-01-25T06:33:30.000Z
2022-03-14T23:18:05.000Z
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
9
2018-07-04T00:31:57.000Z
2020-05-16T21:02:30.000Z
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
50
2018-06-22T16:48:44.000Z
2022-01-11T16:45:48.000Z
def coding_problem_41(flights_db, starting_airport): """ Given an unordered list of flights taken by someone, each represented as (origin, destination) pairs, and a starting airport, compute the person's itinerary. If no such itinerary exists, return null. If there are multiple possible itineraries, ret...
40.208333
117
0.609326
0
0
0
0
0
0
0
0
825
0.854922
d6246c6bfbc02d9c1123746752fe0e55c3135872
2,763
py
Python
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
import itertools import pytest from iterators.invalid_iter import InvalidIter def _grouper_to_keys(grouper): return [g[0] for g in grouper] def _grouper_to_groups(grouper): return [list(g[1]) for g in grouper] @pytest.mark.parametrize("keyfunc, data, expected_keys", [ (lambda x: x, [], []), (lambd...
36.84
78
0.588491
0
0
0
0
2,526
0.914224
0
0
388
0.140427
d62644a9b295cdf4b9495812288c75112e6e0627
7,733
py
Python
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
136
2019-09-24T05:38:55.000Z
2022-02-14T01:38:51.000Z
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
21
2019-11-21T12:24:03.000Z
2021-03-23T09:34:15.000Z
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
28
2019-09-24T05:39:36.000Z
2022-02-14T01:42:58.000Z
# -*- coding: UTF-8 -*- # Copyright (c) 2019 PaddlePaddle 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 # ...
48.031056
283
0.631708
6,966
0.900815
622
0.080435
856
0.110694
0
0
4,825
0.623949
d62715d491b61e6a775fbc869b90c29b4074c7fe
528
py
Python
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
import serialio class Serial(object): def __init__(self, port, baudrate, timeout): self.port = port self.baudrate = baudrate self.timeout = timeout self._openPort() def _openPort(self): self.hComm = serialio.Serial(self.port, self.baudrate) # Opening the port def read(self): data = seria...
27.789474
77
0.643939
465
0.880682
0
0
0
0
0
0
94
0.17803
d62766f5ac4f26967bc65719b305e8d1426b3fe6
5,054
py
Python
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
import random from pandac.PandaModules import Point3 from direct.gui.DirectGui import DirectFrame, DirectLabel from direct.fsm import FSM from direct.interval.IntervalGlobal import * from pirates.audio import SoundGlobals from pirates.audio.SoundGlobals import loadSfx import RepairGlobals MIN_SCALE = 1.5 MAX_SCALE_ADD ...
38.876923
647
0.646419
4,706
0.931144
0
0
0
0
0
0
92
0.018203
d627de6c0016de6bdbf4e403d68f143376f5435a
738
py
Python
src/test/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
1
2022-03-03T09:56:51.000Z
2022-03-03T09:56:51.000Z
src/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
2
2022-03-07T06:45:33.000Z
2022-03-16T14:41:40.000Z
src/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
2
2022-03-09T10:32:25.000Z
2022-03-10T08:46:47.000Z
import numpy as np def euclidean_norm(vectorList, listP, listQ): """Calculates the euclidean norm (distance) of two array-like objects, in this case vectors Args: listP (integer list): List of indices of the reference vector of the\ array. list_comp (integer list): list of indi...
38.842105
96
0.655827
0
0
0
0
0
0
0
0
469
0.635501
d6292f4b527df8ed334c9ff7b406c01c304b61ef
15,067
py
Python
examples/adaptive/ppo2_episodes.py
llucid-97/rl-generalization
5561067d6fe0f8873a1e83b2479a6a6faa820dfa
[ "MIT" ]
84
2018-10-31T19:45:03.000Z
2022-02-17T17:29:12.000Z
examples/adaptive/ppo2_episodes.py
llucid-97/rl-generalization
5561067d6fe0f8873a1e83b2479a6a6faa820dfa
[ "MIT" ]
9
2018-11-29T13:29:59.000Z
2021-05-11T23:54:20.000Z
examples/adaptive/ppo2_episodes.py
llucid-97/rl-generalization
5561067d6fe0f8873a1e83b2479a6a6faa820dfa
[ "MIT" ]
15
2018-10-31T19:45:29.000Z
2022-03-25T16:06:11.000Z
import os import time import joblib import numpy as np import os.path as osp import tensorflow as tf from baselines import logger from collections import deque from baselines.common import explained_variance import pickle class Model(object): def __init__(self, policy, ob_space, ac_space, nbatch_act, nbatch_trai...
46.076453
151
0.617708
10,136
0.672728
0
0
0
0
0
0
543
0.036039
d62a83820ba47a3107569c5278ac9665892b74f8
2,045
py
Python
Scripts/simulation/visualization/spawner_visualizer.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/visualization/spawner_visualizer.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/visualization/spawner_visualizer.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\visualization\spawner_visualizer.py # Compiled at: 2020-08-11 18:25:53 # Size of source mod 2**32: 2...
43.510638
107
0.642543
1,488
0.727628
0
0
0
0
0
0
324
0.158435
d62ad03a43eda3844d3bfe00ca8827143a6790cf
288
py
Python
rgs/__init__.py
slavakargin/RandomGeometricStructures
02cdc1b4d3128e23b1e78f1f1612b51917894eea
[ "MIT" ]
null
null
null
rgs/__init__.py
slavakargin/RandomGeometricStructures
02cdc1b4d3128e23b1e78f1f1612b51917894eea
[ "MIT" ]
null
null
null
rgs/__init__.py
slavakargin/RandomGeometricStructures
02cdc1b4d3128e23b1e78f1f1612b51917894eea
[ "MIT" ]
null
null
null
''' A package to manipulate and display some random structures, including meander systems, planar triangulations, and ribbon tilings Created on May 8, 2021 @author: vladislavkargin ''' ''' #I prefer blank __init__.py from . import mndrpy from . import pmaps from . import ribbons '''
16.941176
68
0.753472
0
0
0
0
0
0
0
0
286
0.993056
d62bf9b8e1cb172f53b0d3a2b4cf82b13f9588af
2,007
py
Python
2017/day09/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
3
2018-04-08T10:40:52.000Z
2018-12-06T02:37:23.000Z
2017/day09/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
2
2018-04-10T11:44:18.000Z
2022-02-22T21:25:54.000Z
2017/day09/main.py
stenbein/AdventOfCode
3e8c24f7140dd9cdc687e176272af6a1302a9ca5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Day 9 of the 2017 advent of code''' def process_garbage(stream, index): """Traverse stream. Break on '>' as end of garbage, return total as size of garbage and the new index """ total = 0 length = len(stream) while index < length: if stream[index] =...
23.337209
84
0.544096
0
0
0
0
0
0
0
0
643
0.320379
d62d910445835d91faa3e110d7eb3b7db0b66ad0
2,168
py
Python
epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
7
2021-02-01T18:11:28.000Z
2022-01-31T19:14:07.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
22
2021-01-02T15:25:23.000Z
2022-03-14T11:32:53.000Z
epytope/Data/pssms/tepitopepan/mat/DRB1_1227_9.py
christopher-mohr/epytope
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
[ "BSD-3-Clause" ]
4
2021-05-28T08:50:38.000Z
2022-03-14T11:45:32.000Z
DRB1_1227_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.99657, 'I': -0.003434, 'H': -999.0, 'K': -999.0, 'M': -0.003434, 'L': -0.003434, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.99657, 'V': -0.003434, 'Y': -0.99657}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ...
2,168
2,168
0.396679
0
0
0
0
0
0
0
0
513
0.236624
d62f99bd2cd008cbb688a48eb7fc0e2ddb7c4b4a
744
py
Python
radec.py
mdwarfgeek/pymisc
e923e9d705af8fed291fbff7ff135b1025b82227
[ "MIT" ]
null
null
null
radec.py
mdwarfgeek/pymisc
e923e9d705af8fed291fbff7ff135b1025b82227
[ "MIT" ]
null
null
null
radec.py
mdwarfgeek/pymisc
e923e9d705af8fed291fbff7ff135b1025b82227
[ "MIT" ]
null
null
null
import lfa def convert_radec(radec, partial=False): # Convert RA, DEC. Try : first and then space. ra, rva = lfa.base60_to_10(radec, ':', lfa.UNIT_HR, lfa.UNIT_RAD) if rva < 0: ra, rva = lfa.base60_to_10(radec, ' ', lfa.UNIT_HR, lfa.UNIT_RAD) if rva < 0: raise RuntimeError("could not understand ra...
32.347826
78
0.634409
0
0
0
0
0
0
0
0
149
0.200269
d63126a5ef87a48b8c8a3004026d99401763e7c4
567
py
Python
src/utilities/NumpyHelper.py
AndMu/Market-Wisdom
64889634566172ccfed372bba452f717862ba956
[ "Apache-2.0" ]
14
2018-08-20T07:54:15.000Z
2021-06-22T16:52:20.000Z
src/utilities/NumpyHelper.py
AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis
b5a81f5d23419789a027403b4d72d53ed760e091
[ "Apache-2.0" ]
3
2019-06-01T10:32:36.000Z
2020-01-09T10:19:33.000Z
src/utilities/NumpyHelper.py
AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis
b5a81f5d23419789a027403b4d72d53ed760e091
[ "Apache-2.0" ]
7
2019-10-22T07:46:39.000Z
2021-04-29T04:56:46.000Z
import numpy as np class NumpyDynamic: def __init__(self, dtype, array_size=(100,)): self.data = np.zeros(array_size, dtype) self.array_size = list(array_size) self.size = 0 def add(self, x): if self.size == self.array_size[0]: self.array_size[0] *= 2 ...
25.772727
64
0.574956
546
0.962963
0
0
0
0
0
0
0
0
d631a41f89b7ce2f5771d40e6b71d43ca80b06fc
282
py
Python
api/serializers/RouteDistanceSerializer.py
M4hakala/drf_route_api_example
894989bf71a6c781c54093a7ac6a8d7a1d951146
[ "MIT" ]
null
null
null
api/serializers/RouteDistanceSerializer.py
M4hakala/drf_route_api_example
894989bf71a6c781c54093a7ac6a8d7a1d951146
[ "MIT" ]
null
null
null
api/serializers/RouteDistanceSerializer.py
M4hakala/drf_route_api_example
894989bf71a6c781c54093a7ac6a8d7a1d951146
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import RouteModel class RouteDistanceSerializer(serializers.ModelSerializer): km = serializers.FloatField(source='distance', read_only=True) class Meta: model = RouteModel fields = ('route_id', 'km')
25.636364
66
0.737589
206
0.730496
0
0
0
0
0
0
24
0.085106
d632cecb4f2872287738e79aa8f506251786723a
1,369
py
Python
test/net_t2.py
jmbjorndalen/pycsp_classic
686c88d66f280e34c409ed33bb72097e42010837
[ "MIT" ]
null
null
null
test/net_t2.py
jmbjorndalen/pycsp_classic
686c88d66f280e34c409ed33bb72097e42010837
[ "MIT" ]
null
null
null
test/net_t2.py
jmbjorndalen/pycsp_classic
686c88d66f280e34c409ed33bb72097e42010837
[ "MIT" ]
1
2021-12-04T12:04:27.000Z
2021-12-04T12:04:27.000Z
#!/usr/bin/env python # -*- coding: latin-1 -*- from common import * from pycsp import * from pycsp.plugNplay import * from pycsp.net import * @process def test1(): print("Test1") waitForSignal() c = getNamedChannel("foo1") print("- Trying to write to channel") print("-", c.write("I'm here")) p...
23.20339
60
0.614317
0
0
0
0
961
0.701972
0
0
505
0.368882
d6332d84e3d5a9658bda74c61983f969fd0d2998
3,653
py
Python
main/commands/_listlol.py
STEUSSO/steusso
18e21fd1711133c0b8652cf72dd1b8f812f3e0cb
[ "CC0-1.0" ]
null
null
null
main/commands/_listlol.py
STEUSSO/steusso
18e21fd1711133c0b8652cf72dd1b8f812f3e0cb
[ "CC0-1.0" ]
null
null
null
main/commands/_listlol.py
STEUSSO/steusso
18e21fd1711133c0b8652cf72dd1b8f812f3e0cb
[ "CC0-1.0" ]
null
null
null
from discord.errors import HTTPException from discord.ext import commands from os import getenv from discord import Embed from dotenv import load_dotenv from requests.models import HTTPError from riotwatcher import LolWatcher from json import load load_dotenv(dotenv_path="config") prefix = getenv("PREFIX") class list...
42.476744
296
0.59677
3,354
0.915393
0
0
3,255
0.888373
3,231
0.881823
1,347
0.367631
d63509621c6f3238df73b9c82ff0524e9b7a3e89
10,988
py
Python
olfactometer/smell_engine_communicator.py
asu-meteor/The-Smell-Engine
c80283b324d485756ed38c02ae0fd7f775f7c39f
[ "MIT" ]
1
2022-03-14T19:46:36.000Z
2022-03-14T19:46:36.000Z
olfactometer/smell_engine_communicator.py
asu-meteor/The-Smell-Engine
c80283b324d485756ed38c02ae0fd7f775f7c39f
[ "MIT" ]
null
null
null
olfactometer/smell_engine_communicator.py
asu-meteor/The-Smell-Engine
c80283b324d485756ed38c02ae0fd7f775f7c39f
[ "MIT" ]
2
2022-03-14T19:46:51.000Z
2022-03-14T20:16:57.000Z
import struct import select import socket import sys import binascii import getopt import time import quantities as pq from collections import deque import numpy as np import datetime import typer from typing import Optional from pprint import pprint from olfactometer.smell_engine import SmellEngine from olfactometer...
51.106977
151
0.596287
10,107
0.919822
0
0
0
0
0
0
3,333
0.303331
d63513361fda0a919145ea884276a37e0a46cdc6
4,051
py
Python
tree/basic.py
Matioz/AlphaZero
d50ca8e57752ada2e5a5f6b817d67b6fe753449d
[ "MIT" ]
1
2020-08-08T14:01:27.000Z
2020-08-08T14:01:27.000Z
tree/basic.py
Matioz/AlphaZero
d50ca8e57752ada2e5a5f6b817d67b6fe753449d
[ "MIT" ]
13
2018-05-20T10:41:08.000Z
2022-03-11T23:39:11.000Z
tree/basic.py
piojanu/AlphaZero
7285559374c331d83320f1ef447fb185880531c6
[ "MIT" ]
null
null
null
import numpy as np from abc import ABCMeta, abstractmethod class Node(object): """Represents state in MCTS search tree. Args: state (object): The environment state corresponding to this node in the search tree. Note: Node object is immutable. Node is left without exit edges (empty dict)...
28.935714
100
0.607011
3,985
0.983708
0
0
935
0.230807
0
0
2,202
0.543569
d6364735b7cf9d38867543ddfba47367af1c9f31
3,892
py
Python
fedot/cases/metocean_forecasting_problem.py
alievilya/nas-fedot
ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea
[ "BSD-3-Clause" ]
13
2020-07-14T10:52:40.000Z
2022-03-31T13:01:47.000Z
fedot/cases/metocean_forecasting_problem.py
alievilya/nas-fedot
ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea
[ "BSD-3-Clause" ]
null
null
null
fedot/cases/metocean_forecasting_problem.py
alievilya/nas-fedot
ce1b07505cd189f3097f1cfa6c38cb4f0d56ccea
[ "BSD-3-Clause" ]
5
2020-08-10T09:43:22.000Z
2022-03-22T08:28:08.000Z
import os import random from sklearn.metrics import mean_squared_error as mse from core.composer.chain import Chain from core.composer.composer import ComposerRequirements, DummyChainTypeEnum, DummyComposer from core.models.data import OutputData from core.models.model import * from core.repository.dataset_t...
41.849462
112
0.720709
0
0
0
0
0
0
0
0
775
0.199126
d636c3562519dc522e1e77635bac6225822e825e
1,596
py
Python
common/si.isystem.commons.plugin/fileManipulation.py
iSYSTEMLabs/testIDEA
f445bdebb6e23416a0f793ab1d98d41017cec4d8
[ "BSD-3-Clause" ]
1
2022-03-07T04:04:30.000Z
2022-03-07T04:04:30.000Z
common/si.isystem.commons.plugin/fileManipulation.py
iSYSTEMLabs/testIDEA
f445bdebb6e23416a0f793ab1d98d41017cec4d8
[ "BSD-3-Clause" ]
null
null
null
common/si.isystem.commons.plugin/fileManipulation.py
iSYSTEMLabs/testIDEA
f445bdebb6e23416a0f793ab1d98d41017cec4d8
[ "BSD-3-Clause" ]
null
null
null
import os import re import shutil def svnLockFiles(files): fileStr = ' '.join(files) print('Locking files: ', fileStr) os.system('svn lock ' + fileStr) def svnUnlockFiles(files): fileStr = ' '.join(files) print('Unlocking files: ', fileStr) os.system('svn unlock ' + fileStr) ...
25.741935
98
0.576441
0
0
0
0
0
0
0
0
309
0.193609
d63737b4e600a66bc6abcf1e9fab86752b57cf0b
995
py
Python
language/python/modules/typing/typing_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
language/python/modules/typing/typing_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
language/python/modules/typing/typing_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ python3.5开始,PEP484为python引入了类型注解(type hints) typing模块: 1. 类型检查,防止运行时出现参数和返回值类型不符合。 2. 作为开发文档附加说明,方便使用者调用时传入和返回参数类型。 3. 该模块加入后并不会影响程序的运行,不会报正式的错误,只有提醒pycharm目前支持typing检查,参数类型错误会黄色提示。 基本类型: int,long,float:整型,长整形,浮点型; bool,str:布尔型,字符串类型; List,...
16.311475
65
0.691457
0
0
0
0
0
0
0
0
1,121
0.734119
d638cea5e87e66042a0f58c9969b9e9d5bdeeb8b
3,941
py
Python
scratchpad/voids_paper/bin/tests/test_rec.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/voids_paper/bin/tests/test_rec.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/voids_paper/bin/tests/test_rec.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ import numpy as np import matplotlib.pyplot as plt import os import h5py import sys import time import seaborn as sns import pandas as pd import cupy as cp from tomo_encoders import Patches from tomo_encoders.misc import viewer from tomo_encoders import DataF...
30.789063
107
0.611774
0
0
0
0
0
0
0
0
1,141
0.28952
d63d239e7f20359bcda23e4b9f736073ec206cae
5,352
py
Python
tensornetwork/linalg/linalg_test.py
sr33dhar/TensorNetwork
7a755ac004514561e4e018bf4c6f98e1f3b6d650
[ "Apache-2.0" ]
null
null
null
tensornetwork/linalg/linalg_test.py
sr33dhar/TensorNetwork
7a755ac004514561e4e018bf4c6f98e1f3b6d650
[ "Apache-2.0" ]
null
null
null
tensornetwork/linalg/linalg_test.py
sr33dhar/TensorNetwork
7a755ac004514561e4e018bf4c6f98e1f3b6d650
[ "Apache-2.0" ]
null
null
null
import numpy as np import time import pytest import jax.numpy as jnp import jax.config as config import torch import tensorflow as tf from tensornetwork.linalg import linalg from tensornetwork import backends from tensornetwork.backends.numpy import numpy_backend from tensornetwork.backends.jax import jax_backend #pyli...
35.210526
76
0.660314
0
0
0
0
0
0
0
0
596
0.11136
d63d974f3174c13c816c1f7f268a122a5d42e514
72
py
Python
src/ansible_pygments/__init__.py
felixfontein/sphinx_ansible_highlighter
d9eba218038f1e8c6adb152ad33104acabde78f4
[ "BSD-2-Clause" ]
3
2021-06-04T04:24:48.000Z
2021-09-08T16:33:16.000Z
src/ansible_pygments/__init__.py
felixfontein/sphinx_ansible_highlighter
d9eba218038f1e8c6adb152ad33104acabde78f4
[ "BSD-2-Clause" ]
18
2021-06-02T12:33:58.000Z
2022-01-28T08:29:45.000Z
src/ansible_pygments/__init__.py
felixfontein/sphinx_ansible_highlighter
d9eba218038f1e8c6adb152ad33104acabde78f4
[ "BSD-2-Clause" ]
2
2021-09-08T16:33:19.000Z
2022-01-27T08:59:33.000Z
"""Pygments entities for highlighting and tokenizing Ansible things."""
36
71
0.791667
0
0
0
0
0
0
0
0
71
0.986111
d63dd2c75a7d51524459ca564e7f8c459de9700b
352
py
Python
Students/Zephyr/Exercise 1.py
MikelShifrin/Python1
0096a327023a28e0c639042ae01268b07e61943e
[ "MIT" ]
3
2019-07-02T13:46:23.000Z
2019-08-19T14:41:25.000Z
Students/Zephyr/Exercise 1.py
MikelShifrin/Python1
0096a327023a28e0c639042ae01268b07e61943e
[ "MIT" ]
null
null
null
Students/Zephyr/Exercise 1.py
MikelShifrin/Python1
0096a327023a28e0c639042ae01268b07e61943e
[ "MIT" ]
null
null
null
name = input('Please enter your name:\n') age = int(input("Please enter your age:\n")) color = input('Enter your favorite color:\n') animal = input('Enter your favorite animal:\n') print('Hello my name is' , name , '.') print('I am' , age , 'years old.') print('My favorite color is' , color ,'.') print('My favorite...
27.076923
49
0.644886
0
0
0
0
0
0
0
0
208
0.590909
d63f1bf49523a0c4532b24c23c24b616d219a539
2,083
py
Python
libraries/authenticator.py
CrimsonPinnacle/container-image-inspector
c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969
[ "Apache-2.0" ]
null
null
null
libraries/authenticator.py
CrimsonPinnacle/container-image-inspector
c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969
[ "Apache-2.0" ]
5
2021-02-18T22:42:48.000Z
2021-03-22T00:46:42.000Z
libraries/authenticator.py
CrimsonPinnacle/container-image-inspector
c5c06fb54bf5ed6cbc8bca8c315b6d0f85cb4969
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ :mod: `authenticator.py` -- Common authentication helpers ================================================================================ module:: authenticator :platform: Unix, Windows :synopsis: This module contains classes and helper functions that are common for authen...
34.716667
114
0.660586
1,613
0.774364
0
0
0
0
0
0
1,279
0.614018
d63f2686c253c7d3a95bc7e462de967cd66cecca
2,696
py
Python
main.py
Kartikei-12/Pyrunc
9ce1f9ea21a2e22d0dca6c104754afd3126cccc8
[ "Apache-2.0" ]
4
2019-07-20T06:30:46.000Z
2019-11-04T13:56:28.000Z
main.py
Kartikei-12/Pyrunc
9ce1f9ea21a2e22d0dca6c104754afd3126cccc8
[ "Apache-2.0" ]
null
null
null
main.py
Kartikei-12/Pyrunc
9ce1f9ea21a2e22d0dca6c104754afd3126cccc8
[ "Apache-2.0" ]
1
2019-06-15T15:50:30.000Z
2019-06-15T15:50:30.000Z
"""main.py file representingcomparison statistics for Pyrunc module""" # Python module(s) from timeit import timeit # Project module(s) from Pyrunc import Pyrunc def main(): """Main Method""" pr_c = Pyrunc() # -------------------------------------------------------------------------------- # ----...
26.96
87
0.477374
0
0
0
0
0
0
0
0
1,787
0.662834
d63f4a4c9cd8ea952e060d75f7e0f10a24e460cf
2,918
py
Python
tests/test_class.py
oeg-upm/easysparql
76b83a872df8b1e9662ac0d574dba02c9ddde841
[ "Apache-2.0" ]
null
null
null
tests/test_class.py
oeg-upm/easysparql
76b83a872df8b1e9662ac0d574dba02c9ddde841
[ "Apache-2.0" ]
2
2020-09-09T07:26:08.000Z
2021-11-05T14:34:56.000Z
tests/test_class.py
oeg-upm/easysparql
76b83a872df8b1e9662ac0d574dba02c9ddde841
[ "Apache-2.0" ]
null
null
null
import unittest from easysparql import easysparqlclass, cacher import logging ENDPOINT = "https://dbpedia.org/sparql" albert_uri = "http://dbpedia.org/resource/Albert_Einstein" albert_name = "Albert Einstein" scientist = "http://dbpedia.org/ontology/Scientist" foaf_name = "http://xmlns.com/foaf/0.1/name" logger = log...
41.685714
109
0.693626
2,189
0.750171
0
0
0
0
0
0
729
0.249829
d64171aff2bb98e2b1c0d01401c6439366a7a347
1,728
py
Python
create_saliency_images.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
17
2018-07-25T05:50:29.000Z
2020-12-06T23:28:25.000Z
create_saliency_images.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
1
2019-11-20T16:22:30.000Z
2020-01-31T08:57:25.000Z
create_saliency_images.py
briqr/CSPN
d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346
[ "MIT" ]
5
2018-07-26T03:48:41.000Z
2020-02-25T14:35:22.000Z
import sys import numpy as np import scipy.misc import scipy.ndimage as nd import os.path import scipy.io as sio saliency_path = '/media/VOC/saliency/raw_maps/' # the path of the raw class-specific saliency maps, created by create_saliency_raw.py save_path = '/media/VOC/saliency/thresholded_saliency_images/' # the...
36.765957
150
0.685764
0
0
0
0
0
0
0
0
482
0.278935
d641eb6d49315fe6745ceee29475ee4928cb236c
4,610
py
Python
exporter/apply_for_a_licence/views.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
1
2021-10-16T16:36:58.000Z
2021-10-16T16:36:58.000Z
exporter/apply_for_a_licence/views.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
45
2020-08-11T14:37:46.000Z
2022-03-29T17:03:02.000Z
exporter/apply_for_a_licence/views.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
3
2021-02-01T06:26:19.000Z
2022-02-21T23:02:46.000Z
from django.urls import reverse_lazy, reverse from django.views.generic import TemplateView from exporter.applications.services import post_applications, post_open_general_licences_applications from exporter.apply_for_a_licence.forms.open_general_licences import ( open_general_licence_forms, open_general_licen...
39.067797
109
0.716052
3,697
0.801952
0
0
0
0
0
0
533
0.115618
d643ba8252478c881a1cbb108bed0d0c073a4c21
2,532
py
Python
ElexonDataPortal/vis/curtailment.py
r4ch45/ElexonDataPortal
d44ed4da33278c0135ff95fb126a10d9384af22f
[ "MIT" ]
22
2021-01-12T12:34:43.000Z
2022-03-30T06:18:40.000Z
ElexonDataPortal/vis/curtailment.py
r4ch45/ElexonDataPortal
d44ed4da33278c0135ff95fb126a10d9384af22f
[ "MIT" ]
12
2021-02-26T16:17:58.000Z
2022-03-29T19:32:29.000Z
ElexonDataPortal/vis/curtailment.py
r4ch45/ElexonDataPortal
d44ed4da33278c0135ff95fb126a10d9384af22f
[ "MIT" ]
6
2021-06-07T11:58:35.000Z
2022-03-30T06:18:42.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/vis-02-curtailment.ipynb (unless otherwise specified). __all__ = ['get_wf_ids', 'flatten_list', 'get_curtailed_wfs_df', 'load_curtailed_wfs', 'add_next_week_of_data_to_curtailed_wfs'] # Cell flatten_list = lambda list_: [item for sublist in list_ for item in ...
36.695652
135
0.690363
0
0
0
0
0
0
0
0
706
0.278831
d6441759966ae5c635bbb788b674b13cdbcf3cdb
91,809
py
Python
pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py
peendebak/PycQED_py3
c85d511cf49f6f7e08365a7d9abe6019d05cb2ed
[ "MIT" ]
null
null
null
pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py
peendebak/PycQED_py3
c85d511cf49f6f7e08365a7d9abe6019d05cb2ed
[ "MIT" ]
null
null
null
pycqed/instrument_drivers/meta_instrument/qubit_objects/qubit_object.py
peendebak/PycQED_py3
c85d511cf49f6f7e08365a7d9abe6019d05cb2ed
[ "MIT" ]
null
null
null
import logging import numpy as np import time import warnings from qcodes.instrument.base import Instrument from qcodes.utils import validators as vals from pycqed.measurement import detector_functions as det from qcodes.instrument.parameter import ManualParameter from pycqed.utilities.general import gen_sweep_pts fr...
42.74162
106
0.540372
91,131
0.992615
0
0
0
0
0
0
32,413
0.353048
d6446687d741426359d7e451dc6dcf120fc71619
3,384
py
Python
main.py
ok-tsar/VandyHacks_Heartbeat_Classification
a371f6d19932e6277db6481e5e95cce4438d8b65
[ "MIT" ]
1
2021-01-15T01:32:31.000Z
2021-01-15T01:32:31.000Z
main.py
ok-tsar/VandyHacks_Heartbeat_Classification
a371f6d19932e6277db6481e5e95cce4438d8b65
[ "MIT" ]
null
null
null
main.py
ok-tsar/VandyHacks_Heartbeat_Classification
a371f6d19932e6277db6481e5e95cce4438d8b65
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import pandas as pd import librosa import os import sys import time from datetime import datetime from pathlib import Path from src.python.audio_transforms import * from src.python.model_predict import * from src.python.graphics import plot_graph # Hardcoding a few variable...
23.664336
91
0.588357
0
0
0
0
0
0
0
0
761
0.224882
d646ae45e14020746e673b4abe0a16891e76d131
4,581
py
Python
src/AutoTrade.py
mounan/cryptobot
9c130202b89294946a2d24b058072278c2944dbe
[ "MIT" ]
3
2021-06-03T05:25:49.000Z
2022-03-14T07:47:33.000Z
src/AutoTrade.py
mounan/cryptobot
9c130202b89294946a2d24b058072278c2944dbe
[ "MIT" ]
null
null
null
src/AutoTrade.py
mounan/cryptobot
9c130202b89294946a2d24b058072278c2944dbe
[ "MIT" ]
null
null
null
from pprint import pformat from TwitterBot import TwitterBot from utils import * from BinanceBot import BinanceBot from time import * import logging class AutoTrader(TwitterBot, BinanceBot): """[summary] :param TwitterBot: [description] :type TwitterBot: [type] :param BinanceBot: [description] :t...
34.443609
149
0.53067
4,429
0.966819
0
0
658
0.143637
0
0
1,810
0.39511
d647a10a0a898a8e9a5837b54f0c329b582ca5db
5,208
py
Python
py/discover.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
44
2019-08-30T02:51:59.000Z
2022-03-15T13:47:18.000Z
py/discover.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
21
2019-09-01T16:17:22.000Z
2022-02-01T15:47:55.000Z
py/discover.py
dman776/micboard
166987dfad529dc35654f402fdbbde7f16b60f77
[ "MIT" ]
16
2019-09-01T01:40:09.000Z
2022-03-15T17:12:28.000Z
import socket import struct import json import time import os import platform from optparse import OptionParser import sys import xml.etree.ElementTree as ET import config from device_config import BASE_CONST MCAST_GRP = '239.255.254.253' MCAST_PORT = 8427 DEFAULT_DCID_XML = '/Applications/Shure Update Utility.ap...
28
113
0.599846
0
0
0
0
0
0
0
0
1,133
0.21755
d648b943b6e2a77549b2f9c033aba864d03bf880
506
py
Python
integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
15
2021-06-11T16:35:15.000Z
2022-03-29T15:53:59.000Z
integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
12
2021-04-26T13:07:50.000Z
2021-11-15T10:50:03.000Z
integrations-and-supported-tools/fastai/scripts/Neptune_fastai.py
neptune-ai/examples
e64cfaadb028e2187063fc43768dfee44074729b
[ "MIT" ]
10
2021-05-07T16:28:18.000Z
2022-02-28T21:47:11.000Z
import fastai from neptune.new.integrations.fastai import NeptuneCallback from fastai.vision.all import * import neptune.new as neptune run = neptune.init( project="common/fastai-integration", api_token="ANONYMOUS", tags="basic" ) path = untar_data(URLs.MNIST_TINY) dls = ImageDataLoaders.from_csv(path) # Log all...
26.631579
95
0.784585
0
0
0
0
0
0
0
0
97
0.1917
d648d151b563996d1ca1c9b18232f0f106c64aea
14,079
py
Python
test/webapi/controllers/test_time_series.py
dzelge/xcube
1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd
[ "MIT" ]
null
null
null
test/webapi/controllers/test_time_series.py
dzelge/xcube
1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd
[ "MIT" ]
null
null
null
test/webapi/controllers/test_time_series.py
dzelge/xcube
1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd
[ "MIT" ]
null
null
null
import unittest import numpy as np from xcube.webapi.controllers.time_series import get_time_series_info, get_time_series_for_point, \ get_time_series_for_geometry, get_time_series_for_geometry_collection from ..helpers import new_test_service_context class TimeSeriesControllerTest(unittest.TestCase): def ...
62.29646
117
0.40017
13,818
0.981462
0
0
1,310
0.093046
0
0
2,867
0.203637
d648e5cbc312d423bf5006d19075c50d0c7bd02f
17,011
py
Python
setup.py
Ademan/psycopg2
bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1
[ "OpenSSL" ]
2
2016-07-18T08:53:22.000Z
2018-03-28T16:59:52.000Z
setup.py
Ademan/psycopg2
bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1
[ "OpenSSL" ]
null
null
null
setup.py
Ademan/psycopg2
bf7e1da0aee83c500a3f9477fd1646e3ee28a3d1
[ "OpenSSL" ]
null
null
null
# setup.py - distutils packaging # # Copyright (C) 2003-2010 Federico Di Gregorio <fog@debian.org> # # psycopg2 is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at...
37.970982
89
0.628064
10,289
0.604844
0
0
0
0
0
0
7,243
0.425783
d64ac33a4a42c6b8d665b024fe5d0e70195a0ecf
1,864
py
Python
users/views.py
Mohit7143/class
7859447c77548f54b590db73b678828e3bc91305
[ "BSD-3-Clause" ]
null
null
null
users/views.py
Mohit7143/class
7859447c77548f54b590db73b678828e3bc91305
[ "BSD-3-Clause" ]
null
null
null
users/views.py
Mohit7143/class
7859447c77548f54b590db73b678828e3bc91305
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render,redirect from django.views.generic import View from django.contrib.auth.models import User from .forms import LoginUser,RegisterUser from django.http import HttpResponse,Http404 from django.contrib.auth import authenticate,login,logout class UserLogin(View): form_class = LoginUs...
30.064516
68
0.640558
1,198
0.642704
0
0
0
0
0
0
176
0.094421
d64bd2e3bcadb3c94249491bf869f0e1bd34f80f
6,266
py
Python
python_src/AHRS_Madgwick.py
msart/Joint-estimation-with-9dof-sensors
b451764b50c50f42e0ee7b7d8c7167dbf010b995
[ "MIT" ]
3
2017-08-02T18:46:46.000Z
2022-01-28T10:01:19.000Z
python_src/AHRS_Madgwick.py
msart/Joint-estimation-with-9dof-sensors
b451764b50c50f42e0ee7b7d8c7167dbf010b995
[ "MIT" ]
null
null
null
python_src/AHRS_Madgwick.py
msart/Joint-estimation-with-9dof-sensors
b451764b50c50f42e0ee7b7d8c7167dbf010b995
[ "MIT" ]
null
null
null
from math import sqrt from math import atan2 from math import asin beta = 0.1 sampleFreq = 10.0 #Fastest implementation in python for invsqrt def invsqrt(number): return number ** -0.5 def update_IMU( gx, gy, gz, ax, ay, az, q0, q1, q2, q3): gx = gx * 0.0174533 gy = gy * 0.0174533 gz = gz * 0.017453...
34.811111
409
0.531918
0
0
0
0
0
0
0
0
578
0.092126
d64dd861a7fd5cd22573fba9f5c11e9abd41afee
3,991
py
Python
books/masteringPython/cp15/setup_template.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
books/masteringPython/cp15/setup_template.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
books/masteringPython/cp15/setup_template.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
import setuptools if __name__ == '__main__': setuptools.setup( name='Name', version='0.1', # this automatically detects the packages in the specified # (or current directory if no directory is given). packages=setuptools.find_packages(exclude=['tests', 'docs']), # ...
42.913978
84
0.642195
0
0
0
0
0
0
0
0
2,909
0.72889
d64fac35d83538731c9328874dc6768cc20365c0
8,312
py
Python
compressor/base.py
rossowl/django-compressor
3e451e836a7a8532781e4247a6a56444a6d4e25c
[ "Apache-2.0" ]
null
null
null
compressor/base.py
rossowl/django-compressor
3e451e836a7a8532781e4247a6a56444a6d4e25c
[ "Apache-2.0" ]
null
null
null
compressor/base.py
rossowl/django-compressor
3e451e836a7a8532781e4247a6a56444a6d4e25c
[ "Apache-2.0" ]
null
null
null
import os from django.core.files.base import ContentFile from django.template.loader import render_to_string from django.utils.encoding import smart_unicode from compressor.cache import get_hexdigest, get_mtime from compressor.conf import settings from compressor.exceptions import CompressorError, UncompressableFileE...
38.660465
82
0.613811
7,665
0.922161
986
0.118624
1,778
0.213908
0
0
1,934
0.232676
d650630ddbd4fc30bfac843e28429816b4779ec8
1,324
py
Python
tests/test_conditions.py
ranking-agent/simple-kp
956c7d87228b75ea344dfc23475a02ba8bf07e4a
[ "MIT" ]
null
null
null
tests/test_conditions.py
ranking-agent/simple-kp
956c7d87228b75ea344dfc23475a02ba8bf07e4a
[ "MIT" ]
null
null
null
tests/test_conditions.py
ranking-agent/simple-kp
956c7d87228b75ea344dfc23475a02ba8bf07e4a
[ "MIT" ]
null
null
null
"""Test generating SQL conditions.""" import pytest from binder.util import build_conditions from .logging_setup import setup_logger setup_logger() def test_condition(): """Test condition generation.""" assert ( build_conditions( **{ "a": 5, } ) ...
19.188406
61
0.318731
0
0
0
0
0
0
0
0
242
0.182779
d650a3ef3a866edcb545fd30c8d9bd73813f94b0
11,697
py
Python
tfx/tools/cli/commands/pipeline.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/tools/cli/commands/pipeline.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/tools/cli/commands/pipeline.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2019 Google LLC. 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 law or a...
35.020958
80
0.689066
0
0
0
0
9,508
0.812858
0
0
5,162
0.44131
d657c3c57633559b7ecdca066002d6b7d57f1a46
2,199
py
Python
lib/utils/env.py
MJ10/BioSeq-GFN-AL
d389aeb729ac29578ad825da5b828ff968a1d555
[ "MIT" ]
13
2022-03-09T18:34:51.000Z
2022-03-28T18:05:16.000Z
lib/utils/env.py
MJ10/BioSeq-GFN-AL
d389aeb729ac29578ad825da5b828ff968a1d555
[ "MIT" ]
null
null
null
lib/utils/env.py
MJ10/BioSeq-GFN-AL
d389aeb729ac29578ad825da5b828ff968a1d555
[ "MIT" ]
2
2022-03-12T23:33:52.000Z
2022-03-18T20:52:37.000Z
import torch class Vocab: def __init__(self, alphabet) -> None: self.stoi = {} self.itos = {} for i, alphabet in enumerate(alphabet): self.stoi[alphabet] = i self.itos[i] = alphabet class TokenizerWrapper: def __init__(self, vocab, dummy_process): self.v...
32.820896
124
0.439291
1,636
0.743975
0
0
120
0.05457
0
0
178
0.080946
d659a970a6512f2704362eda73ac10abe5149e31
5,388
py
Python
tests/test_vectors/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
tests/test_vectors/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
tests/test_vectors/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
from enum import Enum from typing import List, Union from didcomm.common.types import VerificationMethodType, VerificationMaterialFormat from didcomm.core.serialization import json_str_to_dict from didcomm.did_doc.did_doc import VerificationMethod from didcomm.errors import DIDCommValueError from didcomm.secrets.secre...
31.508772
87
0.720304
197
0.036563
0
0
0
0
0
0
202
0.037491
d659f71d371c80b8dc403a0da872f70015a39ed6
4,886
py
Python
DialogCalibrate.py
n2ee/Wind-Tunnel-GUI
dee8708bcecee7b269823ca0ae1cf483e834aaf3
[ "BSD-3-Clause" ]
1
2018-11-29T01:36:17.000Z
2018-11-29T01:36:17.000Z
DialogCalibrate.py
n2ee/Wind-Tunnel-GUI
dee8708bcecee7b269823ca0ae1cf483e834aaf3
[ "BSD-3-Clause" ]
null
null
null
DialogCalibrate.py
n2ee/Wind-Tunnel-GUI
dee8708bcecee7b269823ca0ae1cf483e834aaf3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DialogCalibrate.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DialogCalibrate(object): def setupUi(self, DialogCalibrate):...
48.376238
109
0.710806
4,393
0.899099
0
0
0
0
0
0
666
0.136308
d65aaf4c15566afc36462d10778530ebc31a672f
1,544
py
Python
alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayOpenAppQrcodeCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayOpenAppQrcodeCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenAppQrcodeCreateResponse, self).__init__() self._qr_code_url = None self...
33.565217
106
0.729275
1,416
0.917098
0
0
593
0.384067
0
0
172
0.111399
d65b58a3fe01b63e5941799a6ac3e867eb10fc6b
1,112
py
Python
Practica3/MergeSort/Merge.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
1
2021-09-30T20:05:41.000Z
2021-09-30T20:05:41.000Z
Practica3/MergeSort/Merge.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
Practica3/MergeSort/Merge.py
JosueHernandezR/An-lisis-de-Algoritmos
9953f2d3fee6b4cfe842fdbbea83b46b62fa123f
[ "MIT" ]
null
null
null
#Análisis de Algoritmos 3CV2 # Alan Romero Lucero # Josué David Hernández Ramírez # Práctica 3 Divide y vencerás # Este es el algoritmo usado en merge, ya que los datos que devuelve no son los mismos usados en merge sort # Esto lo hice para fines prácticos y ahorro de tiempo import globalvariables as gb def onlymerge...
27.8
107
0.583633
0
0
0
0
0
0
0
0
509
0.45487
d65bf8a4a8cc448f3cadb7613881c4f3322813c5
1,068
py
Python
InteractionTracker/analytics/api/serializers.py
desertzebra/Lean-UX-Platform
1b61a4b4e0af6fc08e052fb22b4141e65122ef9a
[ "Apache-2.0" ]
34
2019-03-11T08:10:16.000Z
2021-12-14T05:53:22.000Z
InteractionTracker/analytics/api/serializers.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
6
2020-11-17T06:57:39.000Z
2022-01-04T16:51:41.000Z
InteractionTracker/analytics/api/serializers.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
28
2019-03-11T08:10:19.000Z
2021-12-14T06:02:37.000Z
""" # Interaction Tracker # @license http://www.apache.org/licenses/LICENSE-2.0 # Author @ Jamil Hussain, Zaki """ from analytics.models import (Log, ActionLog) from rest_framework import serializers class LogSerializer(serializers.ModelSerializer): class Meta: model = Log fields = ('app','ap...
32.363636
259
0.707865
857
0.802434
0
0
0
0
0
0
371
0.347378