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
ca48cfdcb7622dc5e3da4e6a96f90e5e3237d589
6,356
py
Python
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
1
2021-12-22T03:35:18.000Z
2021-12-22T03:35:18.000Z
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- # Keras implement of Glow # Glow模型的Keras版 # https://blog.openai.com/glow/ from keras.layers import * from keras.models import Model from keras.datasets import cifar10 from keras.callbacks import Callback from keras.optimizers import Adam from flow_layers import * import imageio import numpy as...
28.630631
118
0.595028
847
0.128841
292
0.044417
0
0
0
0
1,219
0.185427
ca492d3db1e7a431253fb27aa0253f4be2cd3179
1,985
py
Python
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
"""Module to take an existing r_map and replace all instances of ArrayedNode with its children. Also fix addresses of AddressedNodes to save the tree lookup penalty imposed within their address properties. This involves manipulating the tree in memory and providing an overridden AddressedNode which can be used when des...
33.083333
80
0.704786
235
0.118388
0
0
66
0.033249
0
0
628
0.316373
ca4a501860d545885c7a68c5914cd3f72741cdda
488
py
Python
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
#Palindrome check for string s s = ['d','o','g','G','o','d'] #need to define a string s = [element.lower() for element in s] #convert each element to lowercase def isPal(s): print(' isPal called with', s ) #printing the string if len(s) <= 1: #zero or one letter case print('Base case is always true...
32.533333
84
0.608607
0
0
0
0
0
0
0
0
255
0.522541
ca4bf45e859d235d8665ccec531d457472e1d9c8
4,653
py
Python
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- # # Pytorchで用いるDatasetの定義 # from numpy.lib.arraypad import pad import tensorflow as tf # 数値演算用モジュール(numpy)をインポート import numpy as np # sysモジュールをインポート import sys import math def build_dataset(feat_scp, label_scp, feat_mean, ...
25.565934
76
0.563507
0
0
0
0
570
0.090491
0
0
3,146
0.499444
ca4c30d22355972e25a3ae44eba09d3d2c67bd12
2,901
py
Python
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals from cba import components from cba.base import CBAView class TableRoot(components.Group): def init_components(self): self.initial_components = [ components.Group( css_class="ui form container", initial_co...
40.859155
106
0.454326
2,782
0.95898
0
0
0
0
0
0
344
0.11858
ca4c4257326dffb482bf77d2d863e1a9fe99032c
137
py
Python
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
null
null
null
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
1
2016-07-27T13:11:33.000Z
2016-07-27T13:11:33.000Z
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
null
null
null
from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'pushes', views.PushViewSet)
17.125
45
0.79562
0
0
0
0
0
0
0
0
9
0.065693
ca4e977a8bbc9ad8ddd91fa8ba9e6bd2a4340a7e
1,410
py
Python
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk/internal/configuration_base.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
import yaml from aztk.error import AztkError, InvalidModelError class ConfigurationBase: """ Base class for any configuration. Include methods to help with validation """ @classmethod def from_dict(cls, args: dict): """ Create a new model from a dict values The dict is...
29.375
97
0.598582
1,343
0.952482
0
0
590
0.41844
0
0
296
0.209929
ca4fb8eba7e86423c3e317fa09aefd90269c7fd8
3,836
py
Python
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #this is a comment .!/usr/bin/env python3 import feedparser import pandas as pd import time import numpy as np import sys import logging import csv logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') #from subprocess import check_output #import sys with...
30.444444
112
0.637643
0
0
0
0
0
0
0
0
1,897
0.494526
ca5127a4c0615ee23cb09f4ed4c5be2b27d633bf
31
py
Python
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
3
2021-07-24T08:50:26.000Z
2022-02-23T06:25:10.000Z
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
1
2022-03-27T17:55:39.000Z
2022-03-27T17:55:43.000Z
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
null
null
null
from .test_visualizer import *
15.5
30
0.806452
0
0
0
0
0
0
0
0
0
0
ca51bec93a8871725f379d36542bf86e0b2a84a7
1,640
py
Python
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
1
2020-11-10T08:17:37.000Z
2020-11-10T08:17:37.000Z
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: ./nb/timer.ipynb import sys if __name__ == '__main__': sys.path.append('..') import xs_lib.common as common import sure from datetime import datetime im...
23.098592
121
0.59939
0
0
759
0.462805
0
0
0
0
581
0.354268
ca52a7aab07c59186a8296a957a5d226e24e48dc
809
py
Python
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework import viewsets, mixins, status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from core.models import Restaurant from restaurants import ...
31.115385
61
0.797281
447
0.552534
0
0
0
0
0
0
25
0.030902
ca52ac0d4f6eff14369de57d20140633d902fe4f
2,269
py
Python
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import torch from torch import nn, autograd from torch.utils.data import DataLoader, Dataset import numpy as np import random from sklearn import metrics class DatasetSplit(Dataset): def __init__(self, dataset, idxs): self.dataset = data...
33.865672
139
0.585721
2,040
0.899074
0
0
0
0
0
0
165
0.072719
ca52bf10a3c13ad103c254644b80cd50cb216d86
92
py
Python
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
13
2019-12-02T15:35:14.000Z
2022-03-13T18:22:06.000Z
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
35
2019-05-13T10:24:03.000Z
2021-12-14T14:13:38.000Z
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
15
2018-10-17T15:01:13.000Z
2019-04-08T13:57:50.000Z
from django.contrib import admin from .models import Hashtag admin.site.register(Hashtag)
15.333333
32
0.815217
0
0
0
0
0
0
0
0
0
0
ca5b47ff066ef55e1d1779346f934318a0c7cf47
1,996
py
Python
2 - Code/210924 - DQN Extensions #1/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
31
2021-04-08T15:21:56.000Z
2022-03-15T08:18:33.000Z
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
import argparse import gym import ptan import random import torch import torch.optim as optim from ignite.engine import Engine from lib import dqn_model, epsilon_tracker, hyper_params, utils if __name__ == "__main__": random.seed(hyper_params.SEED) torch.manual_seed(hyper_params.SEED) params = hyper_pa...
32.721311
108
0.725952
0
0
0
0
0
0
0
0
92
0.046092
ca5def6663dd34eb3d655b1ffbb1b95127bf3583
995
py
Python
blogapp/models.py
Altaf-H-Miazee/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
1
2020-10-06T16:23:35.000Z
2020-10-06T16:23:35.000Z
blogapp/models.py
hosenmdaltaf/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
null
null
null
blogapp/models.py
hosenmdaltaf/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse class Author(models.Model): author= models.ForeignKey(User,on_delete=models.CASCADE, null=True, blank=True) profile_pic = models.ImageField(upload_to='profile_pic',null=Tr...
30.151515
101
0.730653
840
0.844221
0
0
0
0
0
0
90
0.090452
ca60b53e49cf1b6bb9d51a2399b1a6d7c2de70cd
1,487
py
Python
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np # Os dados utilizados referem-se à granulometria (tamanho de partícula) de um testemunho marinho; # Valores negativos em y indicam a profundidade da coluna estratigráfica em metros, sendo y = 0 o topo do testemunho (início do assoalho oceânico); # ...
61.958333
147
0.741762
0
0
0
0
0
0
0
0
1,157
0.769794
ca615c44a11941f16384fb424e7463ca48d5dba0
1,221
py
Python
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
146
2020-06-17T04:14:40.000Z
2022-03-16T21:59:04.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
26
2020-06-17T13:54:20.000Z
2021-12-13T12:14:06.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
46
2020-06-17T06:14:11.000Z
2022-01-29T14:07:33.000Z
import pathlib from setuptools import setup #from distutils.core import setup setup( name = 'pandas_ui', packages = ['pandas_ui'], version = '0.1', license='MIT License', description = ' pandas_ui helps you wrangle & explore your data and create custom visualizations without digging through StackOver...
33.916667
218
0.610975
0
0
0
0
0
0
0
0
733
0.600328
ca6399fda024ff3ca6fb6ffc6995041a2c15a6d0
1,644
py
Python
2021/04/day_04.py
mfep/advent-of-code-2020
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
2
2020-12-05T18:21:14.000Z
2020-12-08T19:37:51.000Z
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
class Board(object): def __init__(self, lines): assert(len(lines) == 5) self.data = [] for line in lines: self.data += [int(x) for x in line.split()] assert(len(self.data) == 25) self.drawn = [False for _ in self.data] def score(self, drawn): return sum([0 if self.drawn[idx] else self...
24.537313
87
0.583333
818
0.497567
0
0
0
0
0
0
15
0.009124
ca63c85b7dd719215770c89a01e560ca42f2a093
2,944
py
Python
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
import unittest.mock import unittest import os import pathlib from ons_csv_to_ctb_json_load import Loader from helper_funcs import conditional_mock_open, build_test_file HEADERS = ['Id', 'Database_Mnemonic', 'Variable_Mnemonic', 'Version', 'Lowest_Geog_Variable_Flag'] REQUIRED_FIELDS = {'Variable_Mnemonic': 'VAR1', ...
42.666667
115
0.638247
2,322
0.788723
0
0
0
0
0
0
1,072
0.36413
ca651fc6921278187b2a3bb6efc946859def4b2c
705
py
Python
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
#!/usr/bin/python """Sends a message that is read by the StillCaptureModule.""" import roslib; roslib.load_manifest('reefbot') import rospy from reefbot_msgs.msg import ImageCaptured if __name__ == "__main__": rospy.init_node('TestStillCaptureModule') publisher = rospy.Publisher( rospy.get_param('still_image...
25.178571
61
0.723404
0
0
0
0
0
0
0
0
159
0.225532
ca653894731570c9c358faadfe28ba24fca6a793
4,924
py
Python
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
############################################################################ # Python Tkinter All List III Save and Open ToDo Lists # Python Tkinter All List III Guardar y abrir listas de tareas pendientes ############################################################################ from tkinter import * from tkinter.f...
27.355556
91
0.647035
0
0
0
0
0
0
0
0
1,547
0.314175
ca664f99426c4233bb183526150ff77bb24145d7
848
py
Python
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
1
2022-02-20T14:35:42.000Z
2022-02-20T14:35:42.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
4
2022-03-02T07:18:01.000Z
2022-03-31T07:09:30.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
null
null
null
"""Coordinator for SleepIQ.""" from datetime import timedelta import logging from asyncsleepiq import AsyncSleepIQ from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator _LOGGER = logging.getLogger(__name__) UPDATE_INTERVAL = timedelta(seconds=60) c...
25.69697
75
0.676887
528
0.622642
0
0
0
0
0
0
118
0.139151
ca6ad152789223ad92fe49facebc426481abe551
815
py
Python
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages with open("requirements.txt") as requirements: setup( name="supervisor-remote-logging", version="0.0.3", description="Stream supervisord logs various remote endpoints", author="New Relic Site Engineering Team", url="https://github....
37.045455
76
0.631902
0
0
0
0
0
0
0
0
344
0.422086
ca6c22adc311353b790d1fd415522f311a837d13
401
py
Python
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
1
2020-11-19T06:44:15.000Z
2020-11-19T06:44:15.000Z
from .association_rule import association_rule from .association_rule import association_rule_visualization from .als import als_train from .als import als_predict from .als import als_recommend from .collaborative_filtering import collaborative_filtering_train from .collaborative_filtering import collaborative_filteri...
50.125
70
0.902743
0
0
0
0
0
0
0
0
0
0
ca6e127b34486b1fde939d71dcd9e8af2f3a4daa
322
py
Python
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
2
2015-08-06T14:08:39.000Z
2015-09-29T09:47:26.000Z
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
__author__ = 'avraham' from xmlrpclib import ServerProxy port = 9876 class Client(ServerProxy): def __init__(self, ip='127.0.0.1'): ServerProxy.__init__(self, ('http://{}:{}'.format(ip, port))) def get_methods(self): return [x for x in self.system.listMethods() if not x.startswith('sys')...
24.769231
84
0.652174
249
0.773292
0
0
0
0
0
0
39
0.121118
ca6e3b8ba437468f1d2e6ebc7b338d1c4822e773
311
py
Python
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Bolinooo" def main(): L1 = [i for i in range(1, 10)] L2 = [i * 2 for i in range(1, 10)] print("Step 1: Import the correct algorithm") print("Step 2: Try out the correct algorithm using the above lists or your own") if __name__ == "__main__": main()
19.4375
84
0.623794
0
0
0
0
0
0
0
0
152
0.488746
ca6fb98607ef14400c5def23eec2923315d9fa2b
3,293
py
Python
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP TABLE IF EXISTS users;" song_table_drop = "DROP TABLE IF EXISTS songs;" artist_table_drop = "DROP TABLE IF EXISTS artists;" time_table_drop = "DROP TABLE IF EXISTS \"time\";" # CREATE TABLES songplay_table_create = (""" CRE...
28.387931
117
0.670817
0
0
0
0
0
0
0
0
2,649
0.804434
ca705b4d66574b3cbb4b789138782fb79432f6ae
9,048
py
Python
Data Gen/relgen.py
selinozdas/ObsCo
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
1
2018-10-22T18:44:31.000Z
2018-10-22T18:44:31.000Z
Data Gen/relgen.py
selinozdas/epsikon
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
null
null
null
Data Gen/relgen.py
selinozdas/epsikon
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
null
null
null
from pymongo import MongoClient #change url mongo_url = 'mongodb://127.0.0.1:27017/' client = MongoClient() db = client['obsco'] db.relations.insert_many([ { 'voter':12345671, 'voted':12345672, 'votes':[1,1,1,1,1,0,0,1,1] }, { 'voter':12345671, 'voted':12345673, ...
19.542117
44
0.383842
0
0
0
0
0
0
0
0
1,957
0.216291
ca73356a167a495ef7f15554e401d4c020b25f47
822
py
Python
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
1
2021-12-07T10:54:48.000Z
2021-12-07T10:54:48.000Z
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
""" Advent Of Code 2021 Day 9 Date: 09-12-2021 Site: https://adventofcode.com/2021/day/9 Author: Tayyrov """ def isValid(r, c): return 0 <= c < cols and 0 <= r < rows input_file = open('../input_files/day9_input', 'r') matrix = input_file.readlines() rows = len(matrix) cols = len(matrix[0].s...
22.216216
64
0.519465
0
0
0
0
0
0
0
0
200
0.243309
ca73616e330f62bf07e4bc8f69070d118dc75955
6,532
py
Python
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
56
2020-01-12T05:45:59.000Z
2022-03-17T15:04:15.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
7
2020-01-28T23:14:45.000Z
2022-02-10T01:56:48.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
2
2020-02-29T14:51:23.000Z
2020-03-07T03:23:27.000Z
import time from tqdm import tqdm import torch import torch.nn.functional as F from evkit.utils.losses import weighted_l1_loss, weighted_l2_loss, softmax_cross_entropy, dense_cross_entropy from tlkit.models.lifelong_framework import LifelongSidetuneNetwork from tlkit.data.datasets.taskonomy_dataset import get_lifelon...
39.829268
161
0.686467
0
0
0
0
0
0
0
0
2,301
0.352266
ca74d344cab07cbfd869efaea460c4c5bc949315
316
py
Python
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("de") # Importiere die Klasse Doc from ____ import ____ # Erwarteter Text: "Na, alles klar?" words = ["Na", ",", "alles", "klar", "?"] spaces = [____, ____, ____, ____, ____] # Erstelle ein Doc mit den Wörtern und Leerzeichen doc = ____(____, ____=____, ____=____) print(doc.text)
21.066667
50
0.674051
0
0
0
0
0
0
0
0
141
0.444795
ca74e85f36d8815a258660b91b00fe2163b98715
2,602
py
Python
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
1
2021-11-26T10:08:39.000Z
2021-11-26T10:08:39.000Z
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
null
null
null
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
2
2020-12-10T08:07:05.000Z
2021-01-07T15:26:04.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 10 11:00:53 2020 @author: Gabriel """ import chess import chess.svg import random #Fonction qui demander un mouvement dans la console et le retourn sous la forme d'un chess move def recup_move(): case_dep = input("Case départ :") case_arr = input("Case arrivée ...
27.680851
152
0.609147
0
0
0
0
0
0
0
0
955
0.36548
ca7506243947fc032fb70e7910e132594139685a
43
py
Python
libs/pyexcel/__version__.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
null
null
null
libs/pyexcel/__version__.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
3
2020-02-24T03:41:18.000Z
2021-12-13T20:45:52.000Z
pyexcel/__version__.py
heholek/pyexcel
bf111f20b51eeb10bf6020af84156fde3cb26b38
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.5.15' __author__ = 'C.W.'
14.333333
22
0.627907
0
0
0
0
0
0
0
0
14
0.325581
ca75cca3856c88a531bc1aaa1c544157626687b1
3,748
py
Python
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2018-08-21T06:28:36.000Z
2018-08-21T06:28:36.000Z
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2019-05-30T06:23:41.000Z
2019-09-03T09:49:06.000Z
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2021-06-30T12:36:25.000Z
2021-06-30T12:36:25.000Z
import unittest from coinplus_solo_redeem.common import wif_export_bitcoin, compute_public_key_sec256k1, address_from_publickey_bitcoin class TestBitcoin(unittest.TestCase): """test of the bitcoin conversion from private key to wif""" def setUp(self): self.test_vector = [("28cb1bccdc33f93c94b73360cef14...
96.102564
153
0.743863
3,610
0.96318
0
0
0
0
0
0
2,300
0.613661
ca75f434148d96356dd723dec0e4898094cb7430
1,250
py
Python
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
import asyncio @asyncio.coroutine def main(): print('Hello from main') yield from asyncio.sleep(1) loop = asyncio.new_event_loop() loop.run_until_complete(main()) loop.close() ################################################################# import asyncio async def main(): print('Hello from main') ...
17.123288
65
0.556
0
0
72
0.0576
91
0.0728
292
0.2336
389
0.3112
ca75fcb3c8515832e54adfde75adb4f6c4ec10df
98
py
Python
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
13
2020-11-05T04:22:51.000Z
2022-02-27T08:44:50.000Z
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
null
null
null
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
2
2020-11-10T10:01:20.000Z
2021-04-07T02:33:29.000Z
from django.apps import AppConfig class Class2Config(AppConfig): name = 'tutorials.class_2'
16.333333
33
0.765306
61
0.622449
0
0
0
0
0
0
19
0.193878
ca77263261ea32fe43d682889ede3057c2714eb1
953
py
Python
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
1
2021-11-25T09:33:30.000Z
2021-11-25T09:33:30.000Z
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
#!/usr/bin/env python3 from typing import ( Tuple, ) from .character import Character from .gen.player_class import PlayerClass from .gen.player_stats import STATS_BY_PLAYER_CLASS from .gen.equipment import GearType from .stats import Stats class Player(Character): def __init__( self, userna...
25.078947
76
0.645331
704
0.73872
0
0
0
0
0
0
22
0.023085
ca77ed517dcb7e292e04556306984fb49fef89ce
8,361
py
Python
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2015-11-08T11:31:20.000Z
2015-11-08T11:31:20.000Z
m2wsgi/io/gevent.py
ged/m2wsgi
669ad356ee69ab1dffb28fb35dd7bde415999209
[ "MIT" ]
3
2018-02-25T02:16:32.000Z
2018-02-25T02:16:41.000Z
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2021-11-29T00:01:00.000Z
2021-11-29T00:01:00.000Z
""" m2wsgi.io.gevent: gevent-based I/O module for m2wsgi ===================================================== This module provides subclasses of m2wsgi.WSGIHandler and related classes that are specifically tuned for running under gevent. You can import and use the classes directory from here, or you can select th...
32.917323
78
0.672527
5,928
0.709006
0
0
282
0.033728
0
0
3,291
0.393613
ca783de6ff83c65ac31c3c3f5577a1372db396ed
8,584
py
Python
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # for use with Python 3 # text_buffer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at ...
37.484716
174
0.681034
7,435
0.866146
0
0
0
0
0
0
3,664
0.426841
ca783e77d01b6a65f34fba8804bdd660d6dfe9a6
886
py
Python
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
""" This Lambda parses the output of ModelQualityStep to extract the value of a specific metric """ import json import boto3 sm_client = boto3.client("sagemaker") s3 = boto3.resource('s3') def lambda_handler(event, context): # model quality report URI model_quality_report_uri = event['model_quality_report_u...
26.058824
98
0.673815
0
0
0
0
0
0
0
0
302
0.340858
ca7aaf0d27786d0d1b6110d5b7821183f0fa08f7
2,383
py
Python
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
3
2020-02-18T20:40:11.000Z
2020-03-16T15:05:13.000Z
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
from data_manager import DataManager, plot_fehpass_mention, plot_score_distribution from scraper import Scraper from datetime import date as dt from cloud import Cloud import sys import json def load_config(): with open("./ressources/config.json") as f: config = json.load(f) return config def save_last_import()...
25.351064
97
0.738984
0
0
0
0
0
0
0
0
711
0.298363
ca7bcebe8a789ca0d1b9184a805dc93a7fdf5be0
4,679
py
Python
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
19
2017-06-29T07:41:26.000Z
2021-11-03T18:48:48.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
175
2017-06-29T09:37:43.000Z
2021-07-09T12:55:28.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
8
2017-10-31T08:53:12.000Z
2021-07-21T06:14:43.000Z
#!/usr/bin/env python """ Edited from navigation.py in turtlebot2i_navigation module """ import rospy import actionlib from nav_msgs.msg import Odometry from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal import geometry_msgs.msg from sensor_msgs.msg import LaserScan from tf.transformations import quatern...
36.554688
112
0.70421
0
0
0
0
0
0
0
0
755
0.161359
ca7cc46e8c8e4b7eedde7891b3c0b03ff8e70a99
6,320
py
Python
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
44
2016-10-29T18:53:00.000Z
2022-03-24T08:37:05.000Z
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
null
null
null
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
37
2016-10-26T23:07:39.000Z
2022-01-21T19:10:35.000Z
# Stepper Motor Shield/Wing Driver # Based on Adafruit Motorshield library: # https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library # Author: Tony DiCola import pca9685 # Constants that specify the direction and style of steps. FORWARD = const(1) BACKWARD = const(2) SINGLE = const(1) DOUBLE = const(2) INTERLEA...
36.959064
99
0.54557
5,439
0.860601
0
0
0
0
0
0
836
0.132278
ca7e72ac8eca8a96798ab1b879172ea0ca0060fa
7,333
py
Python
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
null
null
null
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
8
2021-06-14T18:10:53.000Z
2022-03-23T18:30:10.000Z
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
1
2022-02-22T21:24:58.000Z
2022-02-22T21:24:58.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class OperationFilterKgraphTopNParameters(Model): """NOTE: This class is auto ...
38.798942
269
0.684167
7,094
0.967408
0
0
5,220
0.711851
0
0
4,964
0.67694
ca7fda4d86c2fba009810467ffdbbaf903beb734
138
py
Python
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
# Magic utility that "redirects" to pythoncomxx.dll import pywintypes pywintypes.__import_pywin32_system_module__("pythoncom", globals())
34.5
67
0.833333
0
0
0
0
0
0
0
0
62
0.449275
ca8000a403d5b123e875d49d431c426113a4a558
1,119
py
Python
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
78
2020-10-26T11:08:41.000Z
2022-03-31T18:38:40.000Z
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
15
2020-10-31T11:46:07.000Z
2022-01-21T09:01:43.000Z
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
13
2020-11-12T00:07:39.000Z
2022-01-14T03:07:45.000Z
__all__ = [ "Metric", "Metrics", "MetricCreateRequest", "MetricUpdateRequest", "Result", "Results", "ResultCreateRequest", "ResultUpdateRequest", "EvaluationTable", "EvaluationTables", "EvaluationTableCreateRequest", "EvaluationTableUpdateRequest", "ResultSyncRequest"...
23.3125
58
0.731903
0
0
0
0
0
0
0
0
348
0.310992
ca8027790a4fceb962c245fd135028de87ab82b7
530
py
Python
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
6
2018-04-18T03:42:50.000Z
2021-11-20T18:46:37.000Z
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
13
2018-10-01T11:45:05.000Z
2022-03-16T12:28:36.000Z
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
5
2017-12-09T09:02:17.000Z
2021-11-15T16:55:30.000Z
#!/usr/bin/env python # # test_importall.py - # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # import pkgutil import importlib import fsl def test_importall(): def recurse(module): path = module.__path__ name = module.__name__ submods = list(pkgutil.iter_modules(path, '{}....
16.5625
70
0.615094
0
0
0
0
0
0
0
0
99
0.186792
ca810acaf114d27759397ca02efb21720c0a1ece
14,285
py
Python
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
1
2015-02-05T13:15:00.000Z
2015-02-05T13:15:00.000Z
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # propagation module # import datetime import os from random import random import re import sys import weakref import traceback import xml.sax.saxutils as saxutils import dateutil.parser as date_parser from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.orm.session import o...
34.756691
94
0.566398
12,312
0.861883
0
0
0
0
0
0
3,378
0.236472
ca81d00c9b08ea72e49aff7d13fb4cf046744724
517
py
Python
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
from imdbTask1 import* from imdbTask4 import* def get_movie_list_details(api): movieListDetails=[] for i in api[:10]: link=i["movieLink"] movieUrl=Scrap_Movie_Detail(link) new=movieUrl.copy() #They copy() method returns a shallow copy of the dictionary. movieUrl.clear() #...
34.466667
91
0.717602
0
0
0
0
0
0
0
0
154
0.297872
ca862c6e479fb1bc4dd13ef50993c3c14c1ddfc9
2,084
py
Python
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
2
2016-06-16T07:42:43.000Z
2016-06-24T23:49:19.000Z
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
null
null
null
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
null
null
null
from tkinter import * class Animation(object): DELAY = 20 # Override these methods when creating your own animation def mousePressed(self, event): pass def keyPressed(self, event): pass def keyReleased(self,event):pass def leftMouseReleased(self,event):pass def mouseMotion(self,event):pass...
30.202899
70
0.604127
2,057
0.987044
0
0
0
0
0
0
363
0.174184
ca8899e5526768d89fe639ff3c58ac5fe8bcfec8
3,726
py
Python
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
null
null
null
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
null
null
null
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
1
2021-11-22T09:18:53.000Z
2021-11-22T09:18:53.000Z
import tqdm import copy import torch import numpy as np import cv2 from models import Baseline, loadWeights, BaselineSepDyBN from datasets import WFLW256, datasetSize, kptNum import time from ptflops import get_model_complexity_info import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" def testWFLW256Baseline(mode, test...
40.064516
102
0.618357
0
0
0
0
0
0
0
0
508
0.136339
ca890cc0c4b716f777412a40314e358dfa561905
1,365
py
Python
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2019-03-05T22:35:47.000Z
2019-03-05T22:35:55.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2020-07-16T21:55:43.000Z
2021-05-08T12:14:05.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
4
2019-03-08T01:42:00.000Z
2021-01-28T03:01:34.000Z
from collections import defaultdict from itertools import product from functools import lru_cache from sys import setrecursionlimit setrecursionlimit(10000) @lru_cache(maxsize=6) def p_outcomes(a_dice, d_dice): total = 0 results = defaultdict(int) for a_rolls in product(range(1,7), repeat=a_dice): ...
29.673913
84
0.612454
0
0
0
0
1,059
0.775824
0
0
9
0.006593
ca8a90e5ceb797a2b9672b05c74b49ae1602ffc4
1,240
py
Python
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Puzzle Title: AoC 2021 Day 6: Lanternfish Puzzle Link: https://adventofcode.com/2021/day/6 Solution Author: Luke Spademan <info@lukespademan.com> Solution License: MIT """ import fileinput from collections import Counter import copy def parse_input(): for line in fileinput.in...
22.545455
79
0.642742
0
0
0
0
0
0
0
0
338
0.272581
ca8bb0a6b5e76ac3dc813001f4574315eedd8360
2,082
py
Python
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3 import math class Particle(): def __init__(self, position, velocity, acceleration): self.position = position self.velocity = velocity self.acceleration = acceleration self.absA = self.__absoluteAccelleration() def __absoluteAccelleration(self): ...
34.131148
104
0.597502
1,833
0.880403
0
0
0
0
0
0
110
0.052834
ca8c4743210b0654e5b22385db2cf3bf8ce7e230
5,591
py
Python
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
1
2021-02-08T04:57:02.000Z
2021-02-08T04:57:02.000Z
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
null
null
null
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
4
2019-03-25T14:25:55.000Z
2019-05-23T14:09:33.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import pcap import sys import socket import struct class BasicPacketInfo: def __init__( self, src, dst, srcPort, dstPort, protocol, timestamp, generator, ): # Info to generate flows from packer...
22.913934
163
0.567519
5,480
0.980147
0
0
0
0
0
0
271
0.048471
ca8c5cc3fe65bbbd435e863800b01663c3b5d815
1,414
py
Python
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
#!python3 #!/usr/local/bin # encoding: utf-8 import os from re import * import sys from getopt import getopt import pandas as pd os.system("date") #os.system("poetry -i misc2.txt -o result.json") # pegar no ficheiro do poema # retirar metadados e crirar .txt temporario só com poema # usar coisa2 neste ficheiro, ret...
19.108108
58
0.659123
0
0
0
0
0
0
0
0
763
0.538842
ca8d13ea07eda5a6096abb0bf841921b8a0004f4
614
py
Python
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import imutils from matplotlib import pyplot as plt img = cv2.imread('img1.png',0) # color = ('b','g','r') # for i,col in enumerate(color): # histr = cv2.calcHist([img],[i],None,[256],[0,256]) # plt.plot(histr,color = col) # plt.xlim([0,256]) # plt.show() h...
23.615385
57
0.610749
0
0
0
0
0
0
0
0
217
0.35342
ca8e74bdcdf56ae9a145fc5960607020ba877bc3
25,083
py
Python
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 17 09:39:23 2020 @author: u0101486 """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 5 12:26:49 2019 @author: u0101486 """ # Aggregate QC measures import os import sys import numpy as np import matplotlib.pyplot as plt ...
33.134742
175
0.521429
0
0
0
0
0
0
0
0
16,696
0.66563
ca8f100cbcd38d31bcc26bca290e0a38cd1a6502
5,987
py
Python
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
4,025
2021-01-05T23:52:33.000Z
2022-03-31T11:17:44.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
318
2021-01-06T08:14:36.000Z
2022-03-15T07:23:39.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
449
2021-01-06T17:30:17.000Z
2022-03-30T03:42:17.000Z
import json import os import torch from .distributed_backend import DistributedBackend class DeepSpeedBackend(DistributedBackend): """Distributed backend using the DeepSpeed engine.""" BACKEND_MODULE_NAME = 'deepspeed' BACKEND_NAME = 'DeepSpeed' def wrap_arg_parser(self, parser): if not se...
34.80814
78
0.601637
5,895
0.984633
0
0
352
0.058794
0
0
1,914
0.319693
ca921305ecd69d1337aa587c3ee6490624527464
361
py
Python
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
27
2021-05-28T10:43:50.000Z
2022-03-29T14:30:17.000Z
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
13
2021-05-29T01:13:12.000Z
2022-01-08T14:53:21.000Z
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
13
2021-06-08T15:21:36.000Z
2022-02-07T13:23:00.000Z
from __future__ import annotations from typing import Any from .publisher import Publisher class Just(Publisher): def __init__(self, value: Any) -> None: super().__init__() self.value: Any = value def dispatch(self) -> Any: self.upstream(self.value) def send(self, value: Any) ->...
21.235294
43
0.66205
266
0.736842
0
0
0
0
0
0
0
0
ca9214f2ddb4c13d7bee6606639e425ff6450b6f
329
py
Python
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-24 04:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student', '0002_student_clg_reg_no'), ] operations = [ migrations.RemoveField( model_name='student', name='username', ...
18.277778
47
0.595745
246
0.74772
0
0
0
0
0
0
98
0.297872
ca9339f4332b4f70213be088c7de5c5d457e5604
418
py
Python
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
8
2019-05-25T21:17:07.000Z
2020-10-18T11:46:12.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
1
2019-05-25T21:28:06.000Z
2019-05-25T21:28:06.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
null
null
null
from ..protocol import Protocol from .logs_protocol import LogsProtocol class UserLogsProtocol(Protocol): def __init__(self): self.name = "UserLogsProtocol" self.logs_protocol = LogsProtocol() self.functions = { "upload_log": self.logs_protocol.upload_log, "delete_l...
29.857143
56
0.667464
343
0.820574
0
0
0
0
0
0
42
0.100478
ca963c794e6b8ca2f4dbf07be128d72d92a54e5c
9,514
py
Python
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
42.663677
84
0.586189
8,714
0.848491
0
0
0
0
0
0
6,302
0.613632
ca98069cb091fd65e974456a923332e50244ac8b
484
py
Python
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
#!/usr/bin/python3 """ Search API """ import requests import sys if __name__ == '__main__': data = {'q': ''} try: data['q'] = sys.argv[1] except: pass data = requests.post('http://0.0.0.0:5000/search_user', data) try: q_to_json = data.json() if not q_to_json: ...
22
79
0.522727
0
0
0
0
0
0
0
0
135
0.278926
ca99a6d0c24e8be79c8b7ceda99e07215c385c4b
145
py
Python
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
2
2019-07-18T22:43:49.000Z
2020-03-09T03:27:41.000Z
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
20
2019-02-27T19:08:03.000Z
2021-06-22T16:47:32.000Z
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
null
null
null
import logging from discovery.__version__ import __version__ log = logging.getLogger("discovery-client") log.addHandler(logging.NullHandler())
20.714286
45
0.82069
0
0
0
0
0
0
0
0
18
0.124138
ca9ab792d6449ca71d84ac63d8045de4ded0d016
114,149
py
Python
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
17
2021-05-19T01:42:53.000Z
2022-01-23T13:23:59.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
6
2021-05-26T15:36:52.000Z
2021-09-23T05:55:49.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
7
2021-05-23T17:29:57.000Z
2022-03-31T01:37:55.000Z
def jHex(word): jap = list(word) List = [] for i in jap: if i == " ": List.append("9940") elif i == ",": List.append("9941") elif i == ".": List.append("9942") elif i == "・": List.append("9943") elif i == ":": ...
27.479297
31
0.363481
0
0
0
0
0
0
0
0
22,799
0.192741
ca9b8ab6ce1aa3e43c4ff91b4bd83dc9639155b3
6,548
py
Python
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
4
2019-07-22T06:56:56.000Z
2020-12-29T20:06:06.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
5
2018-04-01T11:42:11.000Z
2020-09-28T05:15:05.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
1
2019-07-20T13:40:59.000Z
2019-07-20T13:40:59.000Z
"""structure_tests This module contains tests for the DGLM structures """ # pylint: disable=no-self-use import unittest from nose.tools import assert_equals, assert_almost_equal # type: ignore from nose.tools.nontrivial import raises # type: ignore import numpy as np from pssm.dglm import NormalDLM from pssm.structu...
47.107914
80
0.651955
6,195
0.94609
0
0
706
0.107819
0
0
1,964
0.299939
ca9b95c978ba4ebdf7212bca4a59b66c0c1f46e7
356
py
Python
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
import flask import numpy as np buff = [] app = flask.Flask(__name__) @app.route("/",methods=['POST']) def index(): global buff datas = flask.request.get_json(force=True) buff.extend(datas["data"]) return "",200 @app.route("/save/",methods=['GET']) def save(): np.save("record.npy", buff) retu...
17.8
46
0.620787
0
0
0
0
255
0.716292
0
0
53
0.148876
ca9bf7b2d5b27c913dc9d1327604f448153b014a
13,207
py
Python
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
13
2018-06-02T09:11:15.000Z
2020-08-29T01:01:19.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
1
2021-01-17T14:03:13.000Z
2021-01-17T14:03:13.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
6
2018-06-02T16:20:47.000Z
2021-12-30T22:26:54.000Z
# https://www.cefconnect.com/closed-end-funds-screener # https://www.cefa.com/ # http://cefdata.com/funds/clm/ # https://www.cefconnect.com/fund/CLM # https://www.cefchannel.com/clm/ from framework.utils import * from framework.base import * from framework.meta_data import * from framework.stats_basic import * from ...
41.271875
678
0.673885
0
0
0
0
0
0
0
0
5,363
0.406073
ca9c994cab0cb35cf5defa4b1739417be15fb6c9
2,616
py
Python
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2022-03-08T12:27:08.000Z
2022-03-08T12:27:08.000Z
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
null
null
null
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2020-05-09T01:07:03.000Z
2020-05-09T01:07:03.000Z
""" Functions defined on vector valued fields """ import xarray as xr import xgcm from .ecco_utils import get_llc_grid def UEVNfromUXVY(xfld,yfld,coords,grid=None): """Compute east, north facing vector field components from x, y components by interpolating to cell centers and rotating by grid cell angle ...
30.068966
84
0.66552
0
0
0
0
0
0
0
0
1,836
0.701835
045f42e7e3687860c6585444a23e801817f61e12
2,409
py
Python
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import os import logging from logging.config import fileConfig from util import DatabaseUtil as dbu from util import ExportUtil as eu fileConfig("logging_config.ini") logger = logging.getLogger(__name__) class StockExporter(): def __init__(self, export_dir, stock_code, start_date, end_da...
43.8
114
0.602325
2,176
0.903279
0
0
0
0
0
0
490
0.203404
046046d511220f9b7bfb8a21f8d381f0f028cf8d
34,758
py
Python
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/plastic-evolvability-avida
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2021-09-16T14:47:43.000Z
2021-10-31T04:55:16.000Z
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
null
null
null
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2020-08-19T20:01:14.000Z
2020-12-21T21:24:12.000Z
from helpers import * import copy import pygame import random # Render vars inst_x = 32 inst_width = 128 arrow_width = inst_x / 2 font_size = 10 font = pygame.font.SysFont('ubuntu', size = font_size) large_font_size = 20 large_font = pygame.font.SysFont('ubuntu', size = large_font_size) # Basic Avidian class. Handles...
43.831021
101
0.466857
34,406
0.989873
0
0
0
0
0
0
3,115
0.08962
04611e1ebaeb1a4f4d094c70fa5acd7403c11436
366
py
Python
GaiaLab/hits/filters/__init__.py
bombrun/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
8
2018-06-21T14:36:25.000Z
2020-04-04T18:21:18.000Z
GaiaLab/hits/filters/__init__.py
MaraBucur/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
7
2018-11-26T15:01:27.000Z
2019-07-12T14:21:34.000Z
GaiaLab/hits/filters/__init__.py
MaraBucur/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
5
2018-07-24T07:20:47.000Z
2021-06-02T07:17:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Filters for the datasets. Natively implemented are the Kalman filter and a single-pole low-pass filter. There is also a base filter class created for subclassing to allow the creation of custom filters. """ from . import kalman from . import lowpass __author__ = "Toby ...
26.142857
72
0.740437
0
0
0
0
0
0
0
0
291
0.795082
0461b582aac0fa16e0fc7a9e87a02f30b33f771e
302
py
Python
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
5
2018-07-31T20:26:22.000Z
2019-05-07T16:36:23.000Z
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
1
2019-05-07T18:21:59.000Z
2020-09-18T10:45:39.000Z
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class AbstractTransformation: __metaclass__ = ABCMeta @abstractmethod def transform_image(self, image): pass @abstractmethod def transform_position(self, x, y, width, height): pass @abstractmethod def generate_random(self): pass
20.133333
59
0.735099
259
0.857616
0
0
184
0.609272
0
0
0
0
046277d3c02237d1299502009394a5bf6a8ac7e5
6,262
py
Python
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
40
2020-05-19T01:31:02.000Z
2022-01-28T00:25:33.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
3
2020-09-09T16:04:17.000Z
2022-03-18T00:59:39.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
8
2020-09-08T14:11:16.000Z
2022-01-28T00:25:41.000Z
#!/bin/env/python3 from types import ModuleType from lc.models import torch as model_def from utils import AverageMeter, Recorder, format_time, data_loader, compute_acc_loss import argparse import torch from torch import optim import torch.backends.cudnn as cudnn import torch.nn as nn import time import os if __name__...
44.728571
125
0.621048
0
0
0
0
0
0
0
0
1,394
0.222613
0463351ecd48fd4a8685d1b1e0e86fd55a8bbaa2
1,249
py
Python
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Copyright (C) 2007-2015 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- from noc.core.script.base import BaseScript from noc.sa.interfaces.isyncvlans import ISyncVlans class Sc...
33.756757
92
0.552442
936
0.7494
0
0
0
0
0
0
338
0.270616
0463d410530853a1c2fe7284a9f305e2222bedae
1,875
py
Python
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
from types import new_class from AoCUtils import * result = 0 partNumber = "2" writeToLog = True if writeToLog: logFile = open("log" + partNumber + ".txt", "w") else: logFile = "stdout" printLog = printLogFactory(logFile) start1 = 8 start2 = 9 # Example # start1 = 4 # start2 = 8 score1 = 0 score2 = 0 di...
21.067416
95
0.5488
0
0
0
0
0
0
0
0
166
0.088533
046764af8b8febc01686b2caf4cec52bcb012ff6
20,510
py
Python
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
22
2021-01-21T19:57:39.000Z
2022-03-14T02:34:01.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
3
2021-05-20T16:34:21.000Z
2021-06-23T19:54:32.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
7
2021-04-28T04:18:09.000Z
2021-06-23T00:20:06.000Z
# -*- coding: utf-8 -*- """ This module holds functions for displaying different kinds of menus. All menus are reaction based. """ import asyncio from copy import copy from inspect import isawaitable from typing import List, Optional, Union, Callable import discord from discord import Embed from discord.ext import c...
35.982456
120
0.570697
7,958
0.387817
0
0
0
0
15,282
0.744737
7,677
0.374123
046b23b296bfcedfcca9aaf23e3a6837b6efe373
9,706
py
Python
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import re import importlib from django.utils.translation import ugettext_lazy as _ from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.functional import cached_property from model_utils import Choices from collections im...
35.166667
119
0.637441
8,690
0.895322
0
0
8,777
0.904286
0
0
2,510
0.258603
046f7ca774853f5d3eb7867b83c71d1422a4ad73
36
py
Python
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
1
2021-09-14T16:30:44.000Z
2021-09-14T16:30:44.000Z
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
22
2021-02-26T06:35:00.000Z
2021-07-16T12:37:58.000Z
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
2
2021-03-10T19:50:28.000Z
2021-08-23T08:02:36.000Z
from .test_case_05 import TestCase05
36
36
0.888889
0
0
0
0
0
0
0
0
0
0
046fd9edd934bed85046c10ef5960e82ca8128c6
2,686
py
Python
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
import json import os import unittest from pywink.api import get_devices_from_response_dict from pywink.devices import types as device_types class PowerstripTests(unittest.TestCase): def test_state_powerstrip_state_should_be_true_if_one_outlet_is_true(self): with open('{}/api_responses/pivot_power_geniu...
43.322581
115
0.70551
2,541
0.946016
0
0
0
0
0
0
192
0.071482
04700730113a9f3f7622d5a4ec5c89cef15b8e21
963
py
Python
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
null
null
null
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
4
2020-08-26T23:35:37.000Z
2020-09-22T21:13:25.000Z
src/python/pyLCIO/io/StdHepReader.py
JeffersonLab/hps-lcio
b83447dd8189d5f541601343066f8e3b4621f4ec
[ "BSD-3-Clause" ]
1
2020-08-26T19:31:19.000Z
2020-08-26T19:31:19.000Z
''' Created on Dec 4, 2012 @author: <a href="mailto:christian.grefe@cern.ch">Christian Grefe</a> ''' import os from pyLCIO.io.Reader import Reader from pyLCIO import EVENT, IMPL, UTIL class StdHepReader( Reader ): ''' Class to hold an LCStdHepRdr object ''' def __init__( self, fileName=None): ''' C...
25.342105
71
0.589823
769
0.798546
0
0
0
0
0
0
205
0.212876
0470d58f55c3b1b314cc0262448436f7712baf8d
6,440
py
Python
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
from contract import Forge,Validator,TOH,NDAO from privateKey import my_address, private_key # from web3.auto.infura.rinkeby import w3 from web3.auto import w3 import time # 引入time模块 another = "0x2E8b222CFac863Ec6D3446c78fD46aAEA289A9fb" another_privateKey = "078e9ed558a9afd1e7e27b9884fbcc95f8fa406bd02de3a2a19fbac401...
29.406393
92
0.678416
0
0
0
0
0
0
0
0
1,298
0.187356
0470f24c34be36437ebfed026dd28c5941c7d5c4
815
py
Python
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-09-07T15:39:10.000Z
2022-03-15T03:48:34.000Z
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
394
2020-10-08T08:05:54.000Z
2022-03-31T10:28:27.000Z
probe/influx.py
jelitox/asyncdb
c5cad9857baa14fa949d34fa29406024d68d5735
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-09-07T15:38:56.000Z
2021-09-26T03:52:27.000Z
from asyncdb import AsyncDB, AsyncPool import asyncio loop = asyncio.get_event_loop() asyncio.set_event_loop(loop) params = { "host": "127.0.0.1", "port": "8086", "database": 'testdb', "user": "influxdata", "password": "12345678" } DRIVER='influx' async def test_connect(driver, params, event_lo...
22.638889
67
0.656442
0
0
0
0
0
0
353
0.433129
127
0.155828
0471e20c45f11d47b6540524d445d34d138a76b6
1,925
py
Python
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
# coding: utf-8 """ Director API This is the oSparc's director API # noqa: E501 OpenAPI spec version: 0.1.0 Contact: support@simcore.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import simcore_director_sdk from simcore_director_s...
25
101
0.677922
1,455
0.755844
0
0
0
0
0
0
1,103
0.572987
04723df89eebb8cfa4f96fd91422e906e34ae72a
9,953
py
Python
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
2
2018-01-18T13:22:29.000Z
2018-02-03T13:10:20.000Z
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
from .consts import * L1_DOMAIN_RULES = [ {'type' : RULETYPE_EQUAL, 'text' : 'ru', 'action' : ACTION_FOLLOW, 'matcherkey' : 'r:net:domains_ru', 'entities' : [ {'name' : 'geo:ru:country/russia'}, ] }, {'type' : RULETYPE_EQUAL, 'text' : 'su', 'action' : ACTION_FOLLOW, 'matcherkey'...
27.193989
107
0.437054
0
0
0
0
0
0
0
0
4,342
0.43625
0472705f71b9f473bebe34fc4fa5caeef5f89456
17,557
py
Python
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
1
2020-05-27T04:24:36.000Z
2020-05-27T04:24:36.000Z
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
#Ui Widgets for pygame #this is supposed to make it as easy as possible to make and use buttons and other widgets #Documentation at 'https://github.com/TheBigKahuna353/PygameUI' #All made by Jordan Withell import pygame #make screen quick def Window(w = 500, h = 500): pygame.init() return pygame.dis...
43.8925
361
0.566327
15,956
0.908811
0
0
0
0
0
0
2,451
0.139602
04763099553a3f60ab99174135b7fe8f42971ff3
2,108
py
Python
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
4
2021-06-30T19:58:59.000Z
2021-07-27T13:43:49.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
2
2021-07-10T16:08:25.000Z
2021-07-12T02:15:40.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
3
2021-07-08T03:00:40.000Z
2021-09-08T19:57:50.000Z
import discord import blurple.io as io class ReactionAddBasic(io.Reply): """An unopinionated, lower level class to wait for a user to add a reaction.""" event = "raw_reaction_add" async def on_reply_init(self, message: discord.Message): """Sepcialized to pass message object.""" self.mess...
37.642857
97
0.675047
2,063
0.976799
0
0
0
0
863
0.408617
750
0.355114
047760c3a98e8a5a4320f0edc7bf1725194eacc7
341
py
Python
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-14 16:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_takeclass'), ] operations = [ migrations.AlterUniqueTogether( name='takeclass', unique_together={('sid', 'cid'...
18.944444
47
0.583578
256
0.750733
0
0
0
0
0
0
91
0.266862
047794e8835f067229c32824232b6e2929ad5189
824
py
Python
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
1
2019-01-09T22:05:03.000Z
2019-01-09T22:05:03.000Z
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
from web3.auto import w3 import time # from infura import * import config import json with open("../build/contracts/EtherBank.json") as f: ether_bank_json = json.load(f) ether_bank_contract = w3.eth.contract( address=config.ETHER_BANK_ADDR, abi=ether_bank_json['abi'] ) accounts = w3.eth.accounts def han...
23.542857
72
0.71966
0
0
0
0
0
0
0
0
113
0.137136
0477d1fec515526460f168e4daf0936536d74afc
14,316
py
Python
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
1
2021-12-20T14:19:10.000Z
2021-12-20T14:19:10.000Z
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
import argparse import os import shutil import time import random import json import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim from torch.utils.data import DataLoader from torchtext.vocab import GloVe from progress.bar imp...
38.074468
194
0.634325
0
0
0
0
0
0
0
0
2,368
0.164857
0477db777b9cee4f58f0a5582459326ea8dada3b
1,221
py
Python
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
87
2021-11-08T10:58:26.000Z
2022-03-31T19:02:47.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
80
2021-11-07T04:46:42.000Z
2022-03-31T23:58:00.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
15
2021-11-07T17:02:21.000Z
2022-03-28T02:04:16.000Z
from datetime import datetime, timedelta from anubis.utils.cache import cache from anubis.utils.data import is_debug, is_job from anubis.utils.usage.users import get_platform_users from anubis.utils.visuals.files import convert_fig_bytes from anubis.utils.visuals.watermark import add_watermark @cache.memoize(timeout...
28.395349
70
0.673219
0
0
0
0
922
0.755119
0
0
159
0.130221
04796e79a9664545eb63e6ba84915a3f7ac3d290
438
py
Python
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys sys.argv[1:] if len(sys.argv) < 2: print("Off") exit() inp = sys.argv[1] if(inp == '00000'): print ("Off") elif(inp == '10000'): print ("Gas Auto Fan") elif(inp == '01000'): print ("Gas Slow Fan"); elif(inp == '00100'): print ("Fan"); elif(inp == '00010'): ...
16.846154
33
0.538813
0
0
0
0
0
0
0
0
141
0.321918
047a04459c8afd589d167d2faedd9e21c93130bd
420
py
Python
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
31
2021-04-06T16:20:30.000Z
2022-02-16T08:29:24.000Z
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
3
2021-05-18T03:49:27.000Z
2022-01-05T01:50:22.000Z
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
5
2021-04-07T08:35:06.000Z
2022-03-08T08:33:05.000Z
from .CosineSimilarityLoss import * from .SoftmaxLoss import * from .MultipleNegativesRankingLoss import * from .TripletLoss import * from .MSELoss import * from .ContrastiveLoss import * from .OnlineContrastiveLoss import * from .BatchHardTripletLoss import * from .BatchHardSoftMarginTripletLoss import * from .BatchS...
30
45
0.82619
0
0
0
0
0
0
0
0
0
0
047cb5465f0509b508c436ea248be53acdef1e9f
2,876
py
Python
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
114
2019-03-28T06:59:46.000Z
2022-03-28T21:22:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
3
2019-04-11T01:52:56.000Z
2019-09-01T22:52:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
31
2019-03-29T15:43:43.000Z
2021-11-25T16:33:49.000Z
"""empty message Revision ID: b26b8edbe29a Revises: Create Date: 2018-11-28 21:01:53.633579 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b26b8edbe29a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.842105
97
0.665855
0
0
0
0
0
0
0
0
900
0.312935
047d17f6bf4f854c158900b4950a6ed69d11af25
2,919
py
Python
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
from django.contrib import admin, messages from django.contrib.auth.models import Group from app.settings import GROUP_BY_DIVISION_NAME from user.models import Division, History, Role, Team, User from user.utils import send_imported, send_slack def send_welcome(modeladmin, request, users): for user in users: ...
28.067308
80
0.627612
2,000
0.685166
0
0
2,117
0.725248
0
0
800
0.274066
047d1fce76502daee3bd9c513a2ef6f8cb1425bd
11,584
py
Python
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
29
2021-07-27T15:59:31.000Z
2022-03-24T17:22:17.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
46
2021-07-29T08:47:21.000Z
2022-03-28T01:59:24.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
2
2021-12-06T20:33:38.000Z
2022-03-11T15:47:48.000Z
#!/usr/bin/env python # -*- coding utf-8 -*- import _io import os import time import json import requests import urllib.parse import tempfile import shutil import mlflow import base64 import string import numpy as np from chassisml import __version__ from ._utils import zipdir,fix_dependencies,write_modzy_yaml,NumpyEn...
41.224199
127
0.610238
10,947
0.94501
0
0
0
0
0
0
2,323
0.200535
047ffe9066fea69b5d6a121fa7e090201689c5c8
2,659
py
Python
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
1
2021-11-20T00:10:53.000Z
2021-11-20T00:10:53.000Z
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
39.686567
98
0.616773
1,725
0.64874
0
0
0
0
0
0
1,144
0.430237
04802ec7cded7ac0ac872783dbfebaa1d973ca5f
2,667
py
Python
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
1
2019-10-31T08:36:29.000Z
2019-10-31T08:36:29.000Z
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ APT transport for a local OS accessible filesystem """ import os.path import urllib.parse from typing import IO from apt.transport import Transport from apt.transport.exceptions import URIMismatchError from apt.transport.directorylisting import DirectoryListing cl...
24.694444
66
0.594301
2,348
0.88039
0
0
0
0
0
0
993
0.372328
0482d084a543e80e3312d3162660c7d16901c30c
7,213
py
Python
plugin/core.py
rohankumardubey/plux
c3eae790618ef55ac41541f85fffb0c843f07308
[ "Apache-2.0" ]
13
2022-01-16T20:00:20.000Z
2022-03-30T20:48:08.000Z
plugin/core.py
rohankumardubey/plux
c3eae790618ef55ac41541f85fffb0c843f07308
[ "Apache-2.0" ]
1
2022-03-02T22:15:21.000Z
2022-03-03T09:58:45.000Z
plugin/core.py
localstack/plux
a412ab0a0d7d17c3b5e1f560b7b31dc1876598f7
[ "Apache-2.0" ]
null
null
null
import abc import functools import inspect from typing import Any, Callable, Dict, List, Tuple, Type, Union class PluginException(Exception): def __init__(self, message, namespace: str = None, name: str = None) -> None: super().__init__(message) self.namespace = namespace self.name = name ...
31.225108
117
0.652572
5,745
0.796479
0
0
236
0.032719
0
0
2,873
0.398309