hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794d386805036f115e96769717b98ec508bf7e53
1,178
py
Python
tests/openbb_terminal/stocks/technical_analysis/test_finbrain_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
255
2022-03-29T16:43:51.000Z
2022-03-31T23:57:08.000Z
tests/openbb_terminal/stocks/technical_analysis/test_finbrain_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
14
2022-03-29T14:20:33.000Z
2022-03-31T23:39:20.000Z
tests/openbb_terminal/stocks/technical_analysis/test_finbrain_model.py
tehcoderer/GamestonkTerminal
54a1b6f545a0016c576e9e00eef5c003d229dacf
[ "MIT" ]
24
2022-03-29T15:28:56.000Z
2022-03-31T23:54:15.000Z
# IMPORTATION STANDARD # IMPORTATION THIRDPARTY import pytest import requests # IMPORTATION INTERNAL from openbb_terminal.stocks.technical_analysis import finbrain_model @pytest.mark.vcr def test_get_technical_summary_report(recorder): result = finbrain_model.get_technical_summary_report(ticker="PM") record...
29.45
84
0.767402
794d38d417a827f9f66891884a9c1a8ab3cfd49c
338
py
Python
Article/admin.py
yqji/DJNeverDie
6126ca4093f8d06b5a044c330e832432fec0a0c2
[ "Apache-2.0" ]
null
null
null
Article/admin.py
yqji/DJNeverDie
6126ca4093f8d06b5a044c330e832432fec0a0c2
[ "Apache-2.0" ]
null
null
null
Article/admin.py
yqji/DJNeverDie
6126ca4093f8d06b5a044c330e832432fec0a0c2
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Article class ArticleAdmin(admin.ModelAdmin): list_display = ('title', 'author', 'channel', 'views', 'comments') search_fields = ('title', 'author', 'channel') list_filter = ('channel', 'status') admin.site.register(Artic...
24.142857
70
0.707101
794d39043eb2435ed937a555210ffa15f3729d2f
3,330
py
Python
hy_corporate_bond_curve_prediction_early/hy_corporate_bond.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
hy_corporate_bond_curve_prediction_early/hy_corporate_bond.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
hy_corporate_bond_curve_prediction_early/hy_corporate_bond.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df=pd.read_csv('D:/UIUC_courses/IE517/IE517_FY21_HW3/HY_Universe_corporate_bond.csv') print(df.describe()) df=df.values df[:,14]=df[:,14].astype(str) df[:,12]=df[:,12].astype(str) df[:,5:9]=df[:,5:9].astype(str) df[:,15]=df...
33.979592
100
0.654655
794d3af425e416e2939c54c9c56f391f4e882fca
634
py
Python
app/manage.py
justTill/whereToLunch
555ffd9c987cbbb17bd4b69ab48fe23b58691bbd
[ "Unlicense" ]
1
2020-05-21T15:12:19.000Z
2020-05-21T15:12:19.000Z
app/manage.py
justTill/whereToLunch
555ffd9c987cbbb17bd4b69ab48fe23b58691bbd
[ "Unlicense" ]
10
2020-04-08T14:44:17.000Z
2021-06-10T20:00:10.000Z
app/manage.py
justTill/whereToLunch
555ffd9c987cbbb17bd4b69ab48fe23b58691bbd
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'LightningLunch.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
28.818182
78
0.68612
794d3b0d117ecaad7916dadae5a0e633c09ef3b5
413
py
Python
museosMadrid/migrations/0007_usuario_count.py
AlbertoCoding/X-Serv-Practica-Museos
5d3e3c99b8750ece9973f4e04ae3c3bfe77f3946
[ "Apache-2.0" ]
null
null
null
museosMadrid/migrations/0007_usuario_count.py
AlbertoCoding/X-Serv-Practica-Museos
5d3e3c99b8750ece9973f4e04ae3c3bfe77f3946
[ "Apache-2.0" ]
null
null
null
museosMadrid/migrations/0007_usuario_count.py
AlbertoCoding/X-Serv-Practica-Museos
5d3e3c99b8750ece9973f4e04ae3c3bfe77f3946
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('museosMadrid', '0006_usuario_titulo'), ] operations = [ migrations.AddField( model_name='usuario', n...
20.65
62
0.615012
794d3b1a0ea829069972129a15a1fefb5e4b428c
6,779
py
Python
pydyn/operations/geometry.py
vkotaru/pydyn_on_manifolds
7ce6e4f4be5baff6422b3f8e8523fa644adc85f5
[ "BSD-3-Clause" ]
2
2021-02-20T15:19:37.000Z
2021-07-30T03:56:57.000Z
pydyn/operations/geometry.py
vkotaru/pydyn_on_manifolds
7ce6e4f4be5baff6422b3f8e8523fa644adc85f5
[ "BSD-3-Clause" ]
null
null
null
pydyn/operations/geometry.py
vkotaru/pydyn_on_manifolds
7ce6e4f4be5baff6422b3f8e8523fa644adc85f5
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC from pydyn.operations.transpose import Transpose from pydyn.base.matrices import MatrixExpr from pydyn.base.scalars import ScalarExpr, Scalar from pydyn.base.vectors import VectorExpr, Vector from pydyn.base.expr import Expr, Expression from pydyn.base.nodes import UnaryNode, BinaryNode from pydyn....
35.492147
98
0.591238
794d3c082b095d0e80de3985176595571316a9aa
2,636
py
Python
setup.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
28
2017-12-12T12:16:13.000Z
2022-02-23T04:34:35.000Z
setup.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
7
2017-12-12T11:53:20.000Z
2020-01-25T10:13:40.000Z
setup.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
10
2018-01-02T20:30:07.000Z
2020-05-06T20:26:08.000Z
""" Copyright (c) 2017, Syslog777 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
37.126761
81
0.72003
794d3e8f2fcf0033d4dd979bf67d7256308b97e7
508
py
Python
addLabelToStories.py
marcosdiez/pytracker
82b88e74600ed69b8401aee51e7e924ba72ceec5
[ "Apache-2.0" ]
1
2016-05-11T19:41:43.000Z
2016-05-11T19:41:43.000Z
addLabelToStories.py
marcosdiez/pytracker
82b88e74600ed69b8401aee51e7e924ba72ceec5
[ "Apache-2.0" ]
1
2016-05-30T16:45:16.000Z
2016-05-30T16:45:16.000Z
addLabelToStories.py
marcosdiez/pytracker
82b88e74600ed69b8401aee51e7e924ba72ceec5
[ "Apache-2.0" ]
2
2015-12-17T14:49:33.000Z
2018-11-26T11:33:46.000Z
#!/usr/bin/env python3 import sys from pytracker import Tracker import settings def main(): if len(sys.argv) < 3: print("usage {} label story1 [story2] [story N]".format(sys.argv[0])) return label = sys.argv[1] stories = sys.argv[2:] tracker = Tracker(settings.project_id, settings.token) for story_id in st...
20.32
71
0.69685
794d3f8b6524d862dd15c774af71ba72157e8fc9
9,048
py
Python
streamCrawler.py
rishivinod7/TwitterCrawler
c1f4594b03e2472aabf7d56e397a796e4a868ae1
[ "Unlicense" ]
null
null
null
streamCrawler.py
rishivinod7/TwitterCrawler
c1f4594b03e2472aabf7d56e397a796e4a868ae1
[ "Unlicense" ]
null
null
null
streamCrawler.py
rishivinod7/TwitterCrawler
c1f4594b03e2472aabf7d56e397a796e4a868ae1
[ "Unlicense" ]
null
null
null
import tweepy import json from pymongo import MongoClient from datetime import datetime import time import sys import emoji import re #Author: 2331751v, Rishi Vinod # please put your credentials below - very important consumer_key = "" consumer_secret ="" access_token ="" access_token_secret ="" auth = tweepy.OAut...
33.264706
325
0.618811
794d3fe2b5b8f1416376a60686f2372bea5f321a
387
py
Python
swf/workfair/migrations/0003_auto_20200321_0023.py
CerealWhay/swf
5c86a20b947c8e935cac323443bb27f9edaaab25
[ "bzip2-1.0.6" ]
null
null
null
swf/workfair/migrations/0003_auto_20200321_0023.py
CerealWhay/swf
5c86a20b947c8e935cac323443bb27f9edaaab25
[ "bzip2-1.0.6" ]
null
null
null
swf/workfair/migrations/0003_auto_20200321_0023.py
CerealWhay/swf
5c86a20b947c8e935cac323443bb27f9edaaab25
[ "bzip2-1.0.6" ]
1
2021-03-17T06:59:01.000Z
2021-03-17T06:59:01.000Z
# Generated by Django 3.0.4 on 2020-03-20 14:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workfair', '0002_user_username'), ] operations = [ migrations.AlterField( model_name='user', name='isEmployer', ...
20.368421
53
0.599483
794d426d02daa1d711771d2e42de7ef2045a930e
4,219
py
Python
lab/06_dht-solution/simpleDHT.py
andreastedile/unitn-m-ds2
138c47f2f857e2b4a08c01edcbf0daa00b281077
[ "MIT" ]
1
2021-11-29T09:49:22.000Z
2021-11-29T09:49:22.000Z
lab/06_dht-solution/simpleDHT.py
andreastedile/unitn-m-ds2
138c47f2f857e2b4a08c01edcbf0daa00b281077
[ "MIT" ]
1
2021-09-26T13:25:48.000Z
2021-09-26T13:25:48.000Z
lab/06_dht-solution/simpleDHT.py
andreastedile/unitn-m-ds2
138c47f2f857e2b4a08c01edcbf0daa00b281077
[ "MIT" ]
1
2021-11-29T09:18:41.000Z
2021-11-29T09:18:41.000Z
import hashlib from tabulate import tabulate import code # code.interact(local=dict(globals(), **locals())) import random BITLENGTH = 8 def compute_key(string, bitlength=BITLENGTH): digest = hashlib.sha256(bytes(string, 'utf-8')).digest() subdigest = digest[:bitlength//8] return int.from_bytes(subdigest...
26.534591
118
0.602749
794d4356a08c7e81f13f0694c6e7b3314a07c4f0
512
py
Python
config/urls.py
acuestap/cride-acp
a9920eaf032cd8f4481374c72d25bf9bc1b2e77b
[ "MIT" ]
null
null
null
config/urls.py
acuestap/cride-acp
a9920eaf032cd8f4481374c72d25bf9bc1b2e77b
[ "MIT" ]
null
null
null
config/urls.py
acuestap/cride-acp
a9920eaf032cd8f4481374c72d25bf9bc1b2e77b
[ "MIT" ]
null
null
null
"""Main URLs module.""" from django.conf import settings from django.urls import include, path from django.conf.urls.static import static from django.contrib import admin """import ipdb; ipdb.set_trace()""" urlpatterns = [ # Django Admin path(settings.ADMIN_URL, admin.site.urls), path('', include(('crid...
28.444444
78
0.710938
794d44a2cc74842f8b8d00f81d2ce675f076304a
5,043
py
Python
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
coot/data/ht100m_dataset.py
Jabb0/coot-videotext
2da20a3f3a50b69677e59869b02cbd72945913d9
[ "Apache-2.0" ]
null
null
null
import json import pandas as pd import numpy as np from typing import Union, List from pathlib import Path from timeit import default_timer as timer from nntrainer import data as nn_data def _time_to_seconds(time_column): return pd.to_timedelta(time_column).dt.total_seconds() class HT100MBaseDataset: """...
37.917293
113
0.628594
794d45aa93f96e192077fff65315a8ade2992b76
10,994
py
Python
AirC2Weather/Tools/MultidimensionSupplementalTools/Scripts/mds/tools/make_netcdf_regularpointslayer.py
esride-jts/air-c2-cop-python
692d18203ace18384b3f956ac393f41bb431d757
[ "Apache-2.0" ]
14
2017-10-04T01:19:07.000Z
2021-12-09T02:43:49.000Z
AirC2Weather/Tools/MultidimensionSupplementalTools/Scripts/mds/tools/make_netcdf_regularpointslayer.py
esride-jts/air-c2-cop-python
692d18203ace18384b3f956ac393f41bb431d757
[ "Apache-2.0" ]
14
2017-09-19T21:27:55.000Z
2020-07-23T23:34:20.000Z
AirC2Weather/Tools/MultidimensionSupplementalTools/Scripts/mds/tools/make_netcdf_regularpointslayer.py
esride-jts/air-c2-cop-python
692d18203ace18384b3f956ac393f41bb431d757
[ "Apache-2.0" ]
19
2017-11-27T14:40:40.000Z
2021-03-11T17:29:07.000Z
import arcpy debug = False class MakeNetCDFRegularPointsLayer(object): def __init__(self): """Define the tool (tool name is the name of the class).""" self.label = "Make NetCDF Regular Points Layer" self.description = "Makes a point feature layer from a netCDF file " \ "which conta...
41.802281
82
0.571221
794d45cc4bf3d37f04fbd3a8a9331d8734fc5c15
764
py
Python
chapter_1/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
chapter_1/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
chapter_1/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
# %% # VScodeで入力をテキストから読み込んで標準入力に渡す import sys import os f=open(r'.\Chapter-1\C_input.txt', 'r', encoding="utf-8") # inputをフルパスで指定 # win10でファイルを作るとs-jisで保存されるため、読み込みをutf-8へエンコードする必要あり # VScodeでinput file開くとutf8になってるんだけど中身は結局s-jisになっているらしい sys.stdin=f # # 入力スニペット # num = int(input()) # num_list = [int(item) for item in...
23.151515
57
0.609948
794d4715cad199cc225c5b52c1936ef08435127b
16,354
py
Python
src/ertk/utils/array.py
agkphysics/emotion
36bb9265f9439b10676fb539d5334cce645e49ef
[ "MIT" ]
1
2020-06-14T03:37:46.000Z
2020-06-14T03:37:46.000Z
src/ertk/utils/array.py
agkphysics/emotion
36bb9265f9439b10676fb539d5334cce645e49ef
[ "MIT" ]
null
null
null
src/ertk/utils/array.py
agkphysics/emotion
36bb9265f9439b10676fb539d5334cce645e49ef
[ "MIT" ]
null
null
null
from typing import List, Optional, Sequence, Tuple, Union, overload import numpy as np def make_array_array(x: List[np.ndarray]) -> np.ndarray: """Helper function to make an array of arrays. The returned array has `shape==(len(x),)` and `dtype==object`. """ arr = np.empty(len(x), dtype=object) fo...
33.859213
88
0.622722
794d47c4f33f021f52d0631aaedb0d583c411d01
6,598
py
Python
minerl_agent/behaviour_cloning/tfrecrods.py
metataro/minerl_agent
f61a587b778afe5d70d260012ee850013e809a14
[ "MIT" ]
9
2020-11-09T15:27:40.000Z
2021-12-22T01:13:27.000Z
minerl_agent/behaviour_cloning/tfrecrods.py
metataro/minerl_agent
f61a587b778afe5d70d260012ee850013e809a14
[ "MIT" ]
5
2020-06-18T23:08:31.000Z
2022-02-09T23:39:00.000Z
minerl_agent/behaviour_cloning/tfrecrods.py
metataro/minerl_agent
f61a587b778afe5d70d260012ee850013e809a14
[ "MIT" ]
4
2020-07-02T05:30:47.000Z
2021-07-30T04:13:17.000Z
import logging import numpy as np import tensorflow as tf from minerl.env import spaces from utility.utils import flatten_nested_dicts, unflatten_nested_dicts logger = logging.getLogger(__name__) def _bytes_feature(value): return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) def _float_featu...
37.276836
116
0.683237
794d483b1ce519ea83e2b2065ae0eeeb03a52eb8
6,785
py
Python
mzXML2mat.py
EvgenyZhvansky/R_matrix
66f5da0af89866da533a5714ffaf4a6567d7d5bc
[ "MIT" ]
1
2020-12-28T14:19:12.000Z
2020-12-28T14:19:12.000Z
mzXML2mat.py
EvgenyZhvansky/R_matrix
66f5da0af89866da533a5714ffaf4a6567d7d5bc
[ "MIT" ]
2
2021-03-31T20:19:44.000Z
2021-12-13T20:41:06.000Z
mzXML2mat.py
EvgenyZhvansky/R_matrix
66f5da0af89866da533a5714ffaf4a6567d7d5bc
[ "MIT" ]
null
null
null
# import sys import numpy as np from pyteomics import mzxml as pymz import xml.etree.ElementTree as ET from tkinter import Tk from tkinter.filedialog import askopenfilenames import scipy.io as io def get_scan_count(tree_local): scan_count=0 for (event, elem) in tree_local: if 'msRun' in elem.tag: ...
36.875
154
0.607517
794d48d45a78b2388c058f2480add2c536b6ee20
32,882
py
Python
tensorflow_transform/graph_tools.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/graph_tools.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
tensorflow_transform/graph_tools.py
Mikehem/tfx
e803ea6778d8550ec77dcc92bc8172f1a3a90f38
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.309045
87
0.701904
794d4b246589362869921f1b0f9a4939b010b1a0
12,985
py
Python
tests/test_scheduler.py
YiSang665/redbeat
ee4a43c8ac9e8135b27b7fef766eda7519738244
[ "Apache-2.0" ]
746
2016-02-18T22:40:49.000Z
2022-03-30T22:20:25.000Z
tests/test_scheduler.py
YiSang665/redbeat
ee4a43c8ac9e8135b27b7fef766eda7519738244
[ "Apache-2.0" ]
178
2015-08-21T17:00:21.000Z
2022-03-22T00:33:09.000Z
tests/test_scheduler.py
YiSang665/redbeat
ee4a43c8ac9e8135b27b7fef766eda7519738244
[ "Apache-2.0" ]
118
2016-05-16T15:56:08.000Z
2022-03-15T00:33:39.000Z
import ssl import unittest from copy import deepcopy from datetime import datetime, timedelta from unittest.mock import Mock, patch import pytz from celery.beat import DEFAULT_MAX_INTERVAL from celery.schedules import schedstate, schedule from celery.utils.time import maybe_timedelta from redbeat import RedBeatSchedu...
35.381471
100
0.662149
794d4b99e4b7c216595006a211b0fd2b25f6ef13
650
py
Python
src/devices/__init__.py
BMW-Group-Quantum/QUARK
739a55b10bd8d841410dc437bc10ca289bfd3005
[ "Apache-2.0" ]
12
2022-03-01T13:26:10.000Z
2022-03-28T07:59:25.000Z
src/devices/__init__.py
BMW-Group-Quantum/QUARK
739a55b10bd8d841410dc437bc10ca289bfd3005
[ "Apache-2.0" ]
null
null
null
src/devices/__init__.py
BMW-Group-Quantum/QUARK
739a55b10bd8d841410dc437bc10ca289bfd3005
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The QUARK Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
40.625
75
0.749231
794d4f0c4ca2b1a25432e86cc0334eae1b098170
2,838
py
Python
tests/test_reduce_max.py
bendecoste/tf-encrypted
00c9b80435411299a518f777de644c61d64cceea
[ "Apache-2.0" ]
null
null
null
tests/test_reduce_max.py
bendecoste/tf-encrypted
00c9b80435411299a518f777de644c61d64cceea
[ "Apache-2.0" ]
null
null
null
tests/test_reduce_max.py
bendecoste/tf-encrypted
00c9b80435411299a518f777de644c61d64cceea
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np import tensorflow as tf import tf_encrypted as tfe class TestReduceMax(unittest.TestCase): def setUp(self): tf.reset_default_graph() def test_reduce_max_1d(self): t = np.array([1, 2, 3, 4, 5, 6, 7, 8]).astype(float) with tf.Session() as sess: ...
30.847826
76
0.575758
794d4f25e6aafbb98f1345b9ee3cfa1aeb1a5fff
5,501
py
Python
modules/tools/fuel_proxy/control_calibration_sanity_check.py
Gavin-Tao/apollo
0b12edf51f20bec189b8cdd5eaf26f8ffe305186
[ "Apache-2.0" ]
4
2019-12-27T05:37:20.000Z
2020-03-24T07:21:54.000Z
modules/tools/fuel_proxy/control_calibration_sanity_check.py
Gavin-Tao/apollo
0b12edf51f20bec189b8cdd5eaf26f8ffe305186
[ "Apache-2.0" ]
2
2020-06-11T12:48:33.000Z
2020-08-28T01:07:43.000Z
modules/tools/fuel_proxy/control_calibration_sanity_check.py
Gavin-Tao/apollo
0b12edf51f20bec189b8cdd5eaf26f8ffe305186
[ "Apache-2.0" ]
57
2019-11-22T05:56:22.000Z
2019-12-28T08:51:10.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2019 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
35.720779
82
0.662425
794d4f69985c29dd774bc40886c9c6f02e9e7065
2,970
py
Python
generated/nidmm/nidmm/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
generated/nidmm/nidmm/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
generated/nidmm/nidmm/__init__.py
sukruthG/nimi-python
4f98addb04aea5748c8cac9f635065072e31a867
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file was generated __version__ = '1.4.1.dev0' from nidmm.enums import * # noqa: F403,F401,H303 from nidmm.errors import DriverWarning # noqa: F401 from nidmm.errors import Error # noqa: F401 from nidmm.session import Session # noqa: F401 def get_diagnostic_information(): '''G...
30.618557
130
0.620539
794d50b7f7c975490689806c72a22c61f196fdab
539
py
Python
src/dbus/busctl_tree.py
RedHatQE/rhsm-scenarion
0a22ff11a092d8a6d796267bee7424e93b38fad2
[ "Apache-2.0" ]
null
null
null
src/dbus/busctl_tree.py
RedHatQE/rhsm-scenarion
0a22ff11a092d8a6d796267bee7424e93b38fad2
[ "Apache-2.0" ]
null
null
null
src/dbus/busctl_tree.py
RedHatQE/rhsm-scenarion
0a22ff11a092d8a6d796267bee7424e93b38fad2
[ "Apache-2.0" ]
null
null
null
import os.path import tempfile from time import time from src.shell import run_cmd from src.testware.message import send_message from src.types import (StartOfScenario, EndOfScenario) timestamp=int(time()) scenario=os.path.basename(__file__) workdir=tempfile.mkdtemp(prefix="{0}-{1}.".format(scenario,timestamp)) print(...
31.705882
70
0.797774
794d520542a3908317588169bcdc01af809e7212
3,660
py
Python
bigbench/api/util.py
colinzhaoust/BIG-bench
34cf4e737879f2fed7642c8df7648fef47cc463b
[ "Apache-2.0" ]
null
null
null
bigbench/api/util.py
colinzhaoust/BIG-bench
34cf4e737879f2fed7642c8df7648fef47cc463b
[ "Apache-2.0" ]
null
null
null
bigbench/api/util.py
colinzhaoust/BIG-bench
34cf4e737879f2fed7642c8df7648fef47cc463b
[ "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 # # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
35.882353
102
0.69235
794d5415eff95ca2978bcc4fd8a4cb4877716e84
5,460
py
Python
sdk/python/kfp/v2/compiler/main.py
algs/pipelines
ab63956f3a61d4d11b27ac26f097e1784588fed9
[ "Apache-2.0" ]
1
2020-12-20T11:26:00.000Z
2020-12-20T11:26:00.000Z
sdk/python/kfp/v2/compiler/main.py
algs/pipelines
ab63956f3a61d4d11b27ac26f097e1784588fed9
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/v2/compiler/main.py
algs/pipelines
ab63956f3a61d4d11b27ac26f097e1784588fed9
[ "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, ...
33.703704
80
0.692857
794d556512448efca66313cff0ad19af477ee0f0
2,319
py
Python
src/ui/mwx/gauge_dlg.py
xxao/papyrus
dec48453676d7c7dbc94a2fd7076bfc3630d8cf9
[ "MIT" ]
2
2019-07-27T13:04:16.000Z
2019-08-06T17:44:48.000Z
src/ui/mwx/gauge_dlg.py
xxao/papyrus
dec48453676d7c7dbc94a2fd7076bfc3630d8cf9
[ "MIT" ]
null
null
null
src/ui/mwx/gauge_dlg.py
xxao/papyrus
dec48453676d7c7dbc94a2fd7076bfc3630d8cf9
[ "MIT" ]
2
2019-11-13T09:22:36.000Z
2021-09-28T14:27:52.000Z
# Created byMartin.cz # Copyright (c) Martin Strohalm. All rights reserved. # import modules import time import wx from .constants import * class GaugeDlg(wx.Dialog): """Creates generic gauge dialog.""" def __init__(self, parent, id=-1, message="", title="", cancellation=None, style=wx.CAPTION): ...
27.282353
103
0.559293
794d5629fa8cd102dcef2d6037eb60215cd12a99
1,124
py
Python
Python/Google_News_Scrapper/app.py
tanishq-arya/Rotten-Scripts
93f62eb1213f739c13103610d3f502e1dc2d3790
[ "MIT" ]
4
2021-04-27T19:54:06.000Z
2021-09-28T15:34:12.000Z
Python/Google_News_Scrapper/app.py
tanishq-arya/Rotten-Scripts
93f62eb1213f739c13103610d3f502e1dc2d3790
[ "MIT" ]
null
null
null
Python/Google_News_Scrapper/app.py
tanishq-arya/Rotten-Scripts
93f62eb1213f739c13103610d3f502e1dc2d3790
[ "MIT" ]
null
null
null
import requests from xml.dom.minidom import parseString import pandas as pd def get_google_news_result(term, count): results = [] obj = parseString(requests.get( 'http://news.google.com/news?q=%s&output=rss' % term).text) items = obj.getElementsByTagName('item') # Storing the Titles and Links ...
30.378378
68
0.614769
794d5737799db61159ce3a028686f8a2c419033f
736
py
Python
ros/src/f16/models/rocket/meshes/subdivide.py
HenryTingle/aae497-f19
29df124e31fcc1a1a8462211b1390e5a74f40cd9
[ "BSD-3-Clause" ]
4
2019-08-27T10:13:17.000Z
2020-02-12T13:05:35.000Z
ros/src/f16/models/rocket/meshes/subdivide.py
HenryTingle/aae497-f19
29df124e31fcc1a1a8462211b1390e5a74f40cd9
[ "BSD-3-Clause" ]
4
2019-08-31T21:57:41.000Z
2019-10-31T04:41:34.000Z
ros/src/f16/models/rocket/meshes/subdivide.py
HenryTingle/aae497-f19
29df124e31fcc1a1a8462211b1390e5a74f40cd9
[ "BSD-3-Clause" ]
17
2019-08-21T20:32:18.000Z
2019-10-28T00:12:27.000Z
import bpy for part in ['nose_cone', 'body', 'fin', 'plume']: bpy.ops.object.mode_set(mode='OBJECT') bpy.ops.object.select_by_type(type='MESH') bpy.ops.object.delete(use_global=False) print('importing', part) bpy.ops.import_mesh.stl(filepath="./stl/{:s}.stl".format(part)) print('subdividing')...
29.44
67
0.684783
794d575375ba3c5142a9767b21acf3bf35d20866
9,897
py
Python
Lib/fileinput.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
3
2019-07-09T20:02:48.000Z
2021-11-21T20:00:37.000Z
Lib/fileinput.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
null
null
null
Lib/fileinput.py
M-Spencer-94/configNOW
56828587253202089e77cfdfcf5329f2a7f09b3f
[ "PSF-2.0", "Apache-2.0", "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""Helper class to quickly write a loop over all standard input files. Typical use is: import fileinput for line in fileinput.input(): process(line) This iterates over the lines of all files listed in sys.argv[1:], defaulting to sys.stdin if the list is empty. If a filename is '-' it is also replace...
32.880399
75
0.605941
794d579ee5f6f21a34f3ae9332f4ad2f71431629
4,453
py
Python
mmedit/models/common/model_utils.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
1
2021-04-30T23:08:16.000Z
2021-04-30T23:08:16.000Z
mmedit/models/common/model_utils.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
null
null
null
mmedit/models/common/model_utils.py
rivergold/mmediting
fd972635c48bb065db29d1b5090592a87c7263d2
[ "Apache-2.0" ]
2
2021-09-07T05:21:18.000Z
2021-09-17T22:34:54.000Z
import numpy as np import torch def set_requires_grad(nets, requires_grad=False): """Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network. requires_grad (bool): Whether the networks require gradients or not """...
32.742647
79
0.593083
794d57b67d86c0c46e16343780489dc76383b8c2
4,625
py
Python
help.py
Nugetzrul3/MBC-Tip
cb3046ab451fc4fab44c22bdb3c7f428c7344202
[ "MIT" ]
null
null
null
help.py
Nugetzrul3/MBC-Tip
cb3046ab451fc4fab44c22bdb3c7f428c7344202
[ "MIT" ]
null
null
null
help.py
Nugetzrul3/MBC-Tip
cb3046ab451fc4fab44c22bdb3c7f428c7344202
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import user_db import config class Help(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def help(self, ctx): user_id = str(ctx.author.id) user_name = ctx.author.name if ctx.channel.id == 723...
40.929204
137
0.483676
794d57e03268412c5a8227fee9692c07eda7e151
308
py
Python
student.py
rowrodney/Automation
b6aa8bc802fa369a974868764c941c80f9edd2d2
[ "MIT" ]
null
null
null
student.py
rowrodney/Automation
b6aa8bc802fa369a974868764c941c80f9edd2d2
[ "MIT" ]
null
null
null
student.py
rowrodney/Automation
b6aa8bc802fa369a974868764c941c80f9edd2d2
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class Student(Resource): def get(self, name): return {'student': name} api.add_resource(Student, '/student/<string:name>') # http://127.0.0.1:5000/student/Rolf app.run(port=5000)
22
92
0.675325
794d57e790fa2d7486e63dd007e0109a9a672c3a
3,873
py
Python
maistra/vendor/com_googlesource_chromium_v8/wee8/build/android/gyp/create_java_binary_script.py
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
3
2020-11-30T15:35:37.000Z
2022-01-06T14:17:18.000Z
maistra/vendor/com_googlesource_chromium_v8/wee8/build/android/gyp/create_java_binary_script.py
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
54
2020-06-23T17:34:04.000Z
2022-03-31T02:04:06.000Z
maistra/vendor/com_googlesource_chromium_v8/wee8/build/android/gyp/create_java_binary_script.py
knm3000/proxy
f2bb57b7294aea2cb344824785be42849d7d63c9
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
#!/usr/bin/env python # # Copyright 2014 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. """Creates a simple script to run a java "binary". This creates a script that sets up the java command line for running a java jar. ...
33.102564
80
0.714175
794d584ac49eaf4afd3f864c9da97c81ebc9cf60
1,973
py
Python
exercises/kindergarten-garden/kindergarten_garden_test.py
Alexhans/python
41287dda364e11edbaeda7cc50994d951007e835
[ "MIT" ]
2
2019-07-25T04:40:24.000Z
2020-12-18T21:29:02.000Z
exercises/kindergarten-garden/kindergarten_garden_test.py
Alexhans/python
41287dda364e11edbaeda7cc50994d951007e835
[ "MIT" ]
null
null
null
exercises/kindergarten-garden/kindergarten_garden_test.py
Alexhans/python
41287dda364e11edbaeda7cc50994d951007e835
[ "MIT" ]
null
null
null
import unittest from kindergarten_garden import Garden # Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0 class KindergartenGardenTest(unittest.TestCase): def test_garden_with_single_student(self): self.assertEqual( Garden("RC\nGG").plants("Alice"), "Radi...
35.872727
77
0.646731
794d592077571ae0f63c9044f18bd94731dd3a01
607
py
Python
setup.py
Chinacolt/pip-cintay
72187be8b393a60fb3316d4ad40277eeb2d05d47
[ "MIT" ]
1
2019-07-10T22:24:17.000Z
2019-07-10T22:24:17.000Z
setup.py
Chinacolt/pip-cintay
72187be8b393a60fb3316d4ad40277eeb2d05d47
[ "MIT" ]
1
2021-11-15T17:48:55.000Z
2021-11-15T17:48:55.000Z
setup.py
Chinacolt/pip-cintay
72187be8b393a60fb3316d4ad40277eeb2d05d47
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='cintay', version='0.1', author="Emre Cintay", author_email="emre@cintay.com", description="Print CINTAY", long_description=long_description, long_description_content_type=...
25.291667
51
0.639209
794d592e701d667e9e90c72d76a085f838490335
305
py
Python
2016/09/north-korea-coal-20160914/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/09/north-korea-coal-20160914/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/09/north-korea-coal-20160914/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1vnsg2zLO--g6ppYdGZsyH0tb9vrP5VIjQS24xeormpA' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.813115
794d5a5551b647332cd8b5ae289763e8971950ae
3,037
py
Python
sdk/python/pulumi_azure_native/logic/v20160601/list_workflow_run_action_repetition_expression_traces.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/v20160601/list_workflow_run_action_repetition_expression_traces.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/v20160601/list_workflow_run_action_repetition_expression_traces.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.014493
201
0.686203
794d5a95e038d92c7da9ab527394617f809ccb35
705
py
Python
src/tp_user_1.0/sawtooth_user/exceptions.py
jlee7x2/SParts
fd39e491d0433a7429c5fdb037d5826d7f34b291
[ "Apache-2.0" ]
12
2018-08-29T23:19:48.000Z
2021-11-18T19:09:21.000Z
src/tp_user_1.0/sawtooth_user/exceptions.py
jlee7x2/SParts
fd39e491d0433a7429c5fdb037d5826d7f34b291
[ "Apache-2.0" ]
18
2018-07-13T22:37:44.000Z
2020-02-20T19:22:14.000Z
src/tp_user_1.0/sawtooth_user/exceptions.py
jlee7x2/SParts
fd39e491d0433a7429c5fdb037d5826d7f34b291
[ "Apache-2.0" ]
16
2018-03-12T21:52:02.000Z
2021-07-13T20:46:10.000Z
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
37.105263
80
0.675177
794d5bda2c79ab00330e7114c6a37ef9b5885c4e
265
py
Python
tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_30/ar_12/test_artificial_32_Anscombe_LinearTrend_30_12_0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_30/ar_12/test_artificial_32_Anscombe_LinearTrend_30_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_30/ar_12/test_artificial_32_Anscombe_LinearTrend_30_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 0, ar_order = 12);
37.857143
165
0.732075
794d5c0b4f0b2473663fe6db3537edf561e9352a
1,905
py
Python
DM900-USB-ArduinoNano/DM900-Enigmalight-Service/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py
NeedfulThings/hyperionconfigs
1428d62b0d0d59bd062309870481d1b360e625e1
[ "MIT" ]
null
null
null
DM900-USB-ArduinoNano/DM900-Enigmalight-Service/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py
NeedfulThings/hyperionconfigs
1428d62b0d0d59bd062309870481d1b360e625e1
[ "MIT" ]
null
null
null
DM900-USB-ArduinoNano/DM900-Enigmalight-Service/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py
NeedfulThings/hyperionconfigs
1428d62b0d0d59bd062309870481d1b360e625e1
[ "MIT" ]
2
2019-10-12T17:14:13.000Z
2019-10-20T14:59:41.000Z
import sys import os import time import json import httplib from rgb_xy import Converter from rgb_xy import GamutC # or GamutA, GamutB (you must look for the type of your lamps in rgb_xy.py from line 42) counter = 12 def popen(): converter = Converter(GamutC) spidev = file( os.getcwd()+'/aufruf.log', "wb") ...
24.74026
124
0.648294
794d5d1fa213dbac57eeb85a91dc785f95783a14
704
py
Python
ex21.py
KT12/lpthw
1a97c33cc65db9b2bad9222e6c6739d8e6bf5f03
[ "MIT" ]
null
null
null
ex21.py
KT12/lpthw
1a97c33cc65db9b2bad9222e6c6739d8e6bf5f03
[ "MIT" ]
null
null
null
ex21.py
KT12/lpthw
1a97c33cc65db9b2bad9222e6c6739d8e6bf5f03
[ "MIT" ]
null
null
null
def add(a, b): print('ADDING %d + %d' % (a, b)) return a + b def subtract(a, b): print('SUBTRACTNG %d - %d' % (a, b)) return a - b def multiply(a, b): print('MULTIPLYING %d * %d' % (a, b)) return a * b def divide(a, b): print('DIVIDING %d / %d' % (a,b)) return a / b p...
22.709677
77
0.544034
794d5e6b791f8e3b5941522bd826abab9772f5b7
395
py
Python
django/django_fundamentals/django_intro/ninjagold/ninjagold/wsgi.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
django/django_fundamentals/django_intro/ninjagold/ninjagold/wsgi.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
django/django_fundamentals/django_intro/ninjagold/ninjagold/wsgi.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
""" WSGI config for ninjagold project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
794d5e77f7f2d8a2e2cbe73ec7adb1a8e46eaa1a
4,657
py
Python
database_sanitizer/utils/mysql.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
37
2018-05-07T13:07:25.000Z
2022-02-07T18:58:10.000Z
database_sanitizer/utils/mysql.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
31
2018-04-27T13:16:28.000Z
2021-12-10T10:08:00.000Z
database_sanitizer/utils/mysql.py
sharescape/python-database-sanitizer
560bf402e3896285980abb21a74d5be8d2da1698
[ "MIT" ]
15
2018-05-04T12:28:12.000Z
2022-02-17T09:27:58.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re import pymysql import six def get_mysqldump_args_and_env_from_url(url): """ Constructs list of command line arguments and dictionary of environment variables that can be given to `mysqldump` executable to obtain database dump...
28.746914
91
0.657934
794d5f322a62128147eea66034bb79576951624c
1,721
py
Python
jina/clients/python/request.py
phamtrancsek12/jina
efa339fd7e19760d9033b51e54a1b5eca60f1c5f
[ "Apache-2.0" ]
2
2021-06-18T11:55:15.000Z
2021-08-30T20:15:46.000Z
jina/clients/python/request.py
phamtrancsek12/jina
efa339fd7e19760d9033b51e54a1b5eca60f1c5f
[ "Apache-2.0" ]
null
null
null
jina/clients/python/request.py
phamtrancsek12/jina
efa339fd7e19760d9033b51e54a1b5eca60f1c5f
[ "Apache-2.0" ]
1
2020-08-28T09:08:29.000Z
2020-08-28T09:08:29.000Z
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import ctypes import random from typing import Iterator, Union from ...helper import batch_iterator from ...proto import jina_pb2 def _generate(data: Union[Iterator[bytes], Iterator['jina_pb2.Document']], batch_siz...
30.192982
104
0.595003
794d5f5ef8759d60c397d0983bc0c0a02bf3196b
136
py
Python
counterfactualms/experiments/classifier/__init__.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
14
2021-03-08T11:51:34.000Z
2022-03-21T03:30:21.000Z
counterfactualms/experiments/classifier/__init__.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
1
2021-10-03T15:20:30.000Z
2021-10-03T15:20:30.000Z
counterfactualms/experiments/classifier/__init__.py
jcreinhold/counterfactualms
9be5919c8885354fe1ac91c852d196969cfe16be
[ "Apache-2.0" ]
4
2021-04-03T15:23:24.000Z
2021-09-30T04:14:28.000Z
from counterfactualms.experiments.classifier.classifier_experiment import ClassifierExperiment __all__ = [ 'ClassifierExperiment' ]
27.2
94
0.845588
794d5fa1cba4ac5812edf456bcabc465f77998bf
16,122
py
Python
cellfinder/extract/extract_cubes.py
brainglobe/cellfinder
0466e94f5c5ad58c853a73257d80944a1607ac81
[ "BSD-3-Clause" ]
53
2020-10-22T10:01:12.000Z
2022-03-14T04:03:43.000Z
cellfinder/extract/extract_cubes.py
brainglobe/cellfinder
0466e94f5c5ad58c853a73257d80944a1607ac81
[ "BSD-3-Clause" ]
59
2020-10-08T16:23:46.000Z
2022-03-14T09:47:53.000Z
cellfinder/extract/extract_cubes.py
brainglobe/cellfinder
0466e94f5c5ad58c853a73257d80944a1607ac81
[ "BSD-3-Clause" ]
9
2020-11-20T18:48:08.000Z
2022-03-06T13:03:22.000Z
""" Cube extraction for CNN-based classification. Based on, and mostly copied from, https://github.com/SainsburyWellcomeCentre/cell_count_analysis by Charly Rousseau (https://github.com/crousseau). """ import os from collections import deque from concurrent.futures import ProcessPoolExecutor import logging from datet...
32.635628
79
0.579395
794d613e2788e0fc47bd62ab625127271573926d
53,180
py
Python
src/Analysis/Ast/Impl/scrape_module.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
null
null
null
src/Analysis/Ast/Impl/scrape_module.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
null
null
null
src/Analysis/Ast/Impl/scrape_module.py
jamesralstin/python-language-server
53eb5886776c9e75590bf2f5a787ba4015879c4d
[ "Apache-2.0" ]
null
null
null
# Python Tools for Visual Studio # Copyright(c) Microsoft Corporation # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the License); you may not use # this file except in compliance with the License. You may obtain a copy of the # License at http://www.apache.org/licenses/LICENSE-2.0 # # THI...
34.96384
138
0.547198
794d61c188c002c8dfb2fc89ec998d79aea1bad5
19,597
py
Python
cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/FormatterRunner.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/FormatterRunner.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/FormatterRunner.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
35.30991
112
0.618054
794d62418c269dca14a72d1f15a6c4568fd4dea5
1,775
py
Python
loginpass/github.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
223
2018-04-23T14:48:17.000Z
2022-03-19T09:27:36.000Z
loginpass/github.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
68
2018-04-22T13:55:25.000Z
2022-03-15T15:28:42.000Z
loginpass/github.py
authlib/socialism
635823a78a2a92cf8630f9935aebb9afcccb8656
[ "BSD-3-Clause" ]
86
2018-04-24T21:09:26.000Z
2022-03-17T08:55:34.000Z
""" loginpass.github ~~~~~~~~~~~~~~~~ Loginpass Backend of GitHub (https://github.com). Useful Links: - Create App: https://github.com/settings/developers - API documentation: https://developer.github.com/v3/ :copyright: (c) 2018 by Hsiaoming Yang :license: BSD, see LICENSE for more ...
32.87037
88
0.584789
794d6267b7ebc7454874741e5e3495050115697a
2,168
py
Python
venv/Lib/site-packages/IPython/core/release.py
kiensamsk/Fantasy-Premier-League
49802e4af7f08d914157240b49df90579dba5154
[ "MIT" ]
null
null
null
venv/Lib/site-packages/IPython/core/release.py
kiensamsk/Fantasy-Premier-League
49802e4af7f08d914157240b49df90579dba5154
[ "MIT" ]
null
null
null
venv/Lib/site-packages/IPython/core/release.py
kiensamsk/Fantasy-Premier-League
49802e4af7f08d914157240b49df90579dba5154
[ "MIT" ]
1
2022-02-10T01:22:40.000Z
2022-02-10T01:22:40.000Z
# -*- coding: utf-8 -*- """Release data for the IPython project.""" #----------------------------------------------------------------------------- # Copyright (c) 2008, IPython Development Team. # Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu> # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>...
39.418182
80
0.640221
794d62c7292746165bca7f304d0efd837bbc03f2
3,665
py
Python
tensorbay/opendataset/LIP/loader.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
73
2021-02-24T12:23:26.000Z
2022-03-12T13:00:31.000Z
tensorbay/opendataset/LIP/loader.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
681
2021-02-25T07:34:17.000Z
2022-03-25T07:08:23.000Z
tensorbay/opendataset/LIP/loader.py
machearn/tensorbay-python-sdk
5c96a5f4c0028c7bec0764f2d0142b29597ec3a9
[ "MIT" ]
35
2021-02-24T12:00:45.000Z
2022-03-30T06:43:13.000Z
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # # pylint: disable=invalid-name """Dataloader of LIP dataset.""" import csv import os from itertools import islice from typing import List from tensorbay.dataset import Data, Dataset from tensorbay.geometry import Keypoint2D from tensorb...
35.240385
96
0.602729
794d63aee140a1aa354ec723e28a3a9d534624b8
414
py
Python
src/pathlibext/rmtree.py
gpcimino/pathlibext
10c3d102a5d8a074a9a2f5cdb0356d0187b3eada
[ "MIT" ]
2
2021-12-13T21:32:50.000Z
2021-12-23T11:17:06.000Z
src/pathlibext/rmtree.py
gpcimino/pathlibext
10c3d102a5d8a074a9a2f5cdb0356d0187b3eada
[ "MIT" ]
null
null
null
src/pathlibext/rmtree.py
gpcimino/pathlibext
10c3d102a5d8a074a9a2f5cdb0356d0187b3eada
[ "MIT" ]
null
null
null
import shutil def _rmtree(self, ignore_errors: bool = False, onerror=None): """Delete an entire directory tree. This is a wrapper around shutil.rmtree""" if not self.is_dir(): raise ValueError("rmtree called on Path that is not a directory") if not self.exists(): raise ValueError(f"File sy...
37.636364
81
0.702899
794d6436b61ab02e0d8f6de8d32f421a23a8a200
11,749
py
Python
Lib/test/test_py_compile.py
oleksandr-pavlyk/cpython
eb002dbe0da9622245a355db5f0cd5aa2fc70b40
[ "0BSD" ]
5
2021-12-03T23:11:53.000Z
2022-01-08T21:02:50.000Z
Lib/test/test_py_compile.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
8
2022-01-07T11:31:11.000Z
2022-03-04T00:07:16.000Z
Lib/test/test_py_compile.py
dalakatt/cpython
2f49b97cc5426087b46515254b9a97a22ee8c807
[ "0BSD" ]
3
2017-10-18T09:35:14.000Z
2018-09-09T16:40:13.000Z
import functools import importlib.util import os import py_compile import shutil import stat import subprocess import sys import tempfile import unittest from test import support from test.support import os_helper, script_helper def without_source_date_epoch(fxn): """Runs function with SOURCE_DATE_EPOCH unset.""...
40.236301
97
0.637671
794d644c908b03b1dad35fbaacbc5b79589a6f67
11,307
py
Python
report.py
mattmerrifield/fake-lab-reports
1785e8ae5cf6ebfce46931e73a6bf7b147bdb4af
[ "MIT" ]
null
null
null
report.py
mattmerrifield/fake-lab-reports
1785e8ae5cf6ebfce46931e73a6bf7b147bdb4af
[ "MIT" ]
null
null
null
report.py
mattmerrifield/fake-lab-reports
1785e8ae5cf6ebfce46931e73a6bf7b147bdb4af
[ "MIT" ]
null
null
null
import enum import itertools import platform import random import datetime as dt import statistics import sys from dataclasses import dataclass, asdict, field from pathlib import Path from typing import List, Optional import pdfkit from jinja2 import Template if platform.system() == "Windows": # ugh. Sorry. I ne...
31.940678
120
0.620147
794d648d163162df999cd4128ddb727a5431c5d8
892
py
Python
Lib/TrainProcess_Folder.py
Jack-GVDL/TrainUtility
a326b3d2504f980216d17a4c843bac1f1a8dfec6
[ "MIT" ]
null
null
null
Lib/TrainProcess_Folder.py
Jack-GVDL/TrainUtility
a326b3d2504f980216d17a4c843bac1f1a8dfec6
[ "MIT" ]
null
null
null
Lib/TrainProcess_Folder.py
Jack-GVDL/TrainUtility
a326b3d2504f980216d17a4c843bac1f1a8dfec6
[ "MIT" ]
null
null
null
import os from typing import * from .TrainProcess import TrainProcess from .ModelInfo import ModelInfo class TrainProcess_Folder(TrainProcess): def __init__(self): super().__init__() # data self.name = "Folder" # operation # ... def __del__(self): return # Operation # operation def execute(self,...
20.744186
68
0.709641
794d6615aa767a04ebefc9c97e1d7d0631d57169
38,312
py
Python
tensor2tensor/data_generators/image.py
rickyHong/tensor2tensor-repl
b6a57e71b0bb53b35e0f9a1ba8ae75c5169f9af5
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/image.py
rickyHong/tensor2tensor-repl
b6a57e71b0bb53b35e0f9a1ba8ae75c5169f9af5
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/image.py
rickyHong/tensor2tensor-repl
b6a57e71b0bb53b35e0f9a1ba8ae75c5169f9af5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2017 The Tensor2Tensor 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...
33.343777
97
0.703148
794d6692f8e8a0c8d244241dcd86f497ef7ab6f9
29,848
py
Python
src/obflowsim/mm/mm_run_fits_ldr.py
misken/obflowsim
19cad8e292435082ff47f3a09f68be69edff4361
[ "MIT" ]
null
null
null
src/obflowsim/mm/mm_run_fits_ldr.py
misken/obflowsim
19cad8e292435082ff47f3a09f68be69edff4361
[ "MIT" ]
null
null
null
src/obflowsim/mm/mm_run_fits_ldr.py
misken/obflowsim
19cad8e292435082ff47f3a09f68be69edff4361
[ "MIT" ]
null
null
null
import sys import argparse from pathlib import Path import pickle import pandas as pd import matplotlib.pyplot as plt from obflowsim.mm.mm_fitting import crossval_summarize_mm from obflowsim.mm.mm_process_fitted_models import create_cv_plots, create_coeff_plots from obflowsim.mm.mm_process_fitted_models import create...
50.675722
120
0.646207
794d66b7fc28ad18870fdc159e5a60e89b47da18
1,151
py
Python
example/usage/example_vkofficial.py
vodka2/vkaudiotoken-python
5720e4cf77f5e1b20c3bf57f3df0717638a539e0
[ "MIT" ]
32
2020-07-21T18:32:59.000Z
2022-03-20T21:16:11.000Z
example/usage/example_vkofficial.py
vodka2/vkaudiotoken-python
5720e4cf77f5e1b20c3bf57f3df0717638a539e0
[ "MIT" ]
1
2020-10-04T04:41:06.000Z
2020-10-05T11:43:48.000Z
example/usage/example_vkofficial.py
vodka2/vkaudiotoken-python
5720e4cf77f5e1b20c3bf57f3df0717638a539e0
[ "MIT" ]
2
2021-09-21T01:17:05.000Z
2022-03-17T10:17:22.000Z
from __future__ import print_function try: import vkaudiotoken except ImportError: import path_hack from vkaudiotoken import supported_clients import sys import requests import json import re token = sys.argv[1] user_agent = supported_clients.VK_OFFICIAL.user_agent sess = requests.session() sess.headers.upd...
25.577778
99
0.581234
794d672e31b982f76591efa5b5d8c2704705469d
3,520
py
Python
docs/conf.py
naddeoa/whylogs-python
25c6d38961f2608bf331981667a9fe143e3437ef
[ "Apache-2.0" ]
null
null
null
docs/conf.py
naddeoa/whylogs-python
25c6d38961f2608bf331981667a9fe143e3437ef
[ "Apache-2.0" ]
null
null
null
docs/conf.py
naddeoa/whylogs-python
25c6d38961f2608bf331981667a9fe143e3437ef
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
29.579832
86
0.668182
794d6736796a918a98b389f596d157edfa494573
4,307
py
Python
updatedns.py
dnorth98/updatedns
1244b68dbe119f104546d8489d1f10676d739eee
[ "MIT" ]
null
null
null
updatedns.py
dnorth98/updatedns
1244b68dbe119f104546d8489d1f10676d739eee
[ "MIT" ]
null
null
null
updatedns.py
dnorth98/updatedns
1244b68dbe119f104546d8489d1f10676d739eee
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Update DNS Entry in Amazon Route53 via boto ------------------------------------------------------------------- Creator: Brian Parsons <brian@pmex.com> Modified: Dave North <dnorth98@gmail.com> Requires: boto - http://boto.cloudhackers.com/en/latest/index.html Variables: -------------...
25.485207
82
0.647318
794d68f8c931838ed47738599d67140d7f1d2a81
1,806
py
Python
thespian/test/test_badmessage.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
210
2015-08-31T19:39:34.000Z
2020-01-10T08:07:48.000Z
thespian/test/test_badmessage.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
85
2017-04-08T19:28:42.000Z
2022-03-23T15:25:49.000Z
thespian/test/test_badmessage.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
47
2015-09-01T19:24:20.000Z
2020-01-02T20:03:05.000Z
from thespian.actors import * from thespian.test import * import time from datetime import timedelta import sys max_response_delay = timedelta(seconds=1.0) class BadMessage(object): def __init__(self, val): self.val = val def __str__(self): return 'Using an invalid member: ' + str(self.this_...
28.666667
75
0.674419
794d6937e346285ad8b30f9092007b61fdacc7c9
18,573
py
Python
model.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
model.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
model.py
LeoZDong/shape2prog
2185d1d4eb7a1c4c55e644c6af477fd8e8e70241
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from misc import render_block class BlockOuterNet(nn.Module): """ predict block-level programs and parameters block-LSTM """ def __init__...
38.69375
124
0.590481
794d6a00080275d8994bb3a434bf080e3d226882
397
py
Python
upperegypt/wsgi.py
mohammedmosaad400/django-upperegypt
ba7c236ad586ff9666d8b4145d249216b2f307fb
[ "MIT" ]
null
null
null
upperegypt/wsgi.py
mohammedmosaad400/django-upperegypt
ba7c236ad586ff9666d8b4145d249216b2f307fb
[ "MIT" ]
null
null
null
upperegypt/wsgi.py
mohammedmosaad400/django-upperegypt
ba7c236ad586ff9666d8b4145d249216b2f307fb
[ "MIT" ]
null
null
null
""" WSGI config for upperegypt project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
794d6a33ae57b2bf445c129cadbf4ddbca484572
31,515
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py
benbp/azure-sdk-for-python
2329ba03e48098dcdc581898f6434d7c2b13a7b9
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.245308
272
0.725115
794d6a8a6b9cb779daaf374abfd545158917f0dd
335
py
Python
intro-python/dnac_config_cloud.py
anaid30kadi/DevNet
463af310b88d131f3a26df313d6ca29071528953
[ "MIT" ]
null
null
null
intro-python/dnac_config_cloud.py
anaid30kadi/DevNet
463af310b88d131f3a26df313d6ca29071528953
[ "MIT" ]
8
2021-04-07T23:21:09.000Z
2021-09-23T23:29:33.000Z
intro-python/dnac_config_cloud.py
anaid30kadi/DevNet
463af310b88d131f3a26df313d6ca29071528953
[ "MIT" ]
null
null
null
# Step 1 # Change DNAC IP to the one you are using DNAC_IP = "sandboxdnac.cisco.com" DNAC_PORT = 443 # Step 2 # Enter user name and password to get a service ticket # If you assign username, password, and version here, # you don't need to pass parameter when calling DNAC_USER = "devnetuser" DNAC_PASSWORD = "Cisco123!"...
27.916667
54
0.743284
794d6b6f7dad9605c29281c02ebcc2200aad5985
153
py
Python
django-like/app_two/urls.py
mirokrastev/flask-structures
fb7ad464c3df85be2e66229b2fd99a8da903b3c9
[ "MIT" ]
1
2021-05-06T09:04:36.000Z
2021-05-06T09:04:36.000Z
django-like/app_two/urls.py
mirokrastev/flask-structures
fb7ad464c3df85be2e66229b2fd99a8da903b3c9
[ "MIT" ]
null
null
null
django-like/app_two/urls.py
mirokrastev/flask-structures
fb7ad464c3df85be2e66229b2fd99a8da903b3c9
[ "MIT" ]
null
null
null
from app_two import app_two_bp from app_two import views path = app_two_bp.add_url_rule urlpatterns = [ path('/', view_func=views.app_two_index) ]
17
44
0.764706
794d6d30203f7471c9f6203775e5519e5d3fb381
56,707
py
Python
Configuration/PyReleaseValidation/python/relval_standard.py
tklijnsma/cmssw
d7f103c459dd195eaa651ce0c30e4bd4bfd0fe43
[ "Apache-2.0" ]
1
2020-07-12T11:51:32.000Z
2020-07-12T11:51:32.000Z
Configuration/PyReleaseValidation/python/relval_standard.py
tklijnsma/cmssw
d7f103c459dd195eaa651ce0c30e4bd4bfd0fe43
[ "Apache-2.0" ]
3
2020-02-19T08:33:16.000Z
2020-03-13T10:02:19.000Z
Configuration/PyReleaseValidation/python/relval_standard.py
tklijnsma/cmssw
d7f103c459dd195eaa651ce0c30e4bd4bfd0fe43
[ "Apache-2.0" ]
1
2018-09-12T13:30:34.000Z
2018-09-12T13:30:34.000Z
# import the definition of the steps and input files: from Configuration.PyReleaseValidation.relval_steps import * # here only define the workflows as a combination of the steps defined above: workflows = Matrix() overridesEv5={'-n':'5'} # each workflow defines a name and a list of steps to be done. # if no expli...
78.869263
197
0.736858
794d6d655d57a074625fb041cb97affbf4857f63
179
py
Python
rasalit/apps/nlucluster/common.py
vishnupriyavr/rasalit
8305aa1a4cf2f3d7d79e989b4656d1995c420531
[ "Apache-2.0" ]
261
2020-04-17T14:33:21.000Z
2022-03-30T06:53:24.000Z
rasalit/apps/nlucluster/common.py
vishnupriyavr/rasalit
8305aa1a4cf2f3d7d79e989b4656d1995c420531
[ "Apache-2.0" ]
36
2020-07-21T18:39:32.000Z
2022-02-10T10:35:57.000Z
rasalit/apps/nlucluster/common.py
vishnupriyavr/rasalit
8305aa1a4cf2f3d7d79e989b4656d1995c420531
[ "Apache-2.0" ]
53
2020-04-20T16:49:51.000Z
2022-03-10T09:03:32.000Z
# Because of how tensorflow works (unfortunately!) we can't seperate our concerns as much # as we would like them to. This is mainly due to the `tf.global_variables_initializer`.
59.666667
89
0.782123
794d6daea95bcebd0f9b7ebdcbd8865b40ad8b96
556
py
Python
production/JVcode/Scripts/normalizer.py
ramaganapathy1/AMuDA-Ir-back-end
179bf52fd303440fff661c074c7835c4932d5165
[ "MIT" ]
2
2017-09-20T07:47:08.000Z
2017-09-27T12:26:11.000Z
production/JVcode/Scripts/normalizer.py
ramaganapathy1/AMuDA-Ir-back-end
179bf52fd303440fff661c074c7835c4932d5165
[ "MIT" ]
null
null
null
production/JVcode/Scripts/normalizer.py
ramaganapathy1/AMuDA-Ir-back-end
179bf52fd303440fff661c074c7835c4932d5165
[ "MIT" ]
2
2017-09-27T12:26:13.000Z
2018-12-11T00:37:53.000Z
import os #listOfFiles = os.listdir(os.getcwd()+"/tabfiles") highestT = 0.0 highestD = 0.0 highestC = 0.0 for filename in os.listdir(os.getcwd()): if filename.endswith(".tab"): doc = open(filename,"r") for line in doc: elements = line.split("\t") tfidf = float(elements[1]) cscore = float(elements[3]) ...
21.384615
50
0.638489
794d6f271392ef9919fe81b680455ec4bb835311
1,517
py
Python
doge/util.py
lenards/pretty-doge
cfd4ba8e607f2958c3ef204b6b91ebf3ac5db69f
[ "BSD-3-Clause" ]
2
2017-09-05T12:39:56.000Z
2021-12-06T05:23:13.000Z
doge/util.py
lenards/pretty-doge
cfd4ba8e607f2958c3ef204b6b91ebf3ac5db69f
[ "BSD-3-Clause" ]
8
2021-06-08T19:01:47.000Z
2022-03-11T23:16:34.000Z
doge/util.py
lenards/pretty-doge
cfd4ba8e607f2958c3ef204b6b91ebf3ac5db69f
[ "BSD-3-Clause" ]
null
null
null
""" Utility methods for pretty-doge. NOTE: These methods were used in development but are not currently used. """ WHITE = (255, 255, 255) BLACK = (0, 0, 0) def choose(color): """ Used to convert the png into 4 color. """ r, g, b, a = color if r < 90: return (0, 0, 0, 255) if r >= 7...
23.338462
72
0.520105
794d7071bc957713b62b2adb8e5a2cf35df29198
1,290
py
Python
aiokraken/websockets/schemas/tests/strats/st_owntrade.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
aiokraken/websockets/schemas/tests/strats/st_owntrade.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
aiokraken/websockets/schemas/tests/strats/st_owntrade.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
import hypothesis.strategies as st from aiokraken.websockets.schemas.owntrades import ownTradeWS, ownTradeWSSchema @st.composite def st_owntradews(draw): return ownTradeWS( tradeid= draw(st.text()), ordertxid= draw(st.text()), postxid= draw(st.text()), pair= draw(st.text()), ...
31.463415
99
0.66124
794d757c91adb0a57c2d40b45ab1f02ad8238b36
484
py
Python
circles/migrations/0009_auto_20200505_2253.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-04-30T16:19:33.000Z
2020-04-30T16:19:33.000Z
circles/migrations/0009_auto_20200505_2253.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
43
2020-05-01T23:48:01.000Z
2022-03-12T00:35:32.000Z
circles/migrations/0009_auto_20200505_2253.py
CoronaCircles/coronacircles
1d86a659def276fcc0ebd7a723a48f729d6e21a1
[ "MIT" ]
1
2020-05-04T20:07:16.000Z
2020-05-04T20:07:16.000Z
# Generated by Django 3.0.6 on 2020-05-05 20:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('circles', '0008_auto_20200505_0026'), ] operations = [ migrations.AlterField( model_name='mailtemplate', name='langu...
25.473684
135
0.61157
794d75bff484bb7546bd96eeec4a7b315ac79023
716
py
Python
tests/integration/long/__init__.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
1
2017-10-17T11:30:52.000Z
2017-10-17T11:30:52.000Z
tests/integration/long/__init__.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
tests/integration/long/__init__.py
fatelei/python-driver
3bddef6185f2691e1713dfe51d1fa26d1555724c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
39.777778
76
0.76257
794d7613cdc509271eeabd7574a5f7ce9ed5f632
6,824
py
Python
numba/core/typing/typeof.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/core/typing/typeof.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/core/typing/typeof.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
from collections import namedtuple from functools import singledispatch import ctypes import enum import numpy as np from numba.core import types, utils, errors from numba.np import numpy_support # terminal color markup _termcolor = errors.termcolor() class Purpose(enum.Enum): # Value being typed is used as an...
25.462687
77
0.680393
794d778b22da577442583ac2b8aa8c0d89f6c3c7
2,141
py
Python
recipes/cnpy/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/cnpy/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/cnpy/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os import glob from conans import ConanFile, CMake, tools class CnpyConan(ConanFile): name = "cnpy" description = "library to read/write .npy and .npz files in C/C++" license = "MIT" topics = ("conan", "cnpy") homepage = "https://github.com/hongyx11/cnpy" url = "https://github.com/conan...
28.932432
78
0.616067
794d7804f3adee4ea5f017562f40f3f5beab5c35
4,002
py
Python
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxr/tests/test_nd.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxr/tests/test_nd.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxr/tests/test_nd.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
# Python import unittest from unittest.mock import Mock # Pyats from pyats.topology import Device # genie.libs from genie.libs.ops.nd.iosxr.nd import Nd from genie.libs.ops.nd.iosxr.tests.nd_output import NdOutput from genie.libs.parser.iosxr.show_interface import ShowIpv6VrfAllInterface from genie.libs.parser.iosxr....
39.235294
145
0.671414
794d782c657405216e606077ea9846c5d0786350
23,762
py
Python
src/pymas/core.py
mestradam/pymas
528aa81be9848dea65152a359290238f6ba983a7
[ "MIT" ]
null
null
null
src/pymas/core.py
mestradam/pymas
528aa81be9848dea65152a359290238f6ba983a7
[ "MIT" ]
2
2022-03-25T00:46:25.000Z
2022-03-28T03:23:01.000Z
src/pymas/core.py
mestradam/pymas
528aa81be9848dea65152a359290238f6ba983a7
[ "MIT" ]
1
2022-03-27T01:32:20.000Z
2022-03-27T01:32:20.000Z
import json import numpy as np from pymas.primitives import * class Structure: """Model and analyse a framed structure. Attributes ---------- ux : bool Flag analyze translation along x-axis. uy : bool Flag analyze translation along y-axis. uz : bool Flag analyze trans...
34.437681
190
0.579791
794d78a67716b367497ed9071804b5ea8caef34f
69,945
py
Python
pysnmp-with-texts/NORTEL-WLAN-AP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/NORTEL-WLAN-AP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/NORTEL-WLAN-AP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module NORTEL-WLAN-AP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NORTEL-WLAN-AP-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:24:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
156.127232
7,424
0.792079
794d7a951453fc7d9d1504fa39204bf91f5a6443
6,772
py
Python
src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/test_byox.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
7
2020-04-26T09:54:05.000Z
2021-07-22T16:54:41.000Z
src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/test_byox.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
2
2017-02-11T21:16:40.000Z
2017-02-11T21:30:54.000Z
src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/test_byox.py
xaliciayang/azure-cli
38c80c875e8a79d08d06a2f42ec82fd54934343e
[ "MIT" ]
13
2020-06-30T16:23:36.000Z
2022-03-29T17:12:05.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
52.496124
211
0.601447
794d7b0267c94177341a972ec5c739d8b6703e9e
4,626
py
Python
gromozeka/concurrency/scheduler.py
moelius/gromozeka
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
[ "MIT" ]
1
2020-06-12T17:48:43.000Z
2020-06-12T17:48:43.000Z
gromozeka/concurrency/scheduler.py
moelius/gromozeka
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
[ "MIT" ]
2
2018-03-14T16:21:48.000Z
2018-06-08T14:41:17.000Z
gromozeka/concurrency/scheduler.py
moelius/gromozeka
6f7f684064ea0414c0bf346e9d3f8804ab4f399b
[ "MIT" ]
null
null
null
"""Module for schedule tasks """ import logging import queue import sched import threading import time from datetime import datetime, timedelta import gromozeka.app class Scheduler(threading.Thread): """Scheduler class Attributes: logger(:obj:`logging.Logger`): Class logger _stop_event(:obj...
32.34965
116
0.593385
794d7c0bdb7cf85e9a79653c30295205d2671049
8,814
py
Python
subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py
mikgroup/subtle_data_crimes
210025d9cb8f92583f5f983be15af06b57cfea36
[ "MIT" ]
8
2021-12-12T02:32:30.000Z
2021-12-17T02:26:26.000Z
subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py
mikgroup/data_crimes
210025d9cb8f92583f5f983be15af06b57cfea36
[ "MIT" ]
null
null
null
subtle_data_crimes/crime_2_jpeg/Fig7/DL/Test_MoDL_R4_forFig6.py
mikgroup/data_crimes
210025d9cb8f92583f5f983be15af06b57cfea36
[ "MIT" ]
null
null
null
''' This code is used for testing MoDL on JPEG-compressed data, for the results shown in figures 6, 7 and 8c in the paper. Before running this script you should update the following: basic_data_folder - it should be the same as the output folder defined in the script /crime_2_jpeg/data_prep/jpeg_data_prep.py (c...
40.063636
142
0.579192
794d7e6a626920f1c5497016c664224909eab9f2
3,448
py
Python
util/generate_summary.py
cmltaWt0/edx-load-tests
c25547a3ee241b3aa323dc6931e161a356ed5314
[ "Apache-2.0" ]
18
2016-01-31T13:29:56.000Z
2019-02-08T18:08:49.000Z
util/generate_summary.py
cmltaWt0/edx-load-tests
c25547a3ee241b3aa323dc6931e161a356ed5314
[ "Apache-2.0" ]
92
2015-07-31T20:16:51.000Z
2019-08-09T14:32:12.000Z
util/generate_summary.py
cmltaWt0/edx-load-tests
c25547a3ee241b3aa323dc6931e161a356ed5314
[ "Apache-2.0" ]
15
2015-08-19T15:23:58.000Z
2018-02-01T19:47:38.000Z
# -*- coding: utf-8 -*- """ Generate a summary of a previous loadtest run in this environment. See for usage example in a jenkins job dsl: https://github.com/edx/jenkins-job-dsl/blob/master/testeng/jobs/loadtestDriver.groovy Prerequisites: A logfile produced by util/run-loadtest.sh should be present in its s...
31.063063
85
0.62645
794d7f3e6ee25d1c31cdecf9f2a29faa2864b1de
106,718
py
Python
env/lib/python3.9/site-packages/treebeard/tests/test_treebeard.py
afrokyss/DIT-ILLUMNI-WAGTAIL-APP
c1b22efa6b5b6c0ed5afb30c721b630ec8e37968
[ "MIT" ]
null
null
null
env/lib/python3.9/site-packages/treebeard/tests/test_treebeard.py
afrokyss/DIT-ILLUMNI-WAGTAIL-APP
c1b22efa6b5b6c0ed5afb30c721b630ec8e37968
[ "MIT" ]
null
null
null
env/lib/python3.9/site-packages/treebeard/tests/test_treebeard.py
afrokyss/DIT-ILLUMNI-WAGTAIL-APP
c1b22efa6b5b6c0ed5afb30c721b630ec8e37968
[ "MIT" ]
null
null
null
"""Unit/Functional tests""" import datetime import os from django.contrib.admin.sites import AdminSite from django.contrib.admin.views.main import ChangeList from django.contrib.auth.models import User, AnonymousUser from django.contrib.messages.storage.fallback import FallbackStorage from django.db.models i...
35.093061
89
0.512903
794d7fba919a87336fbca3c2e7acbd8dcb18c680
1,047
py
Python
manage.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
manage.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
95
2021-02-20T21:53:29.000Z
2022-01-14T17:24:50.000Z
manage.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.71875
77
0.660936
794d809366b828f9bc7210f343e24d674a17042c
1,240
py
Python
pydash/Dash/DashLint/__init__.py
ensomniac/dash
5a5cabd1a1d057015dd1446b6b1000af1e521355
[ "MIT" ]
null
null
null
pydash/Dash/DashLint/__init__.py
ensomniac/dash
5a5cabd1a1d057015dd1446b6b1000af1e521355
[ "MIT" ]
null
null
null
pydash/Dash/DashLint/__init__.py
ensomniac/dash
5a5cabd1a1d057015dd1446b6b1000af1e521355
[ "MIT" ]
null
null
null
# Ensomniac 2022 Ryan Martin, ryan@ensomniac.com # Andrew Stet, stetandrew@gmail.com """ Stub for a module to run whenever a python or javascript file is saved. Unresolved Notes / Thoughts for Python: + Time the compilation / read time for each file and flag time-consuming imports + Create a format fo...
31
121
0.71129
794d81230b1a8cffc44a73f8fa8ec90d51ec1ebd
47,921
py
Python
mne/coreg.py
mohdsherif/mne-python
affc6854168e32e73a075a0104e7af8bddd7eefe
[ "BSD-3-Clause" ]
null
null
null
mne/coreg.py
mohdsherif/mne-python
affc6854168e32e73a075a0104e7af8bddd7eefe
[ "BSD-3-Clause" ]
null
null
null
mne/coreg.py
mohdsherif/mne-python
affc6854168e32e73a075a0104e7af8bddd7eefe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Coregistration between different coordinate frames.""" # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD (3-clause) import configparser import fnmatch from glob import glob, iglob import os import os.path as op import stat import sys import re import shutil from fun...
37.822415
79
0.626009
794d8184bd8da1bd0ecf8ac3790f2f61d837a69f
796
py
Python
apps/rss_feeds/management/commands/task_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
3,073
2015-01-01T07:20:18.000Z
2022-03-31T20:33:41.000Z
apps/rss_feeds/management/commands/task_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
1,054
2015-01-02T13:32:35.000Z
2022-03-30T04:21:21.000Z
apps/rss_feeds/management/commands/task_feeds.py
louis-pre/NewsBlur
b4e9a56041ff187ef77b38dfd0778daf41b53f4f
[ "MIT" ]
676
2015-01-03T16:40:29.000Z
2022-03-30T14:00:40.000Z
from django.core.management.base import BaseCommand from django.conf import settings from apps.rss_feeds.tasks import TaskFeeds, TaskBrokenFeeds import datetime class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument("-f", "--feed", default=None) parser.add_argument("-a",...
37.904762
142
0.665829
794d81e249626c1380ce00397bd0a43a46cd9e5b
3,116
py
Python
tests/testvcfparser/test_meta_header_parser.py
everestial/vcfparser
7e473d03e8ca9d040d2c5c310ce0febb07d874b2
[ "MIT" ]
2
2019-09-25T08:25:45.000Z
2019-12-25T16:24:00.000Z
tests/testvcfparser/test_meta_header_parser.py
everestial/vcfparser
7e473d03e8ca9d040d2c5c310ce0febb07d874b2
[ "MIT" ]
null
null
null
tests/testvcfparser/test_meta_header_parser.py
everestial/vcfparser
7e473d03e8ca9d040d2c5c310ce0febb07d874b2
[ "MIT" ]
null
null
null
import pytest import filecmp import os import collections import sys import json import csv from vcfparser import MetaDataParser from vcfparser.meta_header_parser import split_to_dict header_file = "tests/testfiles/vcf_parser_input/reference_input_test.vcf" meta_header_parser_obj = MetaDataParser(header_file) # 1 Met...
32.123711
101
0.73973
794d8210f82d9ef750367fa280b3c0ac40361c74
7,336
py
Python
benchmarks/f3_wrong_hints/scaling_software_termination/15-2Nested_false-termination_4.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints/scaling_software_termination/15-2Nested_false-termination_4.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints/scaling_software_termination/15-2Nested_false-termination_4.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
30.953586
77
0.585742
794d821fd149c82d8cbe4a56d6b0cf2150d74506
1,514
py
Python
openapi-python-client/test/test_schema_log_query_dto_sorting.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/test/test_schema_log_query_dto_sorting.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/test/test_schema_log_query_dto_sorting.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import openapi_client from openapi_clie...
28.037037
109
0.688243
794d85317dd87f17f00143f49a2d99bbf3347b2c
12,659
py
Python
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/mako/lookup.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
7
2016-02-09T06:43:14.000Z
2021-03-12T06:07:50.000Z
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/mako/lookup.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
null
null
null
XBlock Integration Files/xdjangobb/xblock/lib/python2.7/site-packages/mako/lookup.py
DANCEcollaborative/forum-xblock
fe8a062b4e45966a5faa5282d85799be479ec28a
[ "MIT" ]
null
null
null
# mako/lookup.py # Copyright (C) 2006-2015 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import os import stat import posixpath import re from mako import exceptions, util from mako.templa...
34.682192
78
0.590647
794d8579073943f2db41da21161142aa4a33d0fc
1,135
py
Python
Love Babbar DSA Sheet Solutions/Dynamic Programming/Knapsack/Knapsack.py
dr490n1s3d-3d8/Data-Structures-and-Algorithms
f2bba2d836f448cc0cd894c4e9791819910571d5
[ "MIT" ]
1
2022-03-06T13:58:27.000Z
2022-03-06T13:58:27.000Z
Love Babbar DSA Sheet Solutions/Dynamic Programming/Knapsack/Knapsack.py
kumar-tushar/Data-Structures-and-Algorithms
c586847734abbdd8f3cfbd76ba588216369f45df
[ "MIT" ]
null
null
null
Love Babbar DSA Sheet Solutions/Dynamic Programming/Knapsack/Knapsack.py
kumar-tushar/Data-Structures-and-Algorithms
c586847734abbdd8f3cfbd76ba588216369f45df
[ "MIT" ]
1
2022-02-12T03:58:50.000Z
2022-02-12T03:58:50.000Z
""" You are given weights and values of N items, put these items in a knapsack of capacity W to get the maximum total value in the knapsack. Note that we have only one quantity of each item. In other words, given two integer arrays val[0..N-1] and wt[0..N-1] which represent values and weights associated with N items re...
35.46875
117
0.622907
794d8632803c3546123cb595249c3343c6d48fba
4,766
py
Python
ppdet/modeling/transformers/matchers.py
leakyH/PaddleDetection
aa15eb945711baf248177a02d4d3dd3bd3abc4e8
[ "Apache-2.0" ]
3
2022-03-23T08:48:06.000Z
2022-03-28T01:59:34.000Z
ppdet/modeling/transformers/matchers.py
leakyH/PaddleDetection
aa15eb945711baf248177a02d4d3dd3bd3abc4e8
[ "Apache-2.0" ]
null
null
null
ppdet/modeling/transformers/matchers.py
leakyH/PaddleDetection
aa15eb945711baf248177a02d4d3dd3bd3abc4e8
[ "Apache-2.0" ]
1
2021-08-09T14:53:28.000Z
2021-08-09T14:53:28.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.527559
97
0.610365
794d876058bc8af52e6adeb6a6cce3e6e537a844
17,234
py
Python
egs/cnceleb/v1/local/choose_utts_to_combine.py
kjw11/kaldi
e87928818ead5ef046b58d1290f46bc8551b2fe6
[ "Apache-2.0" ]
9
2019-11-02T03:28:06.000Z
2019-12-06T07:32:11.000Z
egs/cnceleb/v1/local/choose_utts_to_combine.py
kjw11/kaldi
e87928818ead5ef046b58d1290f46bc8551b2fe6
[ "Apache-2.0" ]
null
null
null
egs/cnceleb/v1/local/choose_utts_to_combine.py
kjw11/kaldi
e87928818ead5ef046b58d1290f46bc8551b2fe6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Vijayaditya Peddinti # 2016 Johns Hopkins University (author: Daniel Povey) # 2019 Tsinghua University (author: Jiawen Kang) # # Copied from utils/data/internal/choose_utts_to_combine.py # Apache 2.0 from __future__ import print_function import argparse fr...
44.417526
103
0.635836
794d87e1f5b4d340fd89e07a1323dc8a4c510432
4,981
py
Python
web/core.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
1
2018-07-10T12:53:35.000Z
2018-07-10T12:53:35.000Z
web/core.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
null
null
null
web/core.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env # -*- coding: utf-8 -*- """ Copyright 2017-2018 Jagoba Pérez-Gómez 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 ...
31.525316
112
0.71572
794d89dc747df7e3a5cbc78c64698a52060e01a0
4,701
py
Python
ceilometer/tests/ipmi/pollsters/test_sensor.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/ipmi/pollsters/test_sensor.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/ipmi/pollsters/test_sensor.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
3
2015-10-08T20:03:36.000Z
2020-02-05T10:45:50.000Z
# Copyright 2014 Intel Corp. # # 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,...
26.862857
75
0.721549
794d89efa0e58125e32dc57ec4d4290b697afdd9
723
py
Python
tpdatasrc/tpgamefiles/scr/tpModifiers/tiefling.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/tpgamefiles/scr/tpModifiers/tiefling.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/tpgamefiles/scr/tpModifiers/tiefling.py
edoipi/TemplePlus
f0e552289822fea908f16daa379fa568b1bd286d
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from templeplus.pymod import PythonModifier from toee import * import tpdp import race_utils ################################################### def GetConditionName(): return "Tiefling" raceEnum = race_human + (3 << 5) raceSpecModule = __import__('race096_tiefling') ###############################################...
30.125
98
0.701245
794d8ab5b21e05679d025723f900e1f9ebff2230
2,807
py
Python
tests/conftest.py
shkumagai/drf_renderer_svgheatmap
43e829a8c28c855d87d51ff81082717d236545e6
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
shkumagai/drf_renderer_svgheatmap
43e829a8c28c855d87d51ff81082717d236545e6
[ "Apache-2.0" ]
139
2019-09-02T14:33:01.000Z
2022-03-29T01:49:07.000Z
tests/conftest.py
shkumagai/drf_renderer_svgheatmap
43e829a8c28c855d87d51ff81082717d236545e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Shoji Kumagai # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.846154
84
0.603491