hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
12afe41fdeb07fe6aecc175be32f5ff1a39cefdf
99
py
Python
web_site_kripta/__init__.py
krypta-oficial/web-site-krypta
a9b0ee3e098b4c4b89a1cad12a9d7fb04a350856
[ "MIT" ]
1
2021-10-29T22:03:07.000Z
2021-10-29T22:03:07.000Z
web_site_kripta/__init__.py
MarianoTupa/web-site-krypta
a9b0ee3e098b4c4b89a1cad12a9d7fb04a350856
[ "MIT" ]
null
null
null
web_site_kripta/__init__.py
MarianoTupa/web-site-krypta
a9b0ee3e098b4c4b89a1cad12a9d7fb04a350856
[ "MIT" ]
null
null
null
"""Name Space of Web Site Flask""" from .web_site_kripta import create_app __version__ = "0.1.0"
16.5
39
0.727273
4db561847a57784b466585eba1f8275f03eba2d3
787
py
Python
007er_pyserver/db_repository/versions/015_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
007er_pyserver/db_repository/versions/015_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
007er_pyserver/db_repository/versions/015_migration.py
Lidagou007er/lidagou007er.github.io
25ffb8d84ad6ef9ece8ee9f458c299d06f1742f9
[ "MIT" ]
null
null
null
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() relationships = Table('relationships', post_meta, Column('id', String(length=25), primary_key=True, nullable=False), Column('r_content', TEXT), ) def upgrade(migrate_engine): ...
29.148148
70
0.740788
cbd36bb0abeda28cd442bff919a58791b4e4a5f6
8,033
py
Python
pandas/tests/io/sas/test_sas7bdat.py
kpflugshaupt/pandas
c9e3883c630c48b17218e6bcc5593720c1402bf1
[ "BSD-3-Clause" ]
2
2021-04-07T13:56:06.000Z
2021-04-12T13:45:23.000Z
pandas/tests/io/sas/test_sas7bdat.py
sanjusci/pandas
a1fee9199eba7ebf423880243936b9f1501d3d3a
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/sas/test_sas7bdat.py
sanjusci/pandas
a1fee9199eba7ebf423880243936b9f1501d3d3a
[ "BSD-3-Clause" ]
3
2018-01-08T08:40:55.000Z
2019-10-07T02:02:40.000Z
import io import os import numpy as np import pytest from pandas.errors import EmptyDataError import pandas.util._test_decorators as td import pandas as pd import pandas.util.testing as tm # https://github.com/cython/cython/issues/1720 @pytest.mark.filterwarnings("ignore:can't resolve package:ImportWarning") class...
36.184685
77
0.568156
ab80401c4ea727f42cd7c409d700a7ad6ad11017
24,321
py
Python
seaborn/distributions.py
gokceneraslan/seaborn
5034d0a23cebc5f34f6f656d4064345f4004d4ee
[ "BSD-3-Clause" ]
2
2019-05-27T04:32:12.000Z
2019-06-10T15:28:22.000Z
seaborn/distributions.py
gokceneraslan/seaborn
5034d0a23cebc5f34f6f656d4064345f4004d4ee
[ "BSD-3-Clause" ]
null
null
null
seaborn/distributions.py
gokceneraslan/seaborn
5034d0a23cebc5f34f6f656d4064345f4004d4ee
[ "BSD-3-Clause" ]
1
2021-03-15T03:48:10.000Z
2021-03-15T03:48:10.000Z
"""Plotting functions for visualizing distributions.""" from __future__ import division import numpy as np from scipy import stats import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.transforms as tx from matplotlib.collections import LineCollection import warnings from distut...
32.733513
79
0.597673
d463205f8f34ff905fe947bfd7a2a5019e097469
252
py
Python
comprehension/comprehension_v5.py
C3As/COD3R-Curso-Python
13e778108388e290da433db991838c307750a337
[ "MIT" ]
null
null
null
comprehension/comprehension_v5.py
C3As/COD3R-Curso-Python
13e778108388e290da433db991838c307750a337
[ "MIT" ]
null
null
null
comprehension/comprehension_v5.py
C3As/COD3R-Curso-Python
13e778108388e290da433db991838c307750a337
[ "MIT" ]
null
null
null
# { chave: valor/expressao for item in list if condicional } dicionario = {i: i * 2 for i in range(10) if i % 2 == 0} print(dicionario) # {0: 0, 2: 4, 4: 8, 6: 12, 8: 16} for numero, dobro in dicionario.items(): print(f'{numero} x 2 = {dobro}')
31.5
60
0.607143
d15e97af04b4bb5044873e7c66f8acacf2700b6a
7,050
py
Python
tensorflow/python/keras/layers/noise.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
56
2018-06-21T13:47:23.000Z
2020-05-13T09:31:47.000Z
tensorflow/python/keras/layers/noise.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
6
2022-01-15T07:17:47.000Z
2022-02-14T15:28:22.000Z
tensorflow/python/keras/layers/noise.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
15
2018-09-06T14:18:32.000Z
2020-05-14T06:35:30.000Z
# Copyright 2015 The TensorFlow 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 applica...
33.098592
109
0.703262
a666acc1669da4dae2a2ea7791726d8befbbb858
852
py
Python
tests/test_loss.py
pskrunner14/neural-networks
83d3b41ad4773ee375b8ef9bed736d7e3f2bf334
[ "MIT" ]
1
2017-10-06T05:55:06.000Z
2017-10-06T05:55:06.000Z
tests/test_loss.py
pskrunner14/neural-networks
83d3b41ad4773ee375b8ef9bed736d7e3f2bf334
[ "MIT" ]
3
2018-09-18T18:57:22.000Z
2019-07-03T02:57:23.000Z
tests/test_loss.py
pskrunner14/neural-networks
83d3b41ad4773ee375b8ef9bed736d7e3f2bf334
[ "MIT" ]
2
2017-10-06T05:55:08.000Z
2019-01-23T10:17:33.000Z
import sys sys.path.append('../nn/') import unittest import numpy as np from loss import ( softmax_crossentropy_with_logits, grad_softmax_crossentropy_with_logits ) from test_util import eval_numerical_gradient class TestLoss(unittest.TestCase): def test_crossentropy_loss_NUMERICAL_GRADIENT_CHECK(self):...
38.727273
118
0.746479
dd94b827d5c2757c085bb46062645d0585172025
681
py
Python
task1/read-write.py
ValtteriL/ID2210
71de5a4ee7cb10719f11e4f3be1cc71355814168
[ "MIT" ]
null
null
null
task1/read-write.py
ValtteriL/ID2210
71de5a4ee7cb10719f11e4f3be1cc71355814168
[ "MIT" ]
null
null
null
task1/read-write.py
ValtteriL/ID2210
71de5a4ee7cb10719f11e4f3be1cc71355814168
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from google.cloud import storage # Authenticate using service account credentials client = storage.Client.from_service_account_json('/home/vleh/KTH/peer-to-peer_grids/root-boi.json') # get our bucket bucket = client.get_bucket('korvbukett') # create new blob blob = bucket....
29.608696
100
0.765051
9e1bbde5653874ebf124f254fb3ced4f2b7776b1
2,899
py
Python
src/kuappi.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
src/kuappi.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
src/kuappi.py
jussike/kuappi
985040dc813c023dc1577f31ca7f6744d42c91de
[ "MIT" ]
null
null
null
import logging from threading import Event import signal from common import TEMP from config import CONFIG if 'MiTemp' == CONFIG.get('sensor'): from sensors.mitemp import MiTemp if 'W1Temp' == CONFIG.get('sensor'): from sensors.w1temp import W1Temp if 'MqttSensor' == CONFIG.get('sensor'): from sensors.mqt...
35.790123
89
0.639186
163316f54ee61104cf789737ca5f30e3b6d48274
5,993
py
Python
plugins/myparser.py
otherbeast/hackers-tool-kit
12991889db1f6843dde82e7da4b4cdfb50740da5
[ "Apache-2.0" ]
393
2019-01-21T05:52:54.000Z
2022-03-29T06:07:04.000Z
plugins/myparser.py
urantialife/hackers-tool-kit
34dbabf3e94825684fd1a684f522d3dc3565eb2d
[ "Apache-2.0" ]
19
2019-02-22T00:49:28.000Z
2021-12-30T20:28:59.000Z
plugins/myparser.py
urantialife/hackers-tool-kit
34dbabf3e94825684fd1a684f522d3dc3565eb2d
[ "Apache-2.0" ]
138
2019-03-15T23:22:19.000Z
2022-03-20T17:19:09.000Z
import string import re class parser: def __init__(self, results, word): self.results = results self.word = word self.temp = [] def genericClean(self): self.results = re.sub('<em>', '', self.results) self.results = re.sub('<b>', '', self.results) self.results ...
35.886228
95
0.483064
6f5807567399a83cc9241d12da4463d724f19bb7
19,120
py
Python
tempest/api/network/test_ports.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_ports.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/api/network/test_ports.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2014 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
44.988235
78
0.653138
d9549606e75173d6630072e7eff75c2d61f203d1
353
py
Python
scripts/legacy_redirects/clean_up_output.py
EFM-Bobby/docs
6ee5c8207323097793afc39d8a97f7b3b71ed0d0
[ "Apache-2.0" ]
10
2021-01-12T19:42:08.000Z
2022-03-31T13:22:42.000Z
scripts/legacy_redirects/clean_up_output.py
EFM-Bobby/docs
6ee5c8207323097793afc39d8a97f7b3b71ed0d0
[ "Apache-2.0" ]
1,120
2020-11-13T06:02:13.000Z
2022-03-31T22:08:28.000Z
scripts/legacy_redirects/clean_up_output.py
EFM-Bobby/docs
6ee5c8207323097793afc39d8a97f7b3b71ed0d0
[ "Apache-2.0" ]
79
2020-11-09T20:07:06.000Z
2022-03-31T18:08:32.000Z
import fileinput print('cleaning up legacy redirects') nginx_file = 'static/nginx_redirects.generated' for line in fileinput.input(files=[nginx_file], inplace=1): if line.startswith('rewrite ^/docs/edb-docs/'): print(line.strip().replace('/docs/edb-docs/', '/edb-docs/')) print('see nginx redirects file at `sta...
32.090909
71
0.74221
7c5007b55eb53c9555e06a6763e4fdd4545b45b3
1,273
py
Python
apps/bookmark/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
48
2018-04-13T13:00:10.000Z
2020-03-17T23:35:23.000Z
apps/bookmark/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
77
2018-03-25T13:17:12.000Z
2020-08-11T08:24:49.000Z
apps/bookmark/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
35
2018-03-30T21:43:21.000Z
2020-08-11T05:51:46.000Z
# Generated by Django 3.0.3 on 2020-02-28 13:21 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("cont...
29.604651
78
0.485467
128a77aa1499859a5347d68c053a726888f9f6d8
1,651
py
Python
tools/pinplay/scripts/dart.py
nus-comparch/looppoint
3cac7fa1417c83c85c19ca95613b2964041211b5
[ "AFL-1.1", "BSD-Source-Code" ]
null
null
null
tools/pinplay/scripts/dart.py
nus-comparch/looppoint
3cac7fa1417c83c85c19ca95613b2964041211b5
[ "AFL-1.1", "BSD-Source-Code" ]
null
null
null
tools/pinplay/scripts/dart.py
nus-comparch/looppoint
3cac7fa1417c83c85c19ca95613b2964041211b5
[ "AFL-1.1", "BSD-Source-Code" ]
null
null
null
# BEGIN_LEGAL # BSD License # # Copyright (c)2014 Intel Corporation. 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...
42.333333
72
0.788007
af93ba9c5c8eb91780dccef4fbcb24362c272e69
2,138
py
Python
tests/processors/test_dispatcher.py
SuccessionEcologicalServices/eemeter-1
dc06f42dc64679a5d56771d6900169eef4eaf515
[ "MIT" ]
null
null
null
tests/processors/test_dispatcher.py
SuccessionEcologicalServices/eemeter-1
dc06f42dc64679a5d56771d6900169eef4eaf515
[ "MIT" ]
1
2018-06-14T04:24:49.000Z
2018-06-14T04:24:49.000Z
tests/processors/test_dispatcher.py
SuccessionEcologicalServices/eemeter-1
dc06f42dc64679a5d56771d6900169eef4eaf515
[ "MIT" ]
null
null
null
from datetime import datetime import pytz import pytest import numpy as np import pandas as pd from eemeter.processors.dispatchers import get_energy_modeling_dispatches from eemeter.structures import ( ModelingPeriod, ModelingPeriodSet, EnergyTrace, EnergyTraceSet, ) from eemeter.modeling.split import...
27.410256
79
0.689897
4bdba8566b660cb03909ce05de8e1125cb9adcbc
6,981
py
Python
pythran/analyses/ast_matcher.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/analyses/ast_matcher.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/analyses/ast_matcher.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
""" Module to looks for a specified pattern in a given AST. """ from gast import AST, iter_fields, NodeVisitor, Dict, Set from itertools import permutations from math import isnan MAX_UNORDERED_LENGTH = 10 class DamnTooLongPattern(Exception): """ Exception for long dict/set comparison to reduce compile time. "...
32.774648
77
0.571408
b0ef699ca9151ce375844b6c9abc96e4656d0c1d
22,618
py
Python
tensornetwork/matrixproductstates/dmrg.py
adityasharma3/TensorNetwork
02a290576cab4adbd7dcfeb727eddc49f598b328
[ "Apache-2.0" ]
null
null
null
tensornetwork/matrixproductstates/dmrg.py
adityasharma3/TensorNetwork
02a290576cab4adbd7dcfeb727eddc49f598b328
[ "Apache-2.0" ]
1
2020-08-27T14:38:25.000Z
2020-08-27T19:01:51.000Z
tensornetwork/matrixproductstates/dmrg.py
adityasharma3/TensorNetwork
02a290576cab4adbd7dcfeb727eddc49f598b328
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorNetwork 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 ...
38.400679
80
0.587629
4030f39b1aec3aa3eae276256d9e8f27aa9748ae
2,595
py
Python
codigos_buenos/sensoresUS_v2.py
fraromesc/conceptos_raspberry
46179e85e8654dff6eff35599a1cb22f8dad8c35
[ "CC0-1.0" ]
null
null
null
codigos_buenos/sensoresUS_v2.py
fraromesc/conceptos_raspberry
46179e85e8654dff6eff35599a1cb22f8dad8c35
[ "CC0-1.0" ]
null
null
null
codigos_buenos/sensoresUS_v2.py
fraromesc/conceptos_raspberry
46179e85e8654dff6eff35599a1cb22f8dad8c35
[ "CC0-1.0" ]
null
null
null
#Libraries import RPi.GPIO as GPIO import time #GPIO Mode (BOARD / BCM) GPIO.setmode(GPIO.BOARD) #set GPIO Pins GPIO_TRIGGER = 8 GPIO_ECHO = 10 GPIO_TRIGGER_1 = 3 GPIO_ECHO_1 = 5 GPIO_TRIGGER_2 = 13 GPIO_ECHO_2 = 15 #set GPIO direction (IN / OUT) GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) ...
21.446281
47
0.712139
6b83870969c3e4fb876c67d97808da38343e534b
1,000
py
Python
examples/find_facial_features_in_picture.py
viettriit2110/face_recognition
0e1821af6538c573ed4a87acc361c44900f849eb
[ "MIT" ]
3
2021-07-26T14:24:41.000Z
2022-02-27T11:04:34.000Z
examples/find_facial_features_in_picture.py
viettriit2110/face_recognition
0e1821af6538c573ed4a87acc361c44900f849eb
[ "MIT" ]
1
2021-11-15T17:49:06.000Z
2021-11-15T17:49:06.000Z
examples/find_facial_features_in_picture.py
viettriit2110/face_recognition
0e1821af6538c573ed4a87acc361c44900f849eb
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw import face_recognition # Load the jpg file into a numpy array image = face_recognition.load_image_file("two_people.jpg") # Find all facial features in all the faces in the image face_landmarks_list = face_recognition.face_landmarks(image) print("I found {} face(s) in this p...
35.714286
121
0.743
9f7ba1247235cfd5f0724b79e15613855a038411
4,796
py
Python
waifu2x.py
Xnuvers007/Waifu2x
9857fa7ef07a0cb304c11fea8915e052c264c9e4
[ "MIT" ]
4
2021-08-22T18:36:42.000Z
2021-12-19T15:52:15.000Z
waifu2x.py
Xnuvers007/Waifu2x
9857fa7ef07a0cb304c11fea8915e052c264c9e4
[ "MIT" ]
null
null
null
waifu2x.py
Xnuvers007/Waifu2x
9857fa7ef07a0cb304c11fea8915e052c264c9e4
[ "MIT" ]
null
null
null
import requests, urllib, json from urllib import request import time import socket #------ Yang Recode Dosa, gw gak terima ini direcode kecuali izin dan ingin mengembangkannya -------------# def information(): print("Coded By Xnuvers007") hostname = socket.gethostname() ip_address = socket.gethost...
35.264706
108
0.501251
1dc944a10c5012ebb297d9f30943d14936ace767
3,781
py
Python
data/middlebury.py
myungsub/meta-interpolation
f7afee9d1786f67e6f548c2734f91858f803c5dc
[ "MIT" ]
74
2020-04-03T06:26:39.000Z
2022-03-25T16:51:28.000Z
data/middlebury.py
baiksung/meta-interpolation
72dd3b2e56054bb411ed20301583a0e67d9ea293
[ "MIT" ]
6
2020-07-09T20:09:23.000Z
2021-09-20T11:12:24.000Z
data/middlebury.py
baiksung/meta-interpolation
72dd3b2e56054bb411ed20301583a0e67d9ea293
[ "MIT" ]
19
2020-04-16T09:18:38.000Z
2021-12-28T08:25:12.000Z
import os import torch from torch.utils.data import Dataset, DataLoader from torchvision import transforms from PIL import Image import random import glob from subprocess import call class Middlebury(Dataset): def __init__(self, args): #data_root, mode='other', n_frames=2): ''' :param data_root: ...
34.372727
103
0.535573
2251e9ae0e0905255a1fca2c37c1759425593c09
9,241
py
Python
week2/utilities/ltr_utils.py
vidhyaMani/search_with_machine_learning_course
0101c8e855ee808e6823dbe17a730c514077d608
[ "Apache-2.0" ]
null
null
null
week2/utilities/ltr_utils.py
vidhyaMani/search_with_machine_learning_course
0101c8e855ee808e6823dbe17a730c514077d608
[ "Apache-2.0" ]
null
null
null
week2/utilities/ltr_utils.py
vidhyaMani/search_with_machine_learning_course
0101c8e855ee808e6823dbe17a730c514077d608
[ "Apache-2.0" ]
null
null
null
import json import requests def create_rescore_ltr_query(user_query, query_obj, click_prior_query, ltr_model_name, ltr_store_name, active_features=None, rescore_size=500, main_query_weight=1, rescore_query_weight=2): # Create the base query, use a much bigger window #add on the r...
45.29902
129
0.595715
0721054fb24f719e20b86ffb190d1670eb081792
470
py
Python
api/students/migrations/0017_auto_20200613_0833.py
Latiftanga/twysis-api
efec6164bb9b4e46647b55f03f29287418451896
[ "MIT" ]
null
null
null
api/students/migrations/0017_auto_20200613_0833.py
Latiftanga/twysis-api
efec6164bb9b4e46647b55f03f29287418451896
[ "MIT" ]
null
null
null
api/students/migrations/0017_auto_20200613_0833.py
Latiftanga/twysis-api
efec6164bb9b4e46647b55f03f29287418451896
[ "MIT" ]
null
null
null
# Generated by Django 3.1a1 on 2020-06-13 08:33 from django.db import migrations, models import students.models class Migration(migrations.Migration): dependencies = [ ('students', '0016_auto_20200612_2047'), ] operations = [ migrations.AlterField( model_name='student', ...
23.5
110
0.648936
2450f18ec1fc6f07003808419164843ec324de84
2,629
py
Python
tests/test__plotly.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
1
2021-09-03T04:02:25.000Z
2021-09-03T04:02:25.000Z
tests/test__plotly.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
3
2020-09-29T21:43:39.000Z
2021-07-21T22:18:27.000Z
tests/test__plotly.py
soerendip/ms-mint
bf5f5d87d07a0d2108c6cd0d92c278f2ea762e58
[ "MIT" ]
4
2019-11-14T13:25:24.000Z
2021-04-30T22:08:53.000Z
import pandas as pd import numpy as np from plotly.graph_objs._figure import Figure from ms_mint import Mint from ms_mint.vis.plotly import ( set_template, plotly_heatmap, plotly_peak_shapes, plotly_peak_shapes_3d, ) from paths import TEST_FEATHER, TEST_TARGETS_FN def test__plotly_heatmap(): N...
26.555556
84
0.682008
aa7315c92bd2933b92a1a7f406fbee17040048cf
1,340
py
Python
leetcode/3sum.py
federicoemartinez/problem_solving
d0352f76bc21ed67d6851a159a00f70a892934b9
[ "MIT" ]
null
null
null
leetcode/3sum.py
federicoemartinez/problem_solving
d0352f76bc21ed67d6851a159a00f70a892934b9
[ "MIT" ]
null
null
null
leetcode/3sum.py
federicoemartinez/problem_solving
d0352f76bc21ed67d6851a159a00f70a892934b9
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/3sum/description/ """ Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution set must not contain duplicate triplets. Example: Given array nums = [-1, 0, 1, 2...
28.510638
161
0.495522
2a46a6da44014cca9299d38705fa2c115deb3c7b
6,128
py
Python
torchdata/datapipes/iter/util/dataframemaker.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
611
2021-09-27T18:19:16.000Z
2022-03-31T11:36:01.000Z
torchdata/datapipes/iter/util/dataframemaker.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
271
2021-09-27T19:07:00.000Z
2022-03-30T19:55:14.000Z
torchdata/datapipes/iter/util/dataframemaker.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
36
2021-09-27T19:22:32.000Z
2022-03-29T12:49:06.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # 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. from functools import partial from typing import List, Optional, TypeVar from torch.utils.data.datapipes.utils...
39.031847
113
0.641319
95624fb5763eaeccd3f36238d33e21119e5853c0
4,787
py
Python
litex_boards/targets/mercury_xu5.py
stffrdhrn/litex-boards
6139bd7eba80a866e1e60a0b4bc9f34251fef919
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/mercury_xu5.py
stffrdhrn/litex-boards
6139bd7eba80a866e1e60a0b4bc9f34251fef919
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/mercury_xu5.py
stffrdhrn/litex-boards
6139bd7eba80a866e1e60a0b4bc9f34251fef919
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2020 Antmicro <www.antmicro.com> # SPDX-License-Identifier: BSD-2-Clause import os import argparse from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer from litex_boards.platforms import mercury_xu5 from litex....
40.567797
128
0.545644
631e48e6669faabeff01f7a8518f827acd04fdd4
346
py
Python
catalog/Marshall PY/run.py
derwear/bots.hub
894de2a6325dbb3b5541960c9031cc9ffb36a310
[ "Unlicense" ]
8
2021-08-31T14:27:38.000Z
2022-03-28T14:52:47.000Z
catalog/Marshall PY/run.py
derwear/bots.hub
894de2a6325dbb3b5541960c9031cc9ffb36a310
[ "Unlicense" ]
null
null
null
catalog/Marshall PY/run.py
derwear/bots.hub
894de2a6325dbb3b5541960c9031cc9ffb36a310
[ "Unlicense" ]
4
2021-08-31T15:50:45.000Z
2022-02-25T09:48:42.000Z
from kutana import Kutana, VKController, load_plugins, load_configuration # Create engine kutana = Kutana() # Create VKController kutana.add_controller( VKController(token = "Сюда напиши свой токен API") ) # Load and register plugins kutana.executor.register_plugins(*load_plugins("/root/bot/example/plugins")) ...
20.352941
76
0.774566
780f3dd4f8ab89857b45c8f75eeba724bd64c2bf
3,196
py
Python
eurlex2lexparency/transformation/formex/quote.py
Lexparency/eurlex2lexparency
b4958f6fea5c2207eb06d2c3b91be798720c94bd
[ "MIT" ]
null
null
null
eurlex2lexparency/transformation/formex/quote.py
Lexparency/eurlex2lexparency
b4958f6fea5c2207eb06d2c3b91be798720c94bd
[ "MIT" ]
null
null
null
eurlex2lexparency/transformation/formex/quote.py
Lexparency/eurlex2lexparency
b4958f6fea5c2207eb06d2c3b91be798720c94bd
[ "MIT" ]
null
null
null
from lxml import etree as et from enum import Enum import logging from eurlex2lexparency.utils import xtml from eurlex2lexparency.utils.xtml import unfold class _QuotationClass(Enum): inline = 'span' block = 'div' class QuoteTransformer: start_to_type = { 'QUOT.START': _QuotationClass.inline, ...
34.73913
82
0.560701
8808ec2c5c02f855d0bcfd9e44b9fc6a355fccbc
9,250
py
Python
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_event.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_event.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/sensu/sensu_go/tests/unit/plugins/modules/test_event.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function __metaclass__ = type import sys import pytest from ansible_collections.sensu.sensu_go.plugins.module_utils import ( errors, http, ) from ansible_collections.sensu.sensu_go.plugins.modules import event from .common.utils import ( AnsibleExitJso...
32.229965
92
0.488108
c7312057ca2fea1869032068f96198949bf0fef4
222
py
Python
python/strings/split_and_join.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
1
2021-01-28T14:23:24.000Z
2021-01-28T14:23:24.000Z
python/strings/split_and_join.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
null
null
null
python/strings/split_and_join.py
scouvreur/hackerrank
93a52ed6a744ce41fd215d8007435a682228fa01
[ "MIT" ]
null
null
null
def split_and_join(line): # write your code here line = line.split(" ") line = "-".join(line) return line if __name__ == "__main__": line = input() result = split_and_join(line) print(result)
18.5
33
0.608108
6e1a2636c6ccf38c496943600f0e06cc034d1d0c
21,859
py
Python
tests/unit/small_text/query_strategies/test_strategies.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
218
2021-05-26T16:38:53.000Z
2022-03-30T09:48:54.000Z
tests/unit/small_text/query_strategies/test_strategies.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
9
2021-10-16T23:23:02.000Z
2022-02-22T15:23:11.000Z
tests/unit/small_text/query_strategies/test_strategies.py
emamarela/small-text
0df5ad0d42511dd306ab367de7c6c01dab58f653
[ "MIT" ]
21
2021-06-24T11:19:44.000Z
2022-03-12T16:29:53.000Z
import unittest import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal from sklearn.preprocessing import normalize from unittest.mock import patch, Mock from small_text.classifiers import ConfidenceEnhancedLinearSVC, SklearnClassifier from small_text.query_strategies import EmptyP...
39.314748
105
0.645318
19a919d9b15fd1ed5e1f563f63719b01e5ccbbcf
472
py
Python
claf/data/dataset/__init__.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
10
2019-06-11T00:59:51.000Z
2021-11-06T09:58:30.000Z
claf/data/dataset/__init__.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
null
null
null
claf/data/dataset/__init__.py
clovaai/claf
97d5379b4c6014b527b894cac4e761ec8fec67a6
[ "MIT" ]
4
2019-08-16T20:44:31.000Z
2020-10-29T11:03:15.000Z
from claf.data.dataset.squad import SQuADDataset from claf.data.dataset.squad_bert import SQuADBertDataset from claf.data.dataset.wikisql import WikiSQLDataset from claf.data.dataset.seq_cls import SeqClsDataset from claf.data.dataset.seq_cls_bert import SeqClsBertDataset from claf.data.dataset.tok_cls_bert import Tok...
39.333333
69
0.822034
2e151baf281560468b7491dea734521d3773f29f
885
py
Python
proto_2/ddq/fol/node_types.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
proto_2/ddq/fol/node_types.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
6
2021-03-19T12:06:56.000Z
2022-03-12T00:23:09.000Z
proto_2/ddq/fol/node_types.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
from ddq.node import Node def is_variable(node: Node) -> bool: from .variable import VariableNode return isinstance(node, VariableNode) def is_function(node: Node) -> bool: from .function import FunctionNode return isinstance(node, FunctionNode) def is_term(node: Node) -> bool: return is_varia...
24.583333
52
0.749153
81935ecb4b673b3707790a6f864db71f53eb1a25
1,866
py
Python
vitrage/datasources/tmfapi639/config.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
89
2015-09-30T21:42:17.000Z
2022-03-28T16:31:19.000Z
vitrage/datasources/tmfapi639/config.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
4
2015-12-13T13:06:53.000Z
2016-01-03T19:51:28.000Z
vitrage/datasources/tmfapi639/config.py
openstack/vitrage
95b33dbf39b040e23915882a2879c87aec239ca9
[ "Apache-2.0" ]
43
2015-11-04T15:54:27.000Z
2021-12-10T14:24:03.000Z
# Copyright 2020 # # 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, software # ...
35.884615
79
0.67149
07e103d97a1fbdd551e2a0a28501b9d7da88ea3a
2,871
py
Python
env/lib/python3.6/site-packages/django_tables2/export/export.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
3
2020-08-03T18:28:24.000Z
2021-09-07T02:59:29.000Z
env/lib/python3.6/site-packages/django_tables2/export/export.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
env/lib/python3.6/site-packages/django_tables2/export/export.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
2
2021-01-06T19:25:07.000Z
2021-05-14T02:00:19.000Z
from __future__ import unicode_literals from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponse try: from tablib import Dataset except ImportError: # pragma: no cover raise ImproperlyConfigured( 'You must have tablib installed in order to use the django-tables2 ex...
29.90625
96
0.61024
e06f602be991f859a066c1b9a112bc4da8edb90d
1,146
py
Python
locallibrary/urls.py
sunilsm7/django_local_library
e490e325fac6a5604af240309fdc293c4b53cb05
[ "MIT" ]
null
null
null
locallibrary/urls.py
sunilsm7/django_local_library
e490e325fac6a5604af240309fdc293c4b53cb05
[ "MIT" ]
null
null
null
locallibrary/urls.py
sunilsm7/django_local_library
e490e325fac6a5604af240309fdc293c4b53cb05
[ "MIT" ]
null
null
null
"""locallibrary URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
40.928571
79
0.719895
745956408edc233f72440370d5fe793b3f33347b
6,810
py
Python
gpssm/models/components/variational/variational_distribution.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
3
2021-07-17T15:20:57.000Z
2022-03-19T10:21:32.000Z
gpssm/models/components/variational/variational_distribution.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
1
2021-04-22T02:09:35.000Z
2021-04-22T02:43:39.000Z
gpssm/models/components/variational/variational_distribution.py
sebascuri/GPSSMtorch
799db18bebd4cc70ed4c054cadfcf5c4693c95ae
[ "MIT" ]
1
2021-04-24T08:57:08.000Z
2021-04-24T08:57:08.000Z
"""Delta Variational Distribution.""" import numbers import torch from torch.distributions.kl import register_kl from gpytorch.distributions.distribution import Distribution from gpytorch.distributions.multivariate_normal import MultivariateNormal from gpytorch.lazy import CholLazyTensor from gpytorch.variational impor...
38.044693
85
0.694126
7183b5e1a4963c28a3e19a223ceee970bff788bd
3,094
py
Python
setup.py
ilovelili/counterblock
b1a05b29126b02fbbe269e14cb90bfdf7b96dd62
[ "MIT" ]
null
null
null
setup.py
ilovelili/counterblock
b1a05b29126b02fbbe269e14cb90bfdf7b96dd62
[ "MIT" ]
null
null
null
setup.py
ilovelili/counterblock
b1a05b29126b02fbbe269e14cb90bfdf7b96dd62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages, Command from setuptools.command.install import install as _install from setuptools.command.bdist_egg import bdist_egg as _bdist_egg import os import sys import logging from counterblock.lib import config class generate_configuration_files(Command): ...
29.466667
112
0.64512
310e49b9c276e270d66cc45d491b2cf13ecb6f34
1,832
py
Python
base.py
nsxy/cr_ctastrategy
6e139962410cdcf450e5c8bd2176fe07cd829e06
[ "MIT" ]
null
null
null
base.py
nsxy/cr_ctastrategy
6e139962410cdcf450e5c8bd2176fe07cd829e06
[ "MIT" ]
null
null
null
base.py
nsxy/cr_ctastrategy
6e139962410cdcf450e5c8bd2176fe07cd829e06
[ "MIT" ]
null
null
null
# coding:utf-8 from typing import Any from abc import ABC, abstractmethod from vnpy.trader.utility import virtual from vnpy_ctastrategy import ( CtaTemplate, BarData, TickData, TradeData, OrderData, ArrayManager, ) class BaseLogic(ABC): @abstractmethod def __call__(self, am: ArrayM...
21.552941
74
0.594432
1646c9726542793ecb3a94d73b05996e01e2b475
2,273
py
Python
img_aug_merged_bbox.py
yqtianust/ASL
b4a79e0ce7b37cfacac32a3fd0dda7fbb9696cdc
[ "MIT" ]
null
null
null
img_aug_merged_bbox.py
yqtianust/ASL
b4a79e0ce7b37cfacac32a3fd0dda7fbb9696cdc
[ "MIT" ]
null
null
null
img_aug_merged_bbox.py
yqtianust/ASL
b4a79e0ce7b37cfacac32a3fd0dda7fbb9696cdc
[ "MIT" ]
null
null
null
from pycocotools.coco import COCO # from PIL import Image from data_loader import CocoObject import numpy as np import os import cv2 from tqdm import tqdm if __name__ == '__main__': ann_dir = '/home/ytianas/EMSE_COCO/cocodataset/annotations' image_dir = '/home/ytianas/EMSE_COCO/cocodataset/' test_data = Co...
30.306667
107
0.604927
e093b019be12a533acc3688c4492a2a1988814e4
2,336
py
Python
var/spack/repos/builtin/packages/r-reportingtools/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/r-reportingtools/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/r-reportingtools/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RReportingtools(RPackage): """The ReportingTools software package enables users to easily ...
47.673469
73
0.67851
5df74fe9c5bf0dfd9c6fc244e9fd4a17a547bbe7
439
py
Python
Logging in Python/.idea/VirtualEnvironment/Scripts/pip-script.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
Logging in Python/.idea/VirtualEnvironment/Scripts/pip-script.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
Logging in Python/.idea/VirtualEnvironment/Scripts/pip-script.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
#!"D:\Python\pycharmWorkspace\Logging in Python\.idea\VirtualEnvironment\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.py...
33.769231
92
0.678815
10985edc6f9dc52366aed324ee48594f78664c01
45,225
py
Python
nipype/algorithms/confounds.py
eort/nipype
04d0159686a8d656905e9e06110287c6c60c1523
[ "Apache-2.0" ]
null
null
null
nipype/algorithms/confounds.py
eort/nipype
04d0159686a8d656905e9e06110287c6c60c1523
[ "Apache-2.0" ]
null
null
null
nipype/algorithms/confounds.py
eort/nipype
04d0159686a8d656905e9e06110287c6c60c1523
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Algorithms to compute confounds in :abbr:`fMRI (functional MRI)` Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname...
35.249415
105
0.607828
c35d330af3627474f1a71e1036f687e2294e3e2c
15,167
py
Python
sysmontask/sidepane.py
bastian-src/SysMonTask
95868e230efa130e820f91893a3c8d5664632ac4
[ "BSD-3-Clause" ]
null
null
null
sysmontask/sidepane.py
bastian-src/SysMonTask
95868e230efa130e820f91893a3c8d5664632ac4
[ "BSD-3-Clause" ]
null
null
null
sysmontask/sidepane.py
bastian-src/SysMonTask
95868e230efa130e820f91893a3c8d5664632ac4
[ "BSD-3-Clause" ]
null
null
null
# import gi # gi.require_version("Gtk", "3.24") from gi.repository import Gtk as g,cairo try: from gi_composites import GtkTemplate except: from sysmontask.gi_composites import GtkTemplate if __name__=='sysmontask.sidepane': from sysmontask.sysmontask import files_dir else: from sysmontask import fil...
40.230769
146
0.663612
a9d4a22e75b33cfc110a69a58cfcd0b4f6367c47
6,404
py
Python
kubernetes/client/models/v1_http_get_action.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_http_get_action.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_http_get_action.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
26.683333
133
0.56371
14dfebe98e697d7d83fc221ecd424e2ed91acdef
942
py
Python
openstack_dashboard/dashboards/admin/metering/panel.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
9
2016-06-03T03:53:24.000Z
2017-05-20T16:53:23.000Z
openstack_dashboard/dashboards/admin/metering/panel.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
1
2019-10-27T15:57:25.000Z
2019-10-27T15:57:25.000Z
openstack_dashboard/dashboards/admin/metering/panel.py
enovance/horizon
2ed6e93c9c4e534883126c93d3283e8c93bc674f
[ "Apache-2.0" ]
15
2017-01-12T10:40:00.000Z
2019-04-19T08:28:05.000Z
# 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, software # distributed under t...
37.68
75
0.713376
1e09151522217bdc7569ba4becc680427abea683
1,201
py
Python
Chapter_10/ch10_ex2.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
108
2019-07-05T21:18:30.000Z
2022-03-05T23:40:24.000Z
Chapter_10/ch10_ex2.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
1
2020-05-08T15:01:00.000Z
2020-07-21T21:15:09.000Z
Chapter_10/ch10_ex2.py
pauldevos/Mastering-Object-Oriented-Python-Second-Edition
71eab4406364365d902407d5e1774b1bf52e8430
[ "MIT" ]
85
2019-06-15T01:27:19.000Z
2022-03-20T22:14:10.000Z
#!/usr/bin/env python3.7 """ Mastering Object-Oriented Python 2e Code Examples for Mastering Object-Oriented Python 2nd Edition Chapter 10. Example 2. YAML. Base Definitions """ # Persistence Classes # ======================================== from typing import List, Optional, Dict, Any # Example 2: Cards # ######...
21.446429
106
0.605329
f559ba7a39cbae6ad07072d76c18476da11a4531
2,576
py
Python
app/api/v1/views/user_views.py
kelvinbunei/Politico
d7ad9355fe6375ba5d87da56eed100eb31cfd9a0
[ "MIT" ]
null
null
null
app/api/v1/views/user_views.py
kelvinbunei/Politico
d7ad9355fe6375ba5d87da56eed100eb31cfd9a0
[ "MIT" ]
null
null
null
app/api/v1/views/user_views.py
kelvinbunei/Politico
d7ad9355fe6375ba5d87da56eed100eb31cfd9a0
[ "MIT" ]
null
null
null
from flask import jsonify, request from ...v1 import version_1 as v1 from ..schemas.user_schema import UserSchema from ..models.user_model import User db = User() @v1.route('/', methods=['GET']) @v1.route('/welcome', methods=['GET']) def index(): return jsonify({'status': 200, 'message': 'Welcome to Politico. Kur...
29.953488
129
0.629658
f1cfad059ceb278b86f203459f8716e77b358de8
5,579
py
Python
datahandler/imdb_extractor.py
israel-santanna/semantic-clustering
cd778c882aff72924c7b2a82f041f53f0e04d356
[ "MIT" ]
6
2017-12-18T18:17:24.000Z
2021-03-02T13:42:17.000Z
datahandler/imdb_extractor.py
israel-santanna/semantic-clustering
cd778c882aff72924c7b2a82f041f53f0e04d356
[ "MIT" ]
null
null
null
datahandler/imdb_extractor.py
israel-santanna/semantic-clustering
cd778c882aff72924c7b2a82f041f53f0e04d356
[ "MIT" ]
4
2018-04-23T02:47:05.000Z
2020-11-04T14:59:18.000Z
import re import sys import string from time import sleep from imdb import IMDb as IMDBPy from imdbpie import Imdb as IMDBPie from imdb._exceptions import IMDbDataAccessError from io import open class ImdbExtractor(object): def __init__(self, data_path=None): super(ImdbExtractor, self).__init__() ...
36.464052
79
0.475712
f28ec71457c4ac1036c2b26dbc698ae833e2dda2
797
py
Python
scripts/geodata/i18n/download_cldr.py
Fillr/libpostal
bce153188aff9fbe65aef12c3c639d8069e707fc
[ "MIT" ]
3,489
2015-03-03T00:21:38.000Z
2022-03-29T09:03:05.000Z
scripts/geodata/i18n/download_cldr.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
488
2015-05-29T23:04:28.000Z
2022-03-29T11:20:24.000Z
scripts/geodata/i18n/download_cldr.py
StephenHildebrand/libpostal
d8c9847c5686a1b66056e65128e1774f060ff36f
[ "MIT" ]
419
2015-11-24T16:53:07.000Z
2022-03-27T06:51:28.000Z
import os import shutil import subprocess import sys import tempfile from unicode_paths import CLDR_DIR from geodata.file_utils import ensure_dir this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) CLDR_URL = 'http://www.unicode.org/Public/cldr...
25.709677
71
0.723965
9f614433f7bf1a5809b1d878c83894bd6160e505
689
py
Python
tests/test_device_types.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
tests/test_device_types.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
tests/test_device_types.py
hcallen/python-xmatters
122b029c1f592e58b39a3a84a17123c2de14951c
[ "MIT" ]
null
null
null
import xmatters.objects.device_types import xmatters.factories from .conftest import my_vcr class TestGet: @my_vcr.use_cassette('test_get_device_types.json') def test_get(self, xm_test): dts = xm_test.device_types_endpoint().get_device_types() assert isinstance(dts, xmatters.objects.device_ty...
31.318182
96
0.744557
bcea69ca52ff73c3e5720ef3c2b26568d5bb1b38
5,669
py
Python
toolium/test/pageelements/test_page_elements_groups.py
tanistra/toolium
d7f06c7ab9f264c42fe55eed4f9a3065512d910e
[ "Apache-2.0" ]
null
null
null
toolium/test/pageelements/test_page_elements_groups.py
tanistra/toolium
d7f06c7ab9f264c42fe55eed4f9a3065512d910e
[ "Apache-2.0" ]
null
null
null
toolium/test/pageelements/test_page_elements_groups.py
tanistra/toolium
d7f06c7ab9f264c42fe55eed4f9a3065512d910e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u""" Copyright 2016 Telefónica Investigación y Desarrollo, S.A.U. This file is part of Toolium. 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/lic...
38.04698
89
0.754454
bf9c70d87398801f7ecf74a8b8ebb69daa8d4452
1,346
py
Python
bitcoin_predict.py
hodl2020/Bitcoin_price_prediction
29214fb3cf94c53ba9626b72419c517d15f2d1a2
[ "MIT" ]
null
null
null
bitcoin_predict.py
hodl2020/Bitcoin_price_prediction
29214fb3cf94c53ba9626b72419c517d15f2d1a2
[ "MIT" ]
null
null
null
bitcoin_predict.py
hodl2020/Bitcoin_price_prediction
29214fb3cf94c53ba9626b72419c517d15f2d1a2
[ "MIT" ]
null
null
null
import quandl import pandas as pd import numpy as np import datetime from sklearn.linear_model import LinearRegression from sklearn import preprocessing, model_selection, svm # df = quandl.get("WIKI/FB") #uncomment for stocks today = datetime.datetime.now() earlier = today - datetime.timedelta(days=1460) ...
25.396226
71
0.703566
edff6985253a6506550955800a9816f6bb6e9af9
526
py
Python
Cloud API Server/PDF Forms Info Reader/Python/PDFFormInfoReader.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
24
2017-01-13T13:43:21.000Z
2021-12-23T07:57:19.000Z
Cloud API Server/PDF Forms Info Reader/Python/PDFFormInfoReader.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
1
2017-03-29T08:22:18.000Z
2017-05-13T12:27:02.000Z
Cloud API Server/PDF Forms Info Reader/Python/PDFFormInfoReader.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
35
2016-08-03T19:15:44.000Z
2022-03-27T16:38:58.000Z
import requests # Please NOTE: In this sample we're assuming Cloud Api Server is hosted at "https://localhost". # If it's not then please replace this with with your hosting url. url = "https://localhost/pdf/info/fields" payload = {'url': 'https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/...
27.684211
115
0.703422
f28ed233634b9f8533d98642367878338dc7899a
2,901
py
Python
marketing/migrations/0015_auto_20200912_0301.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-08-23T05:25:30.000Z
2021-08-23T05:25:30.000Z
marketing/migrations/0015_auto_20200912_0301.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
null
null
null
marketing/migrations/0015_auto_20200912_0301.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
1
2021-12-09T09:38:50.000Z
2021-12-09T09:38:50.000Z
# Generated by Django 3.1 on 2020-09-11 21:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("common", "0022_auto_20200609_1203"), ("marketing", "0014_emailtemplate_company"), ] operations = [ mi...
31.193548
74
0.512237
7be2cfbc3926d50148dc14348043abe269ca2f5c
204
py
Python
holobot/extensions/moderation/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/moderation/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/moderation/__init__.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from .config_provider import ConfigProvider from .iconfig_provider import IConfigProvider from .mute_cleanup_processor import MuteCleanupProcessor from .warn_cleanup_processor import WarnCleanupProcessor
40.8
56
0.901961
56b6c53404b9e689adbb0ac6cb492794f3acdd04
1,208
py
Python
utils/upload_sword.py
andreyfedoseev/LearningRegistry
5b803b882413318b142cf154fa4bccf8a9dbe046
[ "Apache-2.0" ]
26
2015-04-14T03:11:58.000Z
2022-01-06T14:31:07.000Z
utils/upload_sword.py
andreyfedoseev/LearningRegistry
5b803b882413318b142cf154fa4bccf8a9dbe046
[ "Apache-2.0" ]
11
2015-04-03T21:54:03.000Z
2017-05-02T17:20:03.000Z
utils/upload_sword.py
andreyfedoseev/LearningRegistry
5b803b882413318b142cf154fa4bccf8a9dbe046
[ "Apache-2.0" ]
16
2015-02-11T09:30:18.000Z
2020-11-20T02:06:24.000Z
#!/usr/bin/python import urllib2 import os import json import ConfigParser from random import choice _config = ConfigParser.ConfigParser() _config.read('testconfig.ini') root_path = _config.get("upload", "root_path") publish_url = _config.get("upload", "sword_url") publish_urls = ['http://node01.public.learningre...
31.789474
167
0.698675
9733c1639766aeff3654d164803eb9d64695c5fd
863
py
Python
nlutestframework/has_logger.py
emundo/nlutestframework
fcda0028b4d04557f951c0eacdaf8895d3af2e3d
[ "Apache-2.0" ]
null
null
null
nlutestframework/has_logger.py
emundo/nlutestframework
fcda0028b4d04557f951c0eacdaf8895d3af2e3d
[ "Apache-2.0" ]
null
null
null
nlutestframework/has_logger.py
emundo/nlutestframework
fcda0028b4d04557f951c0eacdaf8895d3af2e3d
[ "Apache-2.0" ]
null
null
null
import logging # Other imports only for the type hints from typing import Optional class HasLogger: """ Base class for classes that want to make use of the Python :mod:`logging`-library. """ def __init__(self, logger_title: Optional[str] = None): """ Instantiate a :class:`~logging.Log...
28.766667
100
0.641947
1616488e437019fedf0f6bbe9d8475e7d37b1336
3,192
py
Python
sympy/printing/python.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
sympy/printing/python.py
otoosakyidavid/sympy
636221ff35c78b980f828a285d0c552fac77aaba
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
sympy/printing/python.py
otoosakyidavid/sympy
636221ff35c78b980f828a285d0c552fac77aaba
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
from __future__ import print_function, division import keyword as kw import sympy from .repr import ReprPrinter from .str import StrPrinter # A list of classes that should be printed using StrPrinter STRPRINT = ("Add", "Infinity", "Integer", "Mul", "NegativeInfinity", "Pow", "Zero") class PythonPrinter(...
35.466667
80
0.625313
d7bd36cea224b53fa09f732860e2c3af241a9e29
1,819
py
Python
gopigo3/hardware_test.py
PascalS86/icts-python
7dde59d7b5284c190aeeaa89e217132b6fa65703
[ "MIT" ]
null
null
null
gopigo3/hardware_test.py
PascalS86/icts-python
7dde59d7b5284c190aeeaa89e217132b6fa65703
[ "MIT" ]
null
null
null
gopigo3/hardware_test.py
PascalS86/icts-python
7dde59d7b5284c190aeeaa89e217132b6fa65703
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This program is for testing GoPiGo3 Hardware. ''' ## License GoPiGo3 for the Raspberry Pi: an open source robotics platform for the Raspberry Pi. Copyright (C) 2017 Dexter Industries This program is free software: you can redistribute it and/or modify it under the terms of the GNU General...
28.421875
85
0.770203
975f5a4779ea044dccc997be6a0d88d6af178ed1
1,593
py
Python
test/integration/test_global_load_balancer_events_v1.py
chenshuguang/networking-python-sdk
3bbf30e2706052e75c0cc847d7ee8a584ba93f11
[ "Apache-2.0" ]
1
2020-12-22T03:51:33.000Z
2020-12-22T03:51:33.000Z
test/integration/test_global_load_balancer_events_v1.py
chenshuguang/networking-python-sdk
3bbf30e2706052e75c0cc847d7ee8a584ba93f11
[ "Apache-2.0" ]
null
null
null
test/integration/test_global_load_balancer_events_v1.py
chenshuguang/networking-python-sdk
3bbf30e2706052e75c0cc847d7ee8a584ba93f11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # (C) Copyright IBM Corp. 2020. """ Integration test code to execute global load balancer events functions """ import os import unittest from dotenv import load_dotenv, find_dotenv from ibm_cloud_networking_services.global_load_balancer_events_v1 import GlobalLoadBalancerEventsV1 configFile =...
31.86
99
0.684244
9bed00dc7228e0097bdfc1e32eed41083e19e27b
734
py
Python
exif/tests/test_xp_style.py
chbndrhnns/exif
65aa2d8bcdecf79d34752390310222a9bd5d5bb3
[ "MIT" ]
null
null
null
exif/tests/test_xp_style.py
chbndrhnns/exif
65aa2d8bcdecf79d34752390310222a9bd5d5bb3
[ "MIT" ]
null
null
null
exif/tests/test_xp_style.py
chbndrhnns/exif
65aa2d8bcdecf79d34752390310222a9bd5d5bb3
[ "MIT" ]
null
null
null
"""Test special behavior for accessing Windows XP style EXIF attribute.""" import os import pytest from exif import Image read_attributes = [ ("xp_author", "XP-Style Author"), ("xp_comment", "XP-Style Comment"), ("xp_keywords", "XP-Style Keywords"), ("xp_subject", "XP-Style Subject"), ("xp_title...
29.36
108
0.69346
a3069d5ccd1d2f67fd486e61d980ecd9c7c4c298
269,188
py
Python
docs/source/make_external_gallery.py
softwareunderground/subsurface
ad5a6d2d24e710ce7a78ec99b2075ddbb9dfeb7d
[ "Apache-2.0" ]
55
2019-05-09T12:26:28.000Z
2021-11-05T07:35:15.000Z
docs/source/make_external_gallery.py
RajdeepTarafder/subsurface
1308bc2a1d8e803db1680a1300682a91fec8d5fe
[ "Apache-2.0" ]
33
2019-05-09T16:28:19.000Z
2022-03-30T13:40:21.000Z
docs/source/make_external_gallery.py
RajdeepTarafder/subsurface
1308bc2a1d8e803db1680a1300682a91fec8d5fe
[ "Apache-2.0" ]
14
2019-05-09T12:26:33.000Z
2021-09-01T11:31:27.000Z
""" Modified after https://github.com/pyvista/pyvista/blob/ab70c26edbcfb107286c827bd4914562056219fb/docs/make_external_gallery.py A helper script to generate the external examples gallery. """ import os def format_icon(title, description, link, image): body = r""" .. raw:: html <div class="sphx-glr-thumbcon...
2,320.586207
266,247
0.956335
d651b7c32d8e5b34270a07fd8847c6ee3837026a
5,845
py
Python
vnpy_ctastrategy/strategies/multi_signal_strategy.py
noranhe/vnpy_ctastrategy
3ddc296bba8a88f09dc6a216c0fb4bd06ff2e232
[ "MIT" ]
28
2021-05-25T09:29:30.000Z
2022-03-12T02:28:45.000Z
vnpy_ctastrategy/strategies/multi_signal_strategy.py
noranhe/vnpy_ctastrategy
3ddc296bba8a88f09dc6a216c0fb4bd06ff2e232
[ "MIT" ]
4
2021-07-07T16:40:10.000Z
2022-03-09T08:30:49.000Z
vnpy_ctastrategy/strategies/multi_signal_strategy.py
noranhe/vnpy_ctastrategy
3ddc296bba8a88f09dc6a216c0fb4bd06ff2e232
[ "MIT" ]
34
2021-05-25T07:01:21.000Z
2022-03-14T09:03:23.000Z
from vnpy_ctastrategy import ( StopOrder, TickData, BarData, TradeData, OrderData, BarGenerator, ArrayManager, CtaSignal, TargetPosTemplate ) class RsiSignal(CtaSignal): """""" def __init__(self, rsi_window: int, rsi_level: float): """Constructor""" super()...
24.558824
71
0.572113
d02abf622a342922b4ee154c4b6e182c4d57cdae
15,117
py
Python
basic_samples/Dataviews/Python3/program.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
basic_samples/Dataviews/Python3/program.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
basic_samples/Dataviews/Python3/program.py
osi-awoodall/OSI-Samples-OCS
1995ccda20e4fe2ae66f3b67afbc1127d638a6fc
[ "Apache-2.0" ]
null
null
null
# version 0.0.3 from ocs_sample_library_preview import ( SdsTypeCode, SdsType, SdsTypeProperty, SdsStream, OCSClient, Dataview, DataviewQuery, DataviewGroupRule, DataviewMapping, DataviewIndexConfig) import configparser import datetime import time import traceback #############################################...
41.875346
458
0.599722
8d82fd83be269ba27d52991badc68e874691727c
16,742
py
Python
gcs_analysis_functions.py
xaviernogueira/gcs_gui
13001069067460a721927c263ea4c18568cff504
[ "CNRI-Python" ]
4
2021-08-28T00:00:12.000Z
2022-03-01T16:12:55.000Z
gcs_analysis_functions.py
xaviernogueira/gcs_gui
13001069067460a721927c263ea4c18568cff504
[ "CNRI-Python" ]
null
null
null
gcs_analysis_functions.py
xaviernogueira/gcs_gui
13001069067460a721927c263ea4c18568cff504
[ "CNRI-Python" ]
1
2021-09-01T20:31:13.000Z
2021-09-01T20:31:13.000Z
import arcpy from arcpy import da import file_functions from file_functions import * import create_station_lines import statistics import pandas as pd import os arcpy.env.overwriteOutput = True @err_info def clean_in_table(table, w_field='W', z_field='Z', dist_field='dist_down'): """Renames columns corresponding...
46.248619
177
0.647473
b70a73efd73cf62a7666a34cf737a0f427da5b70
531
py
Python
lino/hello.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
1
2019-11-13T19:38:50.000Z
2019-11-13T19:38:50.000Z
lino/hello.py
khchine5/lino
64f7ca9c9b83459b5b9f26174e5e3c26a137459d
[ "BSD-2-Clause" ]
null
null
null
lino/hello.py
khchine5/lino
64f7ca9c9b83459b5b9f26174e5e3c26a137459d
[ "BSD-2-Clause" ]
null
null
null
"""If you want to see which version of Lino you have, you can say "hello" to Lino: .. code-block:: bash $ python -m lino.hello This command just issues a text with the version number of Lino (and its dependencies) to the console:: Lino 1.6.15, Django 1.6.7, Python 2.7.4, Babel 1.3, Jinja 2.7.2, Sphinx 1.3a0...
29.5
191
0.698682
89e18330fa5a4c5401573537413cc62018ce2b14
1,180
py
Python
tests/test_related_version_view.py
geekflow/ahoy
4cbcceed2d20cc162fbf54527a2cdbe9681cba17
[ "MIT" ]
1
2018-03-02T06:01:28.000Z
2018-03-02T06:01:28.000Z
tests/test_related_version_view.py
geekflow/ahoy
4cbcceed2d20cc162fbf54527a2cdbe9681cba17
[ "MIT" ]
null
null
null
tests/test_related_version_view.py
geekflow/ahoy
4cbcceed2d20cc162fbf54527a2cdbe9681cba17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ related_version_view ~~~~~~~~~ . :copyright: (c) 2018 by geeksaga. :license: MIT LICENSE 2.0, see license for more details. """ import datetime import pytest from ahoy.model.related_version_view import RelatedVersionView from ahoy.model.version import Version from aho...
26.222222
119
0.713559
13d4f2272601a952a0889ac34b673ee5c45145bb
9,094
py
Python
qiskit/circuit/library/basis_change/qft.py
dhruvbhq/qiskit-terra
74a6d0d409d42a83f0be56e39274d07f56f1a6d1
[ "Apache-2.0" ]
1
2021-09-08T05:49:26.000Z
2021-09-08T05:49:26.000Z
qiskit/circuit/library/basis_change/qft.py
dhruvbhq/qiskit-terra
74a6d0d409d42a83f0be56e39274d07f56f1a6d1
[ "Apache-2.0" ]
null
null
null
qiskit/circuit/library/basis_change/qft.py
dhruvbhq/qiskit-terra
74a6d0d409d42a83f0be56e39274d07f56f1a6d1
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
32.594982
100
0.627557
87aefcf51e9a5bdd81c4024390ea0e49a68865ac
3,826
py
Python
.devablog/lib/python3.5/site-packages/guess_language/data/models/ru.py
jhenriquetdg/devablog
5a0e8246c0be01117aee0448bf900e5b01e1fb5d
[ "MIT" ]
3
2017-11-11T23:51:24.000Z
2020-10-23T11:27:42.000Z
.devablog/lib/python3.5/site-packages/guess_language/data/models/ru.py
jhenriquetdg/devablog
5a0e8246c0be01117aee0448bf900e5b01e1fb5d
[ "MIT" ]
6
2020-06-05T18:39:11.000Z
2022-01-13T00:49:22.000Z
.devablog/lib/python3.5/site-packages/guess_language/data/models/ru.py
jhenriquetdg/devablog
5a0e8246c0be01117aee0448bf900e5b01e1fb5d
[ "MIT" ]
2
2018-02-15T10:10:12.000Z
2018-06-22T19:14:06.000Z
# -*- coding: utf-8 -*- model = { ' на': 0, ' пр': 1, 'то ': 2, ' не': 3, 'ли ': 4, ' по': 5, 'но ': 6, ' в ': 7, 'на ': 8, 'ть ': 9, 'не ': 10, ' и ': 11, ' ко': 12, 'ом ': 13, 'про': 14, ' то': 15, 'их ': 16, ' ка': 17, 'ать': 18, 'ото': 19, ' за': 20, 'ие ': 21, 'ова': 22, 'тел': 23, 'тор': ...
12.585526
23
0.408782
5b8ad1b324eb38ba8cb40ca1368ddf57e5ca36a6
34,757
py
Python
python/ray/util/client/worker.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
null
null
null
python/ray/util/client/worker.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
null
null
null
python/ray/util/client/worker.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
null
null
null
"""This file includes the Worker class which sits on the client side. It implements the Ray API functions that are forwarded through grpc calls to the server. """ import base64 import json import logging import os import threading import time import uuid import warnings from collections import defaultdict from concurre...
40.794601
161
0.601893
0b9a0f1f11581e4e60d4fe313ff4954ca84b4674
5,374
py
Python
tests/test_decorators.py
MattyO/changeless
92ed977e96d4bd40b36a42a199bc210c320d7964
[ "MIT" ]
1
2015-02-23T05:35:58.000Z
2015-02-23T05:35:58.000Z
tests/test_decorators.py
MattyO/changeless
92ed977e96d4bd40b36a42a199bc210c320d7964
[ "MIT" ]
1
2021-06-10T23:18:02.000Z
2021-06-10T23:18:02.000Z
tests/test_decorators.py
MattyO/changeless
92ed977e96d4bd40b36a42a199bc210c320d7964
[ "MIT" ]
null
null
null
from changeless.decorators import fancy_list, immutable_list, fancy_gen, immutable_gen from changeless.types import ImmutableHash, ImmutableModel, FancyHash, FancyModel import unittest import os import types os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from test_helpers import load_fixtures from django.test.s...
32.969325
87
0.692222
8d7af73eebe7817f2c2285288404dec41fd6a8b4
2,411
py
Python
vip.py
Gejfish/MOnika
eecc54783187ccc224ba02d0c6d5624efa241146
[ "MIT" ]
null
null
null
vip.py
Gejfish/MOnika
eecc54783187ccc224ba02d0c6d5624efa241146
[ "MIT" ]
null
null
null
vip.py
Gejfish/MOnika
eecc54783187ccc224ba02d0c6d5624efa241146
[ "MIT" ]
null
null
null
from discord.ext import commands import discord import cogs import random import asyncio import requests from discord import File import os from datetime import datetime import traceback import tabula import json bot = commands.Bot(command_prefix='$') class VipCog(commands.Cog): def __init__(self,...
37.092308
116
0.582746
59fea5eb5cb73898076c95e04acb9cff01165288
154
py
Python
latex2minizinc/GenObj.py
rafaellc28/Latex2MiniZinc
5c255a712156b915469329a07d13f1e984cbd247
[ "MIT" ]
null
null
null
latex2minizinc/GenObj.py
rafaellc28/Latex2MiniZinc
5c255a712156b915469329a07d13f1e984cbd247
[ "MIT" ]
null
null
null
latex2minizinc/GenObj.py
rafaellc28/Latex2MiniZinc
5c255a712156b915469329a07d13f1e984cbd247
[ "MIT" ]
null
null
null
class GenObj(object): def __init__(self, name): self.name = name def getName(self): return self.name def setName(self, name): self.name = name
15.4
26
0.688312
7458ff611da79c1217efae99f96c798600e4c163
635
py
Python
lib/wwmgr/test_work_managers/test_threads.py
poharrison/westpa
8618ab598f9bb38a7bc1479932f5332b137dfcbc
[ "MIT" ]
140
2015-01-07T23:30:36.000Z
2022-03-28T17:15:30.000Z
lib/wwmgr/test_work_managers/test_threads.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
157
2015-01-03T03:38:36.000Z
2022-03-31T14:12:16.000Z
lib/wwmgr/test_work_managers/test_threads.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
56
2015-01-02T21:21:40.000Z
2022-03-03T16:27:54.000Z
from work_managers.threads import ThreadsWorkManager from .tsupport import * import nose.tools from nose.tools import raises class TestThreadsWorkManager(CommonWorkManagerTests,CommonParallelTests): def setUp(self): self.work_manager = ThreadsWorkManager() self.work_manager.startup() ...
26.458333
73
0.714961
d83f27e1f90ded6a6e175823d429968a872a8d66
2,110
py
Python
api/client/test/test_dataset_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
api/client/test/test_dataset_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
api/client/test/test_dataset_service_api.py
Zachary-Fernandes/mlx
d5117c5585b969ca0de5f321d14b5a27cd468280
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The MLX Contributors # # SPDX-License-Identifier: Apache-2.0 # coding: utf-8 """ MLX API MLX API Extension for Kubeflow Pipelines # noqa: E501 OpenAPI spec version: 0.1.29-filter-categories Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ i...
20.095238
91
0.638863
008a30969be5b227b1225f03be3f525c648e5712
5,123
py
Python
test/test_estg3b.py
Uberspace/libestg3b
3f544002c655aa70521069bdf1b1e141fb38bd87
[ "MIT" ]
5
2018-11-05T12:46:49.000Z
2020-01-06T03:11:10.000Z
test/test_estg3b.py
Uberspace/libestg3b
3f544002c655aa70521069bdf1b1e141fb38bd87
[ "MIT" ]
21
2018-09-18T10:27:14.000Z
2018-09-22T18:54:38.000Z
test/test_estg3b.py
Uberspace/libestg3b
3f544002c655aa70521069bdf1b1e141fb38bd87
[ "MIT" ]
null
null
null
import datetime as DT import itertools from decimal import Decimal import pytest from libestg3b import EStG3b, EStG3bBase, EStG3bs, Match from libestg3b.rule import Rule, RuleGroup def _rules(e, *slugs): found = set() slugs = set(slugs) for rule in itertools.chain.from_iterable(e._groups): if r...
33.051613
124
0.62034
30536a359589e6443102b04b01d531d8f97791ac
756
py
Python
loadLastTrailNumber.py
xlei45/tool_for_experiment_analysis
f1e5ece4caa7c9dd73f7e37001533b6be234501c
[ "Apache-2.0" ]
null
null
null
loadLastTrailNumber.py
xlei45/tool_for_experiment_analysis
f1e5ece4caa7c9dd73f7e37001533b6be234501c
[ "Apache-2.0" ]
null
null
null
loadLastTrailNumber.py
xlei45/tool_for_experiment_analysis
f1e5ece4caa7c9dd73f7e37001533b6be234501c
[ "Apache-2.0" ]
null
null
null
import os.path from os import path def lastTrailNumber(): trialNumber = None if(path.exists('resources/lastTrialNumber.txt')): with open('resources/lastTrialNumber.txt','r') as file: trialNumber = file.readline() if len(trialNumber) == 0: with open('res...
36
74
0.539683
3232dd778e378dfab9da3444a7f817d583a0136e
22,411
py
Python
gpytorch/settings.py
vr308/gpytorch
1b75edb6d3664222bb3760a968b6bbf97565e39c
[ "MIT" ]
null
null
null
gpytorch/settings.py
vr308/gpytorch
1b75edb6d3664222bb3760a968b6bbf97565e39c
[ "MIT" ]
1
2021-07-27T21:23:28.000Z
2021-07-31T20:04:58.000Z
gpytorch/settings.py
vr308/gpytorch
1b75edb6d3664222bb3760a968b6bbf97565e39c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import logging import warnings import torch class _feature_flag: r"""Base class for feature flag settings with global scope. The default is set via the `_default` class attribute. """ _default = False _state = None @classmethod def is_default(cls): return...
30.162853
120
0.70104
c0e4bb74ea779cedf8cd8fba0759874df89d3d42
727
py
Python
scrapy/signals.py
HyunTruth/scrapy
9bc5fab870aaee23905057002276fc0e1a48485f
[ "BSD-3-Clause" ]
32
2019-11-14T07:49:33.000Z
2022-02-16T00:49:22.000Z
scrapy/signals.py
HyunTruth/scrapy
9bc5fab870aaee23905057002276fc0e1a48485f
[ "BSD-3-Clause" ]
48
2018-11-08T01:31:33.000Z
2019-03-08T01:18:18.000Z
scrapy/signals.py
HyunTruth/scrapy
9bc5fab870aaee23905057002276fc0e1a48485f
[ "BSD-3-Clause" ]
16
2019-06-25T13:26:43.000Z
2022-03-07T07:29:12.000Z
""" Scrapy signals These signals are documented in docs/topics/signals.rst. Please don't add new signals here without documenting them there. """ engine_started = object() engine_stopped = object() spider_opened = object() spider_idle = object() spider_closed = object() spider_error = object() request_scheduled = obj...
23.451613
77
0.799175
8f5bc15b3fb9ddcf6017cf938c25ad64d6e00875
1,222
py
Python
03.Complete Python Developer - Zero to Mastery - AN/14.Web Scraping/web_scraper.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
03.Complete Python Developer - Zero to Mastery - AN/14.Web Scraping/web_scraper.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
03.Complete Python Developer - Zero to Mastery - AN/14.Web Scraping/web_scraper.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
from bs4 import BeautifulSoup import requests import pprint headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'} base_url = 'https://news.ycombinator.com/news' response = requests.get(base_url, headers=headers) soup = Beautiful...
32.157895
142
0.664484
bb90356c8c4e7a1105801880dae3300f54662da5
1,751
py
Python
welib/FEM/derivations/GuyanReduction.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
24
2019-07-24T23:37:10.000Z
2022-03-30T20:40:40.000Z
welib/FEM/derivations/GuyanReduction.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
null
null
null
welib/FEM/derivations/GuyanReduction.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
11
2019-03-14T13:47:04.000Z
2022-03-31T15:47:27.000Z
""" Show that Guayan-Reduction of a single element result in rigid body modes """ import numpy as np import sympy from sympy import Symbol from sympy import Matrix from sympy.abc import * from fem.frame3d import frame3d_KeMe display=lambda x: sympy.pprint(x, use_unicode=False,wrap_line=False) Kv = Symbol('Kv') Ix ...
34.333333
98
0.311822
4a03e5f60862953c87d4fa20a7e4b461da282c08
811
py
Python
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
20
2016-04-17T08:43:26.000Z
2021-05-31T04:01:27.000Z
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
237
2016-04-17T07:07:08.000Z
2017-01-26T09:15:52.000Z
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
5
2016-04-16T14:22:45.000Z
2019-11-27T04:41:55.000Z
from tornado import gen from microproxy.protocol import tls from microproxy.layer.base import ProxyLayer class ReplayLayer(ProxyLayer): def __init__(self, context, **kwargs): super(ReplayLayer, self).__init__(context, **kwargs) @gen.coroutine def process_and_return_context(self): dest_st...
30.037037
85
0.639951
303d1273430328b32a0740d8391893cdc0103759
8,442
py
Python
Fuzzy_clustering/version3/RBF_CNN_Manager/RBF_CNN_manager.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/version3/RBF_CNN_Manager/RBF_CNN_manager.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/version3/RBF_CNN_Manager/RBF_CNN_manager.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
import joblib from Fuzzy_clustering.version3.RBF_CNN_Manager.CNN_tf_core import CNN from Fuzzy_clustering.version3.RBF_CNN_Manager.RBF_CNN_model import RBF_CNN_model import pika, uuid, time, json, os import numpy as np from rabbitmq_rpc.server import RPCServer from Fuzzy_clustering.version3.RBF_CNN_Manager.Cluster_obje...
38.027027
140
0.588486
6184abd065d3cc2b699cce336a7e7c05132729eb
57,396
py
Python
charmhelpers/contrib/openstack/utils.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
charmhelpers/contrib/openstack/utils.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
charmhelpers/contrib/openstack/utils.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2015 Canonical Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.00237
79
0.624225
adbcb07e2fa96e49d908a160193da7150d50cc53
1,119
py
Python
tests/test_q0101.py
mirzadm/ctci-5th-py
ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66
[ "MIT" ]
null
null
null
tests/test_q0101.py
mirzadm/ctci-5th-py
ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66
[ "MIT" ]
1
2018-07-04T23:10:20.000Z
2018-07-04T23:10:20.000Z
tests/test_q0101.py
mirzadm/ctci-5th-py
ba2f4de0aba4c7c04d7e0ddf3120ce312d9e5d66
[ "MIT" ]
null
null
null
"""Unit tests for q0101.py.""" import unittest from src.q0101 import (is_all_unique_str as is_unique, is_all_unique_dict as is_unique_dict, is_all_unique_set as is_unique_set) class TestUniqueness(unittest.TestCase): """Tests for string, dictionary, and set implemen...
31.083333
64
0.647006
13ce1627d00700f94af2e5894bf5f27226b422c6
1,416
py
Python
test/test_list_incrementor.py
klreeher/python-sdk
b7fe922dcfc3bb73fe4149475fa45fdcb04d956a
[ "Apache-2.0" ]
null
null
null
test/test_list_incrementor.py
klreeher/python-sdk
b7fe922dcfc3bb73fe4149475fa45fdcb04d956a
[ "Apache-2.0" ]
null
null
null
test/test_list_incrementor.py
klreeher/python-sdk
b7fe922dcfc3bb73fe4149475fa45fdcb04d956a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OrderCloud No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0 Contact: ordercloud@four51.com Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Ve...
26.222222
105
0.722458
207696558a38c19e4c5afb0386931fa133df0a00
9,107
py
Python
python/neutrophils/neutrophil_hist.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
python/neutrophils/neutrophil_hist.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
python/neutrophils/neutrophil_hist.py
mjoppich/miRExplore
32760d88d65e7bc23b2bfb49415efcd0a7c7c5e1
[ "Apache-2.0" ]
null
null
null
import argparse import json import sys, os from lxml import etree from xml.dom import minidom from neutrophils.allowedSentences import AllowedSentences sys.path.insert(0, str(os.path.dirname(os.path.realpath(__file__))) + "/../") import requests from textmining.SentenceID import SentenceID parser = argparse.Argum...
34.496212
262
0.471615
0dafa4920559c01426de2eea447adecd097ee402
5,172
py
Python
tfx/components/evaluator/executor.py
alonsoir/tfx
359dcc95e6104e183b685a683d502744305e5eba
[ "Apache-2.0" ]
null
null
null
tfx/components/evaluator/executor.py
alonsoir/tfx
359dcc95e6104e183b685a683d502744305e5eba
[ "Apache-2.0" ]
null
null
null
tfx/components/evaluator/executor.py
alonsoir/tfx
359dcc95e6104e183b685a683d502744305e5eba
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.480916
150
0.732599
6186c106d3df608126c38d7185d3bc464d63b6c8
2,940
py
Python
insta/views.py
lilianwaweru/Instagram
7a4d4dae3f644646c0aebbd8e69ff32bb2a5323f
[ "MIT" ]
null
null
null
insta/views.py
lilianwaweru/Instagram
7a4d4dae3f644646c0aebbd8e69ff32bb2a5323f
[ "MIT" ]
3
2021-03-19T00:47:33.000Z
2021-09-08T00:59:44.000Z
insta/views.py
lilianwaweru/Instagram
7a4d4dae3f644646c0aebbd8e69ff32bb2a5323f
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from .models import Image,Profile,Comments from django.contrib.auth.decorators import login_required from .forms import getProfile,uploadPhoto,Comment # Create your views here. def welcome(request): images = Image.objects.all() prof=Profile.objects.filter(infor=requ...
29.69697
91
0.655442
6e5f8468643b6e3373ce550e6cbe61e8c15b543f
912
py
Python
prism/cmds/mod/kick.py
ii-Python/Prism-v3
15a43161b41117529c915726e6270259f05d187d
[ "MIT" ]
3
2021-11-26T22:08:11.000Z
2021-12-23T21:42:22.000Z
prism/cmds/mod/kick.py
wannurhadi/Prism-v3
514f8d17072bf208c42e68391bce471c7d608269
[ "MIT" ]
1
2021-07-07T22:37:10.000Z
2021-07-07T22:40:11.000Z
prism/cmds/mod/kick.py
wannurhadi/Prism-v3
514f8d17072bf208c42e68391bce471c7d608269
[ "MIT" ]
1
2021-12-23T21:42:24.000Z
2021-12-23T21:42:24.000Z
# Copyright 2021-xx iiPython # Modules import discord from discord.ext import commands from discord.commands import Option # Command class class Kick(commands.Cog): def __init__(self, bot) -> None: self.bot = bot self.core = bot.core @commands.slash_command(description = "Kicks a user from th...
32.571429
173
0.679825
ef210efa72a822c06ec7719525cf832c98c56a06
1,085
py
Python
examples/test_ps4000a.py
bk90/pico-python
e3b6d99b8ebec4f564f7ba835936492ae099975e
[ "BSD-2-Clause" ]
84
2015-01-28T23:40:50.000Z
2022-03-15T06:09:27.000Z
examples/test_ps4000a.py
bk90/pico-python
e3b6d99b8ebec4f564f7ba835936492ae099975e
[ "BSD-2-Clause" ]
123
2015-01-16T21:28:36.000Z
2022-01-31T11:08:39.000Z
examples/test_ps4000a.py
bk90/pico-python
e3b6d99b8ebec4f564f7ba835936492ae099975e
[ "BSD-2-Clause" ]
97
2015-02-18T14:43:14.000Z
2022-03-15T06:09:28.000Z
from picoscope import ps4000a import matplotlib.pyplot as plt import numpy as np import time ps = ps4000a.PS4000a() # rapid block mode ps.setChannel(channel="A", coupling="DC", VRange=1) ps.setChannel(channel="B", enabled=False) ps.setChannel(channel="C", enabled=False) ps.setChannel(channel="D", enabled=False) n_c...
23.586957
72
0.731797
09a1f2332ba2de84b3e05bb8b737985cec30d56a
4,227
py
Python
sagas/nlu/inspector_clauses.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
3
2020-01-11T13:55:38.000Z
2020-08-25T22:34:15.000Z
sagas/nlu/inspector_clauses.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
null
null
null
sagas/nlu/inspector_clauses.py
samlet/stack
47db17fd4fdab264032f224dca31a4bb1d19b754
[ "Apache-2.0" ]
1
2021-01-01T05:21:44.000Z
2021-01-01T05:21:44.000Z
from typing import Text, Any, Dict, List, Union, Set from sagas.nlu.inspector_common import Inspector, Context, cla_meta_intf from sagas.nlu.utils import check_chain from sagas.conf.conf import cf import abc def check_clause_sub(sents:Text, lang:Text, domain:Text, cla:Text, rel:Text, cats:Union[Text, Set, Li...
33.547619
87
0.592146
bd323fbd8b1d5cb9a649e24384b60e774e47e8cb
1,377
py
Python
magmap/tests/unit_testing.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
10
2020-04-14T12:49:38.000Z
2021-06-10T13:08:52.000Z
magmap/tests/unit_testing.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
55
2020-10-20T03:40:52.000Z
2022-03-08T11:13:45.000Z
magmap/tests/unit_testing.py
kaparna126/magellanmapper
6a50e82b3bcdbbb4706f749f366b055f0c6f13f2
[ "BSD-3-Clause" ]
2
2020-10-20T03:27:23.000Z
2020-12-07T21:16:59.000Z
# MagellanMapper unit testing # Author: David Young, 2018, 2020 """Unit testing for the MagellanMapper package. """ import unittest from magmap.cv import stack_detect from magmap.io import cli from magmap.io import importer from magmap.settings import config TEST_IMG = "test.czi" class TestImageStackProcessing(uni...
30.6
76
0.661583
428cb80e303868ec65019df61af645e84a6106f1
256
py
Python
respa_admin/views/base.py
MarkoKairinen/respa_testi
7d7578feab1dccf619acc0edc9ede4506c6b99b1
[ "MIT" ]
2
2019-05-06T09:29:51.000Z
2019-05-06T09:30:37.000Z
respa_admin/views/base.py
MarkoKairinen/respa_testi
7d7578feab1dccf619acc0edc9ede4506c6b99b1
[ "MIT" ]
11
2020-06-05T20:38:50.000Z
2022-03-11T23:47:24.000Z
respa_admin/views/base.py
MarkoKairinen/respa_testi
7d7578feab1dccf619acc0edc9ede4506c6b99b1
[ "MIT" ]
1
2019-05-08T05:21:02.000Z
2019-05-08T05:21:02.000Z
from django.conf import settings class ExtraContextMixin(): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context['INSTRUCTIONS_URL'] = settings.RESPA_ADMIN_INSTRUCTIONS_URL return context
28.444444
75
0.722656
206e6f486457080b642f499c21912a8b6b8df36e
1,794
py
Python
nuitka/codegen/IdCodes.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
5,421
2018-09-24T08:04:06.000Z
2022-03-31T20:02:37.000Z
nuitka/codegen/IdCodes.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
1,348
2018-09-22T13:41:00.000Z
2022-03-31T22:33:40.000Z
nuitka/codegen/IdCodes.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
396
2018-09-28T15:37:03.000Z
2022-03-29T10:52:09.000Z
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
35.88
78
0.712932
6581cc3239831b9de2c7a450d3469086d85bb937
4,674
py
Python
flopy/modpath/mp7bas.py
codacy-badger/flopy
de874b02661f59ef4e99f18272883a13a4d55f16
[ "CC0-1.0", "BSD-3-Clause" ]
1
2022-03-30T14:48:22.000Z
2022-03-30T14:48:22.000Z
flopy/modpath/mp7bas.py
codacy-badger/flopy
de874b02661f59ef4e99f18272883a13a4d55f16
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/modpath/mp7bas.py
codacy-badger/flopy
de874b02661f59ef4e99f18272883a13a4d55f16
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
""" mp7bas module. Contains the Modpath7Bas class. """ import numpy as np from ..pakbase import Package from ..utils import Util2d, Util3d class Modpath7Bas(Package): """ MODPATH 7 Basic Package Class. Parameters ---------- model : model object The model object (of type :class:`flopy.mo...
33.385714
77
0.529525
c689b0fcc5c3dabb23e661f372a06f81a33cd45a
2,910
py
Python
base2designs/plates/plateAnn.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
base2designs/plates/plateAnn.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
base2designs/plates/plateAnn.py
sethusaim/Automatic-Number-Plate-Recognition
8b26008f8511e52600b150157901079e0fd0ebfe
[ "MIT" ]
null
null
null
import os class PlateAnn: def scaleBB(self, box, W, H): # scale the bounding box from the range [0, 1] to [W, H] (startY, startX, endY, endX) = box startX = int(startX * W) startY = int(startY * H) endX = int(endX * W) endY = int(endY * H) return startX, sta...
33.837209
85
0.516151
5384414c13517af2749aa1e027486e8ab06661af
900
py
Python
sdks/python/examples/hello-world-from-raw-yaml.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
sdks/python/examples/hello-world-from-raw-yaml.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
3
2022-03-22T11:49:02.000Z
2022-03-24T14:13:59.000Z
sdks/python/examples/hello-world-from-raw-yaml.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
from pprint import pprint import requests import yaml import openapi_client from openapi_client.api import workflow_service_api from openapi_client.model.io_argoproj_workflow_v1alpha1_workflow_create_request import \ IoArgoprojWorkflowV1alpha1WorkflowCreateRequest configuration = openapi_client.Configuration(hos...
36
113
0.844444