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
90948ab3b394c7cb6e8df8160515b81630f1c311
4,510
py
Python
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
lib/site_config.py
bruceravel/xraylarch
a8179208872d43bd23453fa0c64680e11bc2b5ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ site configuration for larch: init_files: list of larch files run (in order) on startup module_path: list of directories to search for larch code history_file: """ from __future__ import print_function import sys import os from os.path import exists, abspath, join from .utils impor...
29.86755
77
0.614634
0
0
0
0
0
0
0
0
1,689
0.374501
909490610fb0cdfc5860262dba5b4c657bee2b6b
2,898
py
Python
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
5
2020-03-22T20:21:47.000Z
2022-03-08T07:50:25.000Z
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
2
2020-04-09T10:49:26.000Z
2022-03-08T04:37:27.000Z
gpath/path_similarity.py
insilichem/gpathfinder
e6c7df14d473857acb007efbae3cc7b4fee1b330
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############## # GPathFinder: Identification of ligand pathways by a multi-objective # genetic algorithm # # https://github.com/insilichem/gpathfinder # # Copyright 2019 José-Emilio Sánchez Aparicio, Giuseppe Sciortino, # Daniel Villadrich Herrmannsdoerfer, Pablo Orenes C...
36.683544
77
0.689786
0
0
0
0
0
0
0
0
2,139
0.737078
9096de4357058d79ebeafc310708bd4b4560fdc0
1,666
py
Python
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
Schedule/groupagenda/urls.py
f0rdream/party-time
3b596043627383859042a6e70167e4304bab9a92
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from .views import (GroupListAPIView, GroupCreateAPIView, AgendaListAPIView, AgendaDetailAPIView, AgendaCreateAPIView, AgendaPostAPIView, agenda_create, ...
57.448276
120
0.614046
0
0
0
0
0
0
0
0
595
0.357143
90988846045a582c1eb61f51d1fdf6a5c9b664f2
312
py
Python
examples/admin.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
examples/admin.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
examples/admin.py
kimbackdoo/Web-Cralwer
6a92ec00ea2273f228b8c304cd596ad9120c4709
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. #models에서 Shop을 임폴트 from .models import Shop from .models import Parsed_data from .models import Img_data from .models import Other admin.site.register(Shop) admin.site.register(Parsed_data) admin.site.register(Img_data) admin.site.register(Other)
22.285714
32
0.814103
0
0
0
0
0
0
0
0
59
0.182099
909914b3df8b80013e491c569d64a1ce700cd6e4
630
py
Python
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
8
2022-01-19T20:47:36.000Z
2022-03-20T05:11:04.000Z
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
2
2022-02-17T06:14:25.000Z
2022-02-17T08:43:57.000Z
main_test_dad.py
AdamLohSg/GTA
bf6a745a6e28e365466e76360a15ca10ce61e009
[ "Apache-2.0" ]
5
2022-02-15T04:16:27.000Z
2022-03-29T01:21:41.000Z
import torch from models.gta import GraphTemporalEmbedding if __name__ == '__main__': device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') x = torch.randn(32, 96, 122) model = GraphTemporalEmbedding(122, 96, 3) y = model(x) print(y.size()) # model = AdaGraphSage(num_nodes=10, s...
39.375
78
0.647619
0
0
0
0
0
0
0
0
339
0.538095
909961221deb2afd6f990975d13c32b0c0400f10
638
py
Python
daiquiri_client/auth.py
aipescience/django-daiquiri-client
30521dc7393b65ef51a5fd42b63b1dece46a2d5c
[ "Apache-2.0" ]
null
null
null
daiquiri_client/auth.py
aipescience/django-daiquiri-client
30521dc7393b65ef51a5fd42b63b1dece46a2d5c
[ "Apache-2.0" ]
null
null
null
daiquiri_client/auth.py
aipescience/django-daiquiri-client
30521dc7393b65ef51a5fd42b63b1dece46a2d5c
[ "Apache-2.0" ]
null
null
null
class Auth(): def __init__(self, client): self.client = client def get_profiles(self): return self.client.get('/auth/api/profiles/', {'page_size': 10000})['results'] def get_groups(self): return self.client.get('/auth/api/groups/') def get_group_map(self): return {gro...
31.9
91
0.639498
637
0.998433
0
0
0
0
0
0
139
0.217868
909acbc6fed7077e7d615e7ea5b4fd6ba9538288
954
py
Python
CSS/spiraleFile.py
NsiLycee/premiere
2814a21860e227e2db01ea201b1c4d99723a0562
[ "Unlicense" ]
null
null
null
CSS/spiraleFile.py
NsiLycee/premiere
2814a21860e227e2db01ea201b1c4d99723a0562
[ "Unlicense" ]
null
null
null
CSS/spiraleFile.py
NsiLycee/premiere
2814a21860e227e2db01ea201b1c4d99723a0562
[ "Unlicense" ]
null
null
null
''' Auteur : Joël Dendaletche But : tracé une figure géométrique à l'aide de la bibliothèque Turtle Le projet utilise l'objet file pour itérer le calcul de chaque nouveau point Les coordonnées des points d'un polygone sont placés dans une file l'algorithme consiste à calcule...
45.428571
121
0.697065
0
0
0
0
0
0
0
0
793
0.815844
909acc24e11a5c6671af7463f6c79ae6bbfe3286
20,420
py
Python
network/modules/spconv_unet.py
alexisgroshenry/NPM3D_DSNet
d1a2ec071728dcb3c733ecdee3a27f4534b67f33
[ "MIT" ]
null
null
null
network/modules/spconv_unet.py
alexisgroshenry/NPM3D_DSNet
d1a2ec071728dcb3c733ecdee3a27f4534b67f33
[ "MIT" ]
null
null
null
network/modules/spconv_unet.py
alexisgroshenry/NPM3D_DSNet
d1a2ec071728dcb3c733ecdee3a27f4534b67f33
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # author: Xinge # @file: spconv_unet.py # @time: 2020/06/22 15:01 import time import numpy as np import spconv import torch import torch.nn.functional as F from torch import nn def conv3x3(in_planes, out_planes, stride=1, indice_key=None): return spconv.SubMConv3d(in_planes, out_planes, ker...
41.588595
145
0.645495
18,620
0.911851
0
0
0
0
0
0
3,854
0.188737
909ad865d21f2537f3949dbc416292efd7136d09
45
py
Python
scivision_test_plugin/__init__.py
acocac/scivision-test-plugin
0ebeabe256287a83d8a268649085f18dc3ddfc9f
[ "BSD-3-Clause" ]
null
null
null
scivision_test_plugin/__init__.py
acocac/scivision-test-plugin
0ebeabe256287a83d8a268649085f18dc3ddfc9f
[ "BSD-3-Clause" ]
null
null
null
scivision_test_plugin/__init__.py
acocac/scivision-test-plugin
0ebeabe256287a83d8a268649085f18dc3ddfc9f
[ "BSD-3-Clause" ]
null
null
null
from .model import DummyModel, ImageNetModel
22.5
44
0.844444
0
0
0
0
0
0
0
0
0
0
909b082c85db7f41252c1dd15a6d1058abd2c236
2,330
py
Python
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
prml/dimreduction/bayesian_pca.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
import numpy as np from prml.dimreduction.pca import PCA class BayesianPCA(PCA): def fit(self, X, iter_max=100, initial="random"): """ empirical bayes estimation of pca parameters Parameters ---------- X : (sample_size, n_features) ndarray input data i...
36.40625
101
0.529185
2,270
0.974249
0
0
0
0
0
0
731
0.313734
909b242da63999e1207271fb27d3b19ba2f0e8e9
11,492
py
Python
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
null
null
null
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
2
2016-02-27T13:43:15.000Z
2018-07-18T19:44:45.000Z
mne/time_frequency/psd.py
jnvandermeer/mne-python
143a1fbfd2a68a0ce8d700da9299564de0b92334
[ "BSD-3-Clause" ]
1
2017-03-05T20:44:07.000Z
2017-03-05T20:44:07.000Z
# Authors : Alexandre Gramfort, alexandre.gramfort@telecom-paristech.fr (2011) # Denis A. Engemann <denis.engemann@gmail.com> # License : BSD 3-clause import numpy as np from ..parallel import parallel_func from ..io.pick import _pick_data_channels from ..utils import logger, verbose, _time_mask from ..fixe...
38.563758
79
0.62661
0
0
0
0
8,860
0.770971
0
0
7,195
0.626088
909b464aebeffe98a01bbc3d1080af46d979ef36
5,690
py
Python
culturebank/models.py
Anaphory/culturebank
9a408cb25fafcb14bbdd96278bebfbc898d32d00
[ "Apache-2.0" ]
null
null
null
culturebank/models.py
Anaphory/culturebank
9a408cb25fafcb14bbdd96278bebfbc898d32d00
[ "Apache-2.0" ]
null
null
null
culturebank/models.py
Anaphory/culturebank
9a408cb25fafcb14bbdd96278bebfbc898d32d00
[ "Apache-2.0" ]
null
null
null
from zope.interface import implementer from sqlalchemy import ( Column, String, Integer, Float, ForeignKey, CheckConstraint, ) from sqlalchemy.orm import relationship, backref from clld import interfaces from clld.db.meta import Base, CustomModelMixin from clld.db.versioned import Versioned fro...
38.187919
100
0.727065
4,801
0.843761
0
0
5,063
0.889807
0
0
708
0.124429
909b5fdd491dd149598afad1dcf2d6d1cdc7dcc1
600
py
Python
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
2
2021-08-01T13:02:41.000Z
2021-08-01T14:39:44.000Z
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
null
null
null
src/models/layers/feature.py
icycookies/dd_benchmark
5551c0654d3dc30d72b817096d0877a02f28f116
[ "MIT" ]
1
2021-08-01T14:39:45.000Z
2021-08-01T14:39:45.000Z
import torch import torch.nn as nn class MLP(nn.Module): def __init__(self, num_features, hidden_sizes, dropout): super().__init__() self.layers = nn.ModuleList( [nn.Linear(num_features, hidden_sizes[0])] + [nn.Linear(hidden_sizes[i], hidden_sizes[i + 1]) for i in range(len(...
31.578947
99
0.576667
564
0.94
0
0
0
0
0
0
0
0
909b69d30b3ae1f1f238868bd4ff4b5d2afdace9
27,662
py
Python
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
5
2015-06-14T22:56:10.000Z
2017-05-29T07:59:35.000Z
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
5
2019-03-19T13:39:26.000Z
2020-11-03T20:01:46.000Z
src/kanone/adapter/tx.py
doncatnip/kanone
1f149f69f4f9dbb49dd29153fd0366cde68c2b85
[ "Unlicense" ]
null
null
null
""" Twisted adapter for Kanone """ from twisted.python.failure import Failure from twisted.internet import defer from ..lib import Invalid from ..util import varargs2kwargs import logging, sys log = logging.getLogger( __name__ ) # hacky and redundant, but it'll do for now .. # TODO: move to proper twisted specific c...
30.431243
132
0.521654
0
0
24,312
0.878895
2,476
0.089509
0
0
817
0.029535
909bb64980267ae4a08d2d7a1f0a4d2581917497
1,579
py
Python
sandbox/graph-size.py
maarten1983/khmer
417aaa57f0659685c01887a6910de1c08d0a73e5
[ "BSD-3-Clause" ]
1
2019-11-02T15:12:44.000Z
2019-11-02T15:12:44.000Z
sandbox/graph-size.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
sandbox/graph-size.py
ibest/khmer
fbc307abd64363b329745709846d77444ce0c025
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2013. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # import khmer import sys import screed import os.path from ...
23.567164
76
0.664345
0
0
0
0
0
0
0
0
479
0.303357
909c067225e930569a068986504ae450bf7106ff
3,187
py
Python
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
4
2020-11-12T19:37:06.000Z
2021-12-14T01:38:39.000Z
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
96
2020-09-08T05:17:17.000Z
2022-03-31T23:12:51.000Z
ferry/crawler/fetch_demand.py
coursetable/ferry
f369b9588557c359af8589f2575a03493d6b08b6
[ "MIT" ]
2
2021-03-03T23:02:40.000Z
2021-06-17T23:33:05.000Z
""" Fetches demand statistics. Modified from Dan Zhao Original article: https://yaledailynews.com/blog/2020/01/10/yales-most-popular-courses/ Github: https://github.com/iamdanzhao/yale-popular-classes README: https://github.com/iamdanzhao/yale-popular-classes/blob/master/data-guide/course_data_guide.md """ import ...
29.509259
94
0.671478
168
0.052714
0
0
0
0
0
0
1,151
0.361155
909dc9969f5cc018e88da564d8e3efacb5bc1be6
406
py
Python
migrate_db.py
qxf2/interview-scheduler
ef17350cec70c66c7136671789ed188231a5fcba
[ "MIT" ]
2
2021-05-06T17:02:21.000Z
2021-05-19T19:41:21.000Z
migrate_db.py
qxf2/interview-scheduler
ef17350cec70c66c7136671789ed188231a5fcba
[ "MIT" ]
9
2019-08-01T18:49:35.000Z
2021-04-01T12:52:35.000Z
migrate_db.py
qxf2/interview-scheduler
ef17350cec70c66c7136671789ed188231a5fcba
[ "MIT" ]
18
2019-07-23T16:26:17.000Z
2022-01-21T10:33:41.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from qxf2_scheduler import models from qxf2_scheduler import db from qxf2_scheduler.__init__ import app from flask_script import Manager from flask_migrate import Migrate,MigrateCommand migrate=Migrate(app, db,render_as_batch=True) manager=Manager(app) m...
25.375
48
0.830049
0
0
0
0
0
0
0
0
14
0.034483
909e429cd3c93b342a1a4e97e4084847d6b07a78
3,476
py
Python
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
15
2019-07-31T11:48:28.000Z
2022-02-25T13:55:23.000Z
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
null
null
null
main.py
tarunsinghal92/indeedscrapperlatest
2c7fd920d115764192bf5f7bf8fd3d30aa6ec2b4
[ "MIT" ]
14
2019-02-20T21:44:39.000Z
2022-02-16T11:35:27.000Z
# import packages import requests import pandas as pd import time from functions import * # limit per sity max_results_per_city = 100 # db of city city_set = ['New+York','Toronto','Las+Vegas'] # job roles job_set = ['business+analyst','data+scientist'] # file num file = 1 # from where to skip SKIPPER = 0 # lo...
29.709402
183
0.467779
0
0
0
0
0
0
0
0
1,032
0.296893
909f78a9a426fedd3532cae3c362b0e27f684e37
4,973
py
Python
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
5
2021-01-24T13:19:45.000Z
2021-04-05T15:49:35.000Z
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
null
null
null
L0_serial.py
RL-WWW/ISST
42b656686fa9660794007a0bc00a7177937410e9
[ "BSD-3-Clause" ]
null
null
null
# Import Libraries import numpy as np import cv2 import argparse import time # Import User Libraries import L0_helpers # Image File Path image_r = "images/flowers.jpg" image_w = "out_serial.png" # L0 minimization parameters kappa = 2.0 _lambda = 2e-2 # Verbose output verbose = False def L0_smooth(input_path, outpu...
26.593583
90
0.575508
0
0
0
0
0
0
0
0
1,424
0.286346
909f8409bcfac0d98c71ec79e9110765c9b7b295
2,565
py
Python
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
9
2020-09-26T23:52:49.000Z
2021-10-04T00:08:23.000Z
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
null
null
null
data_processing/signal_downsampling.py
HassanHayat08/Interpretable-CNN-for-Big-Five-Personality-Traits-using-Audio-Data
7149e78736611f07a1c7c4adbdf24ae03011e549
[ "MIT" ]
2
2021-04-06T13:02:24.000Z
2021-12-06T09:03:24.000Z
### Interpretable cnn for big five personality traits using audio data ### ### This script downsamples 41000 kz signal into 4000 kz signal ### from __future__ import absolute_import, division, print_function import pathlib import random import csv import numpy as np from scipy.io import wavfile import tensorflow as t...
29.482759
121
0.670955
0
0
0
0
0
0
0
0
471
0.183626
90a1865751cb26e76fdfe2385bd5686fe05ca8bb
1,858
py
Python
ai_flow/model_center/entity/_model_repo_object.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
ai_flow/model_center/entity/_model_repo_object.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
ai_flow/model_center/entity/_model_repo_object.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Copyright 2022 The AI Flow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.584615
91
0.697524
1,089
0.586114
182
0.097955
298
0.160388
0
0
655
0.35253
90a2c66069c33df69aa851c8c0f49466dd43d14e
2,127
py
Python
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/search/common_test.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.227273
74
0.649741
1,299
0.610719
0
0
901
0.423601
0
0
963
0.45275
90a3029cbc5a3d0ba677696927ab7f1da401c62e
588
py
Python
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
5
2016-05-13T15:23:41.000Z
2019-05-29T08:23:25.000Z
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
null
null
null
model-builder/skrutil/deprecate_util.py
DaYeSquad/worktilerwdemo
03fbc18dcba4881628cf790f2f0cd7e6f9aa130f
[ "MIT" ]
2
2016-06-08T08:22:42.000Z
2019-02-25T08:46:54.000Z
import warnings def deprecated(func): """This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.""" def newFunc(*args, **kwargs): warnings.simplefilter('always', DeprecationWarning) warnings.warn("Call...
34.588235
72
0.681973
0
0
0
0
0
0
0
0
195
0.331633
90a3bca5369f1537b322d1766cb9151ec9a0af0c
3,181
py
Python
models.py
sheldonjinqi/CIS680_BicycleGAN
a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4
[ "MIT" ]
null
null
null
models.py
sheldonjinqi/CIS680_BicycleGAN
a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4
[ "MIT" ]
null
null
null
models.py
sheldonjinqi/CIS680_BicycleGAN
a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4
[ "MIT" ]
null
null
null
from torchvision.models import resnet18 import torch.nn.functional as F import torch.nn as nn import numpy as np import torch import pdb ############################## # Encoder ############################## class Encoder(nn.Module): def __init__(self, latent_dim): super(Encoder, self).__init__() ...
30.586538
106
0.563345
2,781
0.874253
0
0
0
0
0
0
1,941
0.610185
90a433b0faab6ec973b072f69d11760a7c0bb8ef
3,381
py
Python
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
oem_storage_file/main.py
OpenEntityMap/oem-storage-file
cce7e3979c413273aaa224799cfe6b86bad7627e
[ "BSD-3-Clause" ]
null
null
null
from oem_framework.models.core import ModelRegistry from oem_framework.plugin import Plugin from oem_framework.storage import ProviderStorage from oem_storage_file.core.base import BaseFileStorage from oem_storage_file.database import DatabaseFileStorage import appdirs import os class ProviderFileStorage(ProviderSto...
27.266129
89
0.615794
3,097
0.916001
0
0
480
0.14197
0
0
392
0.115942
90a450c6bb8a1da60bd0c096428df1ba30321115
1,565
py
Python
scripts/slave/recipe_modules/v8/gclient_config.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/v8/gclient_config.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
null
null
null
scripts/slave/recipe_modules/v8/gclient_config.py
bopopescu/chromium-build
f8e42c70146c1b668421ee6358dc550a955770a3
[ "BSD-3-Clause" ]
1
2020-07-22T09:16:32.000Z
2020-07-22T09:16:32.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import DEPS CONFIG_CTX = DEPS['gclient'].CONFIG_CTX ChromiumGitURL = DEPS['gclient'].config.ChromiumGitURL @CONFIG_CTX() def v8(c): soln = c.solutions.ad...
30.686275
79
0.709904
0
0
0
0
1,280
0.817891
0
0
717
0.458147
90a4ede6bfdb471d923545a3e19b34b37a9df384
7,038
py
Python
parser/fase2/team28/models/Other/funcion.py
jossiebk/tytus
de6ce433d61609d4eaa5d0dbbd2ce13aaa573544
[ "MIT" ]
null
null
null
parser/fase2/team28/models/Other/funcion.py
jossiebk/tytus
de6ce433d61609d4eaa5d0dbbd2ce13aaa573544
[ "MIT" ]
null
null
null
parser/fase2/team28/models/Other/funcion.py
jossiebk/tytus
de6ce433d61609d4eaa5d0dbbd2ce13aaa573544
[ "MIT" ]
null
null
null
from models.instructions.shared import Instruction from models.Other.ambito import Ambito from controllers.three_address_code import ThreeAddressCode from controllers.procedures import Procedures from models.instructions.Expression.expression import DATA_TYPE, PrimitiveData class Parametro(Instruction): def __ini...
34.331707
90
0.596903
6,753
0.959506
0
0
0
0
0
0
895
0.127167
90a5135d7b2c7cb2a555e6f77c99a227c0fdaa11
2,386
py
Python
podcast/download.py
jessstringham/podcasts
04de6cc5cd7d27ee6ab56c0c7950526b606ec201
[ "MIT" ]
1
2018-05-08T09:26:45.000Z
2018-05-08T09:26:45.000Z
podcast/download.py
jessstringham/podcasts
04de6cc5cd7d27ee6ab56c0c7950526b606ec201
[ "MIT" ]
null
null
null
podcast/download.py
jessstringham/podcasts
04de6cc5cd7d27ee6ab56c0c7950526b606ec201
[ "MIT" ]
1
2020-12-13T18:04:00.000Z
2020-12-13T18:04:00.000Z
import typing import urllib.error import urllib.request from podcast.files import download_location from podcast.info import build_info_content from podcast.info import InfoContent from podcast.models import Channel from podcast.models import get_podcast_audio_link from podcast.models import NewStatus from podcast.mod...
33.605634
79
0.723386
0
0
0
0
0
0
0
0
575
0.240989
90a586abf2c437f6ccd419108bdf5f296a7fed74
5,630
py
Python
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
tests/model/test_ocrd_page.py
j23d/core
b063737a5cc4701fb507328b5940919848934ef1
[ "Apache-2.0" ]
null
null
null
from tests.base import TestCase, main, assets from ocrd_models.ocrd_page import ( AlternativeImageType, PcGtsType, PageType, TextRegionType, TextLineType, WordType, GlyphType, parseString, parse, to_xml ) simple_page = """\ <PcGts xmlns="http://schema.primaresearch.org/PAGE/gt...
43.307692
298
0.649556
3,655
0.649085
0
0
0
0
0
0
2,694
0.478423
90a811a1c9219aef26a6c2b2f33c1210f92378af
643
py
Python
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
19
2018-04-05T23:33:33.000Z
2022-03-24T00:18:20.000Z
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
13
2018-01-10T23:31:11.000Z
2018-07-20T12:55:02.000Z
athena/athena/algorithms/NetworkAnalysis/Components.py
aculich/openmappr
c9e5b4cfc974a6eda9cbc8a0ea6f8a96ce35efba
[ "MIT" ]
5
2018-02-12T05:33:19.000Z
2019-09-21T22:43:02.000Z
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Created on Wed Aug 13 15:35:50 2014 @author: rich """ import networkx as nx # assign component IDs to graph components, id=0 is giant component def componentIDs(network): # networkx algo only works on undirected network if isinstance(network, nx.DiGraph): ...
26.791667
82
0.659409
0
0
0
0
0
0
0
0
250
0.388802
90a821eadcd600fc9ceb85786e62d6539b2c7ae3
9,603
py
Python
tools/netconf.py
jpfluger/radiucal
42666478baaa93da05fdc5ab8f3b53df68b993e6
[ "BSD-3-Clause" ]
5
2019-12-15T09:47:02.000Z
2022-03-16T03:18:55.000Z
tools/netconf.py
jpfluger/radiucal
42666478baaa93da05fdc5ab8f3b53df68b993e6
[ "BSD-3-Clause" ]
null
null
null
tools/netconf.py
jpfluger/radiucal
42666478baaa93da05fdc5ab8f3b53df68b993e6
[ "BSD-3-Clause" ]
1
2021-03-27T08:11:53.000Z
2021-03-27T08:11:53.000Z
#!/usr/bin/python """composes the config from user definitions.""" import argparse import os import users import users.__config__ import importlib import csv # file indicators IND_DELIM = "_" USER_INDICATOR = "user" + IND_DELIM VLAN_INDICATOR = "vlan" + IND_DELIM AUTH_PHASE_ONE = "PEAP" AUTH_PHASE_TWO = "MSCHAPV2" c...
30.389241
79
0.53754
4,029
0.419556
808
0.08414
0
0
0
0
1,653
0.172134
90a9c694ad7055aeb7e214346c75ba596c28d602
3,673
py
Python
twitter_scrapper.py
juanlucruz/SportEventLocator
1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e
[ "Apache-2.0" ]
null
null
null
twitter_scrapper.py
juanlucruz/SportEventLocator
1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e
[ "Apache-2.0" ]
null
null
null
twitter_scrapper.py
juanlucruz/SportEventLocator
1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e
[ "Apache-2.0" ]
null
null
null
# Import the Twython class from twython import Twython, TwythonStreamer import json # import pandas as pd import csv import datetime def process_tweet(tweet): # Filter out unwanted data d = {} d['hashtags'] = [hashtag['text'] for hashtag in tweet['entities']['hashtags']] try: for key in { ...
33.390909
88
0.58263
865
0.235502
0
0
0
0
0
0
1,999
0.544242
90aa48820bf97867a9816268e697f65885c29466
389
py
Python
tools/bin/filter_cassandra_attributes.py
fruch/scylla-tools-java
3fdce3d357b64402799742f61d3cc33b6f8fcfbb
[ "Apache-2.0" ]
null
null
null
tools/bin/filter_cassandra_attributes.py
fruch/scylla-tools-java
3fdce3d357b64402799742f61d3cc33b6f8fcfbb
[ "Apache-2.0" ]
null
null
null
tools/bin/filter_cassandra_attributes.py
fruch/scylla-tools-java
3fdce3d357b64402799742f61d3cc33b6f8fcfbb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import sys; from yaml import load, dump, load_all from cassandra_attributes import * def main(): attributes = dict() for i in range(1, len(sys.argv)): attributes.update(load(open(sys.argv[i], 'r'))) print dump(dict(filter(lambda (a, b): a in cassandra_attributes, attributes....
25.933333
109
0.637532
0
0
0
0
0
0
0
0
35
0.089974
90aa5dbc6e140871e083e339d177b3478bf2b89d
526
py
Python
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
ci/test_filename.py
climateamante/linode.docs
9a2d26db11ab439f354bb9027eb62eda7453ff0b
[ "CC-BY-4.0" ]
null
null
null
import pytest import itertools # Cartesian product of file names and extensions # e.g. README.txt, README.md, CHANGELOG.txt, CHANGELOG.md ... file_extensions = ['txt', 'md'] names = ['README', 'CHANGELOG', 'CONTRIBUTING', 'LICENSE', 'CODE_OF_CONDUCT'] exempt_files = [('.'.join(x)) for x in itertools.product(names, fil...
35.066667
81
0.709125
0
0
0
0
0
0
0
0
210
0.39924
90aa7fec2a73694bfef5aa1b7617bf2c7fb170fa
1,570
py
Python
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
76
2015-01-24T19:18:31.000Z
2021-03-11T11:17:14.000Z
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
8
2015-01-24T18:59:57.000Z
2017-06-07T13:07:34.000Z
test/test_sshtransport.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
21
2015-01-24T18:56:52.000Z
2021-03-10T14:33:14.000Z
import sys import unittest sys.path.append("../main") from sshtransport import * class FakeSocket(object): def __init__(self): self.recv_buffer = b"" self.send_buffer = b"" def recv(self, n): resp = self.recv_buffer[:n] self.recv_buffer = self.recv_buffer[n:] return r...
32.708333
107
0.658599
1,481
0.943312
0
0
0
0
0
0
306
0.194904
90ab146abe91415bc0bc793fedf75c04fb9406e9
7,357
py
Python
activity-classification/main_scenario_baseline.py
bstollnitz/grad-school-portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
2
2019-10-24T16:40:44.000Z
2020-06-21T03:56:18.000Z
activity-classification/main_scenario_baseline.py
bstollnitz/portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
null
null
null
activity-classification/main_scenario_baseline.py
bstollnitz/portfolio
484e00cc4857de2eda6848f61a1e6fbf26309d42
[ "MIT" ]
null
null
null
import random import time from pathlib import Path from typing import Dict, List, Tuple import numpy as np import torch from torch.utils import data from torch.utils.tensorboard import SummaryWriter import utils_graph import utils_io import utils_nn from feed_forward import FeedForward from hyperparameters import Hyp...
35.887805
85
0.703819
0
0
0
0
0
0
0
0
2,150
0.292239
90ab4c6f6273b660fe6334ebc9b6fb8fce97ce8e
868
py
Python
2020/day04/day4_part1.py
dstjacques/AdventOfCode
75bfb46a01487430d552ea827f0cf8ae3368f686
[ "MIT" ]
null
null
null
2020/day04/day4_part1.py
dstjacques/AdventOfCode
75bfb46a01487430d552ea827f0cf8ae3368f686
[ "MIT" ]
null
null
null
2020/day04/day4_part1.py
dstjacques/AdventOfCode
75bfb46a01487430d552ea827f0cf8ae3368f686
[ "MIT" ]
null
null
null
input = """ ecl:gry pid:860033327 eyr:2020 hcl:#fffffd byr:1937 iyr:2017 cid:147 hgt:183cm iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884 hcl:#cfa07d byr:1929 hcl:#ae17e1 iyr:2013 eyr:2024 ecl:brn pid:760753108 byr:1931 hgt:179cm hcl:#cfa07d eyr:2025 pid:166559648 iyr:2011 ecl:brn hgt:59in """ def validate(passpor...
25.529412
122
0.615207
0
0
0
0
0
0
0
0
346
0.398618
90ad0d873a774414aef935d258105887a6980e80
3,322
py
Python
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
null
null
null
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
null
null
null
flit_core/flit_core/tests/test_common.py
rahul-deepsource/flit
5d5be0a9c6f77a2dbbffd3369ad8ac7813a926bf
[ "BSD-3-Clause" ]
1
2021-06-24T10:21:43.000Z
2021-06-24T10:21:43.000Z
import os.path as osp from unittest import TestCase import pytest from flit_core.common import ( Module, get_info_from_module, InvalidVersion, NoVersionError, check_version, normalize_file_permissions, Metadata ) samples_dir = osp.join(osp.dirname(__file__), 'samples') class ModuleTests(TestCase): def te...
35.340426
112
0.599639
2,351
0.707706
0
0
500
0.150512
0
0
642
0.193257
90af463579adb14e899b746a24caf95a35d80b1b
3,017
py
Python
flumine/markets/market.py
jsphon/flumine
bd5cacf9793d53a99595fe4694aeb9b8d2962abb
[ "MIT" ]
null
null
null
flumine/markets/market.py
jsphon/flumine
bd5cacf9793d53a99595fe4694aeb9b8d2962abb
[ "MIT" ]
null
null
null
flumine/markets/market.py
jsphon/flumine
bd5cacf9793d53a99595fe4694aeb9b8d2962abb
[ "MIT" ]
null
null
null
import datetime import logging from typing import Optional from betfairlightweight.resources.bettingresources import MarketBook, MarketCatalogue from .blotter import Blotter from ..events import events logger = logging.getLogger(__name__) class Market: def __init__( self, flumine, market...
33.153846
88
0.670534
2,773
0.919125
0
0
915
0.303281
0
0
115
0.038117
90b067d91d1317f4e26b80f4ccf8b819d42bc981
206
py
Python
{{cookiecutter.project_name}}/tests/conftest.py
nelsonHolic/common-fastapi-microservice
06a995264ced42a59565f1f703bab7bfed8e7cc1
[ "MIT" ]
1
2021-12-14T17:08:24.000Z
2021-12-14T17:08:24.000Z
{{cookiecutter.project_name}}/tests/conftest.py
nelsonHolic/common-fastapi-microservice
06a995264ced42a59565f1f703bab7bfed8e7cc1
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/tests/conftest.py
nelsonHolic/common-fastapi-microservice
06a995264ced42a59565f1f703bab7bfed8e7cc1
[ "MIT" ]
null
null
null
import pytest from fastapi.testclient import TestClient from {{cookiecutter.project_name}}.app import app @pytest.fixture() def app_client() -> TestClient: client = TestClient(app) return client
18.727273
49
0.757282
0
0
0
0
96
0.466019
0
0
0
0
90b264bddefd9c5d8b81c5073da1b99d48704da6
2,228
py
Python
scripts/naive_search.py
simonbowly/lp-generators
937c44074c234333b6a5408c3e18f498c2205948
[ "MIT" ]
9
2020-01-02T23:07:36.000Z
2022-01-26T10:04:04.000Z
scripts/naive_search.py
simonbowly/lp-generators
937c44074c234333b6a5408c3e18f498c2205948
[ "MIT" ]
null
null
null
scripts/naive_search.py
simonbowly/lp-generators
937c44074c234333b6a5408c3e18f498c2205948
[ "MIT" ]
1
2020-01-02T23:08:26.000Z
2020-01-02T23:08:26.000Z
import itertools import multiprocessing import json import numpy as np from tqdm import tqdm from lp_generators.features import coeff_features, solution_features from lp_generators.performance import clp_simplex_performance from search_operators import lp_column_neighbour, lp_row_neighbour from seeds import cli_see...
33.253731
81
0.685817
0
0
0
0
520
0.233393
0
0
142
0.063734
90b42e2cf853da75296b6d0c2d2e8e3942e4a7bb
1,066
py
Python
tests/test_list_.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
4
2018-06-05T14:07:56.000Z
2021-04-17T12:09:23.000Z
tests/test_list_.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
1
2018-07-10T19:53:54.000Z
2018-07-10T19:58:38.000Z
tests/test_list_.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
2
2020-01-29T10:51:11.000Z
2021-11-11T21:37:24.000Z
import unittest from iterable_collections import collect class TestList_(unittest.TestCase): def test_list(self): c = collect(list(range(10))).list_() self.assertEqual(c.iterable, list(list(range(10)))) def test_set(self): c = collect(set(range(10))).list_() self.assertEqual...
29.611111
68
0.605066
1,004
0.941839
0
0
0
0
0
0
24
0.022514
90b5ceb756a46b298c1cfb2d69501dea6821b502
8,354
py
Python
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
1
2021-04-12T16:07:42.000Z
2021-04-12T16:07:42.000Z
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
null
null
null
parcels/parcels/examples/example_peninsula.py
pdnooteboom/NA_forams
789b45d8cc14225f31242c9c648f4f36c76d2fc4
[ "MIT" ]
1
2021-04-12T16:07:45.000Z
2021-04-12T16:07:45.000Z
from parcels import FieldSet, ParticleSet, ScipyParticle, JITParticle, Variable from parcels import AdvectionRK4, AdvectionEE, AdvectionRK45 from argparse import ArgumentParser import numpy as np import math # NOQA import pytest from datetime import timedelta as delta ptype = {'scipy': ScipyParticle, 'jit': JITParti...
43.061856
112
0.649988
298
0.035672
0
0
1,421
0.170098
0
0
3,433
0.410941
90b614eb6ed41d954f776b1b26da34eda803102b
456
py
Python
TestBegin.py
FrankWangJQ/HttpRunner-master
f0456a5b7b9d23ddb54415b1ea5951416e9601ef
[ "MIT" ]
null
null
null
TestBegin.py
FrankWangJQ/HttpRunner-master
f0456a5b7b9d23ddb54415b1ea5951416e9601ef
[ "MIT" ]
null
null
null
TestBegin.py
FrankWangJQ/HttpRunner-master
f0456a5b7b9d23ddb54415b1ea5951416e9601ef
[ "MIT" ]
null
null
null
from httprunner import HttpRunner import time kwargs = { "failfast":False, #"dot_env_path": "/path/to/.env" } runner = HttpRunner(**kwargs) #入口 runner.run("/Users/wangjianqing/PycharmProjects/HttpRunner-master/tests/testcases/Release/账号管理-设置项.yml") runner.gen_html_report(html_report_name="reportTestForBeta...
26.823529
192
0.800439
0
0
0
0
0
0
0
0
284
0.599156
90b636cded4c580440a67538e3ed1bce323607f4
2,186
py
Python
pyaz/synapse/sql/pool/classification/recommendation/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/synapse/sql/pool/classification/recommendation/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/synapse/sql/pool/classification/recommendation/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage sensitivity classification recommendations. ''' from ...... pyaz_utils import _call_az def list(name, resource_group, workspace_name, filter=None, included_disabled=None, skip_token=None): ''' List the recommended sensitivity classifications of a given SQL pool. Required Parameters: - name ...
42.038462
128
0.718664
0
0
0
0
0
0
0
0
1,780
0.814273
90b6494c1b5e12c59216a90f809c6005fdb48a7e
333
py
Python
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
December Month Challenge/4KthfactorN.py
adesh-gadge/LeetCodePractice
4b142c102e64ec93465af7f4193762e8fd2866ec
[ "MIT" ]
null
null
null
class Solution: def kthFactor(self, n: int, k: int) -> int: s1 = set() s2 = set() for i in range(1,int(n**0.5)+1): if n%i ==0: s1.add(i) s2.add(int(n/i)) l = list(s1|s2) l.sort() if k > len(l): return -1 ...
25.615385
47
0.381381
333
1
0
0
0
0
0
0
0
0
90b74a470408ddeb782e48bf20e39ffd4457275e
1,755
py
Python
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/utils/tests/test_arrfuncs.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
""" Testing array utilities """ import sys import numpy as np from ..arrfuncs import as_native_array, pinv, eigh from numpy.testing import (assert_array_almost_equal, assert_array_equal) from nose.tools import assert_true, assert_false, assert_equal, assert_raises NATIVE_ORDER = '<' if ...
29.745763
77
0.616524
0
0
0
0
0
0
0
0
73
0.041595
90b769e3d5d7b99ed6ee9f9dfa67655328ca1e58
1,571
py
Python
ProgressBar.py
ArisKots1992/Similar-World-News-Articles
426aef1d6d9566e66ad634bc8468d554d887551c
[ "MIT" ]
1
2017-09-09T13:53:09.000Z
2017-09-09T13:53:09.000Z
ProgressBar.py
ArisKots1992/Similar-World-News-Articles
426aef1d6d9566e66ad634bc8468d554d887551c
[ "MIT" ]
null
null
null
ProgressBar.py
ArisKots1992/Similar-World-News-Articles
426aef1d6d9566e66ad634bc8468d554d887551c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import sys import math #HOMEMADE WITHOUT ONLINE CODE by Aris #LIENCE BY ARIS class ProgressBar: def __init__(self,max_size=36): ProgressBar.max_size = max_size ProgressBar.tick = 20.0/max_size ProgressBar.progress_counter = 0.0 ProgressBar.counte...
29.092593
84
0.57352
1,472
0.926369
0
0
0
0
0
0
201
0.126495
90b7ba0980ae3d667866aa6f68a2acda5b4f0621
1,895
py
Python
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
3
2018-07-09T12:15:46.000Z
2020-12-03T07:02:23.000Z
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
1
2019-05-09T21:57:20.000Z
2019-05-09T21:57:20.000Z
src/vtra/plot/rail_network_map.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
2
2018-07-23T12:49:21.000Z
2021-06-03T11:00:44.000Z
"""Rail network map """ import os import sys from collections import OrderedDict import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib.pyplot as plt from vtra.utils import * def main(): config = load_config() output_file = os.path.join(config['paths']['figures'], 'rail-map.p...
28.712121
77
0.604749
0
0
0
0
0
0
0
0
331
0.17467
90b801d343545a11009f0b5ecc8dd2af2c9f92ca
3,189
py
Python
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-27 20:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( ...
41.415584
123
0.54688
3,056
0.958294
0
0
0
0
0
0
475
0.14895
90b9151bc28db99fb5989633cea86f3faad362ff
4,471
py
Python
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
pydl/pydlspec2d/tests/test_spec1d.py
jhennawi/pydl
3926aab6fd57c27e13d571156077de41343881c1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import numpy as np import os from astropy.tests.helper import raises from astropy.utils.data import get_pkg_data_filename from .. import Pydlspec2dException from ..spec1d import (HMF, findspec, spec_append, spec_path, template_metad...
38.543103
79
0.47193
4,109
0.919034
0
0
0
0
0
0
539
0.120555
90b979db4f0ee9199884997c5ba3cb24bb11e60e
7,800
py
Python
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
final/good_evaluate.py
wuyuMk7/CSCI8980
9cceffcac7975ee158655f3953e27b502fc383ea
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import os from absl import flags import numpy as np import skimage.io as io import cv2 import matplotlib.pyplot as plt # import tensorflow as tf # from psbody.mesh import Mesh from smpl_webuser.seria...
34.513274
145
0.680385
1,328
0.170256
0
0
0
0
0
0
2,305
0.295513
90b9c9ce2f3208b12b35d5e78f9d7d9be8454378
92
py
Python
quick-scan.py
B3ND1X/py-air-script
d6756cc2b5ec2a7e7950b13b09c78c776488fd6e
[ "Apache-2.0" ]
2
2021-11-19T10:40:07.000Z
2022-02-28T16:39:49.000Z
quick-scan.py
B3ND1X/py-air-script
d6756cc2b5ec2a7e7950b13b09c78c776488fd6e
[ "Apache-2.0" ]
null
null
null
quick-scan.py
B3ND1X/py-air-script
d6756cc2b5ec2a7e7950b13b09c78c776488fd6e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os os.system("sudo ./scan.py") os.system("sudo ./enable-wifi.py")
15.333333
34
0.673913
0
0
0
0
0
0
0
0
56
0.608696
90b9ca60618e207e4f11df9555b71806b45d69af
1,538
py
Python
src/classifier/classifier_tuning/tune_sklearn.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/classifier_tuning/tune_sklearn.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/classifier_tuning/tune_sklearn.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
from sklearn.ensemble import RandomForestClassifier import xgboost def suggest_xgb(model_params, trial, xgb=None): n_estimators = trial.suggest_int( model_params.n_estimators.name, model_params.n_estimators.lower, model_params.n_estimators.upper, model_params.n_estimators.step, ...
27.963636
71
0.683355
0
0
0
0
0
0
0
0
10
0.006502
90ba1f62b3ac0c6dc5b223b48142b7f90d52dc27
4,958
py
Python
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/model.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
from keras.optimizers import RMSprop from keras.layers import Input, Embedding, Dense, LSTM, Bidirectional, GRU from keras.layers import concatenate, Reshape, SpatialDropout1D from keras.models import Model from keras import backend as K from .AttentionWeightedAverage import AttentionWeightedAverage def textgenrnn_mo...
40.308943
103
0.583905
0
0
0
0
0
0
0
0
881
0.177693
90bbeed86ea6726d8cf4682e4d77c05a1d88ab5a
121,331
py
Python
tests/adapters/switches/brocade_test.py
FrancoisLopez/netman
a40d3235f7ea0cdaf52daab97b0d5ad20857b00e
[ "Apache-2.0" ]
38
2015-11-30T10:11:42.000Z
2022-02-10T18:31:44.000Z
tests/adapters/switches/brocade_test.py
FrancoisLopez/netman
a40d3235f7ea0cdaf52daab97b0d5ad20857b00e
[ "Apache-2.0" ]
143
2015-12-10T19:00:42.000Z
2020-08-20T13:51:42.000Z
tests/adapters/switches/brocade_test.py
FrancoisLopez/netman
a40d3235f7ea0cdaf52daab97b0d5ad20857b00e
[ "Apache-2.0" ]
15
2015-12-14T23:03:30.000Z
2019-01-15T19:35:45.000Z
# Copyright 2015 Internap. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
52.365559
170
0.645779
118,061
0.973049
0
0
2,991
0.024652
0
0
31,501
0.259629
90bd59aae81c9889080df91dbd28e4a9b304ffd9
1,384
py
Python
eahub/base/models.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
36
2019-02-22T23:07:14.000Z
2022-02-10T13:24:27.000Z
eahub/base/models.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
717
2019-02-21T22:07:55.000Z
2022-02-26T15:17:49.000Z
eahub/base/models.py
walambert/eahub.org
21b6111b2626e4739c249d0881d16fbc818094cb
[ "MIT" ]
19
2019-04-14T14:37:56.000Z
2022-02-14T22:05:16.000Z
import uuid from authtools import models as authtools_models from django.core.validators import URLValidator from django.db import models from django.utils import timezone from solo.models import SingletonModel class User(authtools_models.AbstractEmailUser): # django-allauth puts Google or EA.org SSO data in tho...
28.833333
85
0.710983
1,163
0.840318
0
0
0
0
0
0
226
0.163295
90bee561f7ee7014b2253c39a50c061487d0ec34
2,106
py
Python
scripts/math/generate_matrix_test.py
chr15murray/ledger
85be05221f19598de8c6c58652139a1f2d9e362f
[ "Apache-2.0" ]
96
2018-08-23T16:49:05.000Z
2021-11-25T00:47:16.000Z
scripts/math/generate_matrix_test.py
chr15murray/ledger
85be05221f19598de8c6c58652139a1f2d9e362f
[ "Apache-2.0" ]
1,011
2018-08-17T12:25:21.000Z
2021-11-18T09:30:19.000Z
scripts/math/generate_matrix_test.py
chr15murray/ledger
85be05221f19598de8c6c58652139a1f2d9e362f
[ "Apache-2.0" ]
65
2018-08-20T20:05:40.000Z
2022-02-26T23:54:35.000Z
import numpy as np types = ["int", "float", "double"] def randi(*args): return np.random.randint(-10, 10, size=args) rngs = {"int": randi, "float": np.random.randn, "double": np.random.randn} embodiments = { "function": "R.%s(A,B).AllClose(C)", "op": "(A %s B).AllClose(C)", "inline_op": "(R = A, R ...
25.071429
85
0.417854
0
0
0
0
0
0
0
0
645
0.306268
90c01fddb271dd8ab9c578d5f65f7244cd0b0416
2,824
py
Python
Lab 2/utils/inference_utils.py
davedecoder/aws-deepcomposer-samples
34f94a04436dc3fa0ded8c353e0f3260f1b3305e
[ "MIT-0" ]
6
2021-10-11T12:39:01.000Z
2022-03-27T16:01:41.000Z
notebooks/AWS DeepComposer/reinvent-labs/lab-2/utils/inference_utils.py
jesussantana/AWS-Machine-Learning-Foundations
526eddb486fe8398cafcc30184c4ecce49df5816
[ "MIT" ]
null
null
null
notebooks/AWS DeepComposer/reinvent-labs/lab-2/utils/inference_utils.py
jesussantana/AWS-Machine-Learning-Foundations
526eddb486fe8398cafcc30184c4ecce49df5816
[ "MIT" ]
5
2020-05-16T13:06:52.000Z
2020-11-14T11:56:26.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # us...
46.295082
127
0.725921
0
0
0
0
0
0
0
0
1,293
0.457861
90c06ceec71cc460139a2abcafcd42b40b0a56a8
315
py
Python
python/aisdk/player_movement.py
THUAI-Team/thuai2022-aisdk
84d3239f3edd13cd9ffd9ad61c12890f393d8b88
[ "MIT" ]
null
null
null
python/aisdk/player_movement.py
THUAI-Team/thuai2022-aisdk
84d3239f3edd13cd9ffd9ad61c12890f393d8b88
[ "MIT" ]
null
null
null
python/aisdk/player_movement.py
THUAI-Team/thuai2022-aisdk
84d3239f3edd13cd9ffd9ad61c12890f393d8b88
[ "MIT" ]
null
null
null
from enum import Enum from sys import stderr class PlayerMovement(Enum): STOPPED = 0 WALKING = 1 RUNNING = 2 SLIPPED = 3 def to_json_representation(self): return (str(self).split('.')[1]).lower() class MovementNotAllowedError(ValueError): def __init__(self, message): super().__init__(message)
22.5
44
0.714286
267
0.847619
0
0
0
0
0
0
3
0.009524
90c0801975d3d3c99714cb7e0cfc32ffb8ce7205
251
py
Python
diagnosticApp/admin.py
LASI-UFPI/diagnostic-imaging
7afd732dd76fe92bf6a2eba48e69fa4102a978cc
[ "MIT" ]
null
null
null
diagnosticApp/admin.py
LASI-UFPI/diagnostic-imaging
7afd732dd76fe92bf6a2eba48e69fa4102a978cc
[ "MIT" ]
10
2021-04-04T19:07:41.000Z
2022-03-12T00:54:50.000Z
diagnosticApp/admin.py
LASI-UFPI/diagnostic-imaging
7afd732dd76fe92bf6a2eba48e69fa4102a978cc
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Image @admin.register(Image) class ImageAdmin(admin.ModelAdmin): list_display = ('image', 'predict_covid', 'predict_no_findings', 'predict_pneumonia', 'created_at', 'updated_at', 'activated_at')
35.857143
131
0.776892
167
0.665339
0
0
190
0.756972
0
0
100
0.398406
90c1b22f3826d40d5a8ce3040c417f17a6d33b58
1,247
py
Python
digraph/source/generator.py
addy1997/python-RRT
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
11
2020-05-28T00:55:55.000Z
2022-01-03T10:59:26.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
1
2020-10-19T16:20:30.000Z
2021-03-22T19:01:14.000Z
digraph/source/generator.py
addy1997/Internship-HTIC
93983e17f2e6e93ff79c8f04a86ce28718ba2779
[ "MIT" ]
2
2021-07-07T01:09:50.000Z
2022-03-12T23:40:56.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from time import time import networkx as nx from source.DiGraph import DiGraph from source.model.Edge import Edge def text_to_dict(filename): in_file = open("filename", "r") lines = in_file.read() in_file.close() open_bracket = lines.index("{") ...
18.893939
51
0.572574
0
0
0
0
0
0
0
0
71
0.056937
90c3c10d1bd2a3bf341092a750b3ced35a3d1342
451
py
Python
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
1
2022-03-15T03:03:26.000Z
2022-03-15T03:03:26.000Z
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
[1] BEGINNER/1000 - Hello World!.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
''' https://resources.urionlinejudge.com.br/gallery/images/problems/UOJ_1000.png Bem-vindo ao URI Online Judge! O seu primeiro programa em qualquer linguagem de programação normalmente é o "Hello World!". Neste primeiro problema tudo o que você precisa fazer é imprimir esta mensagem na tela. Entrada Este problema nã...
30.066667
180
0.78714
0
0
0
0
0
0
0
0
450
0.980392
90c4143d466cb79c3fc483f709341546a5611433
615
py
Python
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0668_square_root_smooth_numbers.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 668: Square root smooth Numbers # https://projecteuler.net/problem=668 # # A positive integer is called square root smooth if all of its prime factors # are strictly less than its square root. Including the number $1$, there are # $29$ square root smooth numbers not exceeding $...
26.73913
78
0.705691
0
0
0
0
0
0
0
0
464
0.754472
90c531d029592c14df121556138eab86864faa16
2,927
py
Python
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
user/forms.py
Zidan-Kharisma-Sakana/uts-f02
d29652cb73829ffa63e0ca4d0e5f8d6d62500367
[ "Unlicense" ]
null
null
null
from django import forms from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.forms import ValidationError, EmailField from user import models class MyAuthenticationForm(AuthenticationForm): ...
32.522222
98
0.585924
2,656
0.906794
0
0
0
0
0
0
699
0.238648
90c5a20a145e1728ffe9af8247c9eff4f8b98279
3,476
py
Python
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
32
2020-07-16T07:11:35.000Z
2022-02-27T19:01:03.000Z
data-structures-and-algorithms/examples/binary_tree_recursive.py
vinnyhoward/til
8bb0055578220c4d83ddd12ac34bbb2fd3ae000e
[ "MIT" ]
null
null
null
class Node(object): # Similar to Linked List initial set-up def __init__(self, value): # Constructor self.value = value self.left = None self.right = None class BinaryTree(object): def __init__(self, root): self.root = Node(root) def print_tree(self, traversal_type): ...
31.315315
114
0.585155
1,702
0.489643
0
0
0
0
0
0
1,577
0.453682
90c608f7d84094a6c38930b235bc4cc2b22ca8af
2,044
py
Python
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
null
null
null
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
8
2020-04-18T20:20:08.000Z
2020-05-06T13:39:03.000Z
powerranger/files.py
clayboone/powerranger
09315c8b37132add56ce31f1b0c1dd0b1692bd23
[ "MIT" ]
null
null
null
import curses import itertools import os from pathlib import Path import stat from typing import Optional, Union import config from colors import Colors class Item: """An item inside of a Directory.""" def __init__(self, path: Union[Path, str]): self._path = Path(path) self._selected = False ...
27.253333
98
0.620841
1,884
0.921722
529
0.258806
697
0.340998
0
0
347
0.169765
90c62d1dcdf46b749f960d31f0195049399228f2
12,647
py
Python
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
1
2019-04-19T06:39:41.000Z
2019-04-19T06:39:41.000Z
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
parlai/mturk/webapp/run_mocks/mock_turk_manager.py
lizekang/ParlAI
9e113105d1690deda0b372f6aeaf933ab58e3a72
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. im...
39.276398
79
0.633826
11,925
0.942911
0
0
0
0
0
0
3,729
0.294853
90c6e79ecc4dd80005f6bae2d4343c17f1c96324
6,517
py
Python
scripts/train_model.py
allenai/sledgehammer
03982da9cd0c543a76832a903033c2d97dbfb113
[ "Apache-2.0" ]
47
2020-04-14T18:10:05.000Z
2022-02-16T05:17:03.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
1
2020-05-04T19:35:06.000Z
2020-06-08T02:53:53.000Z
scripts/train_model.py
yardenTal1/sledgehammer
842a48023451a81c83cdf29cdd7c601b1114a207
[ "Apache-2.0" ]
9
2020-04-12T17:31:12.000Z
2022-03-19T21:23:59.000Z
#!/usr/bin/env python import sys import os import random import copy import subprocess from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter # PYTHON_DIR="/".join(os.environ['CONDA_EXE'].split("/")[:-2])+'/envs/allennlp_0.8.4/bin/' exit_threshold=0.9 def main(): parser = arg_parser() a...
45.894366
570
0.603038
0
0
0
0
0
0
0
0
2,251
0.345404
90c797e8f34b8974fc670dfa1133ddb2a05d7a20
918
py
Python
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
utils/gather_files.py
letsgo247/KFG
dd055fc8349a9ea95497d04ecc4b52c04e09debc
[ "MIT" ]
null
null
null
import os import shutil import time def read_all_file(path): output = os.listdir(path) file_list = [] for i in output: if os.path.isdir(path+"/"+i): file_list.extend(read_all_file(path+"/"+i)) elif os.path.isfile(path+"/"+i): file_list.append(path+"/"+i) ...
27
65
0.604575
0
0
0
0
0
0
0
0
293
0.291833
90c806da308d72b961e15453707e27dd9643ad2b
1,897
py
Python
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
4
2019-06-28T23:27:43.000Z
2021-09-27T03:17:58.000Z
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
2
2020-01-16T19:39:44.000Z
2021-02-24T22:45:37.000Z
code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py
wenhel/Argus
39768a8d1671eb80f86bbd67e58478a4cbdcdeca
[ "MIT" ]
1
2019-09-09T07:40:45.000Z
2019-09-09T07:40:45.000Z
"""Actev module: get-system git Actev modules are used to parse actev commands in order to get arguments before calling associated entry point methods to execute systems. Warning: this file should not be modified: see src/entry_points to add your source code. """ from diva_evaluation_cli.bin.commands.actev_command i...
43.113636
111
0.641012
1,554
0.819188
0
0
0
0
0
0
1,231
0.648919
90c8c7759fc79bbde613e0b6f813d1b176c1ecaf
902
py
Python
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
3
2017-02-05T03:17:13.000Z
2019-03-11T19:44:34.000Z
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
null
null
null
1.8.first-promise.py
senpl/course-promises
df4b64a02d0a7ab4bb372c0fae5e92c98830cd44
[ "MIT" ]
7
2016-06-19T02:24:09.000Z
2018-09-11T01:32:02.000Z
import re textinput = widget_inputs["text1"] comments = [] def commentizer(new): if new not in comments: comments.append(new) is_correct = False result = re.match(".*window.*", textinput, flags=re.IGNORECASE) if result: is_correct = True commentizer("You're right, but there's a little more to it...
29.096774
115
0.701774
0
0
0
0
0
0
0
0
314
0.348115
90c8e1c41e29404a0d0d0511d6b46db43890fb89
4,106
py
Python
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
8
2020-12-05T00:13:03.000Z
2022-01-11T11:35:51.000Z
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
12
2020-12-14T18:21:21.000Z
2022-03-29T17:06:20.000Z
test/test_markdown_parser.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
2
2021-06-27T09:32:55.000Z
2022-02-27T23:17:36.000Z
import unittest from html import escape from src.markdown_parser import convert_github_markdown_to_asana_xml class TestConvertGithubMarkdownToAsanaXml(unittest.TestCase): def test_basic_markdown(self): md = """~~strike~~ **bold** _italic_ `code` [link](asana.com)""" xml = convert_github_markdown_...
33.933884
115
0.585485
3,904
0.950804
0
0
0
0
0
0
1,343
0.327082
90cb7a749d3451fbf2614d7b4cc6d0e278b4fb6b
3,724
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ftd/ftd_file_upload.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible 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 3 of the License, or # (at your ...
33.854545
117
0.705961
0
0
0
0
0
0
0
0
2,072
0.556391
90cbba8be9d213494b028b083d0b0f3629b1868d
1,244
py
Python
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
2
2019-08-16T11:21:10.000Z
2022-01-03T21:10:59.000Z
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
agent/indy_catalyst_agent/messaging/trustping/routes.py
nairobi222/indy-catalyst
dcbd80524ace7747ecfecd716ff932e9b571d69a
[ "Apache-2.0" ]
null
null
null
"""Trust ping admin routes.""" from aiohttp import web from aiohttp_apispec import docs from ..connections.models.connection_record import ConnectionRecord from .messages.ping import Ping from ...storage.error import StorageNotFoundError @docs(tags=["trustping"], summary="Send a trust ping to a connection") async d...
29.619048
84
0.730707
0
0
0
0
844
0.678457
927
0.745177
304
0.244373
90cceb9760edd56688a99f6ee73a68bdf983a84e
619
py
Python
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
32
2015-01-23T16:13:20.000Z
2021-05-29T21:11:42.000Z
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
null
null
null
python/wotdbg.py
wanyancan/wot-debugserver
4c6dd5c511659885abb355bef7c9318ed3e42937
[ "MIT" ]
16
2015-08-25T08:02:52.000Z
2022-01-19T19:16:16.000Z
import os.path import tcprepl import BigWorld def echo(s): '''Send string to client''' if tcprepl.write_client is not None: tcprepl.write_client(s) def exec_file(filename, exec_globals=None): ''' Execute file Try to find file named `filename` and execute it. If `exec_globals` is spec...
22.107143
74
0.660743
0
0
0
0
0
0
0
0
192
0.310178
90cd458888a31c41557f6a303abf3a9a1b516bae
40
py
Python
quicken/_internal/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
3
2019-11-12T17:56:08.000Z
2022-03-12T03:43:10.000Z
quicken/_internal/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
47
2018-12-10T04:08:58.000Z
2022-03-20T14:54:36.000Z
quicken/_internal/__init__.py
chrahunt/quicken
2dd00a5f024d7b114b211aad8a2618ec8f101956
[ "MIT" ]
1
2019-11-12T17:55:17.000Z
2019-11-12T17:55:17.000Z
class QuickenError(Exception): pass
13.333333
30
0.75
39
0.975
0
0
0
0
0
0
0
0
90d0a5da5e0a56dfea4ae7b895d09b65486f6dc4
1,861
py
Python
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
1
2021-10-30T17:49:28.000Z
2021-10-30T17:49:28.000Z
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
folderikon/exceptions.py
demberto/FolderIkon
62088b3e46266a6a53632a1e85bdb3d0a46e8cab
[ "MIT" ]
null
null
null
"""Exception which are not actually thrown, only their docstrings are used.""" import colorama import sys __all__ = [ "Error", "ParentIsNotAFolderError", "InvalidURLError", "ImageFormatNotSupportedError", "ImageNotSpecifiedError", "FolderIconAlreadyExistsError", "DesktopIniError", "exc...
22.975309
108
0.652875
1,437
0.772166
0
0
126
0.067706
0
0
696
0.373992
90d0ff663bec28d2147cf9908b2baeccc98682a7
1,224
py
Python
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
234
2015-08-25T02:41:33.000Z
2020-03-30T15:30:23.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
170
2015-09-12T07:02:32.000Z
2020-03-20T13:34:34.000Z
quickbooks/objects/companycurrency.py
varunbheemaiah/python-quickbooks
f5459a07619ae220e24099c6e0c8e8db890bb66b
[ "MIT" ]
142
2015-08-26T07:08:56.000Z
2020-03-20T11:59:52.000Z
from six import python_2_unicode_compatible from .base import QuickbooksManagedObject, QuickbooksTransactionEntity, Ref, CustomField, MetaData @python_2_unicode_compatible class CompanyCurrency(QuickbooksManagedObject, QuickbooksTransactionEntity): """ QBO definition: Applicable only for those companies that ...
28.465116
107
0.688725
1,049
0.857026
0
0
1,078
0.880719
0
0
437
0.357026
90d1622a98abf59a298f4b58a00b76f812b4c744
604
py
Python
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
null
null
null
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
3
2021-04-08T17:44:07.000Z
2021-04-12T09:38:26.000Z
books/migrations/0004_alter_book_category.py
MwinyiMoha/books-service
31a980a8505c5d5c2acad698bb493fad8c0ce8fe
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-10 12:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("books", "0003_auto_20210410_1231")] operations = [ migrations.AlterField( model_name="book", name="category", field=mod...
24.16
57
0.47351
513
0.849338
0
0
0
0
0
0
152
0.251656
90d18046bd7a28075eedb453f3f4d1aabe4f7e65
16,575
py
Python
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
syft/execution/placeholder.py
juharris/PySyft
dbb70f24cc55a7dca032fb06f1a8662cb15092a9
[ "Apache-2.0" ]
null
null
null
from itertools import zip_longest import syft from syft.generic.frameworks.hook import hook_args from syft.generic.abstract.tensor import AbstractTensor from syft.workers.abstract import AbstractWorker from syft_proto.execution.v1.placeholder_pb2 import Placeholder as PlaceholderPB class PlaceHolder(AbstractTensor):...
37.247191
98
0.640422
16,193
0.976953
0
0
8,575
0.517345
0
0
5,092
0.30721
90d1a9736c8c20db26fd37eb2b021b1ef2da5b41
21,547
py
Python
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
53
2019-10-02T17:10:49.000Z
2022-03-04T17:35:26.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
1
2021-09-24T01:00:54.000Z
2021-09-24T03:06:43.000Z
creativeflow/blender/render_main.py
idaho777/creativeflow
adf7a9e1cf70005560cfbf8064137fb1236bc574
[ "MIT" ]
6
2019-11-26T11:44:45.000Z
2021-11-11T22:23:50.000Z
""" MAIN STYLING AND RENDERING FILE Requirements: ------------------------------------------------------------------------------ IMPORTANT! This has only been tested with Blender 2.79 API. We have run this on Linux and MacOS. Execution: ------------------------------------------------------------------------------ Th...
49.194064
108
0.58616
0
0
0
0
0
0
0
0
9,526
0.442103
90d3d04333f570bee6151ef38e0d8057f563ad15
5,004
py
Python
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_contrib/src/test/archiving/test_artifact_downloader.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
from foundations_spec import * from unittest.mock import call class TestArtifactDownloader(Spec): mock_archiver = let_mock() make_directory_mock = let_patch_mock('os.makedirs') @let def source_directory(self): return self.faker.uri_path() @let def download_directory(self): ...
42.769231
146
0.689249
4,932
0.985612
0
0
1,198
0.239408
0
0
1,027
0.205236
90d3d4041471f93cb0f82d38f927e393e1e21818
34,846
py
Python
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
21
2021-01-10T16:44:55.000Z
2022-03-03T13:15:07.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
3
2021-01-10T15:38:50.000Z
2021-04-29T09:45:47.000Z
lib/python3.5/functional/test/test_functional.py
mklan/NX-Rom-Market
33613d2177b63df9e0568038ffdf1dd91ad334d8
[ "MIT" ]
1
2021-01-10T15:07:38.000Z
2021-01-10T15:07:38.000Z
# pylint: skip-file import unittest import array from collections import namedtuple from itertools import product from functional.pipeline import Sequence, is_iterable, _wrap, extend from functional.transformations import name from functional import seq, pseq Data = namedtuple("Data", "x y") def pandas_is_installed...
34.229862
88
0.544711
34,394
0.987029
0
0
1,141
0.032744
0
0
1,316
0.037766
90d42edecd2171b0bdded78b6fa56be73310676a
9,412
py
Python
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
1,582
2015-01-05T02:41:44.000Z
2022-03-30T20:03:22.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
66
2015-01-23T07:58:04.000Z
2021-11-12T02:23:27.000Z
tests/test_git_commit_one_file.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
347
2015-01-05T07:47:07.000Z
2021-09-20T21:22:32.000Z
# -*- coding: utf-8 -*- import os from vilya.models.project import CodeDoubanProject from vilya.models import git from tests.base import TestCase from tests.utils import mkdtemp from vilya.libs import gyt from vilya.libs.permdir import get_repo_root class TestGit(TestCase): @property def u(self): ...
42.977169
95
0.595516
9,155
0.972694
0
0
56
0.00595
0
0
2,461
0.261475
90d5aacb48382d69453f984a43223f2aa79a4272
11,704
py
Python
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
13
2016-02-02T00:26:21.000Z
2022-01-14T07:31:59.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
674
2015-09-15T15:02:06.000Z
2022-02-23T18:39:02.000Z
py/desitarget/train/data_preparation/PredCountsFromQLF_ClassModule.py
echaussidon/desitarget
1206380dac5155b9e7bf238c7cb187bc797d78a3
[ "BSD-3-Clause" ]
29
2015-06-09T13:51:48.000Z
2021-06-05T06:03:18.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import re import numpy as np from scipy.interpolate import interp2d from scipy.interpolate import interp1d class PredCountsFromQLF_Class(): def __init__(self): self.QLF_OK = False self.EFF_OK = False self.QLF_EFF_OK = False # QLF ...
38.5
114
0.605092
11,547
0.986586
0
0
0
0
0
0
691
0.05904
90d6fa60d16e379bff07b720da304a90340377ce
1,135
py
Python
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
safe_control_gym/controllers/__init__.py
gokhanalcan/safe-control-gym
e9086e102663a60a66f2cc9c8cd7610888744056
[ "MIT" ]
null
null
null
"""Register controllers. """ from safe_control_gym.utils.registration import register register(id="mpc", entry_point="safe_control_gym.controllers.mpc.mpc:MPC", config_entry_point="safe_control_gym.controllers.mpc:mpc.yaml") register(id="linear_mpc", entry_point="safe_control_gym.controlle...
39.137931
91
0.757709
0
0
0
0
0
0
0
0
669
0.589427
90d7c582c62cd57d3012bffede812a95aec2d89a
378
py
Python
tests/plot_profile/test_utils.py
mizeller/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
null
null
null
tests/plot_profile/test_utils.py
mizeller/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
3
2021-11-10T15:37:27.000Z
2022-03-28T13:29:42.000Z
tests/plot_profile/test_utils.py
MeteoSwiss-APN/plot_profile
832f1d47a182d65747f18cf1ac90afc9a3b821c1
[ "MIT" ]
null
null
null
"""Test module ``plot_profile/utils.py``.""" # Standard library import logging # First-party from plot_profile.utils import count_to_log_level def test_count_to_log_level(): assert count_to_log_level(0) == logging.ERROR assert count_to_log_level(1) == logging.WARNING assert count_to_log_level(2) == loggi...
27
51
0.759259
0
0
0
0
0
0
0
0
75
0.198413
90d92df312eb9bb3199567f0c02a6aff1611d818
1,116
py
Python
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
spider/utilities/util_config.py
YunofHD/PSpider
c1c9e1e7c61365e140a55541cc558d7c1b9e50f2
[ "BSD-2-Clause" ]
null
null
null
# _*_ coding: utf-8 _*_ """ util_config.py by xianhu """ __all__ = [ "CONFIG_FETCH_MESSAGE", "CONFIG_PARSE_MESSAGE", "CONFIG_MESSAGE_PATTERN", "CONFIG_URL_LEGAL_PATTERN", "CONFIG_URL_ILLEGAL_PATTERN", ] # define the structure of message, used in Fetcher and Parser CONFIG_FETCH_MESSAGE = "priority...
42.923077
147
0.634409
0
0
0
0
0
0
0
0
836
0.749104
90d9a5726836680355d0f136ca02e9d3ff263f57
1,087
py
Python
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
2
2021-04-08T06:16:21.000Z
2022-01-25T18:18:51.000Z
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
3
2020-11-16T15:24:53.000Z
2021-11-10T10:27:50.000Z
modcma/__main__.py
IOHprofiler/ModularCMAES
5ae3310d68b7e2bc37ef10de07945e89c16d6654
[ "MIT" ]
2
2021-01-13T15:36:46.000Z
2021-04-08T06:24:25.000Z
"""Allows the user to call the library as a cli-module.""" from argparse import ArgumentParser from .modularcmaes import evaluate_bbob parser = ArgumentParser(description="Run single function CMAES") parser.add_argument( "-f", "--fid", type=int, help="bbob function id", required=False, default=5 ) parser.add_ar...
29.378378
79
0.689052
0
0
0
0
0
0
0
0
317
0.291628
90da83a21ced32c3bda1f81dfc548d05d09d8656
7,303
py
Python
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
17
2020-10-24T18:03:54.000Z
2020-11-11T22:25:16.000Z
src/rto/optimization/solvers/de.py
vicrsp/rto
e9e0b87533ae6bc5e6ad228bb26172384802f9b7
[ "MIT" ]
null
null
null
import numpy as np class DifferentialEvolution: def __init__(self, lb, ub, mutation_prob=0.5, pop_size=10, max_generations=100, de_type='rand/1/bin', callback=None): self.lb = np.asarray(lb).reshape(1, -1) self.ub = np.asarray(ub).reshape(1, -1) self.population_size = pop_size self...
37.451282
121
0.546899
7,281
0.996988
0
0
0
0
0
0
668
0.091469
90db629f11aa0043b43ed88cb2e40c8fc351233e
2,122
py
Python
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
openmdao/matrices/csr_matrix.py
onodip/OpenMDAO
96a99806fb3a547b881d2ad3da2733bca9978567
[ "Apache-2.0" ]
null
null
null
"""Define the CSRmatrix class.""" import numpy as np from scipy.sparse import coo_matrix from six import iteritems from openmdao.matrices.coo_matrix import COOMatrix class CSRMatrix(COOMatrix): """ Sparse matrix in Compressed Row Storage format. """ def _build(self, num_rows, num_cols): """...
34.786885
83
0.60132
1,951
0.919416
0
0
0
0
0
0
941
0.44345
90decc71935f62f946a40921c43b3f8580f075de
2,398
py
Python
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
6
2021-12-27T07:55:16.000Z
2022-01-26T04:36:53.000Z
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
null
null
null
setup.py
medchemfi/sdfconf
81b1ed383c1d4b3e633fdc555e4027091226b025
[ "MIT" ]
3
2022-01-06T13:54:48.000Z
2022-01-26T04:36:54.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import re import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open("src/sdfconf/_version.py", "rt") as vf: VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" for line in vf: mo = re.search...
42.821429
97
0.470809
0
0
0
0
0
0
0
0
1,025
0.427083
90df7ee581fbe2b55cfc18df37ae0baf763d0554
2,453
py
Python
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
stacks/cognito_stack.py
adamdubey/devops-serverless-app-aws-cdk
3e1ba3f9905c4f8469275e51448fb908b64a736a
[ "MIT" ]
null
null
null
from aws_cdk import ( aws_cognito as cognito, aws_iam as iam, aws_ssm as ssm, core ) class CognitoStack(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) prj_name = self.node.try_get_context("project_name") ...
34.069444
77
0.538932
2,350
0.958011
0
0
0
0
0
0
306
0.124745
90dfa79ebe79555eaeba7589bba91bb7586ad592
3,570
py
Python
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/rules/aws/context_aware/s3_bucket_policy_vpc_endpoint_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from typing import Dict, List from cloudrail.knowledge.context.aws.iam.policy import S3Policy from cloudrail.knowledge.context.aws.iam.policy_statement import StatementEffect from cloudrail.knowledge.context.aws.s3.s3_bucket import S3Bucket from cloudrail.knowledge.context.aws.ec2.vpc import Vpc from cloudrail.knowled...
51.73913
123
0.671989
2,900
0.812325
0
0
1,503
0.421008
0
0
326
0.091317
90e09e247242d171d4b02ca536f204cbdf79e682
2,034
py
Python
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
1
2020-11-30T18:05:24.000Z
2020-11-30T18:05:24.000Z
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
null
null
null
src/gluonts/core/serde/_json.py
PascalIversen/gluon-ts
cb6b5145b94f942f7803383a70813363f6953509
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
26.076923
75
0.67355
0
0
0
0
0
0
0
0
1,738
0.854474
90e1d06ca5448614066727df6e46a00f224d0fe4
36,937
py
Python
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
7
2017-07-24T15:19:29.000Z
2018-11-18T21:59:13.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
1
2018-06-12T10:30:23.000Z
2018-06-12T15:54:01.000Z
run.py
Aisbergg/docker-image-arch-aur-makepkg
26b7fed14838f52560c8fd4ba222c1c3d41ce00d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os import sys import re import shutil import tempfile import pwd import grp import tarfile import time import glob import urllib.request from subprocess import Popen, PIPE import aur import pacman local_source_dir = '/makepkg/local_src' build_dir = os.path.abspath('/makepkg/b...
35.861165
166
0.570133
17,632
0.477198
153
0.004141
0
0
0
0
11,071
0.299629
90e34a12e8b9e4a3553e847fbec09a27e4f92d6a
12,680
py
Python
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
1
2021-09-01T02:11:03.000Z
2021-09-01T02:11:03.000Z
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
test/test_schemagen.py
hd23408/nist-schemagen
258e453d6f3bdc763e48e2c32668c932f7ffcd40
[ "MIT" ]
null
null
null
"""Test methods for testing the schemagen package (specifically, the SchemaGenerator class). Typical usage example: python -m unittest or, to run a single test: python -m unittest -k test__build_schema """ import unittest import pathlib import logging import copy import os import pandas as pd import numpy a...
38.895706
146
0.711435
9,870
0.778391
0
0
0
0
0
0
5,358
0.422555
90e49b3af233dbd74b52999ca2aa64df02b0beff
368
py
Python
core/migrations/0008_auto_20190528_1802.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
2
2019-05-22T21:54:43.000Z
2019-05-26T22:22:14.000Z
core/migrations/0008_auto_20190528_1802.py
peterson-dev/code-snippet-app
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
14
2020-02-12T00:04:05.000Z
2022-03-11T23:51:10.000Z
core/migrations/0008_auto_20190528_1802.py
peterson-dev/kode-kangaroo
b5ecb7b8b679c307d361a7ce100d4115f92d99a5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-28 22:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20190523_1740'), ] operations = [ migrations.RenameField( model_name='snippet', old_name='post_content', ...
19.368421
47
0.589674
283
0.769022
0
0
0
0
0
0
110
0.298913
90e4c87211faae293a93093b6b860b2f8d021a50
2,740
py
Python
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
22
2021-04-28T03:48:53.000Z
2022-01-24T09:42:53.000Z
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
1
2021-08-08T20:10:18.000Z
2021-08-23T07:33:38.000Z
scripts/Biupdownsample/grad_check.py
dongdong93/a2u_matting
1d0ad8e630cce50c5b36c40ad384c888d292f9a8
[ "MIT" ]
5
2021-09-17T08:02:06.000Z
2022-01-24T09:43:03.000Z
import os.path as osp import sys import subprocess subprocess.call(['pip', 'install', 'cvbase']) import cvbase as cvb import torch from torch.autograd import gradcheck sys.path.append(osp.abspath(osp.join(__file__, '../../'))) from biupdownsample import biupsample_naive, BiupsampleNaive from biupdownsample import bid...
31.494253
79
0.691606
0
0
0
0
0
0
0
0
439
0.160219