hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
a686bc5588bf96d2912d72d16b95f0e69f7601c3
4,238
py
Python
python/pydiffx/dom/writer.py
beanbaginc/diffx
d913b4c94fa91bdabd8083882bd1acbe451ed5f8
[ "MIT" ]
null
null
null
python/pydiffx/dom/writer.py
beanbaginc/diffx
d913b4c94fa91bdabd8083882bd1acbe451ed5f8
[ "MIT" ]
null
null
null
python/pydiffx/dom/writer.py
beanbaginc/diffx
d913b4c94fa91bdabd8083882bd1acbe451ed5f8
[ "MIT" ]
1
2022-02-20T16:29:08.000Z
2022-02-20T16:29:08.000Z
"""Writer for generating a DiffX file from DOM objects.""" from __future__ import unicode_literals import six from pydiffx.writer import DiffXWriter from pydiffx.sections import CONTENT_SECTIONS
30.271429
77
0.596272
a687d7feca22a1b98095bff58c06be97ab2cb464
1,540
py
Python
L3_numpy_pandas_2D/A_2D_data.py
angelmtenor/IDAFC
9d23746fd02e4eda2569d75b3c7a1383277e6e78
[ "MIT" ]
null
null
null
L3_numpy_pandas_2D/A_2D_data.py
angelmtenor/IDAFC
9d23746fd02e4eda2569d75b3c7a1383277e6e78
[ "MIT" ]
null
null
null
L3_numpy_pandas_2D/A_2D_data.py
angelmtenor/IDAFC
9d23746fd02e4eda2569d75b3c7a1383277e6e78
[ "MIT" ]
null
null
null
import numpy as np # Subway ridership for 5 stations on 10 different days ridership = np.array([ [0, 0, 2, 5, 0], [1478, 3877, 3674, 2328, 2539], [1613, 4088, 3991, 6461, 2691], [1560, 3392, 3826, 4787, 2613], [1608, 4802, 3932, 4477, 2705], [1576, 3933, 3909, 4979, 2685], [95, 229, 255, 49...
28
76
0.63961
a688464b1c3891545d1f144a4ff2e40f465e7ddf
1,158
py
Python
tests/init/feature.py
Carsten-Leue/ReduxPY
3ca633c4d4d8a53418ee1049d571d1094feb14be
[ "MIT" ]
13
2020-04-30T15:06:45.000Z
2021-11-28T20:57:34.000Z
tests/init/feature.py
Carsten-Leue/ReduxPY
3ca633c4d4d8a53418ee1049d571d1094feb14be
[ "MIT" ]
4
2020-04-29T19:43:10.000Z
2021-02-04T15:19:44.000Z
tests/init/feature.py
Carsten-Leue/ReduxPY
3ca633c4d4d8a53418ee1049d571d1094feb14be
[ "MIT" ]
4
2021-02-13T01:18:11.000Z
2022-02-03T08:04:16.000Z
from typing import Any from rx import Observable, pipe from rx.operators import do_action, filter, map, ignore_elements from redux import ( Epic, Reducer, ReduxFeatureModule, combine_epics, create_action, create_feature_module, handle_actions, of_init_feature, of_type, select_ac...
23.632653
78
0.736615
a68903c183ba83fb6d52c10e82e9219b6946fa95
323
py
Python
mac_random.py
therealedsheenan/public-spoofify
fab1c6f1dad1a1364268cbe79e55a3675470fe5c
[ "MIT" ]
null
null
null
mac_random.py
therealedsheenan/public-spoofify
fab1c6f1dad1a1364268cbe79e55a3675470fe5c
[ "MIT" ]
4
2020-02-11T23:39:49.000Z
2022-01-13T00:40:48.000Z
mac_random.py
therealedsheenan/public-spoofify
fab1c6f1dad1a1364268cbe79e55a3675470fe5c
[ "MIT" ]
null
null
null
import random
21.533333
51
0.597523
a68a71c2d5af7592d3f37e6fb0303698943d7a06
1,698
py
Python
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
lms_app/urls.py
sashanight/LMS
8290805d9c3fd2b7ae50896ba75ee112b50619e3
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'lms_app' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^authentication$', views.auth, name='authentication'), url(r'^registration$', views.registration, name='registration'), url(r'^my_profile$', views.my_profile_request,...
58.551724
115
0.677856
a68ae2307a359f7e47d9b87116672f1fc3da5cfb
909
py
Python
backend/backend/urls.py
Zhiwei1996/Todoist
c260ac051e909243395c98e8b4f45a42abb548ea
[ "MIT" ]
null
null
null
backend/backend/urls.py
Zhiwei1996/Todoist
c260ac051e909243395c98e8b4f45a42abb548ea
[ "MIT" ]
null
null
null
backend/backend/urls.py
Zhiwei1996/Todoist
c260ac051e909243395c98e8b4f45a42abb548ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """backend URL Configuration """ from django.conf.urls import include, url from django.contrib import admin from rest_framework.schemas import get_schema_view from rest_framework.documentation import include_docs_urls from todoist import views API_TITLE = 'Todoist API'...
31.344828
88
0.665567
a68b28a50be4156d9050576bd63538c505309d28
342
py
Python
pyvis/PIMCPy/TestRepulsive.py
b3sigma/fourd
8df1300d9820ffa65e0df4519ce3795f1b2e7c9c
[ "MIT" ]
20
2015-05-15T20:46:40.000Z
2022-02-26T14:30:37.000Z
pyvis/PIMCPy/TestRepulsive.py
b3sigma/fourd
8df1300d9820ffa65e0df4519ce3795f1b2e7c9c
[ "MIT" ]
null
null
null
pyvis/PIMCPy/TestRepulsive.py
b3sigma/fourd
8df1300d9820ffa65e0df4519ce3795f1b2e7c9c
[ "MIT" ]
3
2016-08-13T09:44:49.000Z
2018-07-29T16:52:41.000Z
#!/bin/env python import numpy #import pylab #import stats from VMCHelp import * import random import numpy from PIMC5 import * numParticles=2 numTimeSlices=10 tau=0.1 lam=0.5 Path=PathClass(numParticles,numTimeSlices,tau,lam) Path.SetCouplingConstant(1.0) Path.SetPotential(HarmonicOscillator) print PIMC(10000,Path,...
17.1
50
0.815789
a68c75b3fe9c052bf3c96144a5e5dab51f6f733d
139
py
Python
.ycm_extra_conf.py
jaccovanschaik/Into
1292c913957fdcbebf291e82ee3896b1b9883e51
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
jaccovanschaik/Into
1292c913957fdcbebf291e82ee3896b1b9883e51
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
jaccovanschaik/Into
1292c913957fdcbebf291e82ee3896b1b9883e51
[ "MIT" ]
null
null
null
import os
13.9
37
0.496403
a68c82f5f2c8691b5638188a847f6e4c2977e2f2
731
py
Python
zingkd/zingkd/models/notes.py
brukhabtu/zingk
517bad148b39c4961885908a287cb1c7bd8b65c2
[ "MIT" ]
null
null
null
zingkd/zingkd/models/notes.py
brukhabtu/zingk
517bad148b39c4961885908a287cb1c7bd8b65c2
[ "MIT" ]
3
2016-07-09T22:03:40.000Z
2016-07-28T21:15:14.000Z
zingkd/zingkd/models/notes.py
brukhabtu/zingk
517bad148b39c4961885908a287cb1c7bd8b65c2
[ "MIT" ]
null
null
null
from zingkd.models.meta import Base from sqlalchemy import Column, func from sqlalchemy.types import Unicode, Integer, DateTime, Boolean, UnicodeText from sqlalchemy.orm import relationship, backref
34.809524
77
0.746922
a68cf4ecb5b81e1cac7d631028ac2e152c08518b
1,192
py
Python
secs_to_time.py
bonny1992/oneplus-notificator-fixed
2e47d8b21b3100332f2a59b95d79b49e0d680bae
[ "Apache-2.0" ]
null
null
null
secs_to_time.py
bonny1992/oneplus-notificator-fixed
2e47d8b21b3100332f2a59b95d79b49e0d680bae
[ "Apache-2.0" ]
null
null
null
secs_to_time.py
bonny1992/oneplus-notificator-fixed
2e47d8b21b3100332f2a59b95d79b49e0d680bae
[ "Apache-2.0" ]
null
null
null
import math print (secs_to_time(300))
37.25
92
0.494128
a6909423f35884be1c89cea4b72e30e85d038b38
425
py
Python
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
null
null
null
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
22
2019-09-02T18:03:08.000Z
2021-06-10T18:38:30.000Z
accounts/migrations/0005_auto_20190819_1447.py
jacobfelknor/sterling
aa4e7a22feb47814e5fae12078f4d9a849d17642
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-19 20:47 from django.db import migrations, models
22.368421
70
0.585882
a6916c2562bc34fa77693f0eed4d20bec95c048f
140
py
Python
hook-ctypes.macholib.py
RayFV/yuntech_netflow_check
da30a336cac24e738d5ee5bc20401e198a3b2ce7
[ "MIT" ]
null
null
null
hook-ctypes.macholib.py
RayFV/yuntech_netflow_check
da30a336cac24e738d5ee5bc20401e198a3b2ce7
[ "MIT" ]
null
null
null
hook-ctypes.macholib.py
RayFV/yuntech_netflow_check
da30a336cac24e738d5ee5bc20401e198a3b2ce7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from PyInstaller.utils.hooks import copy_metadata datas = copy_metadata('apscheduler')
23.333333
50
0.707143
a6929cee90954c7741a45c1aea4c6b9d650cee79
2,042
py
Python
backend/jobs/tests.py
k3ndr1c/ML-Platform
35af599602f94b386f13c9ba2c0fa2b678a54375
[ "MIT" ]
null
null
null
backend/jobs/tests.py
k3ndr1c/ML-Platform
35af599602f94b386f13c9ba2c0fa2b678a54375
[ "MIT" ]
null
null
null
backend/jobs/tests.py
k3ndr1c/ML-Platform
35af599602f94b386f13c9ba2c0fa2b678a54375
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from .models import Job, Prediction from .serializers import JobSerializer, PredictionSerializer CREATE_JOB_URL = reverse('jobs...
30.029412
69
0.677767
a692ae98327126c3e0a8986910c448aaa4cdb03b
283
py
Python
Darlington/phase2/Data Structure/day 59 solution/qtn7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/Data Structure/day 59 solution/qtn7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/Data Structure/day 59 solution/qtn7.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to convert an array to an array of machine values and return the bytes representation. import array import binascii a = array.array('i', [1,2,3,4,5,6]) print("Original array:") print('A1:', a) bytes_array = a.tobytes() print('Array of bytes:', binascii.hexlify(bytes_array))
35.375
95
0.738516
a693893f40cf33adad9c304b0df64f4d022f6bf1
22,949
py
Python
swords/__init__.py
p-lambda/swords
04ca75370d0ce098a7f4db68240fc8e79a4f7b3b
[ "CC-BY-3.0" ]
25
2021-05-24T06:54:45.000Z
2022-03-18T15:30:39.000Z
swords/__init__.py
p-lambda/swords
04ca75370d0ce098a7f4db68240fc8e79a4f7b3b
[ "CC-BY-3.0" ]
2
2021-06-11T02:39:47.000Z
2021-09-20T15:06:46.000Z
swords/__init__.py
p-lambda/swords
04ca75370d0ce098a7f4db68240fc8e79a4f7b3b
[ "CC-BY-3.0" ]
2
2021-11-19T09:06:30.000Z
2022-03-24T18:31:40.000Z
from collections import defaultdict import copy from enum import Enum import hashlib import json # From UD v2: https://universaldependencies.org/u/pos/ # https://universaldependencies.org/tagset-conversion/en-penn-uposf.html PTB_POS_TO_POS = """ #=>SYM $=>SYM ''=>PUNCT ,=>PUNCT -LRB-=>PUNCT -RRB-=>PUNCT .=>PUNCT :=>...
31.610193
137
0.657066
a69603d25cb114ace361699985f470a1488e41a6
7,239
py
Python
src/gumbel_social_transformer/st_model_tcn.py
tedhuang96/gst
ac300d34e17fa2d6639c1df329ac1e8f80bccaec
[ "MIT" ]
8
2021-11-28T21:16:27.000Z
2022-03-22T06:56:16.000Z
src/gumbel_social_transformer/st_model_tcn.py
tedhuang96/gst
ac300d34e17fa2d6639c1df329ac1e8f80bccaec
[ "MIT" ]
null
null
null
src/gumbel_social_transformer/st_model_tcn.py
tedhuang96/gst
ac300d34e17fa2d6639c1df329ac1e8f80bccaec
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from src.gumbel_social_transformer.gumbel_social_transformer import GumbelSocialTransformer from src.gumbel_social_transformer.temporal_convolution_net import TemporalConvolutionNet
49.924138
166
0.644426
a69669d6bb96032de0f69b7cc74ce536e85ea475
7,598
py
Python
my_source/__myglobal.py
IBNBlank/Shooting_Stars
38a642ab5a6d1cd59c480f11ae8eea9c86192a46
[ "MIT" ]
3
2018-07-28T15:00:16.000Z
2021-07-15T12:21:58.000Z
my_source/__myglobal.py
IBNBlank/Shooting_Stars
38a642ab5a6d1cd59c480f11ae8eea9c86192a46
[ "MIT" ]
null
null
null
my_source/__myglobal.py
IBNBlank/Shooting_Stars
38a642ab5a6d1cd59c480f11ae8eea9c86192a46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: IBNBlank # @Date: 2018-07-22 19:56:30 # @Last Modified by: IBNBlank # @Last Modified time: 2018-07-28 22:19:12 import pygame from os import path ##### Color Define ##### COLOR = { "BLACK": (0,0,0), "WHITE": (255,255,255), "RED": (255,0,0), "YELLOW": (255,255,0), ...
39.572917
91
0.672809
a69710ab18965d75ae34f2d798ed7836b803b1f0
922
py
Python
mpf/tests/test_SegmentMappings.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
163
2015-01-25T02:19:50.000Z
2022-03-26T12:00:28.000Z
mpf/tests/test_SegmentMappings.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
1,086
2015-03-23T19:53:17.000Z
2022-03-24T20:46:11.000Z
mpf/tests/test_SegmentMappings.py
Scottacus64/mpf
fcfb6c5698b9c7d8bf0eb64b021aaa389ea6478a
[ "MIT" ]
148
2015-01-28T02:31:39.000Z
2022-03-22T13:54:01.000Z
import unittest from mpf.core.segment_mappings import TextToSegmentMapper, BCD_SEGMENTS
40.086957
105
0.651844
a69754150f6815f08c8e7d520f80806f794c55ac
1,845
py
Python
python/example.py
LenakeTech/crowdin-hybrid-sso-examples
7da0868f6537d6abb2f6004f428e15002535eb8d
[ "Apache-2.0" ]
1
2021-06-08T14:29:53.000Z
2021-06-08T14:29:53.000Z
python/example.py
LenakeTech/crowdin-hybrid-sso-examples
7da0868f6537d6abb2f6004f428e15002535eb8d
[ "Apache-2.0" ]
null
null
null
python/example.py
LenakeTech/crowdin-hybrid-sso-examples
7da0868f6537d6abb2f6004f428e15002535eb8d
[ "Apache-2.0" ]
2
2021-03-31T02:59:45.000Z
2021-09-08T10:54:19.000Z
# Copyright 2019 Crowdin # # 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...
30.245902
97
0.692683
a69792fc01aa5b8cfd3d5c9274c48d77d86db356
6,928
py
Python
chrischan-master/chrischan-master/main.py
b9king/Discord-Bots
e6b08eeeb8de0952726883cfce0717d4866eacc9
[ "MIT" ]
null
null
null
chrischan-master/chrischan-master/main.py
b9king/Discord-Bots
e6b08eeeb8de0952726883cfce0717d4866eacc9
[ "MIT" ]
null
null
null
chrischan-master/chrischan-master/main.py
b9king/Discord-Bots
e6b08eeeb8de0952726883cfce0717d4866eacc9
[ "MIT" ]
null
null
null
import discord import helper from helper import * client=discord.Client() client.run('NTkwMDkyMDk3NjA5MTM4MTk2.XQdMMg.0wbU5CA1Xq_KbtYEc0aNnbUAj_0')
34.81407
200
0.604648
a697f19eca0e1bf447aac534db1c805ae86bf32e
4,095
py
Python
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
python/api/config/serializers.py
dimuha-rs/adcm
0f49cc9ece16c1e257be12375a64b65a34b3a3ae
[ "Apache-2.0" ]
null
null
null
# 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...
38.271028
80
0.723077
a6985ed0535d74a9aa8aab737b5e80423499a130
6,433
py
Python
qtvscodestyle/vscode/color_registry_manager.py
Greatness7/QtVSCodeStyle
2654ca967c7ae5db3ce3fb46657ace9f1104f6b9
[ "MIT" ]
8
2021-10-04T00:21:25.000Z
2022-03-14T19:57:03.000Z
qtvscodestyle/vscode/color_registry_manager.py
Greatness7/QtVSCodeStyle
2654ca967c7ae5db3ce3fb46657ace9f1104f6b9
[ "MIT" ]
null
null
null
qtvscodestyle/vscode/color_registry_manager.py
Greatness7/QtVSCodeStyle
2654ca967c7ae5db3ce3fb46657ace9f1104f6b9
[ "MIT" ]
3
2021-11-15T23:58:33.000Z
2022-02-01T18:50:01.000Z
# ============================================================================================= # QtVSCodeStyle. # # Copyright (c) 2015- Microsoft Corporation # Copyright (c) 2021- Yunosuke Ohsugi # # Distributed under the terms of the MIT License. # See https://github.com/microsoft/vscode/blob/main/LICENSE.txt # #...
41.237179
113
0.645733
a69a0ad61363ec1a9cf3a9af6dcd2a95de3f22fa
495
py
Python
python/test_region.py
csd2022fuchuang/yolov5-opencv-cpp-python
5b52dbffed6733a1353bd27a0001c09821ee0714
[ "MIT" ]
null
null
null
python/test_region.py
csd2022fuchuang/yolov5-opencv-cpp-python
5b52dbffed6733a1353bd27a0001c09821ee0714
[ "MIT" ]
null
null
null
python/test_region.py
csd2022fuchuang/yolov5-opencv-cpp-python
5b52dbffed6733a1353bd27a0001c09821ee0714
[ "MIT" ]
1
2022-03-24T09:01:45.000Z
2022-03-24T09:01:45.000Z
from shapely.geometry import Polygon import cv2 image = cv2.imread("a.png") window_name = 'Image' # Center coordinates center_coordinates = (120, 50) # Radius of circle radius = 20 # Blue color in BGR color = (255, 0, 0) # Line thickness of 2 px thickness = 2 # Using cv2.circle() method # Draw a circle with blue l...
19.8
71
0.739394
a69c4256c8120424bda3b8934dfaa52b9fbb2738
326
py
Python
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
null
null
null
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
6
2021-04-06T18:22:48.000Z
2022-03-12T00:52:18.000Z
testes/test_polinomios.py
DiegoAscanio/matriztdd
eabd8b2bc05e20a062f8b2a23b032637d88bbbeb
[ "MIT" ]
null
null
null
from polinomios.polinomios import p_de_A import numpy as np
23.285714
64
0.546012
a69c769295af960c87c6100c3fb68c7509427ad5
1,045
py
Python
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
reverse number.py
TheVishwajeetJagtap/Python-Day-4-Assignments-05-03-21-
e26a95bbc4ce07a369bef44fa15281e5d0e398ec
[ "MIT" ]
null
null
null
#wirte a program to read number from keyboard and print it in reverse number=input("Enter the number") reverse=0 for i in range(len(number)): reminder = int(number) % 10 reverse = (reverse * 10) + reminder number = int(number) / 10 print(reverse) #********************************using slice************...
26.794872
100
0.453589
a69d50893a1048337e98b47e928f156375ca87ed
8,247
py
Python
pyNastran/converters/cart3d/test_cart3d.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/converters/cart3d/test_cart3d.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/converters/cart3d/test_cart3d.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
"""tests non-gui related Cart3d class/interface""" from __future__ import print_function import os import unittest from numpy import array_equal, allclose import pyNastran from pyNastran.converters.cart3d.cart3d import read_cart3d from pyNastran.converters.cart3d.cart3d_to_nastran import cart3d_to_nastran_filename, ca...
38.900943
111
0.600946
a69e048cd19a312e36e054eaafec0943cd70d41a
118
py
Python
day1.py
marawat/PyManish
fad4cf042f907c8921c2675fda2a555f38e1f7ef
[ "Apache-2.0" ]
null
null
null
day1.py
marawat/PyManish
fad4cf042f907c8921c2675fda2a555f38e1f7ef
[ "Apache-2.0" ]
null
null
null
day1.py
marawat/PyManish
fad4cf042f907c8921c2675fda2a555f38e1f7ef
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python3 x = ("Hello") y = "day 1 python" z= "good going" print(y) print (z) print(x) print (x,y,z)
7.866667
20
0.559322
a69e23253f289cfbf526d1538461b44447ecb128
2,260
py
Python
python/evolution_reader.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
3
2021-03-30T22:07:40.000Z
2021-06-11T02:32:06.000Z
python/evolution_reader.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
2
2021-07-03T18:04:09.000Z
2022-01-12T18:02:30.000Z
python/evolution_reader.py
hzla/Pokeweb
203f8449179a5a0aeb4fa5d48e483048f09b24d1
[ "MIT" ]
1
2021-09-06T18:20:23.000Z
2021-09-06T18:20:23.000Z
import ndspy import ndspy.rom import code import io import os import os.path from os import path import json import copy
25.681818
81
0.684071
a6a02d8b5ce16766be107720170a139dd7634fa9
661
py
Python
day-07/part-2/div.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
6
2021-11-29T15:32:27.000Z
2021-12-10T12:24:26.000Z
day-07/part-2/div.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
9
2021-11-29T15:38:04.000Z
2021-12-13T14:54:16.000Z
day-07/part-2/div.py
lypnol/adventofcode-2021
8ba277d698e8c59ca9cd554acc135473f5964b87
[ "MIT" ]
3
2021-12-02T19:11:44.000Z
2021-12-22T20:52:47.000Z
from tool.runners.python import SubmissionPy def test_div(): """ Run `python -m pytest ./day-07/part-1/div.py` to test the submission. """ assert ( DivSubmission().run( """ """.strip() ) == None )
23.607143
110
0.547655
a6a05141e02ec09a3368291709071af8ba627d0b
1,698
py
Python
test/coreneuron/test_psolve.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
null
null
null
test/coreneuron/test_psolve.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
1
2021-04-13T09:19:55.000Z
2021-04-13T09:19:55.000Z
test/coreneuron/test_psolve.py
niltonlk/nrn
464541abbf72fe58de77b16bf0e1df425a280b89
[ "BSD-3-Clause" ]
null
null
null
import os import pytest import sys import traceback enable_gpu = bool(os.environ.get("CORENRN_ENABLE_GPU", "")) from neuron import h, gui pc = h.ParallelContext() if __name__ == "__main__": try: test_psolve() except: traceback.print_exc() # Make the CTest test fail sys.exi...
22.64
72
0.567727
a6a1b27bb26aacef5997572d868b16e29265fa5b
138
wsgi
Python
vagrant/catalog/app.wsgi
jcarter62/udacity-fs-p5
e4760085d93c5ee71fd182c9d118c1d9b258c2b2
[ "MIT" ]
null
null
null
vagrant/catalog/app.wsgi
jcarter62/udacity-fs-p5
e4760085d93c5ee71fd182c9d118c1d9b258c2b2
[ "MIT" ]
null
null
null
vagrant/catalog/app.wsgi
jcarter62/udacity-fs-p5
e4760085d93c5ee71fd182c9d118c1d9b258c2b2
[ "MIT" ]
null
null
null
#!/user/bin/python import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from app import app as application
23
62
0.775362
a6a1b8a6a8be457c8cc3f0ac959f22dbed709405
247
py
Python
facialrecognition/accounts/models.py
Moran98/facial-recognition
da4711c5d0fb77d77a5dffb20d85bfa9072f7933
[ "MIT" ]
34
2020-01-27T15:07:25.000Z
2021-09-25T17:07:37.000Z
facialrecognition/accounts/models.py
Moran98/facial-recognition
da4711c5d0fb77d77a5dffb20d85bfa9072f7933
[ "MIT" ]
26
2020-01-29T12:24:42.000Z
2022-03-12T00:16:44.000Z
facialrecognition/accounts/models.py
Moran98/facial-recognition
da4711c5d0fb77d77a5dffb20d85bfa9072f7933
[ "MIT" ]
7
2020-01-27T11:42:11.000Z
2021-04-05T04:42:22.000Z
from django.db import models
27.444444
68
0.708502
a6a2e757449885213e04fced8e6ceed98541f40d
431
py
Python
docs/make_tutorials.py
jonholdship/SpectralRadex
2c38e136b963aac43ec2b17101da56a83c9884e4
[ "MIT" ]
1
2020-09-23T10:57:03.000Z
2020-09-23T10:57:03.000Z
docs/make_tutorials.py
jonholdship/SpectralRadex
2c38e136b963aac43ec2b17101da56a83c9884e4
[ "MIT" ]
null
null
null
docs/make_tutorials.py
jonholdship/SpectralRadex
2c38e136b963aac43ec2b17101da56a83c9884e4
[ "MIT" ]
null
null
null
import subprocess import glob import os # Convert the tutorials for fn in glob.glob("../examples/*.ipynb"): name = os.path.splitext(os.path.split(fn)[1])[0] outfn = os.path.join("tutorials", name + ".rst") print("Building {0}...".format(name)) subprocess.check_call( "jupyter nbconvert --templat...
30.785714
76
0.63109
a6a31c4462617cfbcd1bf1328dcedfb388cc1b51
375
py
Python
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
api_discovery/modules/__init__.py
TommyLike/huawei-api-discovery
01409e2d8f3c1942d3cb92dee5f96782d925ab3c
[ "MIT" ]
null
null
null
from api_discovery.modules import logging from api_discovery.modules import api from api_discovery.modules import database from api_discovery.modules import task log = logging.Logging() discovery_api = api.DiscoveryAPI() db = database.Database() taskhub = task.TaskHub()
25
52
0.773333
a6a3b9bf76f0958453838d9fe554c384889d8f3d
3,053
py
Python
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
1
2017-08-20T21:46:40.000Z
2017-08-20T21:46:40.000Z
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
14
2017-08-20T21:14:29.000Z
2018-02-18T15:31:34.000Z
woomba/robot.py
AnotherKamila/lego-wet-roomba
796403146d068c73ef053fe8db431da6e7a68253
[ "MIT" ]
null
null
null
"""A Controller class for composable things controlling robots, plus utility stuff. An important abstraction here is Command: a function that returns immediately. It may issue sub-Commands to motors and such, and do quick calculations, but it must be fast. It must not block, ever. It will be called often enough to saf...
37.231707
121
0.658041
a6a3f751ce40c9a7f003cbfe5731b5ed130383b1
437
py
Python
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
src/split_data.py
ABHISHEKVALSAN/ML-Arrhythmia-Dataset
c8adaf02d90c096cb332daafb0d1cf2ec8f24307
[ "MIT" ]
null
null
null
import pandas as pd import constants as const data = pd.read_csv('data/data_with_headers.csv') data_class_1 = data[data.diagnosis==1] for name,grouped_data in data[data.diagnosis!=1].groupby(const.LABEL): data_class =grouped_data.append(data_class_1) #print(data_class.head()) #print(data_class.tail()) d...
39.727273
70
0.757437
a6a55b219d63b7c395eca9c18373794462505020
662
py
Python
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
tests/ingestors/test_directory.py
EruditePanda/ingestors
7084092e610597fa75eb0d87c6d67e80687296f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pprint import pprint # noqa from ..support import TestCase
31.52381
62
0.690332
a6a56754f5a359f5f3f898b5f76be76879351729
1,224
py
Python
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
sorting/k_closest_points_to_origin.py
elenaborisova/A2SV-interview-prep
02b7166a96d22221cd6adaedf14f845537f0752d
[ "MIT" ]
null
null
null
import math import heapq # Time: O(n * log n); Space: O(n) # MinHeap # MaxHeap; Optimized # Time: O(n log k); Space: O(k) # Test cases: print(k_closest2([[1, 3], [-2, 2]], 1)) print(k_closest2([[3, 3], [5, -1], [-2, 4]], 2)) print(k_closest2([[0, 1], [1, 0]], 2))
23.538462
66
0.535948
a6a6da1aacb22fe0b4ee83f5a841d6a9da85c4fa
122
py
Python
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
58
2015-04-30T07:36:45.000Z
2022-01-20T03:37:09.000Z
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
1
2016-01-19T05:28:15.000Z
2016-01-19T05:28:15.000Z
schemaless/orm/__init__.py
eklitzke/schemaless
eb2ca453a69e8af36980c53fcc66725116ae7971
[ "0BSD" ]
14
2015-04-14T09:10:53.000Z
2020-05-09T01:53:17.000Z
from session import Session from index import Index from column import * from document import make_base import converters
20.333333
30
0.844262
a6a73500dcaa5434137903d1b0436c04ea1797ad
270
py
Python
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
src/guarded_suspension/receiver.py
tukeJonny/python_patterns
3e14032030f60ea764ff50e3a5ac1b5dcda4b553
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from threading import Thread
18
42
0.637037
a6a7c29743e855724d1e7a6f8b0133acb961084a
263
py
Python
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
5
2017-03-14T23:36:54.000Z
2021-08-20T09:37:30.000Z
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
null
null
null
demo/service/test/hello_world_v2.py
RyouZhang/nori
2e87f81582fe51590d115de84dfa25c5d0d52520
[ "MIT" ]
1
2017-08-24T10:01:11.000Z
2017-08-24T10:01:11.000Z
import noir.router as router import noir.rule as rule router.register_service_handler('/api/hello/v2', HelloWorldV2())
29.222222
64
0.764259
a6a8339ae7cdc4108489e9be1ac51505ff62d038
260
py
Python
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
7
2020-12-13T13:31:16.000Z
2020-12-31T12:26:07.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
4
2021-04-06T18:41:34.000Z
2021-09-08T02:52:35.000Z
social_media/__init__.py
atharva-naik/social_media
520964efe938fb89d3b1caa64b231ab1a63e6c76
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # This is to tell python that this is a package __version__ = '1.0' # __path__ = __import__('pkgutil').extend_path(__path__, __name__) __all__ = ['facebook', 'gmail', 'hangouts', 'nlp', 'quora', 'twitter', 'whatsapp', 'youtube', 'instagram']
43.333333
106
0.692308
a6a91201d3a0ac40123ae08adfeb0a278ecf3119
819
py
Python
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
dcp_py/day062/day062.py
sraaphorst/Daily-Coding-Problem
acfcf83a66099f3e4b69e2447600b8208cd9ab1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # day062.py # By Sebastian Raaphorst, 2019. from math import factorial def num_paths(n: int, m: int) -> int: """ Calculate the number of paths in a rectangle of dimensions n x m from the top left to the bottom right. This is incredibly easy: we have to make n - 1 moves to the righ...
31.5
107
0.656899
a6a958c70054d2579b52a859472989d158f49b98
406
py
Python
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
raspy/tests/test_IO/test_IOException.py
cyrusbuilt/RasPy
1e34840cc90ea7f19317e881162209d3d819eb09
[ "MIT" ]
null
null
null
"""Tests for IOException.""" from raspy.io.io_exception import IOException
21.368421
48
0.615764
a6aa1696a440193088edbc66879e995334f69dc4
1,634
py
Python
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
null
null
null
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
157
2019-10-08T07:58:59.000Z
2022-03-20T23:00:17.000Z
languages/admin.py
City-of-Helsinki/kukkuu
61f26bc622928fd04f6a397f832aaffff789e806
[ "MIT" ]
3
2019-10-07T12:06:26.000Z
2022-01-25T14:03:14.000Z
from django.contrib import admin from django.db.models import Count from django.utils.translation import gettext_lazy as _ from parler.admin import TranslatableAdmin from parler.utils.context import switch_language from .models import Language
29.178571
86
0.653611
a6abc2008f51df97882b2fb02ac278c4faf29ad5
5,507
py
Python
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/hbr/get_backup_jobs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# 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...
36.713333
141
0.650263
a6acbe27d3c0f67a17173db25575993280383538
13,656
py
Python
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
Gearshift.py
TonyWhitley/gearbox
efdba8ecd88600418b39e38cdeccbb1f9a327ceb
[ "MIT" ]
null
null
null
# Gearshift.py - monitors the rFactor 2 shared memory values for the shifter # and clutch and if a gear change is not done properly it repeatedly sends a # "Neutral" key press to prevent the gear being selected. # # Inspired by http://www.richardjackett.com/grindingtranny # I borrowed Grind_default.wav from there to ma...
33.635468
110
0.614162
a6ad0e5039f9621813b9301c9789e70168ed48b1
144
py
Python
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/concurrent-computing-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
from concurrent import futures with futures.ProcessPoolExecutor() as executor: _ = list(executor.map(print, 'Enjoy Rosetta Code'.split()))
24
62
0.756944
a6ad7b6a876ff429c200629b8a6d1cb6df41dea0
2,225
py
Python
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
5
2019-11-26T00:34:24.000Z
2021-01-04T06:04:48.000Z
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
3
2021-06-09T19:05:40.000Z
2021-09-08T01:49:01.000Z
rooms/management/commands/seed_amenities.py
alstn2468/Django_Airbnb_Clone
eeb61e4a36320a0b269d96f47cc6755dbc4c40f8
[ "MIT" ]
6
2019-11-24T11:47:09.000Z
2021-08-16T20:21:35.000Z
from core.management.commands.custom_command import CustomCommand from rooms.models import Amenity
30.902778
84
0.417978
a6aecdaa9ab63d5c899f2872cb0bfd6fc69bc486
7,898
py
Python
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
vision/image_classification/mobile/mobilenet_model.py
pedro-abundio-wang/image-classification
952719d7561b9998add0daf71d61e55cb6103eaf
[ "Apache-2.0" ]
null
null
null
"""MobileNet model for Keras. Related papers - https://arxiv.org/abs/1704.04861 """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.keras import backend from tensorflow.keras import models from tensorflow.keras import layers def _conv_bl...
38.339806
103
0.661433
a6b08c775b7b2475824f80a8fc46557292ab0d77
506
py
Python
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
2
2020-04-02T02:37:53.000Z
2020-06-11T04:45:06.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
28
2020-02-11T03:11:25.000Z
2020-06-11T01:49:22.000Z
tests/conftest.py
securemailbox/api
6e6c594c1e6588f15e2d78018074808dbe0ada57
[ "Apache-2.0" ]
null
null
null
import pytest import securemailbox from securemailbox.models import Message, Mailbox # Force fixture to be used if not explicitly imported
21.083333
66
0.735178
a6b0a6f69b4e8e457b33054cf5afa5f57a1ac191
943
py
Python
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
temuller/cosmo_phot
011333f84486614cb9339d3874dc072c45ebed23
[ "MIT" ]
null
null
null
import unittest from hostphot.cutouts import download_images from hostphot.coadd import coadd_images from hostphot.image_masking import create_mask if __name__ == '__main__': unittest.main()
31.433333
81
0.623542
a6b264207fe8e823f52476d11d008957908297b6
4,395
py
Python
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
null
null
null
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
1
2020-07-06T14:36:18.000Z
2021-01-27T09:13:12.000Z
bluetooth/objects/Device.py
Exus1/alfa-blue-me
4b2f9f549967b44688e753a64b0578ebbfedf430
[ "MIT" ]
null
null
null
import dbus from module.EventBus import EventBus, mainEventBus from bluetooth.objects.Player import Player
31.392857
100
0.619113
a6b2ccd85fff302304cf6c5368fb0672775dec55
2,213
py
Python
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
objmap.py
runejuhl/bin
948b246c92540e4d7451538879847513864c0219
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import subprocess import re import os.path if __name__ == '__main__': main()
29.118421
199
0.536376
a6b55e4c1d8bfa3eac38de71d15f89c1f1da3226
641
py
Python
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
analysis/cohort_pickle_checks.py
opensafely/covid-vaccine-not-received
5b8c7e4219e654cf2fcf6f5013a5ef6e9256f26d
[ "MIT" ]
null
null
null
''' Count number of declines with uncertain dates. ''' import os import pandas as pd import numpy as np input_path="output/cohort.pickle" output_path="output/cohort_pickle_checks.csv" backend = os.getenv("OPENSAFELY_BACKEND", "expectations") cohort = pd.read_pickle(input_path) cohort = cohort.loc[pd.notnull(cohort...
24.653846
90
0.730109
a6b562827976bcf0ba147158156584f1789cab95
180
py
Python
tests/run_tests.py
bitlogik/specter-javacard
06555db693bf3ce2314282d2e4555020c87143fb
[ "MIT" ]
11
2020-09-07T20:49:16.000Z
2022-03-29T14:21:14.000Z
tests/run_tests.py
stepansnigirev/shareable-applet
f94510cf80adc1829776ea6a61ce33a926f20126
[ "MIT" ]
1
2020-12-13T12:29:59.000Z
2020-12-16T17:00:27.000Z
tests/run_tests.py
stepansnigirev/shareable-applet
f94510cf80adc1829776ea6a61ce33a926f20126
[ "MIT" ]
5
2020-09-08T06:22:23.000Z
2022-03-29T14:21:16.000Z
#!/usr/bin/env python3 import unittest if __name__ == '__main__': testsuite = unittest.TestLoader().discover('./tests') unittest.TextTestRunner(verbosity=1).run(testsuite)
30
57
0.733333
a6b73f047e331caed47c666c6df9c31375f316f1
2,794
py
Python
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
1
2020-07-20T02:04:46.000Z
2020-07-20T02:04:46.000Z
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
null
null
null
archive/experiment_4_train.py
marjanin/tendon_stiffness
b1dc379b09bbf9c044410a6bc51afbee0cba2e05
[ "MIT" ]
1
2020-05-11T11:41:39.000Z
2020-05-11T11:41:39.000Z
import gym import numpy as np from stable_baselines.common.policies import MlpPolicy as common_MlpPolicy from stable_baselines.ddpg.policies import MlpPolicy as DDPG_MlpPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines.ddpg.noise import NormalActionNoise, OrnsteinUhlenbeckActionNoise...
39.914286
123
0.764853
a6b79ef79b7d83120b1edb6b477d255891f80230
1,248
py
Python
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
tests/test_util.py
Skirmant/electrumx-trump
ce0e4e8c592ea593b2ee9df84126980e54da5053
[ "MIT" ]
null
null
null
from lib import util def test_subclasses(): assert util.subclasses(Base) == [A, B] assert util.subclasses(Base, strict=False) == [A, B, Base] def test_chunks(): assert list(util.chunks([1, 2, 3, 4, 5], 2)) == [[1, 2], [3, 4], [5]] def test_increment_byte_string(): assert util.increment_byte_s...
20.8
73
0.600962
a6b874afe3ecfcd5e956781905981e176b3e59f4
605
py
Python
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/settings/env_dev.py
GeotrekCE/Geotrek-admin
efcc7a6c2ccb6aee6b299b22f33f236dd8a23d91
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
# # Django Development # .......................... DEBUG = True EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # # Developper additions # .......................... INSTALLED_APPS = ( 'django_extensions', 'debug_toolbar', 'drf_yasg', ) + INSTALLED_APPS INTERNAL_IPS = type(str('c'), (...
18.90625
70
0.578512
a6b88d0c63863ec876ce31f9690f31d086738e0d
1,629
py
Python
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
5
2018-08-30T19:15:21.000Z
2019-03-25T17:13:39.000Z
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
15
2018-09-03T18:39:25.000Z
2019-05-15T07:00:43.000Z
parsing/accessDB.py
marquettecomputationalsocialscience/seniordesign1819
cc11c6f46dbcb1c2fb69e1ef2017953f0e6b066f
[ "MIT" ]
8
2018-09-03T19:11:33.000Z
2018-11-14T22:32:22.000Z
import os import pandas as pd from datetime import datetime as dt # Read raw data in root = os.path.expanduser('../data/') files = [root + f for f in os.listdir(root) if f.endswith('.csv') and f != 'addresses.csv'] dfs = [pd.read_csv(f, header=0, index_col='ID', parse_dates=['Date/Time']) for f in files] df = pd.conc...
41.769231
139
0.638428
a6bb84f81d229ef9b0b05112770f57fbf3a0daf2
1,007
py
Python
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
3
2021-04-02T09:06:39.000Z
2021-12-22T11:13:43.000Z
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
null
null
null
main.py
leandrovrabelo/pico_max7219
16c695908c9e39740406dc60c650168b8b4d7a5d
[ "MIT" ]
1
2021-11-06T21:01:42.000Z
2021-11-06T21:01:42.000Z
from max7219 import Matrix8x8 from machine import Pin, SPI from utime import sleep if __name__ == '__main__': CS = Pin(5, Pin.OUT) # GPIO5 pin 7 CLK = Pin(6) # GPIO6 pin 9 DIN = Pin(7) # GPIO7 pin 10 BRIGHTNESS = 3 # from 0 to 15 text1 = "Hello World!" text2 = "PICO PI" # C...
27.972222
89
0.571003
a6bc42fe55c00a39f6b5dcc77087968fc2014f3d
3,319
py
Python
tests/test_dynamicprinter.py
DerekYu177/Tooling
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
2
2018-06-28T20:30:25.000Z
2022-01-03T15:14:39.000Z
tests/test_dynamicprinter.py
DerekYu177/Tooling
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
4
2018-06-26T23:33:14.000Z
2018-07-09T00:44:17.000Z
tests/test_dynamicprinter.py
DerekYu177/dynamictableprint
4b1c0490375659e716be708db254cb4f1b8f2b6b
[ "MIT" ]
null
null
null
""" Tests the table print extra module """ import unittest from unittest import mock import pandas as pd from dynamictableprint.dynamicprinter import DynamicTablePrint def mock_terminal_size(_): """ Does what it says """ return [80] if __name__ == '__main__': unittest.main()
31.018692
87
0.602591
a6c11429802da894fcfc47476b4c7e126e53cb6b
1,778
py
Python
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
33
2019-11-06T03:45:55.000Z
2020-12-15T09:14:42.000Z
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
3
2019-11-19T19:02:44.000Z
2020-03-29T17:52:11.000Z
pitfall/helpers/aws/utils.py
bincyber/pitfall
680c33ae30a2ed1d2bbf742f74accc34b81b1f5b
[ "Apache-2.0" ]
1
2020-07-29T07:33:52.000Z
2020-07-29T07:33:52.000Z
# Copyright 2019 Ali (@bincyber) # # 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, ...
25.4
86
0.669854
a6c365cf6c521aa3c897c34e14be7483d8cd12a0
1,846
py
Python
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
6
2022-02-24T00:04:24.000Z
2022-03-21T08:46:46.000Z
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
null
null
null
users/migrations/0004_profile.py
david5010/sheliak
39d0cef25d4df0dd4cb8c5153b18be4eab1a0029
[ "MIT" ]
8
2022-02-24T00:07:32.000Z
2022-03-21T01:59:46.000Z
# Generated by Django 3.2.11 on 2022-02-06 16:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import model_utils.fields import timezone_field.fields import uuid
45.02439
147
0.621885
a6c6d6983ffc811129d05e0b916f71312c4f08b8
1,115
py
Python
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
1
2019-09-07T11:49:11.000Z
2019-09-07T11:49:11.000Z
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
null
null
null
cmdbox/scaffold_templates/urls.py
vitorfs/cmdbox
97806c02caf5947ec855286212e61db714e3fb02
[ "MIT" ]
2
2018-09-04T08:33:17.000Z
2020-09-18T20:26:46.000Z
from django.conf.urls import url from cmdbox.scaffold_templates import views urlpatterns = [ url(r'^$', views.scaffold_templates, name='list'), url(r'^(?P<slug>[^/]+)/$', views.details, name='details'), url(r'^(?P<slug>[^/]+)/add-file/$', views.add_file, name='add_file'), url(r'^(?P<slug>[^/]+)/add-f...
53.095238
108
0.594619
a6c957005a98e765219391600b7a9ac65ec97743
2,036
py
Python
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
1
2021-08-19T22:24:11.000Z
2021-08-19T22:24:11.000Z
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
null
null
null
new.py
EvanBot/nw
ca65aa90b38074c2dbefe16ad4dabd6d7849b9f6
[ "Apache-2.0" ]
3
2021-08-31T08:17:01.000Z
2021-09-26T13:18:32.000Z
import time import socket import random import sys if __name__ == '__main__': main()
46.272727
163
0.534872
a6c9952b1ebee49b75a8c48cec1cb1ca06df5caf
2,653
py
Python
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
19
2016-08-01T03:45:39.000Z
2022-02-01T19:48:52.000Z
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
null
null
null
[20]_break_AES_in_CTR_mode_statistically/analyzer_gui_entry.py
lucasg/Cryptopals
095e80d0ab9acdda4e5804b45cdba932231086ff
[ "MIT" ]
6
2019-04-27T02:09:46.000Z
2021-04-05T15:09:51.000Z
# -*- coding: utf-8 -*- import tkinter as tk from tkinter import ttk # Entry : a tkinter.Entry override which is more practical to use # There is a label to the left and a button to the right (optionnals) : # # ---------------------------------------------- # | | | | # | Label | Entry(redim) | Butto...
24.33945
71
0.591406
a6ca293c9d16753c2a9c1ac455d47a6f3dec1401
392
py
Python
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/spatial/__init__.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# TODO: RENAME MODULE! import logging from miniworld.log import get_logger from miniworld.util import PathUtil _logger = None # TODO: BETTER WAY THAN LOG FUNCTION?
21.777778
98
0.739796
a6ca3f09187518fec89422b29515f0f9cc5492c9
4,756
py
Python
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
slack_janitor/main.py
paraita/slack-janitor
64b3bdf76967276743144d9ef2db7f3fb5deaaea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Bulk deletion of files on your Slack workspace Requires a valid token from: https://api.slack.com/custom-integrations/legacy-tokens """ import os import sys import json import urllib.parse import http.client import calendar import argparse import time from datetime import datetime, t...
35.759398
170
0.626997
a6ca74bb3ea2418641e9550941a9244aad99e30a
1,982
py
Python
test.py
Nekobitlz/case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
null
null
null
test.py
Nekobitlz/case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
8
2021-11-29T00:34:48.000Z
2021-11-29T02:40:55.000Z
test.py
Nekobitlz/new_case_converter
cfb9c05207b52201e11f262bbe30692a1b3dcd31
[ "MIT" ]
null
null
null
import main
41.291667
90
0.694753
a6caf3fe4edf041c7511413b1ca3d3833f7691c2
22,030
py
Python
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
executors/location.py
thevickypedia/jarvis
4bea623bb9f1618509d4fcd77a696c638011799c
[ "MIT" ]
null
null
null
import json import math import os import pathlib import re import socket import ssl import sys import urllib.error import urllib.request import webbrowser from difflib import SequenceMatcher from typing import NoReturn, Tuple, Union import certifi import yaml from geopy.distance import geodesic from geopy.exc import G...
44.236948
120
0.644303
a6ce292a4977aea957e48be215ebaa74515a3808
1,713
py
Python
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
null
null
null
vkbottle/tests/test_exception_handling.py
delvinru/vkbottle
16f4cbd9b6603e58e9d82083fa452ffe2e7fbd93
[ "MIT" ]
1
2022-02-16T15:25:41.000Z
2022-02-16T15:25:41.000Z
import pytest from vkbottle import CodeException, ErrorHandler, swear
23.465753
75
0.671337
a6ce2c48b405342f875064a4a2f03734f841e78b
1,269
py
Python
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
experimental/sql/simple.py
webmiche/iree-llvm-sandbox
7511f8c210c586b44fc47a836a9cbfaa438acaf0
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # This file contains a simple testcase, that defines a table and runs a selection query on it. import ibis import os import sys import p...
28.2
101
0.745469
a6ce6749de8cedc773b1ea3833d86f9e1e6d4944
324
py
Python
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_challenging_ext/exercises/p100.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" Write a program to solve a classic ancient Chinese puzzle: """ """Question: Write a program to solve a classic ancient Chinese puzzle: We count 35 heads and 94 legs among the chickens and rabbits in a farm. How many rabbits and how many chickens do we have? Hint: Use for loop to iterate all possible solutions. ...
27
122
0.75
a6cfb3021f6c8e66e245f2674a8a1b2b84f40f99
1,072
py
Python
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
5
2021-03-21T06:26:02.000Z
2021-08-11T09:58:44.000Z
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
null
null
null
examples/django_app/tests/test_views.py
priyashengole/Chatterbot
49708c479226d6650a4cadf33a1bacd233c2ca0c
[ "BSD-3-Clause" ]
1
2020-05-23T09:51:30.000Z
2020-05-23T09:51:30.000Z
from django.test import TestCase from example_app.views import ChatterBotApiView
28.972973
76
0.714552
a6d246359b3c588c6b5be1e5ecf927811dc7f619
121
py
Python
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
null
null
null
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
4
2021-06-02T01:03:41.000Z
2022-01-13T02:03:12.000Z
TWITOFF/__init__.py
mvkumar14/twitoff
449d512b117e1ba2c3fc6209c489bb295cbfa75e
[ "MIT" ]
null
null
null
"""Entry point for our twitoff flask app""" from .app import create_app # This is a global variable APP = create_app()
17.285714
43
0.727273
a6d292b5151c8e18e798d9878149e438822e3099
160
py
Python
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
Day1/Chap1/Ex5.py
ssahn0806/kw-SW_Preparatory
1ebed10bfc664d16d2d71440547f61ab3577ab64
[ "MIT" ]
null
null
null
import os import turtle import time t = turtle.Pen() t.shape("turtle") t.width(10) t.forward(100) t.left(90) time.sleep(1) t.forward(100) os.system("Pause")
10.666667
18
0.7
a6d2975738e714400f26abe4b83b94afadae7e7d
1,746
py
Python
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/machinelearning/azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/system_service.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
36.375
76
0.63173
a6d3349994031ab7aaeebc772afadeb51c37f1e9
819
py
Python
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
1
2022-03-02T14:56:29.000Z
2022-03-02T14:56:29.000Z
autobuyfast/cars/migrations/0029_auto_20210905_0220.py
dark-codr/autouyfast
d0fa2dd6fc10a4a5497da71466916302ea8655f9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-09-05 01:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
30.333333
142
0.655678
a6d38ff49f410af36c11e6d1b389bea967667847
372
py
Python
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
5
2020-09-09T15:22:34.000Z
2021-12-07T12:24:26.000Z
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
39
2020-12-08T16:56:06.000Z
2022-03-28T15:18:52.000Z
lokalise/endpoints/translation_providers_endpoint.py
carlmanaster/python-lokalise-api
ce4a43c5a7bf14f45a2432e096b1880ff28d6770
[ "BSD-3-Clause" ]
1
2021-03-25T02:55:49.000Z
2021-03-25T02:55:49.000Z
""" lokalise.endpoints.translation_providers_endpoint ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Module containing translation providers endpoint. """ from .base_endpoint import BaseEndpoint
28.615385
64
0.693548
a6d52658de85b23a61ea3688d54052bd4719e515
10,597
py
Python
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter09/wallet/wallet_widgets/send_widget.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
from PySide2.QtWidgets import (QWidget, QGridLayout, QVBoxLayout, QHBoxLayout, QPushButton, QLabel, QInputDialog, ...
42.388
126
0.678116
a6d5f724d443cbaceedf53aa771224350bbf9d9e
165
py
Python
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
pyvmomi_restapi/vm_helpers/apps.py
johnedstone/how-to-use-pyvmomi
f2e58ce82f360bac4fe0ca52ae347ebf691430bb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig
18.333333
39
0.751515
a6d65973f237ddd3c1bee4a471549249a3f6c1f1
2,556
py
Python
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension EXT.multiview_draw_buffers This module customises the behaviour of the OpenGL.raw.GLES2.EXT.multiview_draw_buffers to provide a more Python-friendly API Overview (from the spec) This extension allows selecting among draw buffers as the rendering target. This may be among multiple primary buf...
43.322034
83
0.823944
a6d68744f1e709ba14365f28499cedb2613a508d
1,097
py
Python
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
CodeInterview/python/chapter2.py
espang/books
821c92833968dca8b8a0456464f2e33211601abb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 25 23:08:27 2016 @author: eikes """
24.377778
61
0.547858
a6d73ed12bfaf051625c8c3f40b3c6b7406b513e
1,793
py
Python
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
release/api/views.py
fbrump/msh-python
8f3211d3ff12d0b070d7ace3f114c6e244d64b45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # msh-python/release/api/views.py from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from rest_framework import mixins from rest_framework import ...
23.906667
52
0.711099
a6d7926ffd9c46e7000b4eeb76ac9fcded9a18e3
2,878
py
Python
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
4
2019-02-17T01:04:15.000Z
2019-02-20T13:39:25.000Z
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
4
2019-02-17T00:57:32.000Z
2019-02-17T22:32:11.000Z
dotup/__init__.py
audiolion/dotup
8c7243d5606340288a7968a6ff3f64d331d5d0e0
[ "MIT" ]
null
null
null
__version__ = '0.3.2' import sys import os import pwd from pathlib import Path import click import crayons if __name__ == "__main__": dotup() # pragma: no cover
29.979167
97
0.59451
a6d89172413387f308d847f46a5ea578e6d4ef31
753
py
Python
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
14
2020-06-05T23:06:45.000Z
2022-03-12T00:00:18.000Z
web/transiq/team/migrations/0079_auto_20180329_1130.py
manibhushan05/transiq
763fafb271ce07d13ac8ce575f2fee653cf39343
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-29 11:30 from __future__ import unicode_literals from django.db import migrations
26.892857
138
0.608234
a6d98fd04b1baa85481c214e43a3e464743dce06
114
py
Python
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
7
2016-10-10T12:25:31.000Z
2021-06-15T23:46:59.000Z
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
3
2017-05-20T05:32:30.000Z
2019-09-29T10:19:21.000Z
v6wos/error.py
sfstpala/v6wos
acb4483ab89174529172c3705a4ecbc463c938f5
[ "0BSD" ]
1
2017-05-20T05:29:10.000Z
2017-05-20T05:29:10.000Z
import v6wos
14.25
39
0.701754
a6d9cb957ff30829049142edec6723b7649061c1
4,312
py
Python
plugins/quetz_tos/quetz_tos/api.py
fcollonval/quetz
6f604a29e13ef80d1b5e7ec48408841d0e4d482a
[ "BSD-3-Clause" ]
108
2020-09-16T16:15:01.000Z
2022-03-29T02:49:31.000Z
plugins/quetz_tos/quetz_tos/api.py
fcollonval/quetz
6f604a29e13ef80d1b5e7ec48408841d0e4d482a
[ "BSD-3-Clause" ]
317
2020-09-07T18:37:33.000Z
2022-03-25T13:10:41.000Z
plugins/quetz_tos/quetz_tos/api.py
janjagusch/quetz
4d88b4695166d310823a48e81e025983846afd05
[ "BSD-3-Clause" ]
36
2020-09-07T22:01:27.000Z
2022-03-26T17:06:07.000Z
import os import uuid from tempfile import SpooledTemporaryFile from fastapi import APIRouter, Depends, File, HTTPException, UploadFile, status from sqlalchemy.orm.session import Session from quetz import authorization, dao from quetz.config import Config from quetz.deps import get_dao, get_db, get_rules from .db_mo...
32.666667
85
0.629174
a6da277871e2e14767fe369496d352e64e854912
1,546
py
Python
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_a26_appropriations.py
chambers-brian/SIG_Digital-Strategy_SI_ODP_Backend
3de8cedf69d5a0c9fad8239734bd6291cf583936
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import AppropriationFactory from tests.unit.dataactcore.factories.domain import SF133Factory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'a26_appropriations' _TAS = 'a26_appropriations_tas' def test_success(database): """ T...
37.707317
103
0.73674
a6dba61497cd544b0b3b024aa19484ec4d75797d
5,334
py
Python
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
46
2015-03-21T00:45:27.000Z
2021-11-16T04:33:29.000Z
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
123
2015-03-02T12:10:31.000Z
2021-11-16T10:29:27.000Z
mysql.py
alphagov/fabric-scripts
c162a43acdef9dec41acd7b2127f2cdef78be347
[ "MIT" ]
19
2015-02-09T11:06:10.000Z
2021-04-22T16:52:28.000Z
from fabric.api import abort, env, hide, run, settings, task from fabric.operations import prompt
35.324503
151
0.691226
a6dc1338864b8a9e2eb892ae7bb5fddbec7266c6
1,158
py
Python
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
Experiment/stream.py
zainbaq/pyOpenBCI
524d0263502ba5c3360be7a0fb4f1022dfe3108f
[ "MIT" ]
null
null
null
from pyOpenBCI import OpenBCIGanglion from pylsl import StreamInfo, StreamOutlet import numpy as np import argparse import json SCALE_FACTOR_EEG = (4500000)/24/(2**23-1) #uV/count args = parse_args() with open(args.config_path) as f: BOARD_CONFIG = json.load(f) print("Creating LSL stream for EEG. \nName: OpenBC...
27.571429
86
0.753022
a6dde0a86d21574139da3d1efce4d33ab90853a1
9,486
py
Python
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
models/VGG16_trained_on_Place365/vgg16_place365_keras.py
guozifeng91/numpy-weights-for-pretrained-CNNs
0570986a5cce5a841341d14b32517fd4fcfdc024
[ "MIT" ]
null
null
null
import keras # build VGG16 Place365 net based on the weight value and net architecture accessed from https://github.com/CSAILVision/places365 # the weight value is for caffe model and are parsed to npy files, the sequence are kept unchanged (channel first, BGR) import zipfile import io import numpy as np
39.360996
128
0.462576
a6de26216871065795b5b7ec53ecb77c0a4e4942
1,313
py
Python
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
main.py
JareBear12418/AutoNetworkLogin
d68ef2d918c31bfa49e9c5e0921903034d87ca26
[ "MIT" ]
null
null
null
import time import yaml from selenium import webdriver main()
36.472222
214
0.668698
a6e17278e6e2908941b708144e21a12c3551c371
516
py
Python
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
Python-programs/solve 2X2 Matrix .py
manavbansalcoder/Hacktoberfest2021
ba20770f070bf9c0b02a8fe2bcbeb72cd559e428
[ "CC0-1.0" ]
null
null
null
print("FINDING Square OF a MATRIX") print(" ") order=int(input("enter order of square matrix=")) if (order==2): a11=int(input("enter a11=")) print(" ") a12=int(input("enter a12=")) print(" ") a21=int(input("enter a21=")) print(" ") a22=int(input("enter a22=")) print(" ") ...
25.8
49
0.515504
a6e25d64ccd3e54ed546f5c28015d89901848099
147
py
Python
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
1
2020-06-11T16:06:22.000Z
2020-06-11T16:06:22.000Z
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
1
2020-10-31T19:47:50.000Z
2020-10-31T19:47:50.000Z
cplusplus/temp.py
ekdnam/bhasha
c34f2a184d25604656c45e18adb56eac844639a6
[ "Apache-2.0" ]
null
null
null
# This is a working model for converting python scripts to .cpp files print("\nHello World!") # comment 1 print("\nThis is Bhasha") # comment 2
36.75
70
0.714286
a6e3c38a31c4479f6488038ae2839813f652c121
17,672
py
Python
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
source/methods_upload_user_stats.py
CheyenneNS/metrics
cfeeac6d01d99679897a998b193d630ada169c61
[ "MIT" ]
null
null
null
from pymongo import MongoClient from pymongo import ReadPreference import json as _json import os import mysql.connector as mysql import requests requests.packages.urllib3.disable_warnings() # NOTE get_user_info_from_auth2 sets up the initial dict. #The following functions update certain fields in the dict. # So get_...
48.416438
139
0.589577
a6e546530cbad3c2cb944ee543616eb417f98888
681
py
Python
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
null
null
null
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
4
2018-12-07T21:32:48.000Z
2019-02-22T15:25:01.000Z
evm/logic/block.py
theresume/py-evm
c7f982e9832ea91312f456cfdd5be7c867853d0b
[ "MIT" ]
null
null
null
from evm import constants
22.7
69
0.807636
a6e5807938177f25388fc19a921008773b63bd36
1,096
py
Python
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
null
null
null
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
4
2021-03-30T13:25:57.000Z
2021-09-22T19:04:09.000Z
profiles/tests.py
Jokotoye18/Learning_log
7de278e252c9abd23a462cf6d7358e8ed22cb66f
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from.models import Profile from allauth.account.forms import SignupForm from django.urls import reverse
31.314286
76
0.642336
a6e5ad4f3536035649df76c9f5e0929300f042e7
243
py
Python
yui_loader/tests/views.py
papuapost/django-yui-loader
db3ce8197f6295b003d81cf2c55715aa11e22f9c
[ "BSD-3-Clause" ]
1
2016-05-09T10:02:46.000Z
2016-05-09T10:02:46.000Z
yui_loader/tests/views.py
akaihola/django-yui-loader
f5344344279d666f2f29dd7d3366dfce1897eca6
[ "BSD-3-Clause" ]
null
null
null
yui_loader/tests/views.py
akaihola/django-yui-loader
f5344344279d666f2f29dd7d3366dfce1897eca6
[ "BSD-3-Clause" ]
1
2021-01-26T04:13:30.000Z
2021-01-26T04:13:30.000Z
from django.template import RequestContext from django.shortcuts import render_to_response
24.3
47
0.73251