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
2a5897fb997d087f4aff7f5d960a11a2d36bbc01
2,738
py
Python
src/matomo/__init__.py
Ebsan/matomo
c0290e08b1aa3c98cf24e9156d0b42741cfe4b3f
[ "MIT" ]
1
2021-07-05T18:09:27.000Z
2021-07-05T18:09:27.000Z
src/matomo/__init__.py
Ebsan/matomo
c0290e08b1aa3c98cf24e9156d0b42741cfe4b3f
[ "MIT" ]
2
2021-12-21T19:58:07.000Z
2022-01-30T10:32:05.000Z
src/matomo/__init__.py
Ebsan/matomo
c0290e08b1aa3c98cf24e9156d0b42741cfe4b3f
[ "MIT" ]
2
2021-12-22T20:01:07.000Z
2022-01-11T16:55:27.000Z
import json from urllib.parse import urlencode, parse_qs import requests from .tracker import MatomoTracker """ Request structure: request.server -- data about server request.cookie -- cookie data request server data: HTTPS HTTP_ACCEPT_LANGUAGE HTTP_HOST HTTP_REFERER HTTP_USER_AGENT ...
27.38
81
0.532871
2e5ac06210ca8c279f3572dcb21e5732c5962143
1,711
py
Python
config/urls.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
config/urls.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
3
2021-06-05T00:01:48.000Z
2021-09-22T19:39:12.000Z
config/urls.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from django.contrib.auth import views as auth_views urlpatterns = [ path('admin/', admin.site.urls), path('', include('users.urls', namespace='users')), path('m...
50.323529
114
0.729398
00b131165287e779da16c9b16da6dc3d2299dea3
2,721
py
Python
driver/js/imagetools.py
JohnieBraaf/lv_binding_micropython
f0407d8f446a45b9e1809dc94a4c4fb4587f2378
[ "MIT" ]
73
2020-05-18T15:40:32.000Z
2022-03-24T10:06:41.000Z
driver/js/imagetools.py
JohnieBraaf/lv_binding_micropython
f0407d8f446a45b9e1809dc94a4c4fb4587f2378
[ "MIT" ]
131
2020-05-18T21:31:55.000Z
2022-03-03T19:38:18.000Z
driver/js/imagetools.py
JohnieBraaf/lv_binding_micropython
f0407d8f446a45b9e1809dc94a4c4fb4587f2378
[ "MIT" ]
77
2020-05-18T21:21:20.000Z
2022-03-28T15:33:42.000Z
# # Important: # This is a JS specific version of imagetools.py # without native emitter since JS port doesnt support # "native" and "viper" decorators. # Other ports should use the imagetools.py from /lib # # # Library of functions for image manipulation. # Can be used with lodepng to decode PNG images: # # from i...
28.34375
121
0.671812
9fc587766b9d016adcf180847dd7fb655cbbe07e
6,321
py
Python
adroc_test/test.py
edermartins/-odin_xmlrpc
b001713d4d97dd8158408fd71024defeec49a80e
[ "Apache-2.0" ]
null
null
null
adroc_test/test.py
edermartins/-odin_xmlrpc
b001713d4d97dd8158408fd71024defeec49a80e
[ "Apache-2.0" ]
null
null
null
adroc_test/test.py
edermartins/-odin_xmlrpc
b001713d4d97dd8158408fd71024defeec49a80e
[ "Apache-2.0" ]
null
null
null
from config.test_config import * from odin.wrapper.proxy import BssCaller from odin.wrapper.proxy import OssCaller from odin.api.bss import Bss from odin.api.oss import Oss def getMethods(class_object): all_methods = {} counter = 0 class_list = dir(class_object) for method_name in class_list: ...
38.078313
102
0.530138
385e9dabdf692dd0f813a3a4b3ebc5345ff1ad7c
725
py
Python
dsvfile/Models/DysonSphere/SailBullet.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
2
2021-03-01T19:57:20.000Z
2021-08-02T20:54:48.000Z
dsvfile/Models/DysonSphere/SailBullet.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
null
null
null
dsvfile/Models/DysonSphere/SailBullet.py
phoenixx-666/dsvread
8a073c12343b2f0d34f9b728282dfefe10999f24
[ "MIT" ]
null
null
null
from ...Fields import FloatField, DoubleField from . import Model, Int32Field class SailBullet(Model): version = Int32Field() id = Int32Field() t = FloatField() maxt = FloatField() state = Int32Field() rBegin_x = FloatField() rBegin_y = FloatField() rBegin_z = FloatField() rEnd_x =...
25
45
0.651034
614916661664defcdefab5e9a14a7f4a973250e9
8,128
py
Python
sknetwork/hierarchy/metrics.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
1
2020-09-14T11:06:13.000Z
2020-09-14T11:06:13.000Z
sknetwork/hierarchy/metrics.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
2
2020-10-17T08:21:38.000Z
2020-10-21T09:13:30.000Z
sknetwork/hierarchy/metrics.py
altana-tech/scikit-network
dedc9d3e694c7106e4709aae22dffb5142c15859
[ "BSD-3-Clause" ]
1
2020-06-19T09:39:11.000Z
2020-06-19T09:39:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on March 2019 @author: Thomas Bonald <bonald@enst.fr> """ import numpy as np from scipy import sparse from sknetwork.hierarchy.paris import AggregateGraph from sknetwork.utils.check import check_format, check_probs, check_square from sknetwork.utils.check impo...
33.726141
115
0.629921
1a5556628bc9983b84f177a8bb3a5acf13e80ee9
1,332
py
Python
g-code-testing/tests/g_code_parsing/test_g_code_engine.py
y3rsh/opentrons
b446567910db218030fef40396ab2255cc074bba
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
g-code-testing/tests/g_code_parsing/test_g_code_engine.py
y3rsh/opentrons
b446567910db218030fef40396ab2255cc074bba
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
g-code-testing/tests/g_code_parsing/test_g_code_engine.py
y3rsh/opentrons
b446567910db218030fef40396ab2255cc074bba
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
import pytest import os from g_code_parsing.g_code_engine import GCodeEngine from g_code_parsing.g_code_program.supported_text_modes import ( SupportedTextModes, ) from opentrons.hardware_control.emulation.settings import ( Settings, SmoothieSettings, PipetteSettings, ) from g_code_parsing.utils import...
30.272727
84
0.768018
27791150f01963e34b9fef04bc0a368a5d8e8788
1,266
py
Python
python-dict-list/python-dict-list-to-dataframe.py
FahaoTang/spark-examples
7bb3addc76742f11d2474e8b3fb147e59166d53e
[ "Apache-2.0" ]
null
null
null
python-dict-list/python-dict-list-to-dataframe.py
FahaoTang/spark-examples
7bb3addc76742f11d2474e8b3fb147e59166d53e
[ "Apache-2.0" ]
null
null
null
python-dict-list/python-dict-list-to-dataframe.py
FahaoTang/spark-examples
7bb3addc76742f11d2474e8b3fb147e59166d53e
[ "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.sql.types import StructField, StructType, StringType,\ IntegerType, FloatType from decimal import Decimal appName = "Python Example - Python Dictionary List to Spark Data Frame" master = "local" # Create Spark session spark = SparkSession.builder \ .appName(ap...
26.375
71
0.634281
e209650d4b94affde5e9f184c608f319f96c555f
5,988
py
Python
faceutils/dlibutils/main.py
CGCL-codes/AMT-GAN
96228fda0896238b8650341e311d235a23b76aca
[ "MIT" ]
2
2022-03-22T01:32:46.000Z
2022-03-29T07:20:51.000Z
faceutils/dlibutils/main.py
CGCL-codes/AMT-GAN
96228fda0896238b8650341e311d235a23b76aca
[ "MIT" ]
null
null
null
faceutils/dlibutils/main.py
CGCL-codes/AMT-GAN
96228fda0896238b8650341e311d235a23b76aca
[ "MIT" ]
1
2022-03-22T02:34:01.000Z
2022-03-22T02:34:01.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- import os.path as osp import numpy as np from PIL import Image import dlib import cv2 detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor(osp.split(osp.realpath(__file__))[0] + '/lms.dat') def resize_by_max(image, max_side=512, force=False): h...
36.512195
83
0.569806
b69e93bdd111edafbacda86e4eacbfecb8c0769c
52,841
py
Python
tests/test_main.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
tests/test_main.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
tests/test_main.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
import platform import shutil from pathlib import Path from tempfile import TemporaryDirectory from unittest.mock import call import pytest from _pytest.capture import CaptureFixture from _pytest.tmpdir import TempdirFactory from freezegun import freeze_time from datamodel_code_generator import chdir from datamodel_c...
30.473472
97
0.523344
b1d2abf5a4ce057338cb7750644a3e386cfa4913
301
py
Python
data/multilingual/Latn.KNC/Mono_8/pdf_to_json_test_Latn.KNC_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.KNC/Mono_8/pdf_to_json_test_Latn.KNC_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.KNC/Mono_8/pdf_to_json_test_Latn.KNC_Mono_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.KNC/Mono_8/udhr_Latn.KNC_Mono_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.1
71
0.810631
c07e55f9e28749765c224539cb94f39f692fb733
5,103
py
Python
config/settings/production.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
config/settings/production.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
config/settings/production.py
Kiiwi/Syssel
83705e3fd0edf40f09df950d5ce91c95586573f5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ''' Production Configurations - Use djangosecure - Use Amazon's S3 for storing static files and uploaded media - Use mailgun to send emails - Use MEMCACHIER on Heroku ''' from __future__ import absolute_import, unicode_literals from boto.s3.connection import OrdinaryCallingFormat from django....
38.368421
117
0.651578
6ff26a861d930aeaf3fc7c0b9ec1ae69f143c820
1,072
py
Python
src/core/app/app/main.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
src/core/app/app/main.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
src/core/app/app/main.py
WeAreBeep/FrontlineUkraine
9ace8222af347f8ebbcaf444f375b2736f49cd9f
[ "MIT" ]
null
null
null
from fastapi import FastAPI from starlette.middleware.gzip import GZipMiddleware from starlette.middleware.cors import CORSMiddleware from app.api.api_v1.api import api_router from app.core.config import settings from app.cache import cache, CacheHeaderMiddleware from app.authgear import AuthgearMiddleware app = Fast...
26.8
82
0.74347
451856113c2991836ca7de038b1fbbbdf466826f
951
py
Python
spider/cnnvd/cnnvd/pipelines.py
mazcheng/snippets
dd106fde8c3e4078e4f21c2db7d4dacd17b81bb6
[ "Apache-2.0" ]
null
null
null
spider/cnnvd/cnnvd/pipelines.py
mazcheng/snippets
dd106fde8c3e4078e4f21c2db7d4dacd17b81bb6
[ "Apache-2.0" ]
null
null
null
spider/cnnvd/cnnvd/pipelines.py
mazcheng/snippets
dd106fde8c3e4078e4f21c2db7d4dacd17b81bb6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import codecs import json from settings import CnnvdVulnFile, CnnvdPatchFile from items import CnnvdVulnItem, CnnvdPatchItem ...
25.702703
68
0.747634
565e28198f32d5886a84d825b6c85b78d4e22037
2,412
py
Python
utils/logger.py
RabbitWhite1/USTC-Health-Report
4aee1a71ff764c2c49aafb60909b020b2ede4a6d
[ "MIT" ]
3
2020-08-29T02:51:33.000Z
2022-03-24T07:59:13.000Z
utils/logger.py
RabbitWhite1/USTC-Health-Report
4aee1a71ff764c2c49aafb60909b020b2ede4a6d
[ "MIT" ]
2
2020-09-07T12:24:16.000Z
2021-03-12T09:08:11.000Z
utils/logger.py
RabbitWhite1/USTC-Health-Report
4aee1a71ff764c2c49aafb60909b020b2ede4a6d
[ "MIT" ]
2
2020-10-26T06:15:48.000Z
2021-08-19T05:39:34.000Z
import logging import os import platform import os.path as osp import yaml class Logger: loggers = {} level = None fmt = None filename = None @staticmethod def get_logger(log_type='reporter'): if log_type not in Logger.loggers: with open(osp.join(osp.dirname(__file__), '.....
33.971831
117
0.53068
64b9087fb52262c85f157b0e5ab5d2d3c666398e
349
py
Python
deep-learning-from-scratch/ch02/xor_gate.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
1
2021-03-23T16:18:00.000Z
2021-03-23T16:18:00.000Z
deep-learning-from-scratch/ch02/xor_gate.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
deep-learning-from-scratch/ch02/xor_gate.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
# coding: utf-8 # coding: utf-8 from and_gate import AND from or_gate import OR from nand_gate import NAND def XOR(x1, x2): s1 = NAND(x1, x2) s2 = OR(x1, x2) y = AND(s1, s2) return y if __name__ == '__main__': for xs in [(0, 0), (1, 0), (0, 1), (1, 1)]: y = XOR(xs[0], xs[1]) print...
18.368421
47
0.524355
8ee0952729c3eecb1e0554b19b3305aba32913cf
993
py
Python
scraper/storage_spiders/dientugiadungnet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/dientugiadungnet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/dientugiadungnet.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='_p_header']/h3[@class='p-label']", 'price' : "//div[@class='_p_info']/p[@class='price']/span | //div[@class='_p_info']/p...
36.777778
116
0.633434
e270dc128f428dfb3307692860070ae938eea63c
13,257
py
Python
venv/lib/python3.8/site-packages/dateparser/data/numeral_translation_data/ar.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/numeral_translation_data/ar.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/numeral_translation_data/ar.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "%%ordinal-ones-feminine": { "1": "الحادية ;", "(2, 10)": "=%spellout-ordinal-feminine=;", "11": "الحادية عشرة;", "(12, 'inf')": "=%spellout-ordinal-feminine=;" }, "%%ordinal-ones-masculine": { "1": "الحادي ;", "(2, 10)": "=%sp...
49.651685
123
0.511277
ee5becb829dcfa4bde65dfe3dc440ee3b8119493
264
py
Python
evenOddAdder.py
Mist-Pompano/CalculatorCollection
31413d4dba86e4e5a4cb006b54e45b6078955a4e
[ "MIT" ]
null
null
null
evenOddAdder.py
Mist-Pompano/CalculatorCollection
31413d4dba86e4e5a4cb006b54e45b6078955a4e
[ "MIT" ]
null
null
null
evenOddAdder.py
Mist-Pompano/CalculatorCollection
31413d4dba86e4e5a4cb006b54e45b6078955a4e
[ "MIT" ]
null
null
null
x = int(input("What would you like your starting number to be?")) y = int(input("What would you like your ending number to be?")) for even in range(x, y, 2): for odd in range(x, y, 1): val = even + odd print(even, "+", odd, "=", val)
29.333333
65
0.568182
3e59da6138277c3981e974b382d64447bb6cb54a
13,001
py
Python
custom_components/frigate/__init__.py
clavery/frigate-hass-integration
f5d571612c20e5a1af4142f0c20db428d62a60a6
[ "MIT" ]
221
2020-11-11T13:01:40.000Z
2022-03-30T07:29:13.000Z
custom_components/frigate/__init__.py
clavery/frigate-hass-integration
f5d571612c20e5a1af4142f0c20db428d62a60a6
[ "MIT" ]
217
2020-12-07T16:43:17.000Z
2022-03-31T14:02:20.000Z
custom_components/frigate/__init__.py
clavery/frigate-hass-integration
f5d571612c20e5a1af4142f0c20db428d62a60a6
[ "MIT" ]
44
2020-12-09T20:21:03.000Z
2022-03-30T23:08:40.000Z
""" Custom integration to integrate frigate with Home Assistant. For more details about this integration, please refer to https://github.com/blakeblackshear/frigate-hass-integration """ from __future__ import annotations from datetime import timedelta import logging import re from typing import Any, Callable, Final ...
35.619178
111
0.655873
e8478f9ec24e8991ee70e7981ef936a8490cce37
29,424
py
Python
nets/yolo_training.py
Catherine-Tranquil/mobilenet-yolov4-lite-pytorch
6e742f4f3b4cb57c0ef6dbeee74bc1eb71892904
[ "MIT" ]
null
null
null
nets/yolo_training.py
Catherine-Tranquil/mobilenet-yolov4-lite-pytorch
6e742f4f3b4cb57c0ef6dbeee74bc1eb71892904
[ "MIT" ]
null
null
null
nets/yolo_training.py
Catherine-Tranquil/mobilenet-yolov4-lite-pytorch
6e742f4f3b4cb57c0ef6dbeee74bc1eb71892904
[ "MIT" ]
null
null
null
import cv2 from random import shuffle import numpy as np import torch import torch.nn as nn import math import torch.nn.functional as F from matplotlib.colors import rgb_to_hsv, hsv_to_rgb from PIL import Image from utils.utils import bbox_iou, merge_bboxes def jaccard(_box_a, _box_b): b1_x1, b1_x2 = _box_a[:, 0...
42.829694
176
0.433524
c7112621717a951347d8ec406165adeeccc95a5b
6,138
py
Python
tests/models/validators/v2_2_2_3/jsd_c75e364632e15384a18063458e2ba0e3.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_2_3/jsd_c75e364632e15384a18063458e2ba0e3.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_2_3/jsd_c75e364632e15384a18063458e2ba0e3.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center Devices data model. Copyright (c) 2019-2021 Cisco Systems. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limit...
30.088235
83
0.399316
7fb1e4d64274ea08909af1dffd861b4821600f58
749
py
Python
sololink/flightcode/python/rc_lock.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
sololink/flightcode/python/rc_lock.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
sololink/flightcode/python/rc_lock.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
#!/usr/bin/env python import errno import os # must match RcLock.cpp ro_lockfile = "/mnt/rootfs.ro/etc/.rc_lock" tmp_lockfile = "/tmp/.rc_lock" tmp_unlockfile = "/tmp/.rc_unlock" def locked(): if os.path.isfile(tmp_unlockfile): return False elif os.path.isfile(tmp_lockfile) or \ os.path.is...
19.205128
45
0.632844
68a4707365ff976e065fd522c30b7b83af27340b
367
py
Python
07_05_drawing.py
simonmonk/prog_pi_ed3
d1d0f645dcba77f2bb9f6859fd0e15b9647b147d
[ "MIT" ]
9
2021-07-26T03:36:52.000Z
2022-03-20T08:29:59.000Z
07_05_drawing.py
simonmonk/prog_pi_ed3
d1d0f645dcba77f2bb9f6859fd0e15b9647b147d
[ "MIT" ]
null
null
null
07_05_drawing.py
simonmonk/prog_pi_ed3
d1d0f645dcba77f2bb9f6859fd0e15b9647b147d
[ "MIT" ]
1
2021-08-08T17:01:09.000Z
2021-08-08T17:01:09.000Z
#07_05_drawing.py from guizero import * app = App(width=400, height=200) drawing = Drawing(app, width="fill", height="fill") drawing.rectangle(20, 20, 300, 100, color="blue") drawing.oval(30, 50, 290, 190, color='#ff2277') drawing.line(0, 0, 400, 200, color='black', width=5) drawing.text(20, 100, "Hello World", color...
30.583333
74
0.692098
2b769ade5af914756d92b8e24e4b2ed3d2d2c6ff
180
py
Python
categories/urls.py
melvinchia3636/notesdb
fb4ec1742713501be13cac0965242da1421228bd
[ "MIT" ]
null
null
null
categories/urls.py
melvinchia3636/notesdb
fb4ec1742713501be13cac0965242da1421228bd
[ "MIT" ]
null
null
null
categories/urls.py
melvinchia3636/notesdb
fb4ec1742713501be13cac0965242da1421228bd
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.HomeView, name="categories"), path('<str:type>/<uuid:id>', views.CategoryView, name="category") ]
25.714286
66
0.705556
cc138f89cca5f695c3aecee566d35bbfb69f8965
1,039
py
Python
p2ner/components/stream/streamclient/streamclient/messages/serverstopped.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
2
2015-06-01T22:04:34.000Z
2017-07-06T09:35:00.000Z
p2ner/components/stream/streamclient/streamclient/messages/serverstopped.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
null
null
null
p2ner/components/stream/streamclient/streamclient/messages/serverstopped.py
schristakidis/p2ner
46694a41e8c1ebdc28f520b58c126da8785f3eed
[ "Apache-2.0" ]
1
2019-11-26T10:22:35.000Z
2019-11-26T10:22:35.000Z
# -*- coding: utf-8 -*- # Copyright 2012 Loris Corazza, Sakis Christakidis # # 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 # # U...
32.46875
76
0.715111
75ac69a5c8250f1bdbd5e0685659ea9c3fd1dc66
266
py
Python
python/json/test.py
yangaofeng/x_socket
0522508ec15fa38da678a9801241af024658a653
[ "Apache-2.0" ]
null
null
null
python/json/test.py
yangaofeng/x_socket
0522508ec15fa38da678a9801241af024658a653
[ "Apache-2.0" ]
null
null
null
python/json/test.py
yangaofeng/x_socket
0522508ec15fa38da678a9801241af024658a653
[ "Apache-2.0" ]
null
null
null
import json def parse_node(cfg): print cfg['name'] print cfg['config']['enable'] print cfg['config']['ip'] print cfg['config']['port'] if __name__ == "__main__": f = file("node.json") cfg = json.load(f) f.close() parse_node(cfg)
15.647059
33
0.578947
0fae2b4cfdf406d9807e09f7f2909343af0faa7e
643
py
Python
examples/lib_and_noinst_test_programs/examples/python/python_example.py
tjgiese/atizer
b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3
[ "MIT" ]
null
null
null
examples/lib_and_noinst_test_programs/examples/python/python_example.py
tjgiese/atizer
b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3
[ "MIT" ]
null
null
null
examples/lib_and_noinst_test_programs/examples/python/python_example.py
tjgiese/atizer
b8cdb8f4bac7cedfb566d766acee5fe0cc7a7bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Timothy John Giese # from pytdbsc import * def read_xyz(filename): crd = [] fh = file(filename,"r") liter = iter(fh) n = int( liter.next() ) title = liter.next() for i in range(n): line = liter.next() cols = line.strip().split() ...
22.172414
71
0.569207
2b0d7f1662b7cf3f23bf4dd431b2b2e06d0d68c2
324
py
Python
Statistics/variance.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
2
2020-02-23T07:08:08.000Z
2020-06-15T15:11:36.000Z
Statistics/variance.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
1
2020-01-08T13:30:33.000Z
2020-01-08T13:30:33.000Z
Statistics/variance.py
AnuragAnalog/Machine-learning
4ec2657524cb54d715b0bddeb7d8ea3b7644a302
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import mean def variance(array: list) -> float: """ Calculates the Variance of a given array, which gives the speread of the distribution. """ arr_mean = mean.mean(array) var = 0 for element in array: var = var + (element - arr_mean)**2 return var/len(arra...
18
94
0.617284
dc5a03be6522c326b1d30e160b54072b78d4d852
992
py
Python
test/test_tsv.py
macbre/database-flow-graph
74ceeff51083c3f9d8bd00bdbf56615708942e42
[ "MIT" ]
20
2017-07-04T05:32:19.000Z
2021-10-20T22:40:33.000Z
test/test_tsv.py
macbre/data-flow-graph
74ceeff51083c3f9d8bd00bdbf56615708942e42
[ "MIT" ]
15
2017-06-09T20:12:36.000Z
2019-01-18T18:40:21.000Z
test/test_tsv.py
macbre/database-flow-graph
74ceeff51083c3f9d8bd00bdbf56615708942e42
[ "MIT" ]
5
2018-10-19T06:48:48.000Z
2021-08-19T08:12:29.000Z
from data_flow_graph import format_tsv_line, format_tsv_lines def test_format(): assert format_tsv_line('foo', 'select', 'bar') == 'foo\tselect\tbar' assert format_tsv_line('foo', 'select', 'bar', value=0) == 'foo\tselect\tbar\t0.0000' assert format_tsv_line('foo', 'select', 'bar', value=0.1) == 'foo\tsel...
33.066667
100
0.559476
415800cf3df1bdb8d94473dd4caf13d1b56d1562
6,654
py
Python
grr/gui/plugins/crash_view_test.py
StanislavParovoy/GRR
7cdf490f9be2ccc0a8160c9b8ae23b73922049d5
[ "Apache-2.0" ]
5
2017-03-17T08:25:09.000Z
2022-02-22T05:28:14.000Z
grr/gui/plugins/crash_view_test.py
StanislavParovoy/GRR
7cdf490f9be2ccc0a8160c9b8ae23b73922049d5
[ "Apache-2.0" ]
null
null
null
grr/gui/plugins/crash_view_test.py
StanislavParovoy/GRR
7cdf490f9be2ccc0a8160c9b8ae23b73922049d5
[ "Apache-2.0" ]
3
2018-12-07T07:04:37.000Z
2022-02-22T05:28:16.000Z
#!/usr/bin/env python """Test the flow_management interface.""" from grr.gui import gui_test_lib from grr.gui import runtests_test from grr.lib import aff4 from grr.lib import flags from grr.lib import hunts from grr.lib import test_lib from grr.lib.rdfvalues import client as rdf_client from grr.server import forema...
34.298969
78
0.681996
20c28403a2cdb977b7efb8197cb618fa3d038dd4
648
py
Python
instagram/urls.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
null
null
null
instagram/urls.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
9
2020-06-05T20:37:40.000Z
2021-09-22T18:28:23.000Z
instagram/urls.py
ALKEMIA-CHARLES/Instaclone
fc7dbcccb48dbc313da15b12a17a5ade19675efa
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from .views import DbListView, DbDetailView, DbCreateView,DbUpdateView, DbDeleteView from . import views urlpatterns = [ url(r'^$', DbListView.as_view(), name='index'), url(r'^post/(?P<pk>\d+)/$', DbDetailView.as_view(), name='post-detail'), url(r'^post/new/$', DbCreateView...
49.846154
84
0.654321
fbeac6c480d933a673fb5202619300a60f458845
11,553
py
Python
src/feedvalidator/__init__.py
activitystreams/feedvalidator
10442306887bd3e70b7f2e48c22ec382670318ad
[ "MIT" ]
2
2015-11-19T03:07:19.000Z
2017-10-09T02:03:15.000Z
src/feedvalidator/__init__.py
activitystreams/feedvalidator
10442306887bd3e70b7f2e48c22ec382670318ad
[ "MIT" ]
null
null
null
src/feedvalidator/__init__.py
activitystreams/feedvalidator
10442306887bd3e70b7f2e48c22ec382670318ad
[ "MIT" ]
null
null
null
"""$Id$""" __author__ = "Sam Ruby <http://intertwingly.net/> and Mark Pilgrim <http://diveintomark.org/>" __version__ = "$Revision$" __copyright__ = "Copyright (c) 2002 Sam Ruby and Mark Pilgrim" import socket if hasattr(socket, 'setdefaulttimeout'): socket.setdefaulttimeout(10) Timeout = socket.timeout else: i...
35.009091
119
0.670562
3c9ed07f3b1960c43f4b6bdefb55389f57a9efd5
11,615
py
Python
tests/config/test_config.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
2,047
2022-01-10T15:22:12.000Z
2022-03-31T13:38:56.000Z
tests/config/test_config.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
170
2022-01-10T12:44:31.000Z
2022-03-31T17:01:24.000Z
tests/config/test_config.py
daniel-falk/kedro
19187199339ddc4a757aaaa328f319ec4c1e452a
[ "Apache-2.0" ]
112
2022-01-10T19:15:24.000Z
2022-03-30T11:20:52.000Z
import configparser import json import re from pathlib import Path from typing import Dict import pytest import yaml from yaml.parser import ParserError from kedro.config import BadConfigException, ConfigLoader, MissingConfigException _DEFAULT_RUN_ENV = "local" _BASE_ENV = "base" def _write_yaml(filepath: Path, co...
38.58804
99
0.629789
5f1da45c9c7ace2d4bae1ef7d9dc5e7138792fa3
2,248
py
Python
app/core/models.py
aquitania99/recipe-app-api
fe75b14befc95478ccc9937e1299bcf367192d38
[ "MIT" ]
null
null
null
app/core/models.py
aquitania99/recipe-app-api
fe75b14befc95478ccc9937e1299bcf367192d38
[ "MIT" ]
null
null
null
app/core/models.py
aquitania99/recipe-app-api
fe75b14befc95478ccc9937e1299bcf367192d38
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, \ BaseUserManager, PermissionsMixin from django.conf import settings class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and Saves a New User""" if not...
28.820513
76
0.681495
ef00b80900905ab9d00fdb3842348bb75e24a5f8
2,127
py
Python
create_vm.py
smurashov/test-infra
2a6baeb71f6bbd5231e1f6dc7b8c4c3c6c6c6069
[ "Apache-2.0" ]
null
null
null
create_vm.py
smurashov/test-infra
2a6baeb71f6bbd5231e1f6dc7b8c4c3c6c6c6069
[ "Apache-2.0" ]
null
null
null
create_vm.py
smurashov/test-infra
2a6baeb71f6bbd5231e1f6dc7b8c4c3c6c6c6069
[ "Apache-2.0" ]
null
null
null
import argparse import time import novaclient.v1_1.client as nvclient parser = argparse.ArgumentParser(description="Script for vm create") parser.add_argument("-openstack_user", dest='openstack_user', type=str, help="Openstack username", default='admin') parser.add_argument("-openstack_passw...
32.723077
79
0.653503
26b4aada1454c9ec35a5cabf6682c1a1a1caeb14
403
py
Python
test/torchaudio_unittest/transforms/kaldi_compatibility_cuda_test.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
1,718
2017-05-05T01:15:00.000Z
2022-03-31T10:33:51.000Z
test/torchaudio_unittest/transforms/kaldi_compatibility_cuda_test.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
1,590
2017-05-07T18:38:39.000Z
2022-03-31T22:22:10.000Z
test/torchaudio_unittest/transforms/kaldi_compatibility_cuda_test.py
popcornell/audio
7b6b2d000023e2aa3365b769866c5f375e0d5fda
[ "BSD-2-Clause" ]
464
2017-05-05T04:42:43.000Z
2022-03-29T20:32:00.000Z
import torch from torchaudio_unittest import common_utils from .kaldi_compatibility_impl import Kaldi @common_utils.skipIfNoCuda class TestKaldiFloat32(Kaldi, common_utils.PytorchTestCase): dtype = torch.float32 device = torch.device("cuda") @common_utils.skipIfNoCuda class TestKaldiFloat64(Kaldi, common_u...
23.705882
60
0.796526
a97451eb43336b7251b3f861a4d432a491a67445
20,780
py
Python
statsmodels/tsa/tests/test_stattools.py
dieterv77/statsmodels
ec3b6d02c96cd9c8f4b993434f0bbae4b3e91a21
[ "BSD-3-Clause" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/tests/test_stattools.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
venv/lib/python3.6/site-packages/statsmodels/tsa/tests/test_stattools.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
from statsmodels.compat.numpy import recarray_select from statsmodels.compat.python import lrange from statsmodels.tools.sm_exceptions import ColinearityWarning from statsmodels.tsa.stattools import (adfuller, acf, pacf_ols, pacf_yw, pacf, grangercausalitytests, ...
36.265271
87
0.620549
8ee0e3af06cd9a78e3bbea544a95eaafb71524f9
3,056
py
Python
test/test_common_errors.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
null
null
null
test/test_common_errors.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
14
2021-02-09T10:40:43.000Z
2022-02-18T12:24:39.000Z
test/test_common_errors.py
AndreasArne/python-examination
a24297f3f73b181e64e744d0b8b52d88d03e844b
[ "MIT" ]
null
null
null
""" Use this to test our new and added functionality. """ import sys import os import unittest import traceback from io import StringIO from unittest import mock from unittest.mock import patch from examiner import common_errors, exceptions as exce, ExamTestCase, tags # proj_path = os.path.dirname(os.path.realpath(__f...
39.179487
113
0.650851
0cae89e0668166395b2ac5cb34fda627941779e1
1,265
py
Python
lib/server_ports.py
couchbaselabs/testrunner-dbaas
8f90f324c5e804fb1c8f46f5618b672611d856b6
[ "Apache-2.0" ]
1
2020-08-31T18:51:45.000Z
2020-08-31T18:51:45.000Z
lib/server_ports.py
couchbaselabs/testrunner-dbaas
8f90f324c5e804fb1c8f46f5618b672611d856b6
[ "Apache-2.0" ]
null
null
null
lib/server_ports.py
couchbaselabs/testrunner-dbaas
8f90f324c5e804fb1c8f46f5618b672611d856b6
[ "Apache-2.0" ]
2
2020-07-24T07:12:01.000Z
2022-03-17T23:43:28.000Z
rest_port=8091 ssl_rest_port=18091 capi_port=8092 ssl_capi_port=18092 query_port=8093 ssl_query_port=18093 fts_http_port=8094 fts_ssl_port=18094 cbas_http_port=8095 cbas_ssl_port=18095 eventing_http_port=8096 eventing_ssl_port=18096 indexer_admin_port=9100 indexer_scan_port=9101 indexer_http_port=9102 indexer_stinit_po...
28.75
88
0.849802
a264dde273ce1960dd32c16211dae0ebbf23885c
10,283
py
Python
packages/python/plotly/plotly/graph_objs/layout/_colorscale.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/_colorscale.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/_colorscale.py
eranws/plotly.py
5b0e8d3ccab55fe1a6e4ba123cfc9d718a9ffc5a
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Colorscale(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout" _path_str = "layout.colorscale" _valid_props = {"diverging", "sequential", "s...
42.316872
87
0.536711
f7219557f313231bf047af09d8d81a13981c3f2b
368
py
Python
durgo_sdk/integrations/django/middleware.py
safwanrahman/durgo-python
79b740e0500e1ba2bce7edcb47996587a9449964
[ "BSD-3-Clause" ]
1
2020-08-12T21:56:45.000Z
2020-08-12T21:56:45.000Z
durgo_sdk/integrations/django/middleware.py
Alig1493/durgo-python
79b740e0500e1ba2bce7edcb47996587a9449964
[ "BSD-3-Clause" ]
null
null
null
durgo_sdk/integrations/django/middleware.py
Alig1493/durgo-python
79b740e0500e1ba2bce7edcb47996587a9449964
[ "BSD-3-Clause" ]
1
2020-03-21T18:30:28.000Z
2020-03-21T18:30:28.000Z
from django.utils import timezone class DurgoMiddleware: def __init__(self, get_response): self.get_response = get_response # One-time configuration and initialization. def __call__(self, request): start_time = timezone.now() response = self.get_response(request) end...
21.647059
52
0.673913
535765bf7761035ec5fe4334ba427e9072e6d0b9
3,935
py
Python
merge_diff_parser.py
RiflerRick/Github_Merge_Conflict_Intimator
85c72958a45d836cbc464f5bb1dcdbe285413a1c
[ "Apache-2.0" ]
null
null
null
merge_diff_parser.py
RiflerRick/Github_Merge_Conflict_Intimator
85c72958a45d836cbc464f5bb1dcdbe285413a1c
[ "Apache-2.0" ]
1
2021-06-01T22:05:34.000Z
2021-06-01T22:05:34.000Z
merge_diff_parser.py
RiflerRick/Github_Merge_Conflict_Intimator
85c72958a45d836cbc464f5bb1dcdbe285413a1c
[ "Apache-2.0" ]
null
null
null
""" This file would be used to parser merge diff files of github Identification of a hunk: Every hunk starts in the following way: @@@ ... @@@ So the first thing we need to recognise is this. """ class Parser: def __init__(self, diff): """ initialize Parser :param diff: diff """ ...
23.284024
62
0.509022
78a1239ad2b880c0628947d125dc25e3acfccc1b
1,075
py
Python
src/test_main.py
dkfrankandersen/ITU-BSc-Thesis
d86dab2050966a65e8b81cd57dfcc0508e280543
[ "MIT" ]
null
null
null
src/test_main.py
dkfrankandersen/ITU-BSc-Thesis
d86dab2050966a65e8b81cd57dfcc0508e280543
[ "MIT" ]
null
null
null
src/test_main.py
dkfrankandersen/ITU-BSc-Thesis
d86dab2050966a65e8b81cd57dfcc0508e280543
[ "MIT" ]
null
null
null
from sys import argv from testing import assertion from testing import test_latrunculi from testing import test_cnnct_four from testing import test_othello from testing import test_minimax from testing import test_mcts from testing import test_misc from testing import test_network GREEN = "\033[1;32;40m" YELLOW = "\03...
30.714286
85
0.634419
071eed798fbb40e799f8f2cc413c0bfd70c19c39
12,697
py
Python
examples/information_extraction/DuEE/sequence_labeling.py
Steffy-zxf/PaddleNLP
0c9681e88e6e2115ed894876a69c5140ddbbfa29
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuEE/sequence_labeling.py
Steffy-zxf/PaddleNLP
0c9681e88e6e2115ed894876a69c5140ddbbfa29
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuEE/sequence_labeling.py
Steffy-zxf/PaddleNLP
0c9681e88e6e2115ed894876a69c5140ddbbfa29
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Baidu.com, 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 l...
43.632302
139
0.676853
52a91eaa803616213ba802f9c535234f784a0ac7
2,415
py
Python
TootList/Toot/migrations/0002_auto__add_field_toot_account.py
gkoehler/TootList
5156355ac941231cb7ee60ed949cd296676d6b99
[ "MIT" ]
1
2016-04-13T14:47:40.000Z
2016-04-13T14:47:40.000Z
TootList/Toot/migrations/0002_auto__add_field_toot_account.py
gkoehler/TootList
5156355ac941231cb7ee60ed949cd296676d6b99
[ "MIT" ]
null
null
null
TootList/Toot/migrations/0002_auto__add_field_toot_account.py
gkoehler/TootList
5156355ac941231cb7ee60ed949cd296676d6b99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Toot.account' db.add_column(u'Toot_toot', 'account', ...
49.285714
152
0.587578
5d5b33a9fa02f4421812f75068795a778803fb69
6,365
py
Python
dj/lib/tsraw.py
yoe/veyepar
440f7c0c907510a887c20f1dbddbc590d6065971
[ "MIT" ]
2
2016-07-05T21:56:34.000Z
2021-03-20T14:18:15.000Z
dj/lib/tsraw.py
yoe/veyepar
440f7c0c907510a887c20f1dbddbc590d6065971
[ "MIT" ]
null
null
null
dj/lib/tsraw.py
yoe/veyepar
440f7c0c907510a887c20f1dbddbc590d6065971
[ "MIT" ]
null
null
null
#!/usr/bin/python """ tsraw.py - timestamp raw files gets start/end times of raw files Gets start from one of: metadata via gst.discover() the file name (assumes yy_mm_dd/hh_mm_ss.dv format) the file system time stamp, the first frame of the dv duration (in seconds) based on file size / BBF*FPS gst.discover() last...
26.301653
127
0.602514
651a3c5178f9f45354e1b92c7fe5a59a854b3a64
26,891
py
Python
cumulusci/core/flowrunner.py
mrcmac/CumulusCI
f71d06dc7950148c8c6c8fa4d19b1a221d55be2b
[ "BSD-3-Clause" ]
null
null
null
cumulusci/core/flowrunner.py
mrcmac/CumulusCI
f71d06dc7950148c8c6c8fa4d19b1a221d55be2b
[ "BSD-3-Clause" ]
null
null
null
cumulusci/core/flowrunner.py
mrcmac/CumulusCI
f71d06dc7950148c8c6c8fa4d19b1a221d55be2b
[ "BSD-3-Clause" ]
null
null
null
""" FlowRunner contains the logic for actually running a flow. Flows are an integral part of CCI, they actually *do the thing*. We've been getting along quite nicely with BaseFlow, which turns a flow definition into a callable object that runs the flow in one fell swoop. We named it BaseFlow thinking that, like tasks,...
36.887517
116
0.600796
b96809c24e47eb9f2c39f9363eec407cc9d9441e
2,455
py
Python
pmg/sharpspring.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
null
null
null
pmg/sharpspring.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
null
null
null
pmg/sharpspring.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
null
null
null
import requests from logging import getLogger import uuid from pmg import app log = getLogger(__name__) class Sharpspring(object): url = 'http://api.sharpspring.com/pubapi/v1/' def __init__(self): self.api_key = app.config['SHARPSPRING_API_KEY'] self.api_secret = app.config['SHARPSPRING_AP...
35.57971
263
0.567006
d7b82760149c44d6d2642b6995d0d2807ca743da
4,637
py
Python
custom-swagger/python/swagger_client/models/zone_range.py
Zepp333333/Cyclist-Performance
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
null
null
null
custom-swagger/python/swagger_client/models/zone_range.py
Zepp333333/Cyclist-Performance
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
1
2021-09-09T14:04:55.000Z
2021-09-10T17:58:37.000Z
custom-swagger/python/swagger_client/models/zone_range.py
Zepp333333/HARDIO
9a36e8fd9c9478f98dbe929e5a31e4e87fdc1932
[ "MIT" ]
null
null
null
# coding: utf-8 """ Strava API v3 The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe...
30.11039
726
0.579038
bf9be2039b27f78f794c5d86894b933b83a438b0
32,350
py
Python
python/ccxt/async_support/bithumb.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
1
2021-05-17T10:26:46.000Z
2021-05-17T10:26:46.000Z
python/ccxt/async_support/bithumb.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
null
null
null
python/ccxt/async_support/bithumb.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
39.403167
292
0.476692
72104070f7483a037f8c3cf6a2a0f4156b19c0a8
3,279
py
Python
tests/testMSSQLDriver.py
sutoh/Hecatoncheir
736c3c989c54ce46e9bcbb601fb53f5c6a8f40a1
[ "Apache-2.0" ]
13
2017-05-09T08:48:54.000Z
2018-09-21T07:57:08.000Z
tests/testMSSQLDriver.py
sutoh/Hecatoncheir
736c3c989c54ce46e9bcbb601fb53f5c6a8f40a1
[ "Apache-2.0" ]
11
2017-05-11T03:46:49.000Z
2017-12-24T00:28:58.000Z
tests/testMSSQLDriver.py
sutoh/Hecatoncheir
736c3c989c54ce46e9bcbb601fb53f5c6a8f40a1
[ "Apache-2.0" ]
3
2018-03-16T15:30:26.000Z
2022-03-25T16:55:55.000Z
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import sys import unittest sys.path.append('..') from hecatoncheir.exception import DriverError, InternalError, QueryError, QueryTimeout from hecatoncheir.mssql import MSSQLDriver class TestMSSQLDriver(unittest.TestCase): dbuser = "dqwbuser" dbpass = "dqwbuser...
35.641304
108
0.63434
b50c0e57654c23254c6c1ca54cd4d1fc5d7e476f
1,826
py
Python
ckanext/example_flask_streaming/tests/test_streaming_responses.py
doc22940/ckan
fb0174b77a5ac1c614717643d9b1b2a0c82ee088
[ "Apache-2.0" ]
2,805
2015-01-02T18:13:15.000Z
2022-03-31T03:35:01.000Z
ckanext/example_flask_streaming/tests/test_streaming_responses.py
doc22940/ckan
fb0174b77a5ac1c614717643d9b1b2a0c82ee088
[ "Apache-2.0" ]
3,801
2015-01-02T11:05:36.000Z
2022-03-31T19:24:37.000Z
ckanext/example_flask_streaming/tests/test_streaming_responses.py
cascaoSDC/ckan
75a08caa7c688ce70229dfea7070cc667a15c5e8
[ "BSD-3-Clause" ]
1,689
2015-01-02T19:46:43.000Z
2022-03-28T14:59:43.000Z
# encoding: utf-8 import os.path as path import pytest import six class TestFlaskStreaming(object): @pytest.mark.ckan_config(u"ckan.plugins", u"example_flask_streaming") def test_accordance_of_chunks(self, app): u"""Test streaming of items collection.""" url = str(u"/stream/string") # prod...
38.041667
99
0.642935
26d96104876e98488bd90940ce03ce2b0b0a64d0
25,752
py
Python
tests/unit/document_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
tests/unit/document_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
tests/unit/document_tests.py
ssshah5/clone-python-cloudant
1939f6ffe1b36fd87e94e984fe300e4e109d2171
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015 IBM. 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 ...
35.422283
92
0.561937
61f37c0e72064ec36f7277b98944d5c3590ecc2c
32,666
py
Python
xhtml2pdf/util.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
null
null
null
xhtml2pdf/util.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
1
2020-10-07T15:40:17.000Z
2020-10-07T15:40:17.000Z
xhtml2pdf/util.py
fbernhart/xhtml2pdf
0e7462c75e640799eddd944631b23c41822e8086
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import base64 from copy import copy import logging import mimetypes import os.path import re import shutil import sys import tempfile import xhtml2pdf.default import reportlab from bidi.algorithm import get_display from reportlab.lib.colors import Color, toColor from reportlab.lib.enums import T...
33.230926
102
0.568022
aba49eb4f62836a74541cd53d36e6b7bc9d5af7a
11,186
py
Python
python/glad/glad_test_support.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
1
2019-02-21T02:28:34.000Z
2019-02-21T02:28:34.000Z
python/glad/glad_test_support.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
python/glad/glad_test_support.py
kinect59/ad_examples
bf0bb75faa3f713a2efef04b6b093e6a313825af
[ "MIT" ]
null
null
null
from common.gen_samples import * from .afss import partition_instances, get_afss_batches from .glad_support import * from loda.loda import build_proj_hist, ProjectionVectorsHistograms, get_neg_ll_all_hist, \ LodaModel, LodaResult def plot_dataset(x, y, cls_cols, pl, selected=None, projections=None, plot_labels=Tr...
43.695313
150
0.6231
99d68648021e99983778a5f1bf1f8db513c645a7
375
py
Python
Timbuchalka/Section-4/aa.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
Timbuchalka/Section-4/aa.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
2
2021-12-10T10:25:19.000Z
2021-12-10T10:27:15.000Z
Timbuchalka/Section-4/aa.py
Advik-B/Learn-Python
66ac57259764e8f2c3c6513a8de6c106800d8abe
[ "MIT" ]
null
null
null
x = 23 x += 1 print(x) # 24 x -= 4 print(x) # 20 x *= 5 print(x) # 100 x //= 4 print(x) # 25 x /= 5 print(x) # 5.0 - note conversion from int to float x **= 2 print(x) # 25.0 - x still represents a float x %= 5 print(x) # 0.0 - 25 is exactly divisible by 5 greeting = "Good " greeting += "m...
12.096774
53
0.56
7f2e7bc8a3e3ceb1b1f435c12cf3917befa63edf
742
py
Python
aiida/common/lang.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/common/lang.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
aiida/common/lang.py
astamminger/aiida_core
b01ad8236f21804f273c9d2a0365ecee62255cbb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
41.222222
75
0.429919
fc4d314dc8660a78b30586d2907e52d26b5cdd78
2,607
py
Python
accounts_test.py
Emmanuel-9/Password-Locker
189642b0b056a37c4c05633a3d185b68584e733e
[ "Unlicense" ]
null
null
null
accounts_test.py
Emmanuel-9/Password-Locker
189642b0b056a37c4c05633a3d185b68584e733e
[ "Unlicense" ]
null
null
null
accounts_test.py
Emmanuel-9/Password-Locker
189642b0b056a37c4c05633a3d185b68584e733e
[ "Unlicense" ]
null
null
null
import unittest from accounts import Accounts class TestAccounts(unittest.TestCase): ''' Class for the test cases of class Accounts ''' def setUp(self): ''' Method that runs before the test cases ''' self.new_account = Accounts("Facebook","Cliff","pass1234") def te...
32.5875
84
0.64672
c86a140ffa34830dc24bbcba978ece36eaa19f31
468
py
Python
Lecture5-Expressions/constants.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
1
2020-04-13T18:38:26.000Z
2020-04-13T18:38:26.000Z
Lecture5-Expressions/constants.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
null
null
null
Lecture5-Expressions/constants.py
mori-c/cs106a
b7764d9dec1d3abb6968ded265a0c4c4d96920c5
[ "MIT" ]
null
null
null
""" File: constants.py ------------------ An example program with constants. Converts feet to total number of inches. """ # Number of inches in a foot INCHES_IN_FOOT = 12 def main(): feet = float(input("Enter number of feet: ")) inches = feet * INCHES_IN_FOOT print("That is " + str(inches) +...
24.631579
61
0.623932
83d5cf3664a947b61d5732d0512c638ff93822d6
734
py
Python
src/foreman/commands/UnregisterCommand.py
lazyguru/foreman
0436097b3bbfbf7d960bb403ae79040aa771fd7c
[ "MIT" ]
3
2019-10-01T06:24:58.000Z
2020-10-15T15:26:37.000Z
src/foreman/commands/UnregisterCommand.py
lazyguru/foreman
0436097b3bbfbf7d960bb403ae79040aa771fd7c
[ "MIT" ]
9
2020-04-12T05:03:08.000Z
2020-11-29T04:54:25.000Z
src/foreman/commands/UnregisterCommand.py
lazyguru/foreman
0436097b3bbfbf7d960bb403ae79040aa771fd7c
[ "MIT" ]
1
2020-04-12T07:33:17.000Z
2020-04-12T07:33:17.000Z
import os from cleo import Command as CLICommand from ..services.Configuration import Configuration class UnregisterCommand(CLICommand): """ Unregisters the current directory from serving Python applications unregister {directory? : The directory you want to unregister} """ def handle(...
25.310345
85
0.668937
41589f61f6182024859853686756945c0b7b9463
796
py
Python
setup.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
1
2016-08-09T21:28:26.000Z
2016-08-09T21:28:26.000Z
setup.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
null
null
null
setup.py
ruchir594/messenger-bot-yelp-aws
757d9e3e599432954a1acbf477b2f40e5c2d247c
[ "MIT" ]
null
null
null
from setuptools import find_packages from setuptools import setup setup( name='yelp', version='1.0.1', description='Python Clientlib for Yelp Public API', url='https://github.com/Yelp/yelp-python', author='Yelp', author_email='partnerships@yelp.com', classifiers=[ 'License :: O...
21.513514
69
0.595477
bb875f85867636fb074f38f5ff9535b65fe61155
3,337
py
Python
src/pluto-ros-package/plutoserver/scripts/key_handling.py
EveVengerov/Gesture-Controlling-Drone
8fe38dbfdc496472e13e76bcdb55b471f51b42ea
[ "MIT" ]
2
2021-09-22T19:06:19.000Z
2021-09-22T20:22:40.000Z
src/pluto-ros-package/plutoserver/scripts/key_handling.py
EveVengerov/Gesture-Controlling-Drone
8fe38dbfdc496472e13e76bcdb55b471f51b42ea
[ "MIT" ]
null
null
null
src/pluto-ros-package/plutoserver/scripts/key_handling.py
EveVengerov/Gesture-Controlling-Drone
8fe38dbfdc496472e13e76bcdb55b471f51b42ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python from plutodrone.srv import * from plutodrone.msg import * from std_msgs.msg import Int16 import rospy class send_data(): """docstring for request_data""" def __init__(self): rospy.init_node('drone_server') self.command_pub = rospy.Publisher('/drone_command', PlutoMsg, queue_size=1) self....
24.007194
78
0.706623
560b881b41272f34c5de1c2ab5e4e06ab0e30486
589
py
Python
apps/students/models.py
jin-hao-chen/filegoback
830e77f92776c78bc758bdd8b74b254569050f58
[ "MIT" ]
null
null
null
apps/students/models.py
jin-hao-chen/filegoback
830e77f92776c78bc758bdd8b74b254569050f58
[ "MIT" ]
null
null
null
apps/students/models.py
jin-hao-chen/filegoback
830e77f92776c78bc758bdd8b74b254569050f58
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from apps import db class Student(db.Model): __tablename__ = 'student' id = db.Column(db.Integer, primary_key=True, autoincrement=True) sid = db.Column(db.String(10), nullable=False, unique=True) name = db.Column(db.String(32), nullable=False) is_admin = db.Column(db.Boole...
25.608696
68
0.631579
45accb7935f74216549ca4f7d17637aab2dc77c3
4,497
py
Python
generated-libraries/python/netapp/dummy/autogenzapi2_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/dummy/autogenzapi2_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/dummy/autogenzapi2_info.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class Autogenzapi2Info(NetAppObject): """ auto generated When returned as part of the output, all elements of this typedef are reported, unless limited by a set of desired attributes specified by the caller. <p> When used as input to specify des...
27.931677
89
0.551924
be9f0d01437ca3071ff9e16746db4f1616230eaf
5,439
py
Python
campaign_tree_editor/campaign_tree.py
project-a/mara-campaign-tree-editor
85854b6d2308ee2a2c462c28ea06d110f8cc0e17
[ "MIT" ]
null
null
null
campaign_tree_editor/campaign_tree.py
project-a/mara-campaign-tree-editor
85854b6d2308ee2a2c462c28ea06d110f8cc0e17
[ "MIT" ]
null
null
null
campaign_tree_editor/campaign_tree.py
project-a/mara-campaign-tree-editor
85854b6d2308ee2a2c462c28ea06d110f8cc0e17
[ "MIT" ]
null
null
null
import mara_db.postgresql import psycopg2.extensions import sqlalchemy from sqlalchemy.ext.declarative import declarative_base import io, os from campaign_tree_editor import config Base = declarative_base() class CampaignTree(Base): """A mapping of campaign codes to (edited) levels""" __tablename__ = 'campai...
33.782609
113
0.686523
37d50611dc6dd75d4388f6fe9b52a4eacc00b02d
1,849
py
Python
tests/core/pyspec/eth2spec/test/altair/unittests/networking/test_networking.py
jeyakatsa/consensus-specs
30fe7ba1107d976100eb0c3252ca7637b791e43a
[ "CC0-1.0" ]
5
2021-04-08T23:17:19.000Z
2021-11-02T18:24:37.000Z
tests/core/pyspec/eth2spec/test/altair/unittests/networking/test_networking.py
sthagen/eth2.0-specs
27b0d1f32e4ce430dd13b447c273a0f64b637066
[ "CC0-1.0" ]
127
2021-04-09T21:15:08.000Z
2021-10-19T03:58:26.000Z
tests/core/pyspec/eth2spec/test/altair/unittests/networking/test_networking.py
sthagen/eth2.0-specs
27b0d1f32e4ce430dd13b447c273a0f64b637066
[ "CC0-1.0" ]
1
2022-03-06T06:08:17.000Z
2022-03-06T06:08:17.000Z
from eth2spec.test.context import ( with_altair_and_later, spec_state_test, ) from eth2spec.test.helpers.state import ( transition_to, ) @with_altair_and_later @spec_state_test def test_get_sync_subcommittee_pubkeys_current_sync_committee(state, spec): # Transition to the head of the next period t...
38.520833
96
0.789075
3b14b3b27ba4bc214f5a6230e3d97e2643ce7670
789
py
Python
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-msi/azure/mgmt/msi/operations/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# 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 ...
43.833333
94
0.659062
1330708b5e43eb1fb09f236abe527f839af67d17
101
py
Python
theo.py
Seabreg/theo
374ff0a3e0d30d5c414600cfdb6e8f9da34af010
[ "Apache-2.0" ]
233
2019-07-06T16:38:15.000Z
2022-03-30T15:39:12.000Z
theo.py
ret2eax/theo
1ca9ac8f6e89e3e48ecb1bcb069a84eb5fc75a28
[ "Apache-2.0" ]
16
2019-07-06T23:02:46.000Z
2022-03-13T19:20:20.000Z
theo.py
ret2eax/theo
1ca9ac8f6e89e3e48ecb1bcb069a84eb5fc75a28
[ "Apache-2.0" ]
73
2019-07-23T13:03:06.000Z
2022-03-21T13:34:25.000Z
#!/usr/bin/env python3 from theo.interfaces.cli import main if __name__ == "__main__": main()
12.625
36
0.683168
3a8ae030156280ea792bb12d3325ced6aeb2edca
50,916
py
Python
pandas/tests/reductions/test_reductions.py
arushi-08/pandas
014ea2e5a8a647cfa5e3050a5c1299eb39b293d3
[ "BSD-3-Clause" ]
2
2021-11-16T06:33:42.000Z
2021-11-16T06:33:47.000Z
pandas/tests/reductions/test_reductions.py
arushi-08/pandas
014ea2e5a8a647cfa5e3050a5c1299eb39b293d3
[ "BSD-3-Clause" ]
354
2018-05-26T13:28:49.000Z
2022-03-31T01:11:46.000Z
pandas/tests/reductions/test_reductions.py
arushi-08/pandas
014ea2e5a8a647cfa5e3050a5c1299eb39b293d3
[ "BSD-3-Clause" ]
1
2021-11-17T06:32:30.000Z
2021-11-17T06:32:30.000Z
from datetime import ( datetime, timedelta, ) import numpy as np import pytest import pandas as pd from pandas import ( Categorical, DataFrame, DatetimeIndex, Index, NaT, Period, PeriodIndex, RangeIndex, Series, Timedelta, TimedeltaIndex, Timestamp, date_ran...
33.170033
88
0.553853
74018a6c040a0623a4757b058268ae3a7a2f0fd5
589
py
Python
warhammer/user/forms.py
GevorgArtenyan/blog
bf15aeac48e7c9abf8201e52b7a153337cf3ce1d
[ "MIT" ]
null
null
null
warhammer/user/forms.py
GevorgArtenyan/blog
bf15aeac48e7c9abf8201e52b7a153337cf3ce1d
[ "MIT" ]
null
null
null
warhammer/user/forms.py
GevorgArtenyan/blog
bf15aeac48e7c9abf8201e52b7a153337cf3ce1d
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Profile class UserRegisterForm(UserCreationForm): email = forms.EmailField() class Meta: model = User fields = ['username', 'email', 'password1', 'pas...
22.653846
64
0.677419
274ee898d4eb0272d05d374ec2cb421083cf0662
638
py
Python
Algorithms/Greedy/PermutingTwoArrays.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
2
2020-04-17T02:54:59.000Z
2020-06-08T23:32:12.000Z
Algorithms/Greedy/PermutingTwoArrays.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
null
null
null
Algorithms/Greedy/PermutingTwoArrays.py
aibenStunner/HackerRank
de223f2b1fa95d1959deef9ce14b39baa61100ba
[ "MIT" ]
1
2021-11-16T14:05:22.000Z
2021-11-16T14:05:22.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the twoArrays function below. def twoArrays(k, A, B): return 'YES' if all(a + b >= k for a, b in zip(sorted(A, reverse=True), sorted(B))) else 'NO' if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') q ...
18.764706
97
0.561129
21039ed2d1174560efcf0b26a9047ba96d2917a9
2,447
py
Python
CIM14/IEC61970/Core/IrregularIntervalSchedule.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM14/IEC61970/Core/IrregularIntervalSchedule.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM14/IEC61970/Core/IrregularIntervalSchedule.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
37.075758
78
0.708214
eaa9ae6e54ca314905cc22010c81676c22443d44
2,210
py
Python
meiduo_mall/apps/contents/migrations/0001_initial.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/contents/migrations/0001_initial.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/contents/migrations/0001_initial.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2021-01-08 03:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ContentCategory', fields=[...
43.333333
143
0.573303
0b8633dff1dea17faad5fb7d78ab506fdf236753
705
py
Python
ENV/bin/rstpep2html.py
GrupoMazoGuay/final
782b7580848ac01dd878e54574b0a5d36132291b
[ "MIT" ]
null
null
null
ENV/bin/rstpep2html.py
GrupoMazoGuay/final
782b7580848ac01dd878e54574b0a5d36132291b
[ "MIT" ]
null
null
null
ENV/bin/rstpep2html.py
GrupoMazoGuay/final
782b7580848ac01dd878e54574b0a5d36132291b
[ "MIT" ]
null
null
null
#!/home/carlos/Downloads/final-master/ENV/bin/python2 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Pro...
27.115385
76
0.730496
f2040bdc78ff14945a394efdd7e15fe50c9c25ef
1,822
py
Python
tests/core/util/test_cached_bls.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
7
2021-08-09T19:01:51.000Z
2021-12-09T04:32:09.000Z
tests/core/util/test_cached_bls.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
22
2021-08-17T04:12:11.000Z
2022-03-29T04:10:38.000Z
tests/core/util/test_cached_bls.py
CallMeBrado/cunt-blockchain
9b140b7e5541f3baffabe02a55b75d9aeb889999
[ "Apache-2.0" ]
4
2021-09-05T12:04:51.000Z
2022-03-15T08:44:32.000Z
import unittest from blspy import AugSchemeMPL, G1Element from cunt.util import cached_bls from cunt.util.lru_cache import LRUCache class TestCachedBLS(unittest.TestCase): def test_cached_bls(self): n_keys = 10 seed = b"a" * 31 sks = [AugSchemeMPL.key_gen(seed + bytes([i])) for i in range(...
44.439024
101
0.672887
1122938f250ab0117bd57b9e311456c94d9a8e5c
2,167
py
Python
Code/Water/ProjectedWaterGrid.py
kergalym/RenderPipeline-version_1_release
3c78b79d44c33781374e870dd8aad03aa6ce1268
[ "WTFPL" ]
null
null
null
Code/Water/ProjectedWaterGrid.py
kergalym/RenderPipeline-version_1_release
3c78b79d44c33781374e870dd8aad03aa6ce1268
[ "WTFPL" ]
null
null
null
Code/Water/ProjectedWaterGrid.py
kergalym/RenderPipeline-version_1_release
3c78b79d44c33781374e870dd8aad03aa6ce1268
[ "WTFPL" ]
null
null
null
from panda3d.core import OmniBoundingVolume, Mat4, SamplerState from Code.DebugObject import DebugObject from Code.Globals import Globals from Code.Water.WaterManager import WaterManager class ProjectedWaterGrid(DebugObject): def __init__(self, pipeline): DebugObject.__init__(self, "ProjectedWaterGri...
34.396825
99
0.674204
97a82129d175fbb6c499e7dfa0b8fbffa63feb14
34,859
py
Python
aqt/jax/flax_attention.py
alexandrabodrova/google-research
9a71d3e497f6e9943cc49fa3856f3a16895904cd
[ "Apache-2.0" ]
1
2021-04-24T03:39:05.000Z
2021-04-24T03:39:05.000Z
aqt/jax/flax_attention.py
alexandrabodrova/google-research
9a71d3e497f6e9943cc49fa3856f3a16895904cd
[ "Apache-2.0" ]
12
2021-08-25T16:15:31.000Z
2022-02-10T05:10:37.000Z
aqt/jax/flax_attention.py
alexandrabodrova/google-research
9a71d3e497f6e9943cc49fa3856f3a16895904cd
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
40.299422
104
0.703864
3e0ccd1f5f1dfb7022b1d567b397458a55a214a0
12,269
py
Python
test/functional/feature_coinstatsindex.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
61
2016-03-09T10:42:05.000Z
2018-03-13T05:06:30.000Z
test/functional/feature_coinstatsindex.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
153
2016-02-29T17:45:10.000Z
2018-03-16T23:37:02.000Z
test/functional/feature_coinstatsindex.py
Frank-GER/syscoin
efbdac67f9d3d37d75de3480b8bb2c539ad05dd4
[ "MIT" ]
18
2016-03-02T21:50:44.000Z
2018-03-07T20:36:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test coinstatsindex across nodes. Test that the values returned by gettxoutsetinfo are consistent betw...
41.033445
147
0.631266
19f95ba274188c58457bf6f3fa577b89be7735b2
111
py
Python
unidist/cli/base/__init__.py
no-ponomarev/unidist
fb434c444ca5d10d857dec3456a7fcce51069a64
[ "Apache-2.0" ]
14
2021-11-08T19:39:17.000Z
2022-03-12T06:00:49.000Z
unidist/cli/base/__init__.py
no-ponomarev/unidist
fb434c444ca5d10d857dec3456a7fcce51069a64
[ "Apache-2.0" ]
102
2021-11-09T10:00:18.000Z
2022-03-29T11:18:15.000Z
unidist/cli/base/__init__.py
no-ponomarev/unidist
fb434c444ca5d10d857dec3456a7fcce51069a64
[ "Apache-2.0" ]
4
2021-11-08T19:47:31.000Z
2022-01-18T12:42:43.000Z
# Copyright (C) 2021-2022 Modin authors # # SPDX-License-Identifier: Apache-2.0 """Base CLI functionality."""
18.5
39
0.711712
b44ad92303e4d75e5f526593ef0cc12ebb96d03f
3,944
py
Python
momiji/cogs/WelcomeMessage.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
16
2019-02-12T17:16:03.000Z
2021-07-16T05:36:06.000Z
momiji/cogs/WelcomeMessage.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
null
null
null
momiji/cogs/WelcomeMessage.py
Kyuunex/Momiji
a320bb901015737e4bd57c9da9a997d256689448
[ "MIT" ]
5
2019-12-07T10:34:36.000Z
2021-03-05T12:21:53.000Z
import random import discord from momiji.modules import permissions from momiji.reusables import send_large_message from discord.ext import commands class WelcomeMessage(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="set_welcome_message", brief="Set a welcome message"...
35.531532
109
0.627535
ce4cfb2602a2799774c7fedc0d54f778550633c3
3,789
py
Python
ParlAI/parlai/agents/tfidf_retriever/build_db.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
163
2019-06-23T14:07:57.000Z
2022-02-25T23:06:07.000Z
ParlAI/parlai/agents/tfidf_retriever/build_db.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
8
2019-07-24T12:41:31.000Z
2022-02-10T00:17:20.000Z
ParlAI/parlai/agents/tfidf_retriever/build_db.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
31
2019-06-26T01:21:07.000Z
2021-09-06T17:23:24.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """A script to read in and store ParlAI tasks in a sqlite database. Adapted from Adam Fisch's work at github.com/faceboo...
34.135135
84
0.583267
ddaf8761412acd32ffe1345c2df417b2f3b0292e
4,419
py
Python
profiles_api/views.py
abelfubu/profiles-rest-api
ded8efb9a2bc76cf8fc4e75dfb57a44ff1a24f90
[ "MIT" ]
null
null
null
profiles_api/views.py
abelfubu/profiles-rest-api
ded8efb9a2bc76cf8fc4e75dfb57a44ff1a24f90
[ "MIT" ]
null
null
null
profiles_api/views.py
abelfubu/profiles-rest-api
ded8efb9a2bc76cf8fc4e75dfb57a44ff1a24f90
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status, viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings impor...
33.992308
76
0.662367
efe74a6246335d906fb537fcce8ec17ce15b4772
868
py
Python
tests/wallet/test_get_fees.py
githubsonu1998/two1-python
4e833300fd5a58363e3104ed4c097631e5d296d3
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
tests/wallet/test_get_fees.py
githubsonu1998/two1-python
4e833300fd5a58363e3104ed4c097631e5d296d3
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
tests/wallet/test_get_fees.py
githubsonu1998/two1-python
4e833300fd5a58363e3104ed4c097631e5d296d3
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
from unittest import TestCase from unittest import mock from two1.wallet import exceptions from two1.wallet import fees def test_get_fees_cointape_server_down(): # Mock a response that doesn't have the correct data with mock.patch('two1.wallet.fees.requests.get') as mock_request: mock_request.return_...
32.148148
70
0.709677
ce375bf80c24a01a86da47e7aab20b93482a3145
8,908
py
Python
mopidy_bamp/mopidy_bamp/queue_request_handlers.py
isabella232/BossAlienMediaPlayer
c5ab5993a68c43d6b213bef2224020c9d4cc96cf
[ "MIT" ]
14
2019-09-25T18:28:32.000Z
2021-08-10T00:46:43.000Z
mopidy_bamp/mopidy_bamp/queue_request_handlers.py
obando777/BossAlienMediaPlayer
ff45313f51f451bdabb5bc28f0bd93ae6570a883
[ "MIT" ]
9
2020-01-08T11:10:25.000Z
2022-03-02T05:42:50.000Z
mopidy_bamp/mopidy_bamp/queue_request_handlers.py
isabella232/BossAlienMediaPlayer
c5ab5993a68c43d6b213bef2224020c9d4cc96cf
[ "MIT" ]
6
2019-09-25T15:04:40.000Z
2021-01-04T11:21:01.000Z
from __future__ import absolute_import, unicode_literals import json import tornado.web import logging import time import random from .dtos import DTOEncoder, TrackDTO, UserDTO from .images import update_trackdto_list_images from .base_request_handler import BaseRequestHandler from .queue_metadata_service import g_qu...
38.396552
162
0.655366
d3039db4eb9bee1c4a1ef09076aff0345dbbb488
31,195
py
Python
nova/network/floating_ips.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
1
2015-11-25T10:18:22.000Z
2015-11-25T10:18:22.000Z
nova/network/floating_ips.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/network/floating_ips.py
bopopescu/nested_quota
6d8443287e29c2c9e03cd4e5c5757424314280ad
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file...
45.07948
79
0.58753
20d6d30d6804ea3e2fabfcf4c0e526011ac9a1e8
613
py
Python
Asset/Elements/ConditionRating/ChinaHighwayBridgesRating.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/Elements/ConditionRating/ChinaHighwayBridgesRating.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/Elements/ConditionRating/ChinaHighwayBridgesRating.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
from .BaseConditionRating import BaseConditionRating class ChinaHighwayBridges_CR(BaseConditionRating): def __init__(self): super().__init__() self.ratings_description = {0: "1 Originally in the reference. No corrosion", 1: "2 Originally in the reference. Paint distress", 2: "3 Originally in ...
40.866667
106
0.714519
259e7bd3f09402055390b257c89e632a924bfa9a
751
py
Python
SysPaths.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
10
2021-11-20T07:25:34.000Z
2021-12-13T05:12:01.000Z
SysPaths.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
3
2021-12-03T18:37:36.000Z
2022-01-06T18:25:46.000Z
SysPaths.py
iahmadhere/voice-controlled-departmental-noticeboard
bfe6fa83f03c947676191f7456bc0e30f30b1bb2
[ "MIT" ]
6
2021-11-21T09:00:26.000Z
2021-12-11T06:36:35.000Z
"""[Gives path to the system for the modules to import other modules or files efficiently] """ import sys import os # sys.path.insert(1, os.path.join(sys.path[0], "Mails")) # sys.path.insert(1, os.path.join(sys.path[0], "Authentication")) MainDirPath = sys.path[0] AuthPath = os.path.join(sys.path[0], "Authenticat...
37.55
65
0.73502
5b36a649695e095ca14a35137fc4d21ba4cdc8f5
14,907
py
Python
sonic_platform_base/module_base.py
ysmanman/sonic-platform-common
93641f3721262d4b442946ae76fea3335ac10949
[ "Apache-2.0" ]
null
null
null
sonic_platform_base/module_base.py
ysmanman/sonic-platform-common
93641f3721262d4b442946ae76fea3335ac10949
[ "Apache-2.0" ]
null
null
null
sonic_platform_base/module_base.py
ysmanman/sonic-platform-common
93641f3721262d4b442946ae76fea3335ac10949
[ "Apache-2.0" ]
null
null
null
""" module_base.py Base class for implementing a platform-specific class with which to interact with a module (as used in a modular chassis) SONiC. """ import sys from . import device_base class ModuleBase(device_base.DeviceBase): """ Base class for interfacing with a module (supervisor module, ...
32.058065
86
0.583015
61ef304a90a92c1affc0843e1fcad8a837cc7c13
920
py
Python
nitrorole/__init__.py
PredaaA/JackCogs
6677496ed030a219afe32843e95154b01406226a
[ "Apache-2.0" ]
null
null
null
nitrorole/__init__.py
PredaaA/JackCogs
6677496ed030a219afe32843e95154b01406226a
[ "Apache-2.0" ]
null
null
null
nitrorole/__init__.py
PredaaA/JackCogs
6677496ed030a219afe32843e95154b01406226a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Jakub Kuczys (https://github.com/jack1142) # # 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 app...
32.857143
78
0.759783
1250143e2dbc222066f9cc761b6206f6ae911b1d
160
py
Python
coreemu-read-only/daemon/core/addons/__init__.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
3
2016-05-19T09:46:30.000Z
2021-01-31T16:41:06.000Z
coreemu-read-only/daemon/core/addons/__init__.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
null
null
null
coreemu-read-only/daemon/core/addons/__init__.py
ermin-sakic/Common-Open-Research-Emulator-CORE-
9c246b0ae0e9182dcf61acc4faee41841d5cbd51
[ "BSD-3-Clause" ]
1
2018-09-02T09:57:21.000Z
2018-09-02T09:57:21.000Z
"""Optional add-ons Add on files can be put in this directory. Everything listed in __all__ is automatically loaded by the main core module. """ __all__ = []
22.857143
64
0.74375
48028518dbc13337a939c3efd76631dbc2517a5c
1,215
py
Python
src/users/models/microsoftgraphworkbook_comment.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphworkbook_comment.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphworkbook_comment.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
32.837838
86
0.569547
c91ad0c9daa9e8b99a42d970effcf43ac9cc7f58
5,629
py
Python
solutions/warbler-solution/part-three/test_message_views.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
solutions/warbler-solution/part-three/test_message_views.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
solutions/warbler-solution/part-three/test_message_views.py
demohack/nonpub
e53bcec7115bcb2605687bb272d843e1e8d17ae5
[ "MIT" ]
null
null
null
"""Message View tests.""" # run these tests like: # # FLASK_ENV=production python -m unittest test_message_views.py import os from unittest import TestCase from models import db, connect_db, Message, User # BEFORE we import our app, let's set an environmental variable # to use a different database for tests (we...
29.783069
89
0.579677
6eb521a9dd4714f5bb85e3c066e6b9535eb4b93d
62,982
py
Python
cunumeric/module.py
ipdemes/cunumeric
8277d7c0aa21125c913136f46a0877b3bfba8c00
[ "Apache-2.0" ]
null
null
null
cunumeric/module.py
ipdemes/cunumeric
8277d7c0aa21125c913136f46a0877b3bfba8c00
[ "Apache-2.0" ]
null
null
null
cunumeric/module.py
ipdemes/cunumeric
8277d7c0aa21125c913136f46a0877b3bfba8c00
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA 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 wr...
30.470247
101
0.61932
32c2dcc1dd51d3f3fa81d53cd4937a2d562064a0
927
py
Python
jssmanifests/migrations/0030_auto_20150923_1428.py
aysiu/manana
8af8b57c72f6154affdb5f3a9a3469a49e5818fe
[ "Apache-2.0" ]
9
2016-02-16T23:53:40.000Z
2020-07-13T16:04:18.000Z
jssmanifests/migrations/0030_auto_20150923_1428.py
aysiu/manana
8af8b57c72f6154affdb5f3a9a3469a49e5818fe
[ "Apache-2.0" ]
null
null
null
jssmanifests/migrations/0030_auto_20150923_1428.py
aysiu/manana
8af8b57c72f6154affdb5f3a9a3469a49e5818fe
[ "Apache-2.0" ]
4
2016-02-16T23:56:13.000Z
2019-05-20T15:12:14.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ('jssmanifests', '0029_jsssite_businessunit'), ] operations = [ migrations...
29.903226
124
0.596548
acae9f8da45bb1f1f9309e89b1faa93b0dec4913
1,933
py
Python
scripts/test-indiscernability.py
Quandela/Perceval
677f03808f9fbd3b4390aa4ef8cf6a5e4ec9f83a
[ "MIT" ]
8
2022-03-31T08:22:05.000Z
2022-03-31T21:22:13.000Z
scripts/test-indiscernability.py
Quandela/Perceval
677f03808f9fbd3b4390aa4ef8cf6a5e4ec9f83a
[ "MIT" ]
null
null
null
scripts/test-indiscernability.py
Quandela/Perceval
677f03808f9fbd3b4390aa4ef8cf6a5e4ec9f83a
[ "MIT" ]
2
2022-03-30T19:58:39.000Z
2022-03-31T08:12:41.000Z
# MIT License # # Copyright (c) 2022 Quandela # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pub...
38.66
80
0.747543
94e8b95ac1f50dd6cdf54322c2fe8df115554251
23
py
Python
python/ql/test/query-tests/Imports/PyCheckerTests/test_module2.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
4,036
2020-04-29T00:09:57.000Z
2022-03-31T14:16:38.000Z
python/ql/test/query-tests/Imports/PyCheckerTests/test_module2.py
vadi2/codeql
a806a4f08696d241ab295a286999251b56a6860c
[ "MIT" ]
2,970
2020-04-28T17:24:18.000Z
2022-03-31T22:40:46.000Z
python/ql/test/query-tests/Imports/PyCheckerTests/test_module2.py
ScriptBox99/github-codeql
2ecf0d3264db8fb4904b2056964da469372a235c
[ "MIT" ]
794
2020-04-29T00:28:25.000Z
2022-03-30T08:21:46.000Z
def func(): pass
4.6
11
0.478261
0abd3c991199303c198293d85b29108c51e804f6
165
py
Python
iwsoj/tests/tasks/serializers/conftest.py
eryktr/iwsoj
f8f3c35c984b0488405a3b1fdc59f1c29b439521
[ "MIT" ]
1
2021-10-09T19:43:21.000Z
2021-10-09T19:43:21.000Z
iwsoj/tests/tasks/serializers/conftest.py
eryktr/iwsoj
f8f3c35c984b0488405a3b1fdc59f1c29b439521
[ "MIT" ]
null
null
null
iwsoj/tests/tasks/serializers/conftest.py
eryktr/iwsoj
f8f3c35c984b0488405a3b1fdc59f1c29b439521
[ "MIT" ]
null
null
null
import pytest from tasks.serializers.task_serializer import TaskSerializer @pytest.fixture() def validserializer(validtask): return TaskSerializer(validtask)
18.333333
60
0.824242
9cd9f509f9c600f0152e7720cd24f446d16f413c
134
py
Python
src/Stele/processing/processing_hsg/pmt_collection/__init__.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
null
null
null
src/Stele/processing/processing_hsg/pmt_collection/__init__.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
null
null
null
src/Stele/processing/processing_hsg/pmt_collection/__init__.py
SherwinGroup/Stele
9bb7da0b406a801975e21c9f7ce05d369ae661e5
[ "MIT" ]
null
null
null
__author__ = 'Sphinx' from . import high_sideband_pmt_old from . import high_sideband_pmt from . import pmt from . import time_trace
19.142857
35
0.798507
62a535ae74334476e4fca9970640a93c5cc3e662
1,355
py
Python
jitendrablog/studyblog/migrations/0001_initial.py
mahatojitendra/jitendrablog_public
2bdd81f71217f05a638214c8f7563c85ffa41344
[ "MIT" ]
null
null
null
jitendrablog/studyblog/migrations/0001_initial.py
mahatojitendra/jitendrablog_public
2bdd81f71217f05a638214c8f7563c85ffa41344
[ "MIT" ]
null
null
null
jitendrablog/studyblog/migrations/0001_initial.py
mahatojitendra/jitendrablog_public
2bdd81f71217f05a638214c8f7563c85ffa41344
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-10 13:53 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('author', '0001_initial'), ] operations = [ migrations.CreateModel( ...
39.852941
117
0.59631