hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d590b2e41df4cf47a10f9711b5f682f57ac29747
62
py
Python
lib/__init__.py
co9olguy/Generating-and-designing-DNA
7dab87a1002790d37e929c5542f9761ae7d16416
[ "Unlicense" ]
32
2018-04-29T22:34:43.000Z
2022-03-14T05:54:25.000Z
lib/__init__.py
co9olguy/Generating-and-designing-DNA
7dab87a1002790d37e929c5542f9761ae7d16416
[ "Unlicense" ]
3
2019-04-02T07:05:34.000Z
2022-02-18T17:34:03.000Z
lib/__init__.py
co9olguy/Generating-and-designing-DNA
7dab87a1002790d37e929c5542f9761ae7d16416
[ "Unlicense" ]
11
2018-05-25T09:31:37.000Z
2021-12-13T17:58:29.000Z
from .utils import * from .models import * from .dna import *
15.5
21
0.709677
0
0
0
0
0
0
0
0
0
0
d5911080649fbef3f58c84aa754a86cb5bf6ca4d
2,098
py
Python
src/app/forms.py
triump0870/i2a
bc4b9e7615d645b153a4df5a37d3e088a2ed47b7
[ "MIT" ]
null
null
null
src/app/forms.py
triump0870/i2a
bc4b9e7615d645b153a4df5a37d3e088a2ed47b7
[ "MIT" ]
null
null
null
src/app/forms.py
triump0870/i2a
bc4b9e7615d645b153a4df5a37d3e088a2ed47b7
[ "MIT" ]
null
null
null
from django import forms from app.models import Application, Owner, Questionnaire, Tag, Rule, TagType from crispy_forms.bootstrap import Field from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Submit, ButtonHolder, Fieldset, Hidden, HTML class ApplicationForm(forms.ModelForm): cl...
31.313433
120
0.604862
1,808
0.861773
0
0
0
0
0
0
798
0.380362
d591a35f1a2c7e8df082016293ac3874fbf0a395
495
py
Python
rest_api/mongo_connect.py
pssudo/kubernetes-fastapi
87592c90fd09e587196674592b2dbdc4bc7a64ce
[ "MIT" ]
1
2021-03-21T04:18:58.000Z
2021-03-21T04:18:58.000Z
rest_api/mongo_connect.py
pssudo/kubernetes-fastapi
87592c90fd09e587196674592b2dbdc4bc7a64ce
[ "MIT" ]
null
null
null
rest_api/mongo_connect.py
pssudo/kubernetes-fastapi
87592c90fd09e587196674592b2dbdc4bc7a64ce
[ "MIT" ]
null
null
null
import motor.motor_asyncio import os mongo_server = os.environ['DB_HOST'] mongo_port = os.environ['DB_PORT'] mongo_db = os.environ['DB_NAME'] mongo_user = os.environ['DB_USER'] mongo_passwd = os.environ['DB_PASSWD'] MONGO_DETAILS = "mongodb://" + mongo_user + ":" + mongo_passwd + "@" + mongo_server + ":" + mongo_port +...
45
125
0.759596
0
0
0
0
0
0
0
0
101
0.20404
d5941de181d766fe9b1b45b29107028645c7d1ae
512
py
Python
cloudmesh/pi/water.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
2
2017-09-18T00:56:36.000Z
2018-06-01T23:41:23.000Z
cloudmesh/pi/water.py
cloudmesh/cloudmesh-pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
1
2018-04-16T18:37:17.000Z
2018-04-16T18:37:17.000Z
cloudmesh/pi/water.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
3
2017-09-20T11:13:54.000Z
2017-11-30T23:48:37.000Z
import time import grovepi class WaterSensor(object): def __init__(self, pin=2): """ connect sensor to digital port. D2 is default. :param pin: Number """ self.pin = pin grovepi.pinMode(self.pin, "INPUT") def get(self): """ gets the value measur...
19.692308
54
0.564453
393
0.767578
0
0
0
0
0
0
203
0.396484
d594390832d9d4fefb61b67618c808b718384226
928
py
Python
telethon/network/connection/tcpabridged.py
s3mple/Telethon
476bbdd6a1fb6f917adf9204e6cd825b008dd9c1
[ "MIT" ]
1
2018-10-07T08:31:49.000Z
2018-10-07T08:31:49.000Z
telethon/network/connection/tcpabridged.py
s3mple/Telethon
476bbdd6a1fb6f917adf9204e6cd825b008dd9c1
[ "MIT" ]
null
null
null
telethon/network/connection/tcpabridged.py
s3mple/Telethon
476bbdd6a1fb6f917adf9204e6cd825b008dd9c1
[ "MIT" ]
1
2018-09-05T14:59:27.000Z
2018-09-05T14:59:27.000Z
import struct from .tcpfull import ConnectionTcpFull class ConnectionTcpAbridged(ConnectionTcpFull): """ This is the mode with the lowest overhead, as it will only require 1 byte if the packet length is less than 508 bytes (127 << 2, which is very common). """ async def connect(self, ip, port...
29
71
0.595905
871
0.938578
0
0
0
0
627
0.675647
213
0.229526
d5959b570e07360b0fe5902da6068315badc51ef
1,274
py
Python
app/core/tests/test_models.py
ahmedgamalmansy/recipe-app-api
14443d9cd7d0fe2504361e8f86a9505c8faa9093
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
ahmedgamalmansy/recipe-app-api
14443d9cd7d0fe2504361e8f86a9505c8faa9093
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
ahmedgamalmansy/recipe-app-api
14443d9cd7d0fe2504361e8f86a9505c8faa9093
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """ test create new user with an email is successful""" email = "ahmed.mansy@segmatek.com" password= "Agmansy0100" user = get_user_model().objects.cr...
31.073171
68
0.752747
1,193
0.936421
0
0
0
0
0
0
330
0.259027
d5964f0e3f92c5ca6a4083ce024d1eef5ffe0c51
350
py
Python
elements/light.py
partha-ghosh/pyeffects
b941e9b09c9889c01b103d758707d36c3520de2a
[ "MIT" ]
null
null
null
elements/light.py
partha-ghosh/pyeffects
b941e9b09c9889c01b103d758707d36c3520de2a
[ "MIT" ]
null
null
null
elements/light.py
partha-ghosh/pyeffects
b941e9b09c9889c01b103d758707d36c3520de2a
[ "MIT" ]
null
null
null
import numpy as np class Light: _position = np.array([960, 540, 300.0, 1]) _color = np.array([255, 255, 255]) def set_position(position): Light._position = position def set_color(color): Light._color = color def get_color(): return Light._color def get_position(): ...
18.421053
46
0.617143
328
0.937143
0
0
0
0
0
0
0
0
d5965fa61cb67bd67adba3b00ebd73edc4c2a0a6
727
py
Python
pyAI-OpenMV4/2.机器视觉/7.图片拍摄/1.普通拍摄/snapshot.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
73
2020-05-02T13:48:27.000Z
2022-03-26T13:15:10.000Z
pyAI-OpenMV4/2.机器视觉/7.图片拍摄/1.普通拍摄/snapshot.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
null
null
null
pyAI-OpenMV4/2.机器视觉/7.图片拍摄/1.普通拍摄/snapshot.py
01studio-lab/MicroPython_Examples
f06a1bee398674ceafebed2aac88d8413cc8abad
[ "MIT" ]
50
2020-05-15T13:57:28.000Z
2022-03-30T14:03:33.000Z
# 普通拍照例程 # # 提示: 你需要插入SD卡来运行这个例程. # # 你可以使用你的OpenMV设备保存图片。 #导入相关模块,pyb用于LED控制。 import sensor, image, pyb RED_LED_PIN = 1 BLUE_LED_PIN = 3 #摄像头相关初始化 sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor.set_framesize(sensor.QVGA) # or sensor.QQVGA (or others) ...
22.030303
71
0.749656
0
0
0
0
0
0
0
0
556
0.593383
d596976be192ececaf598f9c26104ca0d3976fc5
344
py
Python
website/addons/osfstorage/settings/defaults.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
website/addons/osfstorage/settings/defaults.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
13
2020-03-24T15:29:41.000Z
2022-03-11T23:15:28.000Z
website/addons/osfstorage/settings/defaults.py
DanielSBrown/osf.io
98dda2ac237377197acacce78274bc0a4ce8f303
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import os from website import settings WATERBUTLER_CREDENTIALS = { 'storage': {} } WATERBUTLER_SETTINGS = { 'storage': { 'provider': 'filesystem', 'folder': os.path.join(settings.BASE_PATH, 'osfstoragecache'), } } WATERBUTLER_RESOURCE = 'folder' DISK_SAVING_MODE = se...
15.636364
70
0.680233
0
0
0
0
0
0
0
0
90
0.261628
d5979c547106abfe2c4a788fa3eb19744770566f
371
py
Python
3_dot_product.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
1
2021-09-18T05:00:05.000Z
2021-09-18T05:00:05.000Z
3_dot_product.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
null
null
null
3_dot_product.py
codeclassifiers/nnfs
8583c1ccf3d155779057cb5041d52a3002282b04
[ "MIT" ]
1
2021-09-18T05:00:06.000Z
2021-09-18T05:00:06.000Z
#Example of dot product using numpy import numpy as np #Sample input to perceptron inputs = [1.2, 2.2, 3.3, 2.5] #Weights passed to perceptron weights = [0.4,0.6,-0.7, 1.1] #bias for a particular perceptron bias = 2 #Take dot product between weights and input #and add bias to the summation value output = np.dot(in...
19.526316
44
0.719677
0
0
0
0
0
0
0
0
213
0.574124
d5993de97589837ac20b5cb949eaf132912bde00
4,725
py
Python
m2k/python/precision_adc_tutorial/ad7124_filters.py
mthoren-adi/education_tools
e99d47d0d6b56e05c8ed6692d57fa8518d610630
[ "CC-BY-4.0" ]
17
2018-11-11T03:08:57.000Z
2022-02-15T22:37:59.000Z
m2k/python/precision_adc_tutorial/ad7124_filters.py
chensi007/education_tools
3b4280308eb34bcafbd50035ea780a269883f2f7
[ "CC-BY-4.0" ]
6
2019-07-31T13:05:36.000Z
2021-07-06T06:51:11.000Z
m2k/python/precision_adc_tutorial/ad7124_filters.py
chensi007/education_tools
3b4280308eb34bcafbd50035ea780a269883f2f7
[ "CC-BY-4.0" ]
18
2018-10-29T20:11:36.000Z
2022-01-24T00:42:10.000Z
# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # Copyright (c) 2015-2019 Analog Devices, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: ...
39.049587
78
0.738836
0
0
0
0
0
0
0
0
3,464
0.733122
d599b8f92a8d48d05fa9f2f452a677696ae82fe2
962
py
Python
products/forms.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
products/forms.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
products/forms.py
NewtonHead/e-commerce_project
5ed448b033cd3771fc63f62022fe84ac8e17442d
[ "MIT" ]
null
null
null
from django import forms from .models import Product, Category from mptt.forms import TreeNodeChoiceField from django.forms.fields import ImageField class ProductForm(forms.Form): title = forms.CharField( label='', widget=forms.TextInput( attrs={ 'placehol...
31.032258
77
0.527027
812
0.844075
0
0
0
0
0
0
153
0.159044
d59b2e857c3657e22162648df0dce76d10dbed3f
376
py
Python
adminweb/migrations/0002_alter_profissional_cep.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
1
2021-06-17T06:13:33.000Z
2021-06-17T06:13:33.000Z
adminweb/migrations/0002_alter_profissional_cep.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
adminweb/migrations/0002_alter_profissional_cep.py
FinotelliCarlos/ewipesimple-adminweb-python
3bf779250efeb9f85b4283ffbf210bf227aa8e8c
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-06-16 16:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adminweb', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profissional', name='cep', ...
19.789474
49
0.590426
285
0.757979
0
0
0
0
0
0
88
0.234043
d59b7e7d7e960aceb68d09f0d6e1dfd11582bf66
7,064
py
Python
ios/serializers.py
NadavK/djhome
4f0d936dc475c91e0590bd22deae818cf2650840
[ "MIT" ]
null
null
null
ios/serializers.py
NadavK/djhome
4f0d936dc475c91e0590bd22deae818cf2650840
[ "MIT" ]
8
2020-02-11T23:59:46.000Z
2022-03-03T21:49:33.000Z
ios/serializers.py
NadavK/djhome
4f0d936dc475c91e0590bd22deae818cf2650840
[ "MIT" ]
null
null
null
from .models import Input, Output, InputToOutput, Device from rest_framework import serializers from taggit_serializer.serializers import (TagListSerializerField, TaggitSerializer) from taggit.models import Tag class DeviceSerializer(serializers.ModelSerializer): class Meta: model = Device fields ...
32.552995
172
0.625283
3,770
0.533692
0
0
0
0
0
0
4,368
0.618347
d59ce46ab897a4326a316a12b1908c1b167c893a
894
py
Python
bin/clicker.py
Martincic/click-automatizer
1b4f4303b7d40bcaac470238ab21837f2fbad92a
[ "MIT" ]
1
2022-02-05T11:05:58.000Z
2022-02-05T11:05:58.000Z
bin/clicker.py
Martincic/click-automatizer
1b4f4303b7d40bcaac470238ab21837f2fbad92a
[ "MIT" ]
null
null
null
bin/clicker.py
Martincic/click-automatizer
1b4f4303b7d40bcaac470238ab21837f2fbad92a
[ "MIT" ]
null
null
null
from threading import Thread from time import sleep import win32api, win32con import pyautogui import keyboard import os def clickPositions(all_positions, repeat, timeout): #Activate safety killswitch thread = Thread(target = safetyKillswitch) thread.start() should_repeat = True iteration = 0...
24.833333
63
0.667785
0
0
0
0
0
0
0
0
79
0.088367
d59eac60ee49212e2ee889df53673f9ab5d4edcb
150
py
Python
bugtests/test256.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test256.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test256.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
""" """ import support support.compileJPythonc("test256a.py", core=1, jar="test256.jar", output="test256.err") #raise support.TestError("" + `x`)
15
87
0.673333
0
0
0
0
0
0
0
0
81
0.54
d59ed04f2f421d592db7ca01711e238752f15f07
1,307
py
Python
cruft/_commands/utils/cruft.py
timothycrosley/cruft
4d503c144d7268345c56f9ef4221a56ffc706739
[ "MIT" ]
87
2019-09-25T07:41:27.000Z
2020-08-17T20:09:52.000Z
cruft/_commands/utils/cruft.py
timothycrosley/cruft
4d503c144d7268345c56f9ef4221a56ffc706739
[ "MIT" ]
47
2019-10-03T05:33:34.000Z
2020-08-16T09:03:35.000Z
cruft/_commands/utils/cruft.py
timothycrosley/cruft
4d503c144d7268345c56f9ef4221a56ffc706739
[ "MIT" ]
9
2019-09-24T06:51:31.000Z
2020-08-06T07:59:47.000Z
import json from pathlib import Path from typing import Any, Dict from git import Repo from cruft.exceptions import CruftAlreadyPresent, NoCruftFound CruftState = Dict[str, Any] ####################### # Cruft related utils # ####################### def get_cruft_file(project_dir_path: Path, exists: bool = True)...
31.119048
100
0.673298
0
0
0
0
0
0
0
0
285
0.218057
d59f1dcccbd32af829381dd3853ec683d08d3461
8,604
py
Python
src/_repobee/main.py
tohanss/repobee
cf5eb1e83e62c20bbca00c8ad9f798a612e1664f
[ "MIT" ]
null
null
null
src/_repobee/main.py
tohanss/repobee
cf5eb1e83e62c20bbca00c8ad9f798a612e1664f
[ "MIT" ]
null
null
null
src/_repobee/main.py
tohanss/repobee
cf5eb1e83e62c20bbca00c8ad9f798a612e1664f
[ "MIT" ]
null
null
null
"""Main entrypoint for the repobee CLI application. .. module:: main :synopsis: Main entrypoint for the repobee CLI application. .. moduleauthor:: Simon Larsén """ import argparse import contextlib import io import logging import os import pathlib import sys from typing import List, Optional, Union, Mapping from...
32.345865
79
0.65516
0
0
4,055
0.471238
1,266
0.147124
0
0
3,228
0.375131
d59f3c58b006cd25a25b2736e3fa1fa4e2390ff6
6,871
py
Python
tests/config.py
kokokuo/auto_send_email
509672dcb09a2a587ccfb8de4cf2d008c7bac5aa
[ "MIT" ]
1
2019-06-20T15:07:25.000Z
2019-06-20T15:07:25.000Z
tests/config.py
kokokuo/mailmerger
509672dcb09a2a587ccfb8de4cf2d008c7bac5aa
[ "MIT" ]
5
2019-05-23T09:51:46.000Z
2021-08-01T09:49:33.000Z
tests/config.py
kokokuo/auto_send_email
509672dcb09a2a587ccfb8de4cf2d008c7bac5aa
[ "MIT" ]
null
null
null
from enum import Enum class TestCommonConfig(object): LOGGER_NAME = "testing-logger" SHEET_TEST_DIRNAME = "sheets" EMAIL_TEMPLATE_TEST_DIRNAME = "templates" class TestSheetColHeader(Enum): """ TestEnHeader.xlsx 與 TestCnHeader.xlsx 的 Column 標頭定義,差異為英文跟中文 """ EN_HOTELNAME = "HotelName" ...
35.973822
86
0.726968
7,412
0.995033
0
0
0
0
0
0
2,071
0.278024
d5a06a4c867599293195597044d34e40bd2610d7
4,055
py
Python
keystone/assignment/role_backends/ldap.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/assignment/role_backends/ldap.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/assignment/role_backends/ldap.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.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...
32.18254
76
0.663872
2,936
0.724044
0
0
0
0
0
0
1,051
0.259186
d5a0d14841cc76eb2977a0ec7007fa46827f4e51
355
py
Python
backend/apps/volontulo/templatetags/labeled_status.py
magul/volontulo
778168219e003b585604ee88cc54d03575bdc00e
[ "MIT" ]
16
2016-10-29T19:45:11.000Z
2021-04-23T03:54:22.000Z
backend/apps/volontulo/templatetags/labeled_status.py
magul/volontulo
778168219e003b585604ee88cc54d03575bdc00e
[ "MIT" ]
1,063
2016-10-28T17:43:39.000Z
2018-12-12T17:42:19.000Z
backend/apps/volontulo/templatetags/labeled_status.py
magul/volontulo
778168219e003b585604ee88cc54d03575bdc00e
[ "MIT" ]
60
2016-11-02T18:28:35.000Z
2018-11-07T17:01:05.000Z
# -*- coding: utf-8 -*- u""" .. module:: labeled_status """ from django import template from apps.volontulo.utils import OFFERS_STATUSES register = template.Library() @register.filter(name='human') def human(status): u"""Get offer status description. :param status: string Status key """ return O...
16.136364
48
0.692958
0
0
0
0
180
0.507042
0
0
144
0.405634
d5a3714f67fe62a722e814c6e434ce5613a21bbc
3,400
py
Python
catapult_build/js_checks.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2019-01-04T10:08:58.000Z
2019-01-04T10:08:58.000Z
catapult_build/js_checks.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
6
2020-07-19T21:51:44.000Z
2022-02-13T08:22:58.000Z
catapult_build/js_checks.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
1
2020-07-24T18:22:03.000Z
2020-07-24T18:22:03.000Z
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import eslint from py_vulcanize import strip_js_comments from catapult_build import parse_html class JSChecker(object): def __init__(sel...
29.824561
78
0.704118
1,502
0.441765
0
0
0
0
0
0
716
0.210588
d5a40db4f8292b174efc5944ace79eb384db16eb
1,919
py
Python
care/facility/models/notification.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/models/notification.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/models/notification.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
import enum from django.db import models from care.facility.models import FacilityBaseModel from care.users.models import User from django.contrib.postgres.fields import JSONField class Notification(FacilityBaseModel): class EventType(enum.Enum): SYSTEM_GENERATED = 50 CUSTOM_MESSAGE = 100 E...
36.207547
117
0.72173
1,734
0.903596
0
0
0
0
0
0
51
0.026576
d5a4573d5ae49df24e84bfdf833cc441272c4eb6
176
py
Python
services/startDriver.py
nayfaan/Google_rank_find
77815b0f710ec4456f70a63b3359c02fd24753a8
[ "MIT" ]
null
null
null
services/startDriver.py
nayfaan/Google_rank_find
77815b0f710ec4456f70a63b3359c02fd24753a8
[ "MIT" ]
null
null
null
services/startDriver.py
nayfaan/Google_rank_find
77815b0f710ec4456f70a63b3359c02fd24753a8
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium import * def start(): return webdriver.Chrome(executable_path='./services/chromedriver') if __name__ == "__main__": pass
19.555556
70
0.744318
0
0
0
0
0
0
0
0
35
0.198864
d5a49556f65c7eab6e09e8c16d7151af12063b65
87
py
Python
Chapter11/grades_ms/grades/grades_svc/admin.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
31
2020-08-10T22:37:41.000Z
2022-03-09T21:35:56.000Z
Chapter11/grades_ms/grades/grades_svc/admin.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
null
null
null
Chapter11/grades_ms/grades/grades_svc/admin.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
21
2020-08-10T22:37:44.000Z
2022-03-07T07:26:28.000Z
from django.contrib import admin from .models import Grade admin.site.register(Grade)
17.4
32
0.816092
0
0
0
0
0
0
0
0
0
0
d5a523e97c8871c1b7a642d8e7e1284f0ce9a2ec
1,492
py
Python
tracksuite/utils/metrics.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
null
null
null
tracksuite/utils/metrics.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
1
2020-09-02T07:53:51.000Z
2020-09-02T07:53:51.000Z
tracksuite/utils/metrics.py
jimiolaniyan/tracksuite
f05c40e7b78ce2bb623a4ae76c08997a41585152
[ "MIT" ]
null
null
null
import numpy as np def calculate_iou(bboxes1, bboxes2): """ This calculates the intersection over union of N bounding boxes in the form N x [left, top, right, bottom], e.g for N=2: >> bb = [[21,34,45,67], [67,120, 89, 190]] :param bboxes1: np array: N x 4 ground truth bounding boxes :param bb...
38.25641
84
0.656166
0
0
0
0
0
0
0
0
393
0.263405
d5a7dc8916eb01cb85de2b374c6b24801f3724ff
2,027
py
Python
Python/RussianPeasantMult.py
sheenxavi004/problem-solving
8541ed52ff1f17031a2190b18dd5b128dd334c2d
[ "MIT" ]
11
2018-10-03T23:57:04.000Z
2020-04-04T05:06:15.000Z
Python/RussianPeasantMult.py
sheenxavi004/problem-solving
8541ed52ff1f17031a2190b18dd5b128dd334c2d
[ "MIT" ]
28
2018-10-04T07:31:07.000Z
2020-01-08T15:43:28.000Z
Python/RussianPeasantMult.py
sheenxavi004/problem-solving
8541ed52ff1f17031a2190b18dd5b128dd334c2d
[ "MIT" ]
78
2018-10-04T06:28:58.000Z
2021-12-12T07:07:13.000Z
""" Russian Peasant Multiplication (RPM) Algorithm Implemented In Python RPM is a method of mutiplication of any 2 numbers using only multiplication and division by 2. The basics are that you divide the second number by 2 (integer division) until it equals 1, every time you divide the second number by 2, you also multi...
32.174603
80
0.618155
0
0
0
0
0
0
0
0
1,322
0.652195
d5a7f3dd6c594271ad5f5ffe349ea681ebe4fe26
34,989
py
Python
celery-queue/metrical-tree/metricaltree.py
HwanSolo/stanford-linguistics
c3a7e7452dacca9c1d4bfde1667b82596193b434
[ "Apache-2.0" ]
null
null
null
celery-queue/metrical-tree/metricaltree.py
HwanSolo/stanford-linguistics
c3a7e7452dacca9c1d4bfde1667b82596193b434
[ "Apache-2.0" ]
null
null
null
celery-queue/metrical-tree/metricaltree.py
HwanSolo/stanford-linguistics
c3a7e7452dacca9c1d4bfde1667b82596193b434
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from collections import defaultdict import cPickle as pkl import numpy as np import pandas as pd import matplotlib.pyplot as plt import codecs import nltk from nltk import compat from nltk.tree import Tree import nltk.data from deptree import DependencyTree, Depe...
39.225336
154
0.494898
28,775
0.822401
4,684
0.133871
748
0.021378
0
0
9,579
0.273772
d5ab5835f2e337b522ce060307e167093634b260
1,056
py
Python
multiuploader/management/commands/clean_uploads.py
SharmaVinayKumar/django-multiuploader
58e545307014830b00101129a297b6d465b87583
[ "MIT" ]
5
2017-02-25T21:12:37.000Z
2017-03-12T15:05:55.000Z
multiuploader/management/commands/clean_uploads.py
SharmaVinayKumar/django-multiuploader
58e545307014830b00101129a297b6d465b87583
[ "MIT" ]
4
2017-02-25T19:08:23.000Z
2017-03-12T15:53:54.000Z
multiuploader/management/commands/clean_uploads.py
vinaypost/multiuploader
58e545307014830b00101129a297b6d465b87583
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals import os from datetime import timedelta import multiuploader.default_settings as DEFAULTS from django.conf import settings from django.core.management.base import BaseCommand from django.utils.timezone import now from multiuploader.models import MultiuploaderFi...
35.2
87
0.730114
730
0.691288
0
0
0
0
0
0
145
0.137311
d5ab995005d2f182743e6f37ffa3d88f794d55fe
540
py
Python
tests/test_source.py
Koech-code/News-App
07688d64df5d0512a8d59613d403f7d6a7377360
[ "MIT" ]
null
null
null
tests/test_source.py
Koech-code/News-App
07688d64df5d0512a8d59613d403f7d6a7377360
[ "MIT" ]
null
null
null
tests/test_source.py
Koech-code/News-App
07688d64df5d0512a8d59613d403f7d6a7377360
[ "MIT" ]
null
null
null
import unittest from app.models import Source class testSource(unittest.TestCase): """ SourcesTest class to test the behavior of the Sources class """ def setUp(self): """ Method that runs before each other test runs """ self.new_source = Source('abc-news','ABC news','Yo...
30
140
0.661111
445
0.824074
0
0
0
0
0
0
253
0.468519
d5acd000db9d4a9b597057b8dfc5cb47789972b8
432
py
Python
python_backend/custom_types/forvo_api_types.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
null
null
null
python_backend/custom_types/forvo_api_types.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
2
2021-12-26T23:34:02.000Z
2021-12-26T23:34:11.000Z
python_backend/custom_types/forvo_api_types.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
null
null
null
from typing import Literal, TypedDict class ForvoAPIItem(TypedDict): id: int word: str original: str addtime: str hits: int username: str sex: str country: str code: str langname: str pathmp3: str pathogg: str rate: int num_votes: int num_positive_votes: int...
17.28
43
0.655093
388
0.898148
0
0
0
0
0
0
7
0.016204
d5ad2c2b6d4e8106ddd532340d0d9a878fb16570
16,522
py
Python
src/workers.py
lmdu/krait2
82aff14cdbbb777ea391bcb8acf3cb95b913209a
[ "MIT" ]
1
2021-05-16T08:37:22.000Z
2021-05-16T08:37:22.000Z
src/workers.py
lmdu/krait2
82aff14cdbbb777ea391bcb8acf3cb95b913209a
[ "MIT" ]
null
null
null
src/workers.py
lmdu/krait2
82aff14cdbbb777ea391bcb8acf3cb95b913209a
[ "MIT" ]
null
null
null
import os import csv import time import stria import pyfastx import traceback import multiprocessing from PySide6.QtCore import * from primer3 import primerdesign from motif import * from stats import * from utils import * from config import * from backend import * from annotate import * __all__ = [ 'SSRSearchThre...
25.937206
104
0.678308
15,961
0.966045
1,589
0.096175
1,526
0.092362
0
0
2,827
0.171105
d5ad529e55fa638ad8a24b07f5e82913bca91ecd
3,327
py
Python
src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py
renaudbougues/continuous-deep-q-learning
a96e1d9019a7291cc937de37404f2af71eaa2e32
[ "MIT" ]
1
2016-08-02T17:22:33.000Z
2016-08-02T17:22:33.000Z
src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py
renaudbougues/continuous-deep-q-learning
a96e1d9019a7291cc937de37404f2af71eaa2e32
[ "MIT" ]
6
2016-10-02T00:18:52.000Z
2016-10-02T00:22:59.000Z
src/deepnnmnist/deepnn-nobias/linear_deep_nn_nobias_no_activationf.py
renaudbougues/continuous-deep-q-learning
a96e1d9019a7291cc937de37404f2af71eaa2e32
[ "MIT" ]
null
null
null
''' Training a deep "incomplete" ANN on MNIST with Tensorflow The ANN has no bias and no activation function This function does not learn very well because the the hypothesis is completely off The loss function is bad. The network is unstable in training (easily blow up) and fails to learn the training dataset (<20%...
34.298969
153
0.709047
0
0
0
0
0
0
0
0
1,046
0.314397
d5ade4b8467958efc5bf0dd674d19bc8f2a64b86
416
py
Python
tests/conftest.py
Usetech/labelgun
0a3293cae3179b7d4e324154d0335d7d81a8455e
[ "MIT" ]
null
null
null
tests/conftest.py
Usetech/labelgun
0a3293cae3179b7d4e324154d0335d7d81a8455e
[ "MIT" ]
null
null
null
tests/conftest.py
Usetech/labelgun
0a3293cae3179b7d4e324154d0335d7d81a8455e
[ "MIT" ]
null
null
null
import pytest import structlog @pytest.fixture(autouse=True) def setup(): structlog.configure( processors=[ structlog.processors.JSONRenderer(ensure_ascii=False), ], context_class=structlog.threadlocal.wrap_dict(dict), logger_factory=structlog.stdlib.LoggerFactory(), ...
26
66
0.699519
0
0
0
0
382
0.918269
0
0
0
0
d5aeb7169dd5488c77699e15ae16e978f40d715e
3,271
py
Python
lib/db_manager.py
kevin20888802/liang-medicine-line-bot-py
07f63759e63272460f5ecfb0ce8fd6ed62b50e1c
[ "Apache-2.0" ]
null
null
null
lib/db_manager.py
kevin20888802/liang-medicine-line-bot-py
07f63759e63272460f5ecfb0ce8fd6ed62b50e1c
[ "Apache-2.0" ]
null
null
null
lib/db_manager.py
kevin20888802/liang-medicine-line-bot-py
07f63759e63272460f5ecfb0ce8fd6ed62b50e1c
[ "Apache-2.0" ]
null
null
null
import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT import os import urllib.parse as urlparse class PostgresBaseManager: def __init__(self,local): self.database = 'postgres' self.user = 'postgres' self.password = '1234' self.host = 'localhost' self.p...
25.356589
68
0.595537
3,254
0.963577
0
0
0
0
0
0
1,416
0.419307
d5af5a629e72cd72e0929e6e0460c5c839714274
6,763
py
Python
bike/refactor/test_moveToModule.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
2
2020-05-29T06:31:53.000Z
2020-12-19T21:49:25.000Z
bike/refactor/test_moveToModule.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
null
null
null
bike/refactor/test_moveToModule.py
debiancn/bicyclerepair
dd054e802d6d8ad80baeccee0396da68144f2a26
[ "ICU" ]
null
null
null
#!/usr/bin/env python import setpath from bike.testutils import * from bike.transformer.save import save from moveToModule import * class TestMoveClass(BRMTestCase): def test_movesTheText(self): src1=trimLines(""" def before(): pass class TheClass: pass def after(): pas...
27.946281
70
0.530534
6,560
0.969984
0
0
0
0
0
0
2,452
0.362561
6334d71222020c31513865a447513d22aaed19c8
924
py
Python
src/ggrc_risks/migrations/versions/20170823162755_5aa9ec7105d1_add_test_plan_field.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_risks/migrations/versions/20170823162755_5aa9ec7105d1_add_test_plan_field.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_risks/migrations/versions/20170823162755_5aa9ec7105d1_add_test_plan_field.py
HLD/ggrc-core
9bdc0fc6ca9e252f4919db682d80e360d5581eb4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Add test_plan field Create Date: 2017-08-23 16:27:55.094736 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name import sqlalchemy as sa f...
25.666667
79
0.717532
0
0
0
0
0
0
0
0
546
0.590909
633670508ceec1cd4f56068d21ebd73c224ba536
16,818
py
Python
mem_mem/avgblk.py
3upperm2n/trans_kernel_model
72a9156fa35b5b5407173f6dbde685feb0a6a3f5
[ "MIT" ]
null
null
null
mem_mem/avgblk.py
3upperm2n/trans_kernel_model
72a9156fa35b5b5407173f6dbde685feb0a6a3f5
[ "MIT" ]
null
null
null
mem_mem/avgblk.py
3upperm2n/trans_kernel_model
72a9156fa35b5b5407173f6dbde685feb0a6a3f5
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from math import * import copy # deep copy objects from model_param import * #------------------------------------------------------------------------------ # Figure out when to launch another block for current kernel #------------------------------------------------------------...
43.012788
116
0.466821
0
0
0
0
0
0
0
0
6,210
0.369247
6336e1b7ec75cc9e6881dda4dff8c780539d97ab
4,322
py
Python
pychecktext/checktext_parser.py
da1910/pyCheckText
a00738aff3fa20c520343b3d12fa8c87a90e1c65
[ "MIT" ]
null
null
null
pychecktext/checktext_parser.py
da1910/pyCheckText
a00738aff3fa20c520343b3d12fa8c87a90e1c65
[ "MIT" ]
null
null
null
pychecktext/checktext_parser.py
da1910/pyCheckText
a00738aff3fa20c520343b3d12fa8c87a90e1c65
[ "MIT" ]
1
2020-06-05T14:56:10.000Z
2020-06-05T14:56:10.000Z
import _ast import ast from typing import Dict, Union import os from pychecktext import teamcity, teamcity_messages class CheckTextVisitor(ast.NodeVisitor): def __init__(self, aliases: Dict[str, str] = {}): self.literal_calls = [] self.expression_calls = [] self.aliases = aliases s...
39.651376
125
0.571726
2,522
0.583526
0
0
0
0
0
0
554
0.128181
633d6db47ffd3a0bfb75a0fe45f30235b4e37486
834
py
Python
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
2
2021-03-31T21:46:58.000Z
2021-04-04T08:59:50.000Z
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
null
null
null
Apriori/src/main.py
ranery/Courses-only
8bc1254076c75b55b536498037ff0594a951d18f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author : Haoran You """ import sys import data from Apriori import Apriori from optparse import OptionParser optparser = OptionParser() optparser.add_option('--inputFile', dest='input', help='filename containing csv', default='goods.csv') optparser.add_option('--minSupport', dest='minS', ...
30.888889
112
0.736211
0
0
0
0
0
0
0
0
281
0.33693
633d88c667ff815677d77f4463db3ccad4431980
8,791
py
Python
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
extra/slothclasses/agares.py
Tirithel/sloth-bot
de1f9cc60196d9cd389cdbf38223fa3c35f62eb4
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os from .player import Player from extra.menu import ConfirmSkill import os from datetime import datetime bots_and_commands_channel_id = int(os.getenv('BOTS_AND_COMMANDS_CHANNEL_ID')) class Agares(Player): emoji = '<:Agares:839497855621660693>' def __i...
46.760638
173
0.663406
8,554
0.972377
0
0
5,900
0.670683
7,743
0.880186
3,389
0.385245
633fea310c7ede3fcdb48e65d6529aca3feaa371
300
py
Python
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
15
2020-03-11T17:31:12.000Z
2021-11-19T03:26:09.000Z
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
5
2021-03-31T19:43:15.000Z
2022-03-12T00:18:38.000Z
WhatsAppManifest/automator/android/__init__.py
riquedev/WhatsAppManifest
bcbbd48f6f9152024a54172886876d3a725a3a62
[ "MIT" ]
4
2020-03-11T01:52:57.000Z
2021-03-16T04:14:33.000Z
""" Module responsible for all automation related to the device """ __author__ = 'Henrique da Silva Santos' __copyright__ = 'Copyright 2020, WhatsAppManifest' from WhatsAppManifest.automator.android.phone import AndroidPhone from WhatsAppManifest.automator.android.contacts import AndroidContacts
27.272727
71
0.826667
0
0
0
0
0
0
0
0
127
0.423333
6341b0389a7fba7d8c81d28e1d7d34cd6e28e72b
1,968
py
Python
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
24
2018-02-12T13:44:57.000Z
2021-12-16T09:49:54.000Z
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
4
2018-03-14T12:16:29.000Z
2021-12-22T12:03:23.000Z
threp_example.py
wasupandceacar/threp_fucker
d6879ce613e189131ff994a41d5d828a3e3b527d
[ "MIT" ]
3
2020-02-01T12:03:38.000Z
2021-12-15T18:02:32.000Z
from threp import THReplay if __name__ == '__main__': # 载入一个replay文件,参数为路径 tr = THReplay('rep_tst/th13_01.rpy') # 获取rep基本信息,包含机体,难度,通关情况,字符串 # etc. Reimu A Normal All print(tr.getBaseInfo()) # 获取rep基本信息的字典,包含机体,难度,通关情况,字符串 # 字典的键分别为 character shottype rank stage # etc. Reimu A Normal ...
28.521739
325
0.521341
0
0
0
0
0
0
0
0
2,393
0.804099
634233844cc354ce43c07fa8d4b0af235345aaef
901
py
Python
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
151
2019-11-10T02:18:25.000Z
2022-01-18T14:28:25.000Z
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
202
2019-11-09T16:27:19.000Z
2022-03-22T12:41:27.000Z
web/api/tests/test_health_check.py
marcelomansur/maria-quiteria
953ac1e2caf69e9f44c670d3c4a69e00fff404e4
[ "MIT" ]
69
2020-02-05T01:33:35.000Z
2022-03-30T10:39:27.000Z
import pytest from django.urls import reverse class TestHealthCheck: def test_return_success_when_accessing_health_check(self, api_client, url): response = api_client.get(url, format="json") assert response.status_code == 200 assert list(response.json().keys()) == ["status", "time"] ...
34.653846
83
0.702553
852
0.945616
0
0
283
0.314095
0
0
69
0.076582
63428481e47a4cce5e89935d6ef0c546574044b9
2,768
py
Python
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
87
2021-09-26T18:14:07.000Z
2022-03-28T08:22:24.000Z
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
15
2021-10-07T16:12:23.000Z
2022-03-20T21:04:40.000Z
examples/client-gen/tictactoe/types/game_state.py
kevinheavey/anchorpy
d4cc28365c6adaeaec7f5001fa6b8a3e719b41ad
[ "MIT" ]
16
2021-10-16T04:40:28.000Z
2022-03-18T16:49:40.000Z
from __future__ import annotations import typing from dataclasses import dataclass from solana.publickey import PublicKey from anchorpy.borsh_extension import EnumForCodegen, BorshPubkey import borsh_construct as borsh class WonJSONValue(typing.TypedDict): winner: str class WonValue(typing.TypedDict): winne...
21.292308
64
0.58237
1,370
0.494942
0
0
1,073
0.387645
0
0
293
0.105853
6342acf3483b4a05386806c72b9900a8869e9d07
1,196
py
Python
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
1
2019-04-12T01:23:17.000Z
2019-04-12T01:23:17.000Z
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
null
null
null
test/test_cli.py
yxmanfred/optimesh
b85f48d1559a51a01cc3df6214c61ca8ad5ed786
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import pytest import optimesh from helpers import download_mesh @pytest.mark.parametrize( "options", [ ["--method", "cpt-dp"], ["--method", "cpt-uniform-fp"], ["--method", "cpt-uniform-qn"], # ["--method", "cvt-uniform-lloyd"], ["--me...
24.916667
85
0.576923
0
0
0
0
867
0.724916
0
0
577
0.482441
6343d7c7cb482c3822a30210560f4a05a0ff2ffb
1,087
py
Python
stubs.min/System/Windows/Interop_parts/WindowInteropHelper.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Interop_parts/WindowInteropHelper.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Interop_parts/WindowInteropHelper.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class WindowInteropHelper(object): """ Assists interoperation between Windows Presentation Foundation (WPF) and Win32 code. WindowInteropHelper(window: Window) """ def EnsureHandle(self): """ EnsureHandle(self: WindowInteropHelper) -> IntPtr Creates the HWND of the window if the HWND has ...
30.194444
151
0.710212
1,083
0.992667
0
0
94
0.086159
0
0
787
0.721357
6344c1a546dfde9307cede5f7a6e9805a1f7479b
385
py
Python
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/src/lib/import.py
ramkrsna/openshift-ansible
fc96d8d22f6c277b599e6e2fa4e9cc06814a9460
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file # flake8: noqa ''' OpenShiftCLI class that wraps the oc commands in a subprocess ''' # pylint: disable=too-many-lines from __future__ import print_function import atexit import json import os import re import shutil import subprocess import tempfile # pylint: disable=import-error import ruamel.y...
20.263158
64
0.8
0
0
0
0
0
0
0
0
167
0.433766
6344f2d6da2847a70b255b03f0e6dc740b751d0e
1,025
py
Python
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/bam/t/test_stats.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ''' Tests for bamutils stats ''' import os import unittest import ngsutils.bam import ngsutils.bam.stats class StatsTest(unittest.TestCase): def setUp(self): self.bam = ngsutils.bam.bam_open(os.path.join(os.path.dirname(__file__), 'test.bam')) def tearDown(self): self....
27.702703
93
0.660488
845
0.82439
0
0
0
0
0
0
187
0.182439
6345129d5bc1da3f7a4ddae9ce0115d6922c7000
2,042
py
Python
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
1
2022-02-24T21:25:02.000Z
2022-02-24T21:25:02.000Z
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
null
null
null
test/gcp/test_gcs.py
bavard-ai/bavard-ml-utils
00b6575d5c74c66f57ca1da753b91d3ceef6d1e4
[ "MIT" ]
null
null
null
from unittest import TestCase from bavard_ml_utils.gcp.gcs import GCSClient from test.utils import DirSpec, FileSpec class TestGCSClient(TestCase): test_data_spec = DirSpec( path="gcs-test", children=[ FileSpec(path="test-file.txt", content="This is a test."), FileSpec(pat...
36.464286
105
0.658668
1,921
0.940744
0
0
236
0.115573
0
0
520
0.254652
63456d2b7e536035a7766de0ff9f77efbb0f499a
357
py
Python
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
utils.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
# Peter Kowalsky - 10.06.19 import os def check_if_file_exists(path): exists = os.path.isfile(path) if exists: return 1 else: return 0 def list_all_files_in_dir(path, type): files = [] # r=root, d=directories, f = files for r, d, f in os.walk(path): for file in f: if type in file: ...
17.85
38
0.638655
0
0
0
0
0
0
0
0
61
0.170868
63468acc0ac6a4997496eeb95bb3c0c24a04aa45
2,746
py
Python
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
formain.py
GenBill/Maple_2K
e82df2c2d549d91a1d53cc8b8b688949a5280792
[ "MIT" ]
null
null
null
from fim_mission import * import torch import torch.nn as nn import torch.nn.parallel import torch.nn.functional as F import torch.backends.cudnn as cudnn import torch.optim as optim from torch.optim import lr_scheduler import torchvision.transforms as transforms from torchvision import datasets, models import matplo...
32.305882
84
0.633285
0
0
0
0
0
0
0
0
1,929
0.702476
6346bc83f256deb2c811a42a3cf69e8067d988ea
4,337
py
Python
sleep_staging_methods/multitaper/train_8m.py
GuanLab/DeepSleep
220ae1348aaaba115b82d89a9a5ab5bb6f569062
[ "MIT" ]
27
2019-04-26T21:12:52.000Z
2022-03-13T15:51:18.000Z
sleep_staging_methods/multitaper/train_8m.py
Hongyang449/DeepSleep
f779e050e4ad1ba7b96ddf0c9aef421770bbbd53
[ "MIT" ]
3
2021-07-20T15:35:07.000Z
2021-11-12T15:35:52.000Z
sleep_staging_methods/multitaper/train_8m.py
GuanLab/DeepSleep
220ae1348aaaba115b82d89a9a5ab5bb6f569062
[ "MIT" ]
9
2019-06-12T20:10:24.000Z
2021-12-08T12:45:36.000Z
from __future__ import print_function import os import sys import numpy as np from keras.models import Model from keras.layers import Input, concatenate, Conv1D, MaxPooling1D, Conv2DTranspose,Lambda from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint from keras import backend as K import tens...
32.609023
93
0.685958
0
0
1,228
0.283145
0
0
0
0
1,122
0.258704
6346c2addc2cf35274df3428a19c76028b86eba4
252
py
Python
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
2
2022-02-15T19:18:12.000Z
2022-02-16T08:06:20.000Z
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
null
null
null
Sprachanalyse/versuch.py
DemonicStorm/LitBlogRepo
0fe436071840f3b9af59f4363967cfc6eb397865
[ "MIT" ]
null
null
null
import spacy from spacy_langdetect import LanguageDetector import en_core_web_sm from glob import glob nlp = en_core_web_sm.load() #nlp = spacy.load('en') nlp.add_pipe(LanguageDetector(), name='language_detector', last=True) print(LanguageDetector)
21
69
0.805556
0
0
0
0
0
0
0
0
42
0.166667
63494cbde2d85460ac5f8725fc7d01e2aee00fe5
43,623
py
Python
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
usr/lib/tuquito/tuquito-software-manager/widgets/pathbar2.py
emmilinuxorg/emmi-aplicativos
ae84dcc8b9441dd6c735f70a9b1a8ec91871955d
[ "MIT" ]
null
null
null
# Copyright (C) 2009 Matthew McGowan # # Authors: # Matthew McGowan # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
30.763752
86
0.562799
42,713
0.979139
0
0
0
0
0
0
5,695
0.13055
6349977120b1f7e73c34cb0ef18c1955caa9b170
5,971
py
Python
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/rmtest/disposableredis/__init__.py
nuruddinsayeed/ru102py
ef43464a93dd74e24f9447ed5014acb35b9a650e
[ "MIT" ]
null
null
null
import subprocess import socket import redis import time import os import os.path import sys import warnings import random REDIS_DEBUGGER = os.environ.get('REDIS_DEBUGGER', None) REDIS_SHOW_OUTPUT = int(os.environ.get( 'REDIS_VERBOSE', 1 if REDIS_DEBUGGER else 0)) def get_random_port(): while True: ...
28.433333
80
0.54212
5,412
0.906381
98
0.016413
0
0
0
0
1,126
0.188578
634aec23f0d6252efab55e311a6bc96d9c7f0eb3
16,843
py
Python
disco_aws_automation/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
disco_aws_automation/disco_autoscale.py
Angakkuq/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
4
2016-03-22T17:04:04.000Z
2016-03-23T18:03:45.000Z
disco_aws_automation/disco_autoscale.py
Angakkuit/asiaq-aws
f7ddec9fc60aef685f372cbaefee2b08ae18b6a0
[ "BSD-2-Clause" ]
null
null
null
'''Contains DiscoAutoscale class that orchestrates AWS Autoscaling''' import logging import random import boto import boto.ec2 import boto.ec2.autoscale import boto.ec2.autoscale.launchconfig import boto.ec2.autoscale.group from boto.ec2.autoscale.policy import ScalingPolicy from boto.exception import BotoServerError ...
46.271978
110
0.657543
16,399
0.973639
1,484
0.088108
877
0.052069
0
0
2,889
0.171525
634b0fccab27c3552b1794373b64b0eabd3f0b1b
17,621
py
Python
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
rrlfd/residual/train.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 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...
43.616337
80
0.684524
0
0
0
0
0
0
0
0
6,925
0.392997
634b7d80c5c9288d78d5d9a43bb5596a0c00f3ab
438
py
Python
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
doc/python_study_code/fibc.py
beiliwenxiao/vimrc
eb38fc769f3f5f78000060dac674b5c49d63c24c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 __metaclass__ = type class Fibs: """docstring for Fibc""" def __init__(self): self.a = 0 self.b = 1 def next(self): self.a, self.b = self.b, self.a+self.b return self.a def __iter__(self): return self fibs = Fibs() for f in f...
19.043478
46
0.561644
235
0.53653
0
0
0
0
0
0
76
0.173516
634dbb7f297045c79fe90538f214e33393d57c93
517
py
Python
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
59
2019-10-03T07:02:22.000Z
2021-09-30T18:24:10.000Z
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
94
2019-10-03T06:58:50.000Z
2020-09-30T08:08:45.000Z
Python/turtle_drawer_seanyboi.py
nskesav/Hacktoberfest-Beginner-level
7f834acb0fd3d4556fb2696a2a7d1e82307f0baf
[ "MIT" ]
267
2019-10-03T07:09:30.000Z
2021-09-30T18:24:11.000Z
# draws a shape and fills with a colour import turtle import math import colorsys phi = 180 * (3 - math.sqrt(5)) # initialises the turtle Pen t = turtle.Pen() t.speed() # defines the shape to be drawn def square(t, size): for tmp in range(0,4): t.forward(size) t.right(90) num = 200 for x in reversed(range(0, ...
15.666667
50
0.667311
0
0
0
0
0
0
0
0
113
0.218569
634f60b0c83c6e710d6ef16e4bf19157169871cf
12,073
py
Python
mininext/util.py
vikaskamath/miniNExT
6dcf959eec26df50787099a3913a492ba0b35756
[ "MIT" ]
36
2015-02-02T15:02:15.000Z
2022-01-14T22:54:58.000Z
mininext/util.py
RS1999ent/miniNExT_evolvability
1328ea38db507598a430e9f8b547dce06a4374bb
[ "MIT" ]
15
2015-02-21T09:05:13.000Z
2021-08-31T13:04:00.000Z
mininext/util.py
RS1999ent/miniNExT_evolvability
1328ea38db507598a430e9f8b547dce06a4374bb
[ "MIT" ]
29
2015-02-27T02:33:00.000Z
2021-11-21T12:15:31.000Z
""" Additional utilities and patches for MiniNExT. """ from os.path import isdir import os import pwd import grp import shutil from mininet.util import quietRun from mininext.mount import ObjectPermissions # Patches # def isShellBuiltin(cmd): """Override to replace MiniNExT's existing isShellBuiltin() function...
33.350829
79
0.629173
3,883
0.321627
0
0
0
0
0
0
4,355
0.360722
634f8edffeec0c94f327111a1a56115127590074
2,575
py
Python
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
8
2017-02-19T00:24:24.000Z
2021-02-08T23:52:42.000Z
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
4
2015-01-19T08:09:07.000Z
2018-09-11T21:57:06.000Z
volaupload/utils.py
RealDolos/volaupload
9705bbc4fcd1dbc59abde092ee48dce1cb0bd3e5
[ "MIT" ]
2
2015-12-19T11:04:48.000Z
2017-04-20T12:55:33.000Z
""" RealDolos' funky volafile upload tool""" # pylint: disable=broad-except import math import re import sys # pylint: disable=no-name-in-module try: from os import posix_fadvise, POSIX_FADV_WILLNEED except ImportError: def posix_fadvise(*args, **kw): """Mock implementation for systems not supporting...
26.010101
74
0.568155
0
0
0
0
0
0
0
0
802
0.311215
63530b2bd1708f0bb4a3378fe01c2c5c65a9b0bc
3,801
py
Python
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
1
2019-08-01T00:28:24.000Z
2019-08-01T00:28:24.000Z
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
4
2018-08-31T14:14:35.000Z
2021-10-11T12:53:13.000Z
openquake/hazardlib/tests/source/non_parametric_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
3
2018-08-31T14:11:00.000Z
2019-07-17T10:06:02.000Z
# The Hazard Library # Copyright (C) 2013-2018 GEM Foundation # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. #...
40.43617
78
0.675612
1,606
0.42252
0
0
0
0
0
0
806
0.212049
6353fd03f408a3e420c9272508ec8a75165d4ec5
2,395
py
Python
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
tmc/config.py
jgke/tmc.py
a061d199ecce0274c1fa554fb065e13647d9862b
[ "MIT" ]
null
null
null
import os from os import path, environ from configparser import ConfigParser from collections import OrderedDict class Config(object): """ This class will take care of ConfigParser and writing / reading the configuration. TODO: What to do when there are more variables to be configured? Should we ...
31.513158
78
0.622547
2,278
0.951148
0
0
0
0
0
0
647
0.270146
635559b738e5f1db17c5a1b948064af180ddd5b4
819
py
Python
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
1
2020-05-20T03:47:01.000Z
2020-05-20T03:47:01.000Z
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
null
null
null
code/main.py
RoshanTanisha/covid19
cdea60b84b2232e84efa0803a9b633d938247590
[ "MIT" ]
null
null
null
import h5py import numpy as np from code.model import UNetClassifier def load_dataset(covid_file_path, normal_file_path): covid = h5py.File(covid_file_path, 'r')['covid'] normal = h5py.File(normal_file_path, 'r')['normal'] all_images = np.expand_dims(np.concatenate([covid, normal]), axis=3) all_labe...
27.3
76
0.708181
0
0
0
0
0
0
0
0
31
0.037851
6355c736188798e18f8ebe25d3c958a69c9cea68
54,947
py
Python
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
4
2020-07-22T16:10:55.000Z
2021-11-25T08:32:34.000Z
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
null
null
null
main.py
openmindednewby/Tool-for-creating-lip-recognition-datasets
d8bd97cfa112e8e2fb1f4cca20a7093493e3ed9d
[ "MIT" ]
2
2020-12-30T22:07:54.000Z
2021-02-02T01:12:13.000Z
''' Every type you encounter ##EDIT_ME## you will need to adjust these settings ''' import pandas as pd import numpy as np import module_youtube_extract import module_convert_audio_to_wav import module_process_subtitles import module_save_variables import module_video_processing import module_sample_name import module_...
70.80799
1,331
0.834804
0
0
0
0
0
0
0
0
18,804
0.342221
63561f96997f9bab466f2fe72890e847cd62196a
9,462
py
Python
datmo/core/storage/local/dal.py
awesome-archive/datmo
72ea51c28a9947e24a464395bb0136b39eb6001a
[ "Apache-2.0" ]
331
2018-03-30T14:33:59.000Z
2022-01-10T19:43:32.000Z
datmo/core/storage/local/dal.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
274
2018-04-08T17:12:44.000Z
2020-07-29T02:45:22.000Z
datmo/core/storage/local/dal.py
KIMS-Github/datmo
a456d196006b67ce56af96cb4900682eab747bef
[ "MIT" ]
28
2018-05-03T21:57:22.000Z
2020-12-31T04:18:42.000Z
import os from kids.cache import cache from datetime import datetime from datmo.core.util.i18n import get as __ from datmo.core.entity.model import Model from datmo.core.entity.code import Code from datmo.core.entity.environment import Environment from datmo.core.entity.file_collection import FileCollection from datmo...
29.84858
123
0.629148
8,603
0.909216
0
0
3,031
0.320334
0
0
3,181
0.336187
635954cccfa45bc4cb0b41a99fdee38be3ae1775
358
py
Python
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-07-05T16:32:14.000Z
2021-07-05T16:32:14.000Z
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
null
null
null
CodeForces/StonesOnTheTable/StonesonTheTable.py
GeorgianBadita/algorithmic-problems
6b260050b7a1768b5e47a1d7d4ef7138a52db210
[ "MIT" ]
1
2021-05-14T15:40:09.000Z
2021-05-14T15:40:09.000Z
def main(): _ = input() string = input() if _ == 0 or _ == 1: return 0 if _ == 2: if string[0] == string[1]: return 1 return 0 last = string[0] cnt = 0 for i in range(1, len(string)): if string[i] == last: cnt += 1 last = str...
15.565217
35
0.432961
0
0
0
0
0
0
0
0
0
0
635a1b194d242f8ac83aa8d4f19dfd8d49c42b24
573
py
Python
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
app/routes.py
valtemirprocopio/forms
05d819aad3d8c32c87b0f62a3c8e2b6fda8aa26e
[ "MIT" ]
null
null
null
from app import app from flask import render_template, flash, redirect, url_for from app.forms import LoginForm @app.route('/') @app.route('/index') def index(): return render_template('index.html') @app.route('/contato', methods=['GET','POST']) def contato(): form = LoginForm() if form.validate_on_submit...
22.92
63
0.678883
0
0
0
0
443
0.773124
0
0
129
0.225131
635c827babc0af053e69c6189ed75cae75ad2a0f
336
py
Python
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
4
2021-04-23T06:16:52.000Z
2022-01-03T14:36:51.000Z
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
9
2021-04-12T02:56:35.000Z
2021-06-19T00:43:04.000Z
Python/Math/Armstrong-Number/armstrong-number.py
manoj-paramsetti-testing/Algorithm-Warehouse
89c41146a1c444605830016319e00c343fdbe154
[ "MIT" ]
2
2021-04-13T06:09:04.000Z
2021-04-13T10:59:15.000Z
num = int(input("Enter a number: ")) sum = 0; size = 0; temp = num; temp2 = num while(temp2!=0): size += 1 temp2 = int(temp2/10) while(temp!=0): remainder = temp%10 sum += remainder**size temp = int(temp/10) if(sum == num): print("It's an armstrong number") else: print("It's not an arms...
17.684211
42
0.58631
0
0
0
0
0
0
0
0
74
0.220238
635cce5473f8750091e7f18d6db45331eaca5c07
174,251
py
Python
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
4
2019-12-21T20:50:43.000Z
2021-12-01T20:57:38.000Z
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
103
2019-12-09T22:03:16.000Z
2022-03-30T17:07:34.000Z
sdk/python/pulumi_spotinst/aws/mr_scalar.py
pulumi/pulumi-spotinst
75592d6293d63f6cec703722f2e02ff1fb1cca44
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
52.88346
338
0.679738
173,787
0.997337
0
0
161,702
0.927983
0
0
84,111
0.4827
6361591f69d6d58dde012798f78f229535fcd8bf
4,189
py
Python
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/mines/variances/resources/variance_document_upload.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
import base64 import requests from werkzeug.exceptions import BadRequest, NotFound from flask import request, current_app, Response from flask_restplus import Resource from app.extensions import api from ...mine.models.mine import Mine from ....documents.mines.models.mine_document import MineDocument from ....documen...
39.518868
95
0.681308
3,444
0.822153
0
0
2,973
0.709716
0
0
914
0.21819
63625b735919dfc4cb5cbf688dbf97a5a8eb7672
2,709
py
Python
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/data_pipeline.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
from . import * class AWS_DataPipeline_Pipeline_ParameterAttribute(CloudFormationProperty): def write(self, w): with w.block("parameter_attribute"): self.property(w, "Key", "key", StringValueConverter()) self.property(w, "StringValue", "string_value", StringValueConverter()) class AWS_DataPipeline_...
42.328125
132
0.741602
2,671
0.985973
0
0
0
0
0
0
640
0.23625
63644d194b8d4b983a5942a1f10e9cd725bc6bed
2,295
py
Python
rl_algorithms/utils/config.py
medipixel/rl_algorithms
96bceb9d65c6d66fca59c4115cd7947f87b87ebc
[ "MIT" ]
466
2019-02-14T15:06:01.000Z
2022-03-28T03:08:10.000Z
rl_algorithms/utils/config.py
blakcapple/rl_algorithms
96bceb9d65c6d66fca59c4115cd7947f87b87ebc
[ "MIT" ]
138
2019-02-15T05:44:17.000Z
2021-12-15T06:00:55.000Z
rl_algorithms/utils/config.py
medipixel/reinforcement_learning_examples
c5f7d1d60dcefb3050d75c5c657207183bd8db65
[ "MIT" ]
86
2019-02-25T15:52:29.000Z
2022-03-08T06:30:36.000Z
import collections.abc as collections_abc import os.path as osp from addict import Dict import yaml class ConfigDict(Dict): def __missing__(self, name): raise KeyError(name) def __getattr__(self, name): try: value = super(ConfigDict, self).__getattr__(name) except KeyErro...
30.6
79
0.568192
1,419
0.618301
0
0
394
0.171678
0
0
216
0.094118
63645da097f4e87f2edd1db2b89287cf483492a1
7,748
py
Python
elit/components/amr/amr_parser/amr_graph.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
40
2017-02-27T20:16:44.000Z
2022-03-25T04:58:01.000Z
elit/components/amr/amr_parser/amr_graph.py
emorynlp/el
dbe73d1ce6f2296a64fb013775d2691ae1ed90d4
[ "Apache-2.0" ]
12
2017-02-16T23:50:38.000Z
2022-01-19T21:29:59.000Z
elit/components/amr/amr_parser/amr_graph.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
6
2017-05-05T08:02:18.000Z
2021-11-03T23:47:23.000Z
# MIT License # # Copyright (c) 2020 Deng Cai # # 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.934673
116
0.576278
5,800
0.74858
0
0
0
0
0
0
1,732
0.223542
636a9b71316125fb79b3ddc33da9e14bd47d75ca
5,252
py
Python
passage/preprocessing.py
vishalbelsare/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
597
2015-01-15T19:23:32.000Z
2021-08-29T17:53:22.000Z
passage/preprocessing.py
v-mk-s/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
34
2015-01-22T13:50:21.000Z
2018-06-13T14:58:45.000Z
passage/preprocessing.py
v-mk-s/Passage
af6e100804dfe332c88bd2cd192e93a807377887
[ "MIT" ]
152
2015-01-17T02:19:22.000Z
2022-02-05T15:10:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import string from collections import Counter import numpy as np import theano import theano.tensor as T punctuation = set(string.punctuation) punctuation.add('\n') punctuation.add('\t') punctuation.add(u'’') punctuation.add(u'‘') punctuation.add(u'“') punctuation.add(u'”...
30.894118
98
0.592917
3,074
0.5843
0
0
0
0
0
0
947
0.180004
636d48cb9b81c8aa18e1903f64ee3f997f6ae04e
155
py
Python
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
agendamentos/apps.py
afnmachado/univesp_pi_1
e6f2b545faaf53d14d17f751d2fb32e6618885b7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AgendamentoConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'agendamentos'
22.142857
56
0.774194
118
0.76129
0
0
0
0
0
0
45
0.290323
636de814ecdedb3663dd101d8eaad27c3d18f26b
3,443
py
Python
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
app/mods/calculator.py
MzB-Teaching/calculator
2de5f554a6cfb4a5f4047c7779b29808563d99bb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """This is a simple python3 calculator for demonstration purposes some to-do's but we'll get to that""" __author__ = "Sebastian Meier zu Biesen" __copyright__ = "2000-2019 by MzB Solutions" __email__ = "smzb@mitos-kalandiel.me" class Calculator(object): @property def isDebug(self): ...
24.949275
65
0.577984
3,188
0.925937
0
0
1,175
0.341272
0
0
767
0.222771
636ec0c0514935bf57f2ac6d68a3f04a9e9ec222
1,001
py
Python
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
null
null
null
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
null
null
null
tcp_syn_flood.py
r3k4t/tcp_syn_flood
b0ccf8199ea9253ad882afb505071e9d01693be8
[ "MIT" ]
1
2021-08-08T09:07:31.000Z
2021-08-08T09:07:31.000Z
import os import sys import time import pyfiglet from scapy.all import* os.system("clear") print (chr(27)+"[36m") import pyfiglet banner = pyfiglet.figlet_format("Tcp Syn Flood",font="slant") print (banner) print (chr(27)+"[33m") print (" Author : Rahat Khan Tusar(RKT)") print (" Github...
16.966102
61
0.597403
0
0
0
0
0
0
0
0
335
0.334665
636ed44c67488a2bf87f694de36be6eb15ddd7e0
1,957
py
Python
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
264
2015-02-20T11:11:51.000Z
2022-03-28T06:44:00.000Z
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-22T19:31:27.000Z
2022-03-25T17:21:42.000Z
tests/test_models.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-23T22:10:55.000Z
2022-01-21T05:02:32.000Z
import pickle import numpy as np from numpy.testing import assert_array_almost_equal, assert_array_equal import pytest from oddt.scoring.models import classifiers, regressors @pytest.mark.filterwarnings('ignore:Stochastic Optimizer') @pytest.mark.parametrize('cls', [classifiers.svm(probabil...
31.564516
80
0.599898
0
0
0
0
1,774
0.90649
0
0
83
0.042412
636f4efb035fdaa64cb9b8922b6256a38b910e41
9,570
py
Python
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
3
2020-01-23T22:23:08.000Z
2020-10-12T20:02:16.000Z
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
1
2019-10-28T05:53:08.000Z
2019-10-28T05:53:08.000Z
data/fech_data.py
wangjiehui11235/panther
cf1ca2f0c7107c5cdacf2f7ff4002d43427d9b07
[ "Apache-2.0" ]
9
2019-08-21T07:48:32.000Z
2020-04-04T09:17:54.000Z
# -*- coding: utf-8 -*- import pdb, six, importlib import pandas as pd from PyFin.api import makeSchedule, BizDayConventions from sqlalchemy import create_engine, select, and_, or_ from utilities.singleton import Singleton import sys sys.path.append('..') import config # 连接句柄 @six.add_metaclass(Singleton) class SQLE...
42.914798
116
0.646186
9,032
0.942994
0
0
344
0.035916
0
0
485
0.050637
636fae94296d077704f838d5bc8a253de68b535f
549
py
Python
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
models/collaborator.py
phil-lopreiato/frc-notebook-server
35e79dbcca45f0257a138ca2834b0b6e57b814f1
[ "MIT" ]
null
null
null
from google.appengine.ext import ndb class Collaborator(ndb.Model): """ Represents collab relationship at events Notifications will only be sent if both the sender and receiver have shared with each other """ srcUserId = ndb.StringProperty(required=True) dstUserId = ndb.StringProperty(req...
30.5
64
0.744991
509
0.92714
0
0
0
0
0
0
156
0.284153
6371f69bd422691fe8339fc5e5157ce5b0079115
327
py
Python
genomics_geek/graphql/mixins.py
genomics-geek/genomics-geek.com
ba24be4a0e3d569859a5378d4e7054d58c88728e
[ "MIT" ]
null
null
null
genomics_geek/graphql/mixins.py
genomics-geek/genomics-geek.com
ba24be4a0e3d569859a5378d4e7054d58c88728e
[ "MIT" ]
2
2018-10-15T20:37:03.000Z
2018-10-15T20:37:21.000Z
earsie_eats_blog/graphql/mixins.py
genomics-geek/earsie-eats.com
b2d1e6626daa44b5e03198bdc9362758803fd3ee
[ "MIT" ]
1
2019-05-16T03:54:21.000Z
2019-05-16T03:54:21.000Z
from graphene import Int from .decorators import require_authenication class PrimaryKeyMixin(object): pk = Int(source='pk') class LoginRequiredMixin(object): @classmethod @require_authenication(info_position=1) def get_node(cls, info, id): return super(LoginRequiredMixin, cls).get_node(inf...
20.4375
64
0.740061
249
0.761468
0
0
154
0.470948
0
0
4
0.012232
637274d6c48599470c2d5a70eb69d9b7d03629a5
1,237
py
Python
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/flag_priority_codes.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["FlagPriorityCodes"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class FlagPriorityCodes: """ Flag Priority Codes This value set is provided a...
19.030769
86
0.606306
1,006
0.813258
0
0
0
0
0
0
713
0.576395
63740319cbdd9993b7493ee891f9371a9c6e02c1
256
py
Python
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/src/source_collectors/sonarqube/duplicated_lines.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""SonarQube duplicated lines collector.""" from .base import SonarQubeMetricsBaseClass class SonarQubeDuplicatedLines(SonarQubeMetricsBaseClass): """SonarQube duplicated lines collector.""" valueKey = "duplicated_lines" totalKey = "lines"
23.272727
58
0.765625
164
0.640625
0
0
0
0
0
0
111
0.433594
63763ebb1e4d5814f4a75ddf0793dd74b59fa669
370
py
Python
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
myapp/migrations/0002_studentmodel_dob.py
RajapandiR/Student
b0da4a04394381fda52f75234f6347c43958454a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-23 16:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.AddField( model_name='studentmodel', name='DOB', fi...
19.473684
47
0.581081
277
0.748649
0
0
0
0
0
0
87
0.235135
63783927c365abff6927c69ef8abf31d89e8cbab
6,159
py
Python
sl_cutscenes/camera.py
AIS-Bonn/sl-cutscenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
2
2022-03-25T08:24:10.000Z
2022-03-29T09:06:47.000Z
sl_cutscenes/camera.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
sl_cutscenes/camera.py
AIS-Bonn/sl-scenes
d50128b86a9c808cbe5943e737a4974f0a8d3982
[ "MIT" ]
null
null
null
import numpy as np import torch from typing import List from sl_cutscenes.constants import SCENARIO_DEFAULTS from sl_cutscenes.utils.camera_utils import ConstFunc, LinFunc, LinFuncOnce, SinFunc, TanhFunc camera_movement_constraints = SCENARIO_DEFAULTS["camera_movement"] class Camera(object): ''' The camera o...
45.962687
119
0.670401
5,884
0.95535
0
0
867
0.14077
0
0
1,156
0.187693
63785e4a628f813a35572751a22a0fef1e469f30
23,016
py
Python
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
dpoll/polls/views.py
tymmesyde/dpoll.xyz
d3b6b204026f05b3b7a8e0baccf23dee6a41d679
[ "MIT" ]
null
null
null
import copy import uuid import json from datetime import timedelta from dateutil.parser import parse from django.conf import settings from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.views import auth_logout from django.core.paginator import Paginator fro...
30.728972
87
0.60849
0
0
0
0
1,433
0.062261
0
0
4,437
0.192779
637b49097674b4c3f8587181a185a473471f7b03
2,251
py
Python
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
66
2019-01-14T08:39:52.000Z
2022-01-06T11:39:15.000Z
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
228
2019-01-16T15:42:44.000Z
2022-02-05T07:48:07.000Z
e2e/Tests/Merit/MultiplePacketsTest.py
kayabaNerve/Currency
260ebc20f1704f42ad6183fee39ad58ec6d07961
[ "CC0-1.0" ]
19
2019-01-14T08:53:04.000Z
2021-11-03T20:19:28.000Z
#Tests that blocks can't have multiple verification packets for the same transaction. from typing import Dict, Any import json from pytest import raises from e2e.Libs.Minisketch import Sketch from e2e.Classes.Transactions.Data import Data from e2e.Classes.Consensus.VerificationPacket import VerificationPacket from e...
32.623188
92
0.702355
0
0
0
0
0
0
0
0
469
0.208352
637c926e9fd9828afed3a289b40e1b60ecb64afd
2,891
py
Python
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
skworkorders/test_websocket.py
ZhaoUncle/skstack
9e00305f50fdd60125ec37884247b94b70a9020c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 2018年4月17日 @author: encodingl ''' from django.shortcuts import render #from dwebsocket.decorators import accept_websocket, require_websocket from django.http import HttpResponse import paramiko from django.contrib.auth.decorators import login_required ...
26.522936
99
0.625735
310
0.104483
0
0
198
0.066734
0
0
645
0.217391
637cc4770c5d2eb1b7ce98fc871fe7b1224b66d6
9,482
py
Python
src/Analyse/views.py
Hash-It-Out/MeetingMinutes
73fc4650ca2bacba09ab3d6c0134f175025342d8
[ "Apache-2.0" ]
3
2021-03-14T23:35:59.000Z
2021-12-16T12:28:40.000Z
src/Analyse/views.py
Hack-Overflow/HackOverflow
cff0a50c794e2c70ca65be8a8b9c7420e7a1927c
[ "Apache-2.0" ]
null
null
null
src/Analyse/views.py
Hack-Overflow/HackOverflow
cff0a50c794e2c70ca65be8a8b9c7420e7a1927c
[ "Apache-2.0" ]
2
2018-10-06T06:18:22.000Z
2018-10-06T17:51:39.000Z
from __future__ import print_function from django.shortcuts import render from django.http import HttpResponse, Http404, HttpResponseRedirect from django.contrib.auth import get_user_model import os from django.core.mail import send_mail import nltk from nltk.tokenize import sent_tokenize, word_tokenize from nltk.st...
28.053254
133
0.640793
0
0
0
0
0
0
0
0
2,476
0.261126
637cdb4f017832b717342e2928773f70e1670584
316
py
Python
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh01p01st07TASK07_20210205_print.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
''' Напишите программу, которая объявляет переменную: "name" и присваивает ей значение "Python". Программа должна напечатать в одну строку, разделяя пробелами: Строку "name" Значение переменной "name" Число 3 Число 8.5 Sample Input: Sample Output: name Python 3 8.5 ''' name = 'Python' print('name', name, 3, 8.5)
19.75
92
0.743671
0
0
0
0
0
0
0
0
437
0.933761
637e1e9bf118d9a1429a4df90953398c25b3dbcc
24,568
py
Python
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
1
2022-03-08T05:59:17.000Z
2022-03-08T05:59:17.000Z
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
null
null
null
cross_loss_influence/helpers/influence_function.py
CORE-Robotics-Lab/Cross_Loss_Influence_Functions
6f0fa45f8896cd6c238c143eca6ddebef97b642c
[ "MIT" ]
null
null
null
# Created by Andrew Silva # Extensions to https://github.com/nimarb/pytorch_influence_functions import torch import time import datetime import numpy as np import copy import logging from torch.autograd import grad import random from cross_loss_influence.helpers.bolukbasi_prior_work.prior_pca_debiasing import extract_...
46.26742
124
0.591379
0
0
0
0
0
0
0
0
8,921
0.363115
637fe0e94faeee830062160453c7c20c39eeaafb
6,189
py
Python
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
tests/test_rtfit_dumps.py
ndraeger/rt1
8cf30a3b3604b78b1422388e479b28c921d01c09
[ "Apache-2.0" ]
null
null
null
""" Test the fits-module by loading a dumped rtfits result and performing all actions again """ import unittest import numpy as np import cloudpickle import matplotlib.pyplot as plt import copy import os class TestDUMPS(unittest.TestCase): def setUp(self): self.sig0_dB_path = os.path.dirname(__file__) + ...
40.45098
108
0.487801
5,932
0.958475
0
0
0
0
0
0
1,545
0.249636
637feac03a2aafd17dc15fa959b7227bdea86a08
3,234
py
Python
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
1
2021-05-31T08:43:06.000Z
2021-05-31T08:43:06.000Z
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
2
2021-05-27T09:21:52.000Z
2021-06-09T21:35:26.000Z
tests/test_bus_model.py
romainsacchi/carculator_bus
5db105db4223b2f58509fa19b1fccafa16313458
[ "BSD-3-Clause" ]
1
2021-05-31T08:43:12.000Z
2021-05-31T08:43:12.000Z
import numpy as np from carculator_bus import * tip = BusInputParameters() tip.static() _, array = fill_xarray_from_input_parameters(tip) tm = BusModel(array, country="CH") tm.set_all() def test_presence_PHEVe(): # PHEV-e should be dropped assert "PHEV-e" not in tm.array.powertrain.values.tolist() def tes...
28.368421
104
0.624613
0
0
0
0
0
0
0
0
1,268
0.392084
6380b2f2030ee551fa4870964c341464ca8bdcf7
2,828
py
Python
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
Ej-Lab8-MoisesSanjurjo-UO270824/ejercicio2-MoisesSanjurjo-UO270824.py
moiSS00/CN
1e30b43ee2167d15fbc8c472ff9637c2b920c3d4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Ejercicio 2: Aproximación numérica de orden 1 y de orden 2 de la derivada de la función f(x) = 1/x. """ import numpy as np import matplotlib.pyplot as plt # Función f(x)= 1/x y su derivada f' f = lambda x:1/x # función f df = lambda x:(-1)/x**2 # derivada exacta f' #-----------...
43.507692
110
0.631542
0
0
0
0
0
0
0
0
2,017
0.708465
6381338cf437e2f23817a23137a8ed44d42f412e
1,982
py
Python
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
null
null
null
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
2
2021-05-25T09:18:32.000Z
2021-07-02T10:14:29.000Z
examples/multi_client_example.py
ondewo/ondewo-csi-client-python
5ba00402d7d28374f49eb485dd6ed661ebc446f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Copyright 2021 ONDEWO GmbH # # 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 ap...
41.291667
108
0.799697
0
0
0
0
0
0
0
0
866
0.436932
63819767d87fb2523fcafd5031ccca5b56c6122d
4,149
py
Python
chrome/tools/extract_actions.py
zachlatta/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2021-09-24T22:49:10.000Z
2021-09-24T22:49:10.000Z
chrome/tools/extract_actions.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
chrome/tools/extract_actions.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright 2007 Google Inc. All rights reserved. """Extract UserMetrics "actions" strings from the Chrome source. This program generates the list of known actions we expect to see in the user behavior logs. It walks the Chrome source, looking for calls to UserMetrics functions, extracting actions...
33.192
78
0.699446
0
0
0
0
0
0
0
0
2,249
0.542058
6381feead03b8bd48b3416770eed49408794f57c
1,817
py
Python
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
11
2016-09-06T09:59:29.000Z
2021-10-02T07:24:07.000Z
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
5
2017-10-16T06:47:14.000Z
2020-07-06T07:20:13.000Z
hamgr/bin/hamgr-manage.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
3
2016-09-01T06:20:51.000Z
2017-10-16T02:27:07.000Z
#!/bin/env python # Copyright (c) 2019 Platform9 Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.036364
74
0.698954
0
0
0
0
0
0
0
0
880
0.484315
638271269c493149415ea03cdea0dc60c36a233d
2,898
py
Python
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
src/nerb/named_entities.py
johnnygreco/nerb
1ea395bade7d58b176c965d062987284a2d6f590
[ "MIT" ]
null
null
null
from __future__ import annotations # Standard library import re from copy import deepcopy from dataclasses import dataclass from typing import Callable, Optional __all__ = ['NamedEntity', 'NamedEntityList'] @dataclass(frozen=True) class NamedEntity: name: str entity: str string: str span: tuple[int...
32.561798
111
0.622498
2,658
0.917184
0
0
114
0.039337
0
0
974
0.336094