hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
ab565c5441d78b71d92ad64b401b7b8b59fac01f
16,500
py
Python
src/advice.py
prithupareek/HRIStudy
f59a01fa3bed7c0fd2acfb11dccb86dde3e462fa
[ "MIT" ]
null
null
null
src/advice.py
prithupareek/HRIStudy
f59a01fa3bed7c0fd2acfb11dccb86dde3e462fa
[ "MIT" ]
6
2021-03-21T18:37:00.000Z
2021-04-03T23:27:36.000Z
src/advice.py
prithupareek/HRIStudy
f59a01fa3bed7c0fd2acfb11dccb86dde3e462fa
[ "MIT" ]
null
null
null
from mistyPy import Robot import random from nonogram import EMPTY, SELECTED, CROSSED import simpleaudio as sa from multiprocessing import Process from mutagen.wave import WAVE import time # Advice numbers NUMBER_EQ_GRIDSIZE = 0 OVERLAPPING = 1 NUM_SEP_BY_1 = 2 UNREACHABLE = 3 STILL_SPACE = 4 MAKE_COMPLE...
40.841584
110
0.513939
ff9986fa603f667331040b25bca8ae03eb6da754
4,417
py
Python
script/ozw_emulator.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
null
null
null
script/ozw_emulator.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
66
2021-01-18T06:52:17.000Z
2022-03-28T08:04:22.000Z
script/ozw_emulator.py
firstof9/python-openzwave-mqtt
25f9f90ba586e33fee7b7a444743966371268787
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Emulate MQTT Broker with OZW Daemon instance from MQTT dump.""" # Experimental ! For debugging purposes # This will host a MQTT (3.1.1) Broker on localhost:1883 # Content of the provided MQTT dump file will be published on the broker # Setvalue command will be handled too. # Connect with Hass...
35.055556
88
0.615123
a1d6ffb532c86f59b976757702ed150189d6ac1a
8,067
py
Python
webapi/webapi/resources/users.py
byanfernando/Nearby
b4fee80c06d8c09371c091410fd769180197d19f
[ "Apache-2.0" ]
1
2020-05-17T07:22:10.000Z
2020-05-17T07:22:10.000Z
webapi/webapi/resources/users.py
byanfernando/Nearby
b4fee80c06d8c09371c091410fd769180197d19f
[ "Apache-2.0" ]
null
null
null
webapi/webapi/resources/users.py
byanfernando/Nearby
b4fee80c06d8c09371c091410fd769180197d19f
[ "Apache-2.0" ]
null
null
null
""" This file contains resource functions that access and manipulate user data """ from util.webshared import JSONResponse, Message, Error, secure from collections import namedtuple from bottle import request, response from util.validation import validate_name, validate_username, validate_password from data.db_mode...
29.988848
80
0.63642
2cd42c0fd3847bc2c63de7427a86f90f4c463843
6,968
py
Python
tests/static_virtual_machine_test.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
tests/static_virtual_machine_test.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
tests/static_virtual_machine_test.py
xiaolihope/PerfKitBenchmarker-1.7.0
7699b1073a80d7a92fd3db93da742b93a2ecf900
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.06383
77
0.669202
6953ed38d20be840c4ca71b816d9113c83e4a2b4
507
py
Python
plotly/validators/scattergeo/hoverlabel/_namelength.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scattergeo/hoverlabel/_namelength.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scattergeo/hoverlabel/_namelength.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name='namelength', parent_name='scattergeo.hoverlabel', **kwargs ): super(NamelengthValidator, self).__init__( plotly_na...
24.142857
73
0.585799
06afbb415e129601b9ad08f59aff841c4d24854b
211
py
Python
testdata/nquery/py3.py
FurqanSoftware/scanlib
e9d796de95d634ca1e8302634ec91aadd83522d6
[ "BSD-3-Clause" ]
6
2021-02-13T15:48:37.000Z
2022-01-10T11:12:54.000Z
testdata/nquery/py3.py
FurqanSoftware/scanlib
e9d796de95d634ca1e8302634ec91aadd83522d6
[ "BSD-3-Clause" ]
2
2021-03-13T14:00:47.000Z
2021-03-22T07:08:11.000Z
testdata/nquery/py3.py
FurqanSoftware/scanlib
e9d796de95d634ca1e8302634ec91aadd83522d6
[ "BSD-3-Clause" ]
null
null
null
_ = None N = int(input()) for i in range(0, N): if _ == None: _ = input().split() q = int(_.pop(0)) if q==1: w = string(_.pop(0)) elif q==2: l = int(_.pop(0)) h = int(_.pop(0)) else: pass _ = None
15.071429
34
0.507109
3156ea7c49513df34c0dd1d134b501d16c37ae8d
2,588
py
Python
fhir/resources/DSTU2/address.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/address.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/address.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Address Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from typing import List as ListType from pydantic import Field from . import fhirtypes from .element import Element class Address(Element): """A postal address. There is a v...
27.242105
79
0.60085
f8e739aa9ebe56738d18299c1ed25b829d94508d
929
py
Python
app/user/views.py
ATummillo/recipe-app-api
4fa05db2c2572b1002847c4534e804e5d0a40ec1
[ "MIT" ]
null
null
null
app/user/views.py
ATummillo/recipe-app-api
4fa05db2c2572b1002847c4534e804e5d0a40ec1
[ "MIT" ]
null
null
null
app/user/views.py
ATummillo/recipe-app-api
4fa05db2c2572b1002847c4534e804e5d0a40ec1
[ "MIT" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from .serializers import UserSerializer, AuthTokenSerializer class CreateUserView(generics.CreateAPIView): """Create a new user in the syste...
29.967742
66
0.784715
614d6611d0a255c7f33e886aa3110a2bc2602eee
2,310
py
Python
zeeguu_core/model/topic.py
mircealungu/Zeeguu-Core
11c7d873b79d94437709c98e75ec42c7909ad310
[ "MIT" ]
1
2018-03-22T12:29:49.000Z
2018-03-22T12:29:49.000Z
zeeguu_core/model/topic.py
zeeguu-ecosystem/Zeeguu-Core
11c7d873b79d94437709c98e75ec42c7909ad310
[ "MIT" ]
82
2017-12-09T16:15:02.000Z
2020-11-12T11:34:09.000Z
zeeguu_core/model/topic.py
zeeguu-ecosystem/Zeeguu-Core
11c7d873b79d94437709c98e75ec42c7909ad310
[ "MIT" ]
9
2017-11-25T11:32:05.000Z
2020-10-26T15:50:13.000Z
import zeeguu_core from sqlalchemy import Column, Integer, String db = zeeguu_core.db class Topic(db.Model): """ A topic is the general (English) name of a topic, the localized_topic contains the language, translation, and the keywords used to find the articles. """ __table_arg...
29.615385
148
0.619913
d3d90c0df1b8ba597898d191d3016895a9bd98c0
22,608
py
Python
test/functional/test_framework/util.py
catscoinofficial/src
eb9053362c3e9c90fe2cac09a65fad7d64d5f417
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
catscoinofficial/src
eb9053362c3e9c90fe2cac09a65fad7d64d5f417
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
catscoinofficial/src
eb9053362c3e9c90fe2cac09a65fad7d64d5f417
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import hexlify,...
38.44898
142
0.649151
39288d4ba3125a28a669a9e3c1e85e59a9bbc807
18,575
py
Python
pypureclient/flashblade/FB_2_2/api/link_aggregation_groups_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_2/api/link_aggregation_groups_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_2/api/link_aggregation_groups_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import...
44.544365
449
0.638331
e2d3ddea660cd3fb3cde2a0473a8fcc6aea8274c
719
py
Python
setup.py
gaurav-naik/healthcare_upgrades
f3993dca42e5557e933184378a7f8a9e94f73d56
[ "MIT" ]
1
2020-11-15T13:27:41.000Z
2020-11-15T13:27:41.000Z
setup.py
gaurav-naik/healthcare_upgrades
f3993dca42e5557e933184378a7f8a9e94f73d56
[ "MIT" ]
1
2018-12-19T17:05:15.000Z
2018-12-19T17:05:15.000Z
setup.py
gaurav-naik/healthcare_upgrades
f3993dca42e5557e933184378a7f8a9e94f73d56
[ "MIT" ]
1
2021-08-16T10:11:36.000Z
2021-08-16T10:11:36.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import re, ast with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in healthcare_upgrades/__init__.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('healthcare_...
27.653846
74
0.74548
1c3cb5a8ffd9fbacef60a0be301fe4f5ae217ce2
3,610
py
Python
tests/test_0013-rntuple-anchor.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
133
2020-05-08T21:34:11.000Z
2022-03-07T18:12:58.000Z
tests/test_0013-rntuple-anchor.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
269
2020-05-13T02:42:24.000Z
2022-03-24T20:24:16.000Z
tests/test_0013-rntuple-anchor.py
eic/uproot4
deb8d88c2643521f372bf5005c51af8926016c7e
[ "BSD-3-Clause" ]
45
2020-05-15T17:48:04.000Z
2022-03-18T19:23:07.000Z
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE from __future__ import absolute_import import json import sys try: import queue except ImportError: import Queue as queue import numpy import pytest import skhep_testdata import uproot def test(): filename = skhep_tes...
42.470588
83
0.380332
93e5955a5dac149af2b4e5e2bf3e3502495f7ac5
922
py
Python
ex1/algorithms/dnala.py
tkauf15k/sos2020
b75188097d095e4acaca32290ba4f49fa8cb6c0e
[ "Apache-2.0" ]
null
null
null
ex1/algorithms/dnala.py
tkauf15k/sos2020
b75188097d095e4acaca32290ba4f49fa8cb6c0e
[ "Apache-2.0" ]
null
null
null
ex1/algorithms/dnala.py
tkauf15k/sos2020
b75188097d095e4acaca32290ba4f49fa8cb6c0e
[ "Apache-2.0" ]
null
null
null
from algorithms.algorithm_base import algorithm_base from lib.helperfunctions import DNALA, fitness from lib.localsearch import localsearch class dnala(algorithm_base): def __init__(self, localsearch): super().__init__() self.localsearch = localsearch def solve(self, num_sequences, time_limi...
29.741935
167
0.704989
3c66019d572fcdbf2903bdb11dd73f6bd161d7c0
1,120
py
Python
tests/fake_packages/app1/setup.py
Pylons/plaster
526fb7642f51bbef826edbb2d589dba4d70a1e90
[ "MIT" ]
15
2017-03-29T05:57:38.000Z
2021-12-16T13:30:29.000Z
tests/fake_packages/app1/setup.py
Pylons/plaster
526fb7642f51bbef826edbb2d589dba4d70a1e90
[ "MIT" ]
6
2017-03-28T13:35:10.000Z
2021-04-19T01:21:01.000Z
tests/fake_packages/app1/setup.py
Pylons/plaster
526fb7642f51bbef826edbb2d589dba4d70a1e90
[ "MIT" ]
6
2017-07-03T16:39:25.000Z
2019-01-08T15:02:12.000Z
from setuptools import setup, find_packages setup( name="app1", version="1.0", packages=find_packages(), entry_points={ "plaster.loader_factory": [ "conf=app1.loaders:ConfLoader", "file+conf=app1.loaders:ConfLoader", "ini=app1.loaders:INIWSGILoader", ...
32.941176
58
0.579464
e1757efcca2a2d9ca77b7302f81b2603d3153fbf
264
py
Python
lib/oeqa/runtime/cases/rubygems_rubygems_webrick.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
null
null
null
lib/oeqa/runtime/cases/rubygems_rubygems_webrick.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
141
2021-02-04T16:22:13.000Z
2022-03-27T08:29:40.000Z
lib/oeqa/runtime/cases/rubygems_rubygems_webrick.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
3
2021-02-04T14:02:01.000Z
2022-02-02T16:46:52.000Z
from rubygems_utils import RubyGemsTestUtils class RubyGemsTestrubygems_webrick(RubyGemsTestUtils): def test_gem_list_rubygems_webrick(self): self.gem_is_installed("webrick") def test_load_webrick(self): self.gem_is_loadable("webrick")
24
54
0.776515
48faf1a4d2bf555a86220dcf03c2fda604a03bf3
1,112
py
Python
label_loader.py
Joovvhan/speech_hackathon_2019
23876ec99df1a684098f748fe19db17cc5655098
[ "Apache-2.0" ]
null
null
null
label_loader.py
Joovvhan/speech_hackathon_2019
23876ec99df1a684098f748fe19db17cc5655098
[ "Apache-2.0" ]
null
null
null
label_loader.py
Joovvhan/speech_hackathon_2019
23876ec99df1a684098f748fe19db17cc5655098
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019-present NAVER Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
30.888889
72
0.63759
ebb976b1eff855f82dca3a5a85e2283a8333f5a8
1,309
py
Python
DailyProgrammer/20120320B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/20120320B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/20120320B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" A tetrahedral number[https://en.wikipedia.org/wiki/Tetrahedral_number] is is a figurate number that represents a pyramid with a triangular base and three sides. Write a program to find the base of the tetrahedron that contains an input number of balls. example: 169179692512835000 balls taken from programmingpraxis....
24.240741
112
0.590527
9d676c3f0801c8bb6b6d91a0e4c904f27f6fd5d4
2,093
py
Python
cogs/utils/timezones.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
cogs/utils/timezones.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
cogs/utils/timezones.py
n303p4/sailor-fox
5c7b1077414916bd3ecacd8089a81a10efe7f43b
[ "MIT" ]
null
null
null
"""A time command.""" import datetime import pytz from pytz.exceptions import UnknownTimeZoneError from sailor import commands, exceptions URL = "https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" FORMAT = "%-I:%M:%S %p %Z (UTC%z)" CONTINENTS = ["Africa/", "America/", "America/Argentina/", "America/Indiana...
37.375
99
0.61204
cf0abb397a4d7b80c207d7ec9ff0e1c0dccf75ed
24,922
py
Python
experiments/2021-11-05-no-indiv-tasks/analysis/aggregate.py
amlalejini/directed-digital-evolution
eb19ea9182e2e9b203513433e90bd73d4768a5a1
[ "MIT" ]
2
2021-09-10T15:32:52.000Z
2021-09-10T21:30:25.000Z
experiments/2021-11-05-no-indiv-tasks/analysis/aggregate.py
amlalejini/directed-digital-evolution
eb19ea9182e2e9b203513433e90bd73d4768a5a1
[ "MIT" ]
null
null
null
experiments/2021-11-05-no-indiv-tasks/analysis/aggregate.py
amlalejini/directed-digital-evolution
eb19ea9182e2e9b203513433e90bd73d4768a5a1
[ "MIT" ]
null
null
null
''' Aggregate experiment data - Experiment: AvidaGP L9 SUMMARY FILES - experiment - config + summary(evaluation) + systematics + summary(world summary) - world - task ''' import argparse, os, sys, errno, csv, json, copy, pandas from scipy.stats import entropy run_identifiers = ["RUN_"] # String that identifies ...
48.019268
191
0.639796
3765445dfa5d37fd32c81d6de0924f44169e723d
1,034
py
Python
students/k3343/laboratory_works/Kozyreva_Alyona/lab_work2/django_hospital/hospital/urls.py
AlyonaKozyr/ITMO_ICT_WebProgramming_2020
b89ec06f7d5f2cd60b509f2850df412732ccc615
[ "MIT" ]
null
null
null
students/k3343/laboratory_works/Kozyreva_Alyona/lab_work2/django_hospital/hospital/urls.py
AlyonaKozyr/ITMO_ICT_WebProgramming_2020
b89ec06f7d5f2cd60b509f2850df412732ccc615
[ "MIT" ]
null
null
null
students/k3343/laboratory_works/Kozyreva_Alyona/lab_work2/django_hospital/hospital/urls.py
AlyonaKozyr/ITMO_ICT_WebProgramming_2020
b89ec06f7d5f2cd60b509f2850df412732ccc615
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.authtoken.views import obtain_auth_token from .views import * app_name = "hospital" urlpatterns = [ path('auth/', include('djoser.urls')), path('auth/token', obtain_auth_token, name='token'), path('patients/', GetAllPatientView.as_view()), path('patients...
36.928571
66
0.743714
d5cb87993cbb083fc94a80619a27032201ee3b75
776
py
Python
tests/test_ls.py
timgates42/pew
37d9ff79342336b8ef6437d9a551008be07afe9b
[ "MIT" ]
1,031
2015-01-02T05:24:43.000Z
2022-03-07T23:21:12.000Z
tests/test_ls.py
timgates42/pew
37d9ff79342336b8ef6437d9a551008be07afe9b
[ "MIT" ]
181
2015-01-03T14:01:56.000Z
2022-02-14T21:37:01.000Z
tests/test_ls.py
timgates42/pew
37d9ff79342336b8ef6437d9a551008be07afe9b
[ "MIT" ]
99
2015-01-10T19:11:03.000Z
2022-02-09T17:17:29.000Z
from pathlib import Path from pew._utils import invoke_pew as invoke def test_ls(workon_home): r = invoke('ls') assert not r.out and not r.err def test_get_site_packages_dir(workon_home): invoke('new', 'env', '-d') d = invoke('in', 'env', 'pew', 'sitepackages_dir').out assert Path(d).exists ...
25.866667
59
0.621134
e98db5a2df8db0a217090cd1e490089066e51169
143
py
Python
photoshop.py
calebschoepp/one-stop-photoshop
14015e6ba453747e348f840acdc4d2ddb876b883
[ "MIT" ]
null
null
null
photoshop.py
calebschoepp/one-stop-photoshop
14015e6ba453747e348f840acdc4d2ddb876b883
[ "MIT" ]
null
null
null
photoshop.py
calebschoepp/one-stop-photoshop
14015e6ba453747e348f840acdc4d2ddb876b883
[ "MIT" ]
null
null
null
from app import app, db from app.models import Post @app.shell_context_processor def make_shell_context(): return {'db': db, 'Post': Post}
23.833333
35
0.741259
0e87751268734e105c7af7e0f8e5c0161f2f1310
142
py
Python
backend/eatit/apps.py
anubhav06/eatit
abd40d2a38c5db7e66260f579279c0fce513cdfe
[ "MIT" ]
2
2021-12-07T20:46:10.000Z
2022-02-21T15:08:02.000Z
backend/eatit/apps.py
anubhav06/eatit
abd40d2a38c5db7e66260f579279c0fce513cdfe
[ "MIT" ]
20
2022-01-07T07:25:29.000Z
2022-03-08T18:13:31.000Z
backend/eatit/apps.py
anubhav06/eatit
abd40d2a38c5db7e66260f579279c0fce513cdfe
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EatitConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'eatit'
20.285714
56
0.753521
58f350dbf78c5c07dd427168013fbfd8ba509c84
159
py
Python
corehq/apps/hqcouchlog/views.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/hqcouchlog/views.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/hqcouchlog/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
def fail(request, domain): # if you want to play with it, wire this to a url raise Exception("HQ Couchlog simulated failure in domain %s!" % domain)
26.5
75
0.691824
30911cc0fc637bc4390a2d7063306c866bf41d16
2,110
py
Python
communication/db_wbc_helper.py
abrilevskiy/DroneBridge
d1997f01a7d40b42649efac827278cc69271be09
[ "Apache-2.0" ]
2
2020-09-10T07:43:19.000Z
2020-09-10T07:44:15.000Z
communication/db_wbc_helper.py
abrilevskiy/DroneBridge
d1997f01a7d40b42649efac827278cc69271be09
[ "Apache-2.0" ]
null
null
null
communication/db_wbc_helper.py
abrilevskiy/DroneBridge
d1997f01a7d40b42649efac827278cc69271be09
[ "Apache-2.0" ]
null
null
null
# # This file is part of DroneBridge: https://github.com/seeul8er/DroneBridge # # Copyright 2017 Wolfgang Christl # # 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.apac...
30.57971
100
0.690995
43e13550d027b27115fb54d01c7420430c05a2b4
8,214
py
Python
examples/question_answering_crossvalidation.py
jamontol/FARM
46b856a3e2b3cb65bd167811317c5c5dbd1073f1
[ "Apache-2.0" ]
2
2020-07-03T09:36:23.000Z
2020-07-03T13:24:08.000Z
examples/question_answering_crossvalidation.py
jamontol/FARM
46b856a3e2b3cb65bd167811317c5c5dbd1073f1
[ "Apache-2.0" ]
null
null
null
examples/question_answering_crossvalidation.py
jamontol/FARM
46b856a3e2b3cb65bd167811317c5c5dbd1073f1
[ "Apache-2.0" ]
null
null
null
import logging import json import torch from pathlib import Path from farm.utils import set_all_seeds, MLFlowLogger, initialize_device_settings from farm.modeling.tokenization import Tokenizer from farm.data_handler.processor import SquadProcessor from farm.data_handler.data_silo import DataSilo, DataSiloForCrossVal f...
39.301435
162
0.66338
62c96badab8bf6c9185bcdd24cca5e5e4f389ded
19,937
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripStatusLabel.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripStatusLabel.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/ToolStripStatusLabel.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ToolStripStatusLabel( ToolStripLabel, IComponent, IDisposable, IDropTarget, ISupportOleDropSource, IArrangedElement, ): """ Represents a panel in a System.Windows.Forms.StatusStrip control. ToolStripStatusLabel() ToolStripStatusLabel(text: str) ToolStripStatu...
23.791169
221
0.663289
89972c1092f2b4e395cead18f53965817c3a7c5b
4,492
py
Python
Code/Build/Models/ORB/Training/SVMSearch.py
IliaBahmutov/ArtML
e44bdf03428c3984a76f556417bf47d90793dc2d
[ "BSD-3-Clause" ]
null
null
null
Code/Build/Models/ORB/Training/SVMSearch.py
IliaBahmutov/ArtML
e44bdf03428c3984a76f556417bf47d90793dc2d
[ "BSD-3-Clause" ]
null
null
null
Code/Build/Models/ORB/Training/SVMSearch.py
IliaBahmutov/ArtML
e44bdf03428c3984a76f556417bf47d90793dc2d
[ "BSD-3-Clause" ]
null
null
null
import numpy #for numpy storage import os #to find files import time #for time to complete from sklearn import svm import pickle start = time.time() from sklearn.calibration import CalibratedClassifierCV from statistics import mean #Import Training Data & Labels data = numpy.load("Data/1UkiORBTrainingData.npy") data =...
34.030303
100
0.715939
9c022467294359128a1731925e70841f3132bf1a
4,334
py
Python
docs/tutorials_torch/action_recognition/demo_i3d_kinetics400.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1
2020-07-27T08:04:28.000Z
2020-07-27T08:04:28.000Z
docs/tutorials_torch/action_recognition/demo_i3d_kinetics400.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1
2020-11-24T06:25:16.000Z
2020-11-24T06:25:16.000Z
docs/tutorials_torch/action_recognition/demo_i3d_kinetics400.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
null
null
null
"""1. Getting Started with Pre-trained I3D Models on Kinetcis400 ================================================================ `Kinetics400 <https://deepmind.com/research/open-source/kinetics>`_ is an action recognition dataset of realistic action videos, collected from YouTube. With 306,245 short trimmed videos f...
43.34
124
0.672127
02bbbc5317dcf08cf7c7dc89c434b2dd0434f1e9
952
py
Python
common/darts/__init__.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
2
2021-02-06T06:47:19.000Z
2021-02-24T13:45:02.000Z
common/darts/__init__.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
1
2021-06-16T13:43:54.000Z
2021-06-16T15:06:35.000Z
common/darts/__init__.py
j-woz/Benchmarks
d518162fdafb7cfa26071b6a30a3b456dad024f6
[ "MIT" ]
5
2020-12-29T15:32:13.000Z
2021-03-12T20:26:28.000Z
from __future__ import absolute_import __author__ = 'Todd Young' __email__ = 'youngmt1@ornl.gov' __version__ = '0.1.0' # Essential pieces from .architecture import Architecture from .modules.network import Network from .modules.conv.network import ConvNetwork from .modules.linear.network import LinearNetwork from .st...
25.72973
63
0.79937
b1b7ef4705213d2d9d211f8e900f97647720fdc9
1,523
py
Python
python/desc/imsim/fopen.py
g-braeunlich/imSim
c6f97ba39f05313570d15671f2b9eb9bd1de24bc
[ "BSD-3-Clause" ]
13
2017-06-03T12:38:08.000Z
2022-01-24T18:56:31.000Z
python/desc/imsim/fopen.py
g-braeunlich/imSim
c6f97ba39f05313570d15671f2b9eb9bd1de24bc
[ "BSD-3-Clause" ]
225
2016-11-29T23:08:20.000Z
2022-03-08T03:20:17.000Z
python/desc/imsim/fopen.py
g-braeunlich/imSim
c6f97ba39f05313570d15671f2b9eb9bd1de24bc
[ "BSD-3-Clause" ]
9
2017-10-26T17:20:23.000Z
2022-03-29T09:53:18.000Z
""" Utilities to read in gzipped instance catalogs with includeobj directives. """ import os import contextlib import gzip __all__ = ["fopen"] @contextlib.contextmanager def fopen(filename, **kwds): """ Return a file descriptor-like object that closes the underlying file descriptor when used with the wit...
27.690909
74
0.608667
4ec5d26b70bbcace36370965fb59f31c84653d92
26,314
py
Python
develop/testTracer.py
mustard-seed/SparseNN_training
267a1fb5bed650e66ad5cf3d98069891bb307aec
[ "Apache-2.0" ]
null
null
null
develop/testTracer.py
mustard-seed/SparseNN_training
267a1fb5bed650e66ad5cf3d98069891bb307aec
[ "Apache-2.0" ]
null
null
null
develop/testTracer.py
mustard-seed/SparseNN_training
267a1fb5bed650e66ad5cf3d98069891bb307aec
[ "Apache-2.0" ]
null
null
null
""" Test file for the NN tracer. Declare a mini ResNet-like model, prune and quantize it, and then feed it through the tracer to see what comes out of it. """ import custom_modules.custom_modules as cm import custom_modules.resnet as resnet import pruning.pruning as custom_pruning import quantization.quantization as cu...
37.916427
140
0.572319
d8e159349f699e3e4e87c185f7f75b99e5d822e6
608
py
Python
calculate_anything/query/result.py
tchar/ulauncher-calculate-anything
ee0903174c8b87cd1f7c3b6c1acef10702547507
[ "MIT" ]
41
2021-07-12T08:40:28.000Z
2022-03-11T03:03:05.000Z
calculate_anything/query/result.py
tchar/ulauncher-calculate-anything
ee0903174c8b87cd1f7c3b6c1acef10702547507
[ "MIT" ]
28
2021-07-09T22:36:09.000Z
2022-03-28T08:54:15.000Z
calculate_anything/query/result.py
tchar/ulauncher-calculate-anything
ee0903174c8b87cd1f7c3b6c1acef10702547507
[ "MIT" ]
3
2021-07-12T04:52:20.000Z
2022-03-03T20:08:11.000Z
from calculate_anything.exceptions import ExtendedException from typing import Any, Optional __all__ = ['QueryResult'] class QueryResult: def __init__( self, icon: str = '', name: str = '', description: str = '', clipboard: Optional[str] = None, value: Any = None,...
23.384615
59
0.578947
2e46e302b3075b68778c233577a8cfc58a284dcd
300
py
Python
imagersite/imager_api/views.py
grandquista/django-imager
a2ba44a7377abc086d411dbe49e89c7b07897c63
[ "MIT" ]
null
null
null
imagersite/imager_api/views.py
grandquista/django-imager
a2ba44a7377abc086d411dbe49e89c7b07897c63
[ "MIT" ]
2
2022-01-13T04:25:17.000Z
2022-03-12T01:06:00.000Z
imagersite/imager_api/views.py
grandquista/django-imager
a2ba44a7377abc086d411dbe49e89c7b07897c63
[ "MIT" ]
null
null
null
from rest_framework import generics from imager_images.models import Photo from .serializers import PhotoSerializer class PhotosList(generics.ListCreateAPIView): def get_queryset(self): return Photo.objects.filter(album__user=self.request.user) serializer_class = PhotoSerializer
25
66
0.806667
d538bfe21b5fcef8a919e93f99e7eba28fd897f5
2,220
py
Python
lnbits/extensions/offlineshop/views.py
fusion44/lnbits
e8af7173feac5fdb1f1a8d3f2e12cdb53cd4fccc
[ "MIT" ]
258
2020-04-27T21:36:21.000Z
2021-10-30T23:24:48.000Z
lnbits/extensions/offlineshop/views.py
fusion44/lnbits
e8af7173feac5fdb1f1a8d3f2e12cdb53cd4fccc
[ "MIT" ]
283
2020-04-27T17:23:12.000Z
2021-11-01T10:07:20.000Z
lnbits/extensions/offlineshop/views.py
fusion44/lnbits
e8af7173feac5fdb1f1a8d3f2e12cdb53cd4fccc
[ "MIT" ]
109
2020-04-28T06:00:17.000Z
2021-10-13T02:48:28.000Z
import time from datetime import datetime from quart import g, render_template, request from http import HTTPStatus from lnbits.decorators import check_user_exists, validate_uuids from lnbits.core.models import Payment from lnbits.core.crud import get_standalone_payment from lnbits.core.services import check_invoice_s...
29.210526
92
0.636486
8ccd723dd219b78b4285262b98bdfe23e60742ed
2,234
py
Python
conformer/modules/convolutions.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
conformer/modules/convolutions.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
conformer/modules/convolutions.py
dudgns0908/KoASR
6617acd94362c6d70614bf0c69a8088843ad3f4f
[ "Apache-2.0" ]
null
null
null
from typing import Optional import numpy as np import torch from torch import nn, Tensor class PointwiseConv1d(nn.Module): def __init__( self, in_channels: int, out_channels: int, stride: int = 1, padding: int = 0, dilation: int = 1, ...
28.641026
110
0.555506
1a0d7f26fd9bb7f059dec55c4d5d821255972f79
4,046
py
Python
sermepa/views.py
Etxea/django-sermepa
1be9173c4786e138b4dafce830f6d8e22a6762e6
[ "MIT" ]
3
2015-12-15T09:49:36.000Z
2018-06-28T10:29:00.000Z
sermepa/views.py
Etxea/django-sermepa
1be9173c4786e138b4dafce830f6d8e22a6762e6
[ "MIT" ]
null
null
null
sermepa/views.py
Etxea/django-sermepa
1be9173c4786e138b4dafce830f6d8e22a6762e6
[ "MIT" ]
4
2015-12-15T09:49:40.000Z
2021-09-10T10:07:02.000Z
# -*- coding: utf-8 -*- import json from django.http import HttpResponse import dateutil.parser from django.views.decorators.csrf import csrf_exempt from sermepa.signals import payment_was_successful, refund_was_successful, payment_was_error, signature_error from sermepa.forms import SermepaResponseForm from sermepa.m...
51.21519
118
0.701681
3678c91ee0dfb0dbb2036a38ec2e63eafdcf587a
7,232
py
Python
test/unittest/test_hg.py
joway/git-lint
29f0ab6a876c675f099d0aae4185c89e9c0a96a8
[ "Apache-2.0" ]
3
2015-04-05T13:52:31.000Z
2019-02-17T13:32:38.000Z
test/unittest/test_hg.py
joway/git-lint
29f0ab6a876c675f099d0aae4185c89e9c0a96a8
[ "Apache-2.0" ]
2
2017-04-28T18:51:26.000Z
2019-04-11T22:44:49.000Z
test/unittest/test_hg.py
joway/git-lint
29f0ab6a876c675f099d0aae4185c89e9c0a96a8
[ "Apache-2.0" ]
3
2017-02-17T23:41:03.000Z
2020-11-07T10:38:16.000Z
# Copyright 2013-2014 Sebastian Kreft # # 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 ...
41.803468
80
0.506775
810be51b16991ebe14d1b9f100fc18ef104bcafe
1,291
py
Python
dvhb_hybrid/files/migrations/0001_initial.py
dvhb/dvhb-hybrid
6fc56ee109a3e647e76567389bad30476b8916e9
[ "MIT" ]
27
2018-05-08T16:03:24.000Z
2020-02-20T06:39:19.000Z
dvhb_hybrid/files/migrations/0001_initial.py
dvhb/dvhb-hybrid
6fc56ee109a3e647e76567389bad30476b8916e9
[ "MIT" ]
7
2018-10-20T16:03:36.000Z
2021-11-03T11:09:22.000Z
dvhb_hybrid/files/migrations/0001_initial.py
dvhb/dvhb-hybrid
6fc56ee109a3e647e76567389bad30476b8916e9
[ "MIT" ]
16
2018-12-11T15:34:22.000Z
2022-01-25T00:20:55.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-09 09:55 from __future__ import unicode_literals from django.db import migrations, models import dvhb_hybrid.files.storages class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
34.891892
106
0.577847
a932da6f70065904351a5f93bc6757792eb32302
6,877
py
Python
jarviscli/plugins/cricket.py
kapurm17/Jarvis
c1c162c64612bcd1c6f9549db55136d298c52e0c
[ "MIT" ]
1
2021-09-15T07:05:07.000Z
2021-09-15T07:05:07.000Z
jarviscli/plugins/cricket.py
DEBADRIBASAK/Jarvis
78f6717257a3e925562a64816f4e95203bb6d2f8
[ "MIT" ]
null
null
null
jarviscli/plugins/cricket.py
DEBADRIBASAK/Jarvis
78f6717257a3e925562a64816f4e95203bb6d2f8
[ "MIT" ]
null
null
null
from six.moves import input from plugin import Plugin from colorama import Fore from pycricbuzz import Cricbuzz class Cricket(Plugin): """ Enter cricket and follow the instructions """ def __init__(self): self.c = Cricbuzz() def require(self): yield ('network', True) def com...
41.179641
122
0.484368
e472314f949898c98c378b2b16e4a1424e7b73fe
57,138
py
Python
google/ads/google_ads/v3/proto/common/user_lists_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v3/proto/common/user_lists_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v3/proto/common/user_lists_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2020-09-30T17:04:06.000Z
2020-09-30T17:04:06.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v3/proto/common/user_lists.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import mess...
48.669506
5,655
0.782211
df21287033e1fe73a0c8e89f88c426efa8b0d8b4
3,034
py
Python
certbot-apache/setup.py
hugovk/certbot
8574313841b140bbc00f3d7e2036db0794ab6d6c
[ "Apache-2.0" ]
null
null
null
certbot-apache/setup.py
hugovk/certbot
8574313841b140bbc00f3d7e2036db0794ab6d6c
[ "Apache-2.0" ]
null
null
null
certbot-apache/setup.py
hugovk/certbot
8574313841b140bbc00f3d7e2036db0794ab6d6c
[ "Apache-2.0" ]
null
null
null
from distutils.version import LooseVersion import sys from setuptools import __version__ as setuptools_version from setuptools import find_packages from setuptools import setup from setuptools.command.test import test as TestCommand version = '1.8.0.dev0' # Remember to update local-oldest-requirements.txt when chang...
31.604167
97
0.642057
b1b0917591631bc9a52f8a8fb7b95f4d6b7f0ec1
4,579
py
Python
python_omegle/randomchat.py
Coal0/python-omegle
5fca696522c2e74940bf54abc1882518fd5ab647
[ "MIT" ]
23
2019-03-04T07:38:16.000Z
2022-02-27T21:05:08.000Z
python_omegle/randomchat.py
Coal0/python-omegle
5fca696522c2e74940bf54abc1882518fd5ab647
[ "MIT" ]
6
2020-06-28T23:52:00.000Z
2022-03-08T01:51:03.000Z
python_omegle/randomchat.py
Coal0/python-omegle
5fca696522c2e74940bf54abc1882518fd5ab647
[ "MIT" ]
12
2018-10-06T10:16:29.000Z
2022-02-26T14:39:10.000Z
import json from python_omegle._abstractchat import _AbstractChat from python_omegle._common import ( requests, # patched _START_URL, _validate_status_code ) from python_omegle.chatevent import ChatEvent from python_omegle.exceptions import PythonOmegleException class RandomChat(_AbstractChat): """...
34.954198
74
0.585936
bb6b00596f22c66d840543f6974b88d5d68c68e0
4,455
py
Python
ppo1_fx_test.py
jezuina/drl-trading
878d032f8ddd088193a3a97c53115cc5fc036f20
[ "Apache-2.0" ]
3
2020-07-25T14:57:03.000Z
2021-07-24T08:38:44.000Z
ppo1_fx_test.py
jezuina/drl-trading
878d032f8ddd088193a3a97c53115cc5fc036f20
[ "Apache-2.0" ]
null
null
null
ppo1_fx_test.py
jezuina/drl-trading
878d032f8ddd088193a3a97c53115cc5fc036f20
[ "Apache-2.0" ]
3
2020-07-26T15:04:44.000Z
2021-04-19T19:56:07.000Z
# tensorboard --logdir=tensorboard tensorboard --logdir=. import numpy as np import matplotlib.pyplot as plt import pyfolio as pf from stable_baselines.common.vec_env import DummyVecEnv, VecNormalize from stable_baselines import PPO1 from envs.pf_fx_env import PortfolioEnv from utils.globals import EPS, MODELS_DIR ...
34.007634
437
0.666442
3b7190fbf7b2eb622915884bb4bb76fb3afe2978
1,468
py
Python
examples/createhostExample.py
CSC-miri/pyops
8434341cb7d58208848911eadd83fbd66eec0c95
[ "MIT" ]
2
2020-04-24T11:48:58.000Z
2022-01-10T11:16:55.000Z
examples/createhostExample.py
CSC-miri/pyops
8434341cb7d58208848911eadd83fbd66eec0c95
[ "MIT" ]
2
2018-07-16T13:45:55.000Z
2020-04-15T13:29:23.000Z
examples/createhostExample.py
CSC-miri/pyops
8434341cb7d58208848911eadd83fbd66eec0c95
[ "MIT" ]
1
2022-01-14T11:02:57.000Z
2022-01-14T11:02:57.000Z
# # # Test Creating hosts # import pyops import os import json #Configure Variables # To use this, set prod_base to the rest url of the opsview server. # Then in bash run # $ export prod_ops_user=opsview_username # $ read -s prod_ops_pass # $ export prod_ops_pass prod_user = os.environ['prod_ops_user'] prod_pass = os....
29.36
82
0.75
39750c3fc0e0d8de1d6efd7daf6e5fcd24306165
957
py
Python
foodplanapp/migrations/0010_auto_20220318_1457.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
null
null
null
foodplanapp/migrations/0010_auto_20220318_1457.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
null
null
null
foodplanapp/migrations/0010_auto_20220318_1457.py
949027/food-plan
382791059469058614bfd028d674ba1f69b25e2b
[ "MIT" ]
1
2022-03-22T02:04:59.000Z
2022-03-22T02:04:59.000Z
# Generated by Django 4.0.3 on 2022-03-18 11:57 import random from django.db import migrations class Migration(migrations.Migration): def set_allergy_and_menutype_for_dishes(apps, schema_editor): menu_types = [ "classic", "low_calorie", "vegan", "keto", ...
28.147059
76
0.606061
c4fc12c9f488ece994f6943cf5c88220c7fc7f4c
9,466
py
Python
docs/conf.py
apedroed88/pysqlbuilder
ae3d0963859f3394c35ba12ba32a084edab71acb
[ "Apache-2.0" ]
null
null
null
docs/conf.py
apedroed88/pysqlbuilder
ae3d0963859f3394c35ba12ba32a084edab71acb
[ "Apache-2.0" ]
null
null
null
docs/conf.py
apedroed88/pysqlbuilder
ae3d0963859f3394c35ba12ba32a084edab71acb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pysqlbuilder documentation build configuration file, created by # sphinx-quickstart on Wed Jul 6 17:51:50 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
32.417808
79
0.71012
ee5ef8f2fdda2ac562c1d04085a882d89646b80e
24,885
py
Python
tests/tape/interfaces/test_qnode_autograd.py
markhop20/pennylane
8792f0f88178f70a04d6f7afbbb9dd90d2e758b3
[ "Apache-2.0" ]
1
2021-01-26T23:47:49.000Z
2021-01-26T23:47:49.000Z
tests/tape/interfaces/test_qnode_autograd.py
markhop20/pennylane
8792f0f88178f70a04d6f7afbbb9dd90d2e758b3
[ "Apache-2.0" ]
null
null
null
tests/tape/interfaces/test_qnode_autograd.py
markhop20/pennylane
8792f0f88178f70a04d6f7afbbb9dd90d2e758b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies 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 applicabl...
37.364865
125
0.567973
044725f94cf4be8455932d70226f38bcde48cae3
5,069
py
Python
python/oneflow/test/modules/test_normalization.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_normalization.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_normalization.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
31.290123
84
0.560071
b34a9b512a45425f78e8698ffb734815cbf64402
121
py
Python
annoyed-alligators/socl_media/apps/users/admin.py
kamahmad/summer-code-jam-2020
e2cfbbe19ec700448a94faae665eab1a2471c4b3
[ "MIT" ]
null
null
null
annoyed-alligators/socl_media/apps/users/admin.py
kamahmad/summer-code-jam-2020
e2cfbbe19ec700448a94faae665eab1a2471c4b3
[ "MIT" ]
null
null
null
annoyed-alligators/socl_media/apps/users/admin.py
kamahmad/summer-code-jam-2020
e2cfbbe19ec700448a94faae665eab1a2471c4b3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile # Register your models here. admin.site.register(Profile)
17.285714
32
0.801653
c13900769e697d4e573ac75e18ad2ff07a35ee95
5,021
py
Python
TextMagic/models/request_new_subaccount_token_input_object.py
textmagic/textmagic-rest-python-v2
49055e214a6cf0f7545b85aa03e49e6d92bcef13
[ "MIT" ]
2
2020-10-21T09:44:33.000Z
2021-06-29T20:58:57.000Z
TextMagic/models/request_new_subaccount_token_input_object.py
textmagic/textmagic-rest-python-v2
49055e214a6cf0f7545b85aa03e49e6d92bcef13
[ "MIT" ]
null
null
null
TextMagic/models/request_new_subaccount_token_input_object.py
textmagic/textmagic-rest-python-v2
49055e214a6cf0f7545b85aa03e49e6d92bcef13
[ "MIT" ]
1
2021-12-02T12:15:56.000Z
2021-12-02T12:15:56.000Z
# coding: utf-8 """ TextMagic API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six ...
28.856322
119
0.593906
0db56699c33aa1d66ac97f1e55a67ccb018350c1
800
py
Python
analysis/malloc_tracer/encode_vec_to_uint.py
Hasenpfote/fpq
3154ed1b1d5eca08255e8359b5027439af43691c
[ "MIT" ]
null
null
null
analysis/malloc_tracer/encode_vec_to_uint.py
Hasenpfote/fpq
3154ed1b1d5eca08255e8359b5027439af43691c
[ "MIT" ]
1
2021-01-09T07:56:22.000Z
2021-01-09T07:56:22.000Z
analysis/malloc_tracer/encode_vec_to_uint.py
Hasenpfote/fpq
3154ed1b1d5eca08255e8359b5027439af43691c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import malloc_tracer as mt import math import random import os import sys sys.path.append(os.getcwd()) sys.path.append('../') sys.path.append('../../') from data import make_vec_dataset from fpq import vector def main(): dataset_size = 100000 s...
20.512821
76
0.6475
78c5f95d9ee1374a6eed04e598b5352269b67477
78
py
Python
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
5
2021-09-29T18:53:37.000Z
2022-03-01T08:03:42.000Z
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
# Import the envs module so that envs register themselves import gym_minigrid
26
57
0.833333
b960eea6d6b0084df7fca13d92774fd5128c6062
308
py
Python
src/pymor/core/dynamic.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/core/dynamic.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/core/dynamic.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) """ This is an empty module usable as a placeholder(-dict) for dynamically created types and such """
38.5
93
0.746753
c60d5bb78124b73ba523d6e03ef3a0f599aa3a70
5,199
py
Python
BB/commands/admn_channels.py
Morgenkroete/GOF2BountyBot
b4fe3d765b764ab169284ce0869a810825013389
[ "MIT" ]
6
2020-06-09T16:36:52.000Z
2021-02-02T17:53:44.000Z
BB/commands/admn_channels.py
Morgenkroete/GOF2BountyBot
b4fe3d765b764ab169284ce0869a810825013389
[ "MIT" ]
138
2020-08-02T11:20:34.000Z
2020-12-15T15:55:11.000Z
BB/commands/admn_channels.py
Morgenkroete/GOF2BountyBot
b4fe3d765b764ab169284ce0869a810825013389
[ "MIT" ]
6
2020-07-05T05:32:16.000Z
2020-11-01T21:58:31.000Z
import discord from . import commandsDB as bbCommands from .. import bbGlobals from ..bbConfig import bbConfig, bbData bbCommands.addHelpSection(1, "channels") async def admin_cmd_set_announce_channel(message : discord.Message, args : str, isDM : bool): """admin command for setting the current guild's announcem...
59.758621
466
0.742835
6cee512fb3e09bb38b16ef30946675bcfaec62a7
3,727
py
Python
tests/modeltests/model_inheritance/models.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
2
2015-11-05T06:07:13.000Z
2019-01-04T07:35:59.000Z
tests/modeltests/model_inheritance/models.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
null
null
null
tests/modeltests/model_inheritance/models.py
alex/django-old
6f964c8f03e5d25c9e36898a001c8463f82fbb81
[ "BSD-3-Clause" ]
null
null
null
""" XX. Model inheritance Model inheritance exists in two varieties: - abstract base classes which are a way of specifying common information inherited by the subclasses. They don't exist as a separate model. - non-abstract base classes (the default), which are models in their own right with ...
25.527397
89
0.699759
805d31119528d90243aceb781f5dbe217725cfce
2,203
py
Python
app/core.py
BANOnotIT/helpdesk-bot
3aedbaf7d3adbb54f7c5172912a8cf188d3cb9d3
[ "MIT" ]
null
null
null
app/core.py
BANOnotIT/helpdesk-bot
3aedbaf7d3adbb54f7c5172912a8cf188d3cb9d3
[ "MIT" ]
null
null
null
app/core.py
BANOnotIT/helpdesk-bot
3aedbaf7d3adbb54f7c5172912a8cf188d3cb9d3
[ "MIT" ]
null
null
null
# from flask import current_app from enum import IntEnum from os import getcwd, path from modules.msg_parser import get_messages from modules.state_machine import State, Machine from modules.text_utils import is_yes from .api import Message, EMessageType EState = IntEnum('EState', 'initial base meta team') MESSAGES...
23.945652
73
0.625057
9074d3e0640017ab6766456cc5fec0e1ada84473
6,538
py
Python
Client/imageProcess.py
ackmanlab/piCamera
596afdc5677f271e722231a26ed7f04fc676b10d
[ "MIT" ]
2
2018-07-18T02:35:26.000Z
2018-08-11T23:36:15.000Z
Client/imageProcess.py
ackmanlab/piCamera
596afdc5677f271e722231a26ed7f04fc676b10d
[ "MIT" ]
null
null
null
Client/imageProcess.py
ackmanlab/piCamera
596afdc5677f271e722231a26ed7f04fc676b10d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ imageProcess.py Last Edited: 8/9/2016 Lead Author[s]: Anthony Fong Contributor[s]: Description: A library of objects and functions that are algorithms to process raw frames from a cameras. These are singular processes that are not multi-threaded but are designed to work with thr...
43.586667
125
0.667329
f922c14ba5c3153045e3df7b7f87adc4fc8231d7
3,740
py
Python
tumblrDownload/getsource.py
MrLai/myTools
f6655b2549189480d7e727657b8b4bc0826e2132
[ "MIT" ]
null
null
null
tumblrDownload/getsource.py
MrLai/myTools
f6655b2549189480d7e727657b8b4bc0826e2132
[ "MIT" ]
1
2018-07-26T01:41:22.000Z
2018-07-26T01:41:22.000Z
tumblrDownload/getsource.py
MrLai/myTools
f6655b2549189480d7e727657b8b4bc0826e2132
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import requests import sys import os import re def get_source(nickname, page_index, source_type): aim_url = "https://%s.tumblr.com/page/%d" % (nickname, page_index) print('[o] Get source from blog %s ...' % aim_url) try: response_string = requests.get(url=aim_...
46.17284
136
0.537166
57b397c61a6e10d3cec4736aa1a1e52b1de05c24
1,396
py
Python
test/test_inline_response40176.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_inline_response40176.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_inline_response40176.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
35.794872
484
0.767908
666e668e4fc92a84ff4628d169fa042b1dc94196
1,646
py
Python
Dynamic Programming/text_justification.py
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
2
2020-07-23T02:38:31.000Z
2021-08-28T10:06:01.000Z
Dynamic Programming/text_justification.py
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
null
null
null
Dynamic Programming/text_justification.py
rudrajit1729/Algorithms-MIT
8d1082a350ee7aafd7aebf1aff85e6830be978f2
[ "MIT" ]
1
2020-08-14T10:31:23.000Z
2020-08-14T10:31:23.000Z
# Text Justification - DP Approach # Author - rudrajit1729 def justification(words, page_width = 51): DP = {0:0} def total(line): temp = '' for word in line[:-1]: temp += word + " " temp += line[-1] return len(temp) def badness(line): total_length = total(line) if total_length > page...
26.126984
184
0.636695
f2f5871856b2ea41c3af7785676b14cf273c27e2
808
py
Python
data/example_old/configuration/tenant/test1_tenant/l3out/l3out_bgp/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
1
2019-05-29T12:33:35.000Z
2019-05-29T12:33:35.000Z
data/example_old/configuration/tenant/test1_tenant/l3out/l3out_bgp/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
null
null
null
data/example_old/configuration/tenant/test1_tenant/l3out/l3out_bgp/mkconf.py
nihole/DAFT
89b393ab5c075c21d781c023d4facddfdf04ccff
[ "Apache-2.0" ]
null
null
null
import os import sys ACY_SCRIPT_PATH = '../../../../../../../scripts/' template_path = ACY_SCRIPT_PATH + 'configuration/tenant/l3out/l3out_bgp/template.j2' render_path = ACY_SCRIPT_PATH + 'render.py' ######### Main Body ###################### #### Should be the same for all ACI objects ######### import os import sy...
25.25
84
0.509901
d57eb15ea86195774d84437c0cc542fe5ba507ea
511
py
Python
vtcff/_codec_avc.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
vtcff/_codec_avc.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
vtcff/_codec_avc.py
rtmigo/vtcff_py
e26a5e55ea455b10995932dccd319c1f7fc28385
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: (c) 2021 Artёm IG <github.com/rtmigo> # SPDX-License-Identifier: MIT from typing import Optional, Iterable, Tuple from ._codec import VideoCodec from ._codec_avc_preset import VcPreset class Avc(VideoCodec): def __init__(self, preset: VcPreset = None): self.preset: Optional[VcP...
26.894737
63
0.686888
51d46ffcd585a52d7697b3b3f1d61f45cf0bd4b1
15,351
py
Python
third_party/gsutil/third_party/argcomplete/argcomplete/my_argparse.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
venv/lib/python3.6/site-packages/argcomplete/my_argparse.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
venv/lib/python3.6/site-packages/argcomplete/my_argparse.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2012-2013, Andrey Kislyuk and argcomplete contributors. # Licensed under the Apache License. See https://github.com/kislyuk/argcomplete for more info. from argparse import ArgumentParser, ArgumentError, SUPPRESS, _SubParsersAction from argparse import OPTIONAL, ZERO_OR_MORE, ONE_OR_MORE, REMAINDER, PARSER ...
46.237952
118
0.603804
61c786a68eda8d5e50849c094cf3b41162bb97c1
361
py
Python
examples/algorithms/initial_array.py
SunTzunami/pymoo-doc
f82d8908fe60792d49a7684c4bfba4a6c1339daf
[ "Apache-2.0" ]
2
2021-09-11T06:43:49.000Z
2021-11-10T13:36:09.000Z
examples/algorithms/initial_array.py
SunTzunami/pymoo-doc
f82d8908fe60792d49a7684c4bfba4a6c1339daf
[ "Apache-2.0" ]
3
2021-09-21T14:04:47.000Z
2022-03-07T13:46:09.000Z
examples/algorithms/initial_array.py
SunTzunami/pymoo-doc
f82d8908fe60792d49a7684c4bfba4a6c1339daf
[ "Apache-2.0" ]
3
2021-10-09T02:47:26.000Z
2022-02-10T07:02:37.000Z
import numpy as np from pymoo.algorithms.moo.nsga2 import NSGA2 from pymoo.factory import get_problem from pymoo.optimize import minimize problem = get_problem("zdt2") X = np.random.random((300, problem.n_var)) algorithm = NSGA2(pop_size=100, sampling=X) minimize(problem, algorithm, ('n_gen', 10)...
21.235294
44
0.692521
19b14f3cf57506ce997519f1bccb709186fac9ee
602
py
Python
app/models/Like.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
null
null
null
app/models/Like.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
5
2021-03-08T05:07:37.000Z
2021-03-12T08:00:41.000Z
app/models/Like.py
ngedev/hypexblog
9e4b93ed119ff52afb6b67d00df2b26fe09f7e05
[ "MIT" ]
null
null
null
from datetime import datetime from sqlalchemy import Column, DateTime, ForeignKey, Integer from sqlalchemy.ext.declarative import declared_attr from zemfrog.globals import db class LikeMixin: id = Column(Integer, primary_key=True) created_at = Column(DateTime, default=datetime.utcnow) @declared_attr ...
22.296296
63
0.734219
8d6445d9189f3082e377db352738831a96699bf6
816
py
Python
doc/source/ray-core/doc_code/tasks.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
doc/source/ray-core/doc_code/tasks.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
doc/source/ray-core/doc_code/tasks.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import ray import time # A regular Python function. def normal_function(): return 1 # By adding the `@ray.remote` decorator, a regular Python function # becomes a Ray remote function. @ray.remote def my_function(): return 1 # To invoke this remote function, use the `remote` method. # This will immediately...
22.054054
86
0.726716
becbce0959735ae877f4d1a4523e326aa3aa987f
31
py
Python
Demo_XRD_patterns_from_dpp/model/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
15
2017-09-02T13:55:35.000Z
2022-03-26T08:20:16.000Z
Demo_XRD_patterns_from_dpp/model/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
null
null
null
Demo_XRD_patterns_from_dpp/model/__init__.py
SHDShim/PMatRes
92440c11f2723861dbb82cecdc321fcef9de4443
[ "Apache-2.0" ]
2
2018-05-16T13:32:08.000Z
2019-06-16T08:09:38.000Z
from .model import PeakPoModel
15.5
30
0.83871
88e834b8e14daafc1e2b837ae11f6ca9f6d1deab
555
py
Python
yatube/posts/migrations/0007_auto_20220227_1625.py
igredk/hw05_final
7232cd789886bf21a85d2a9ea3c5f0ad7e4a676f
[ "MIT" ]
null
null
null
yatube/posts/migrations/0007_auto_20220227_1625.py
igredk/hw05_final
7232cd789886bf21a85d2a9ea3c5f0ad7e4a676f
[ "MIT" ]
null
null
null
yatube/posts/migrations/0007_auto_20220227_1625.py
igredk/hw05_final
7232cd789886bf21a85d2a9ea3c5f0ad7e4a676f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2022-02-27 16:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0006_comment'), ] operations = [ migrations.AlterField( model_name='comment', ...
27.75
199
0.657658
73c2a507b50a232165f760f2353b6ad12e15ce11
1,224
py
Python
PYTHON/pythonDesafios/desafio039.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
PYTHON/pythonDesafios/desafio039.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
PYTHON/pythonDesafios/desafio039.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
'''from datetime import date nasc = int(input('Em que ano voce nasceu?')) alistamento = nasc + 18 idade = nasc - date.today() data = alistamento - date.today() if alistamento == date.today(): print(f'Quem nasceu em {nasc} tem {idade} anos .Voce tem que se alistar urgentemente!!') elif alistamento > date.today().yea...
40.8
122
0.680556
74500fea5dab73ec18ad6ca583e62ac9b0b90086
1,685
py
Python
Linear-Regression/code.py
hacker-akash/ga-learner-dsb-repo
ff6ee57fd064e023ea2f5477f590e3cd472e7a18
[ "MIT" ]
null
null
null
Linear-Regression/code.py
hacker-akash/ga-learner-dsb-repo
ff6ee57fd064e023ea2f5477f590e3cd472e7a18
[ "MIT" ]
null
null
null
Linear-Regression/code.py
hacker-akash/ga-learner-dsb-repo
ff6ee57fd064e023ea2f5477f590e3cd472e7a18
[ "MIT" ]
null
null
null
# -------------- import pandas as pd import numpy as np from sklearn.cross_validation import train_test_split # code starts here df = pd.read_csv(path) df.head() X = df.drop('list_price', axis = 1) y = df.list_price X_train,X_test,y_train,y_test = train_test_split(X, y, test_size = 0.3, random_state = 6) # code ends he...
18.722222
89
0.67003
8699d652d06033fa0273096ebc1f6e3357983c78
2,060
py
Python
scratch/docopt_example.py
jielaizhang/AstroObsPlan
2372332c324a5205c2dc670383e6735d632bafee
[ "MIT" ]
null
null
null
scratch/docopt_example.py
jielaizhang/AstroObsPlan
2372332c324a5205c2dc670383e6735d632bafee
[ "MIT" ]
null
null
null
scratch/docopt_example.py
jielaizhang/AstroObsPlan
2372332c324a5205c2dc670383e6735d632bafee
[ "MIT" ]
1
2021-04-06T23:40:22.000Z
2021-04-06T23:40:22.000Z
#!/usr/bin/env python """ docopt_example.py -- This is an example script on the basics of how to use docopt. It takes in an input string, and saves it to a text file. It also prints it to the screen if verbose. Usage: docopt_example.py [-h] [-v] [-o SAVELOC] <input_string> Arguments: input_string (string) Optio...
32.698413
189
0.521845
88813d6ee5b3bf892aa68967b80b0f9dbde8749d
4,405
py
Python
src/pretalx/submission/forms/submission.py
flowolf/pretalx
3639bd8e2adfca1b7f3108e2ddded0c52d6b3a4c
[ "Apache-2.0" ]
null
null
null
src/pretalx/submission/forms/submission.py
flowolf/pretalx
3639bd8e2adfca1b7f3108e2ddded0c52d6b3a4c
[ "Apache-2.0" ]
null
null
null
src/pretalx/submission/forms/submission.py
flowolf/pretalx
3639bd8e2adfca1b7f3108e2ddded0c52d6b3a4c
[ "Apache-2.0" ]
null
null
null
from django import forms from django.conf import settings from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from pretalx.common.forms.widgets import CheckboxMultiDropdown from pretalx.common.mixins.forms import RequestRequire from pretalx.submission.models import Submission,...
35.24
86
0.586152
875aa900b51676aa0f7f7b11eb6084e2c81bfe91
2,043
py
Python
code/realworld_s2v_scp/evaluate.py
pqros/graph_comb_opt
09d5a7f2a64fa69947d0dca9882d8fb729fa8679
[ "MIT" ]
379
2017-05-27T15:24:38.000Z
2022-03-31T13:11:00.000Z
code/realworld_s2v_scp/evaluate.py
pqros/graph_comb_opt
09d5a7f2a64fa69947d0dca9882d8fb729fa8679
[ "MIT" ]
29
2017-06-25T07:21:19.000Z
2022-03-01T16:00:51.000Z
code/realworld_s2v_scp/evaluate.py
pqros/graph_comb_opt
09d5a7f2a64fa69947d0dca9882d8fb729fa8679
[ "MIT" ]
123
2017-06-14T04:22:51.000Z
2022-02-22T10:59:26.000Z
import numpy as np import networkx as nx import cPickle as cp import random import ctypes import os import sys import time from tqdm import tqdm sys.path.append( '%s/setcover_lib' % os.path.dirname(os.path.realpath(__file__)) ) from setcover_lib import SetCoverLib def find_model_file(opt): max_n = int(opt['max_n'...
29.608696
113
0.542829
b55d0f47feba9c1a9cdb4d4d0e934c6c147f4f60
1,706
py
Python
profiles_api/migrations/0001_initial.py
chocopirate/profiles-rest-api
4da74dcdfc72db875dbbd06bd3d945e60b4366dc
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
chocopirate/profiles-rest-api
4da74dcdfc72db875dbbd06bd3d945e60b4366dc
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
chocopirate/profiles-rest-api
4da74dcdfc72db875dbbd06bd3d945e60b4366dc
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-04-13 03:20 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
1777203a98c67932611afe2f7d28df44f4848bbd
11,925
py
Python
twisted/protocols/loopback.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/protocols/loopback.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/protocols/loopback.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.test.test_loopback -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Testing support for protocols -- loopback between client and server. """ from __future__ import division, absolute_import # system imports import tempfile from zope.interface import imple...
30.893782
84
0.669266
ed5d111495daff2d0e28ef3336b0736e24c11490
45,545
py
Python
src/sage/modular/modform_hecketriangle/readme.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2021-10-18T01:24:04.000Z
2021-10-18T01:24:04.000Z
src/sage/modular/modform_hecketriangle/readme.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/modular/modform_hecketriangle/readme.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
r""" Overview of Hecke triangle groups and modular forms for Hecke triangle groups AUTHORS: - Jonas Jermann (2013): initial version Hecke triangle groups and elements: ----------------------------------- - **Hecke triangle group:** The Von Dyck group corresponding to the triangle group with angles ``(pi/2, pi/...
37.393268
176
0.64141
7bf8d9358e13ac41c42f50ab0e58da8766b573a3
13,800
py
Python
eventio/simtel/simtelfile.py
volodymyrss/pyeventio
ec1b3a24105a702843dcbba419e2eb01a8704f25
[ "MIT" ]
null
null
null
eventio/simtel/simtelfile.py
volodymyrss/pyeventio
ec1b3a24105a702843dcbba419e2eb01a8704f25
[ "MIT" ]
null
null
null
eventio/simtel/simtelfile.py
volodymyrss/pyeventio
ec1b3a24105a702843dcbba419e2eb01a8704f25
[ "MIT" ]
null
null
null
''' Implementation of an EventIOFile that loops through SimTel Array events. ''' import re from copy import copy from collections import defaultdict import logging from ..base import EventIOFile from ..exceptions import check_type from .. import iact from ..histograms import Histograms from .objects import ( ADCSam...
32.394366
89
0.606232
b3e97bc53d779ff4d2023696d1218f0b8ef9fb40
3,425
py
Python
my_module/my_module_metal.py
gicsaw/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
1
2022-01-19T18:37:00.000Z
2022-01-19T18:37:00.000Z
my_module/my_module_metal.py
AIDrug/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
null
null
null
my_module/my_module_metal.py
AIDrug/VHTS
dd23cbb0216dd628bb95bf4bb7e93ce49514c89d
[ "MIT" ]
1
2022-01-19T18:36:42.000Z
2022-01-19T18:36:42.000Z
import sys import numpy as np from vhts import metal_bind class my_class(object): def __init__(self, docking_params): self.check_metal_bind = docking_params['check_metal_bind'] if self.check_metal_bind: self.metal_coor = docking_params['metal_coor'] self.metal_bind_cutoff =...
37.637363
81
0.61927
88c45fec1896454740d5415a38e2e4a92e294441
1,060
py
Python
migrations/versions/1e50c67be328_changes_comment_schema.py
shemian/blogs
abe3b897054c1a9858ec430f80804a360ab96682
[ "MIT" ]
null
null
null
migrations/versions/1e50c67be328_changes_comment_schema.py
shemian/blogs
abe3b897054c1a9858ec430f80804a360ab96682
[ "MIT" ]
null
null
null
migrations/versions/1e50c67be328_changes_comment_schema.py
shemian/blogs
abe3b897054c1a9858ec430f80804a360ab96682
[ "MIT" ]
null
null
null
"""Changes Comment schema Revision ID: 1e50c67be328 Revises: 2c5b68127bfa Create Date: 2020-05-10 14:46:40.947214 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1e50c67be328' down_revision = '2c5b68127bfa' branch_labels = None depends_on = None def upgrade(...
30.285714
80
0.686792
4df0b9b36b509d3ed1c29e2a6d07860b752cda31
1,313
py
Python
tools/wafadmin/Constants.py
ekg/node
c77964760047f734c58dab49143ff6487f938c6e
[ "MIT" ]
2
2021-06-29T21:07:26.000Z
2022-01-25T02:50:14.000Z
tools/wafadmin/Constants.py
jdunck/node
d1f69ef35dac810530df8249d523add168e09f03
[ "MIT" ]
null
null
null
tools/wafadmin/Constants.py
jdunck/node
d1f69ef35dac810530df8249d523add168e09f03
[ "MIT" ]
1
2019-12-19T16:28:13.000Z
2019-12-19T16:28:13.000Z
#!/usr/bin/env python # encoding: utf-8 # Yinon dot me gmail 2008 """ these constants are somewhat public, try not to mess them maintainer: the version number is updated from the top-level wscript file """ # do not touch these three lines, they are updated automatically HEXVERSION = 0x10509 WAFVERSION="1.5.9" WAFREV...
17.051948
73
0.67936
2da5559119b661fd46949de9e606a206f6f0694a
771
py
Python
P0049.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0049.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0049.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
# Prime permutations # https://projecteuler.net/problem=49 from collections import defaultdict from itertools import permutations from math import fmod, sqrt from time import time def listToInt(n): return int(''.join(list(map(str, n)))) start = time() prime = [True for i in range(10001)] p = 2 while p <= 10000:...
27.535714
109
0.640726
36074932549a6fdcbb64142964896c5d02a2999a
2,056
py
Python
skimage/transform/tests/test_radon_transform.py
ogrisel/scikits-image
cfc1dfa16b1e94dba42f2f5766a41cbbede03f7d
[ "BSD-3-Clause" ]
1
2017-07-17T18:16:49.000Z
2017-07-17T18:16:49.000Z
skimage/transform/tests/test_radon_transform.py
ogrisel/scikits-image
cfc1dfa16b1e94dba42f2f5766a41cbbede03f7d
[ "BSD-3-Clause" ]
null
null
null
skimage/transform/tests/test_radon_transform.py
ogrisel/scikits-image
cfc1dfa16b1e94dba42f2f5766a41cbbede03f7d
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.testing import * from skimage.transform import * def rescale(x): x = x.astype(float) x -= x.min() x /= x.max() return x def test_radon_iradon(): size = 100 image = np.tri(size) + np.tri(size)[::-1] for filter_type in ["ramp", "shepp-logan", "cosine", "hamming"...
32.125
86
0.636673
3bfaad48537a5e8260ba5c6f08f4e27bd0ad0185
607
py
Python
kekangpai/testCon/migrations/0005_auto_20160711_1050.py
returnToZ/BandHelper
ce8ca3094c6cc4b05b213766710ba6263f41705d
[ "Apache-2.0" ]
null
null
null
kekangpai/testCon/migrations/0005_auto_20160711_1050.py
returnToZ/BandHelper
ce8ca3094c6cc4b05b213766710ba6263f41705d
[ "Apache-2.0" ]
null
null
null
kekangpai/testCon/migrations/0005_auto_20160711_1050.py
returnToZ/BandHelper
ce8ca3094c6cc4b05b213766710ba6263f41705d
[ "Apache-2.0" ]
1
2021-12-15T02:31:09.000Z
2021-12-15T02:31:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-07-11 10:50 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('testCon', '0004_auto_20160711_1045'), ] operations = [ migrations.AlterField( ...
23.346154
50
0.593081
32991a0cb873594672355e62068f41abbbd013b3
285
py
Python
polyaxon/polyaxon/config_settings/integrations/webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/integrations/webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/polyaxon/config_settings/integrations/webhooks.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from polyaxon.config_manager import config INTEGRATIONS_WEBHOOKS = config.get_dict('POLYAXON_INTEGRATIONS_WEBHOOKS', is_list=True, is_optional=True, is_local=True)
40.714286
73
0.494737
d9c0ba6008cd2809c863126b5d4d43465b19c30f
144
py
Python
farmer/apps.py
davidiweala/Precision-agriculture-project
b371221ea5b7e85311ed362b6c45af66995f1407
[ "Apache-2.0" ]
null
null
null
farmer/apps.py
davidiweala/Precision-agriculture-project
b371221ea5b7e85311ed362b6c45af66995f1407
[ "Apache-2.0" ]
null
null
null
farmer/apps.py
davidiweala/Precision-agriculture-project
b371221ea5b7e85311ed362b6c45af66995f1407
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class FarmerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'farmer'
20.571429
56
0.756944
648879cfc28868996d7b0e69d6e8d40fab556f5e
374
py
Python
app/views/receitas_view.py
carolahn/culinaria-kenzie
500ff5d17c1939624fc19ce42e83ea5f3bfe05a0
[ "MIT" ]
1
2020-11-20T15:39:49.000Z
2020-11-20T15:39:49.000Z
app/views/receitas_view.py
carolahn/culinaria-kenzie
500ff5d17c1939624fc19ce42e83ea5f3bfe05a0
[ "MIT" ]
null
null
null
app/views/receitas_view.py
carolahn/culinaria-kenzie
500ff5d17c1939624fc19ce42e83ea5f3bfe05a0
[ "MIT" ]
null
null
null
from flask import Blueprint from app.services.receitas.receitas_manage_csv import listar_receitas, buscar_receitas bp = Blueprint('receitas_route', __name__) @bp.route("/receitas") def lista_receitas(): return { "data": listar_receitas() } @bp.route('/receitas/<nome>') def busca_receita(nome): ...
18.7
86
0.695187
99416d358f005b379308d0134c76c4878cd86e5b
44
py
Python
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
resolvers/queries/__init__.py
mikewk/fridge_api
8265f29cc2b9055b00f3245da9643b84f22639bc
[ "MIT" ]
null
null
null
from .misc import query as m queries = [m]
11
28
0.681818
b3a8a73edbb4e00922a58856865e8f1a5b92017e
2,908
py
Python
orochi/website/migrations/0001_initial.py
garanews/orochi
ec037ad5836855cd1a734fa1bf40ecc5647cb824
[ "MIT" ]
121
2020-09-25T16:14:44.000Z
2022-03-09T21:21:36.000Z
orochi/website/migrations/0001_initial.py
garanews/orochi
ec037ad5836855cd1a734fa1bf40ecc5647cb824
[ "MIT" ]
382
2020-09-28T06:46:21.000Z
2022-03-31T11:02:19.000Z
orochi/website/migrations/0001_initial.py
garanews/orochi
ec037ad5836855cd1a734fa1bf40ecc5647cb824
[ "MIT" ]
10
2020-09-29T16:36:30.000Z
2022-01-18T14:02:09.000Z
# Generated by Django 3.2 on 2020-06-23 07:28 import colorfield.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER...
47.672131
179
0.582875
1f66347966708b15f1be4a9e3ac9dc0931b1b773
6,041
py
Python
tools/perf/core/tbmv3/trace_processor_unittest.py
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
tools/perf/core/tbmv3/trace_processor_unittest.py
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
tools/perf/core/tbmv3/trace_processor_unittest.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
# Copyright 2019 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 os import shutil import tempfile import unittest from core.tbmv3 import trace_processor import mock RUN_METHOD = 'core.tbmv3.trace_processor._RunTr...
31.463542
78
0.621586
07d27715f7640e87030ac29e386f6227da6a826e
266
py
Python
cmsplugin_blog_seo_addons/simple_translate.py
bitmazk/cmsplugin-blog-seo-addons
8e28e4e21820faa4845974f772959ca138b74a18
[ "MIT" ]
null
null
null
cmsplugin_blog_seo_addons/simple_translate.py
bitmazk/cmsplugin-blog-seo-addons
8e28e4e21820faa4845974f772959ca138b74a18
[ "MIT" ]
1
2015-08-31T18:10:17.000Z
2015-08-31T18:10:17.000Z
cmsplugin_blog_seo_addons/simple_translate.py
bitmazk/cmsplugin-blog-seo-addons
8e28e4e21820faa4845974f772959ca138b74a18
[ "MIT" ]
null
null
null
"""Registering translated models for the ``cmsplugin_blog_seo_addons`` app.""" from simple_translation.translation_pool import translation_pool from .models import SEOAddon, SEOAddonTranslation translation_pool.register_translation(SEOAddon, SEOAddonTranslation)
33.25
78
0.853383
d3b67214b6edef54cde185d47a7077072e06dc9a
7,352
py
Python
conans/client/manager.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
conans/client/manager.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
conans/client/manager.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
import os from conans.client.client_cache import ClientCache from conans.client.generators import write_generators from conans.client.importer import run_imports, run_deploy from conans.client.installer import ConanInstaller, call_system_requirements from conans.client.manifest_manager import ManifestManager from cona...
52.892086
101
0.644178
ed8716e4022c67c4977d752f03554cbcc9fe9e3b
1,708
py
Python
src/controller/routes/holdem/gameStart.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
null
null
null
src/controller/routes/holdem/gameStart.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
null
null
null
src/controller/routes/holdem/gameStart.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
null
null
null
from discord import User, DMChannel, Client, Message, Member, Guild, Invite from src.model.userManagement import getUser from src.utils.poker.pokerImage import getPokerImage from src.utils.casino.table.holdem.HoldemTable import HoldemTable from src.utils.gamePlayerWaiting.GamePlayerWaiting import GamePlayerWaiting fro...
47.444444
148
0.764637
aa72258f947595a77a5b14f7a93f5318abce3f73
8,866
py
Python
examples/leaf_shakespeare_tensorflow/tf_utils.py
yinfredyue/flower
d68976e8983e90868e7fa2e53e7e502349f13087
[ "Apache-2.0" ]
null
null
null
examples/leaf_shakespeare_tensorflow/tf_utils.py
yinfredyue/flower
d68976e8983e90868e7fa2e53e7e502349f13087
[ "Apache-2.0" ]
null
null
null
examples/leaf_shakespeare_tensorflow/tf_utils.py
yinfredyue/flower
d68976e8983e90868e7fa2e53e7e502349f13087
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.08209
88
0.645387
ac2cfd83c8f22fea40ef386aefdee6a9b9236a89
666
py
Python
grow/extensions/hooks/__init__.py
JaredSartin/grow
8b9e176a943f3d54fca88f8430615d5e6382c365
[ "MIT" ]
1
2019-01-25T17:00:42.000Z
2019-01-25T17:00:42.000Z
grow/extensions/hooks/__init__.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
null
null
null
grow/extensions/hooks/__init__.py
kmcnellis/grow
4787f5a01681ef0800e9b4388a56cdbc48209368
[ "MIT" ]
1
2019-04-23T19:38:19.000Z
2019-04-23T19:38:19.000Z
"""Extension hooks.""" from . import dev_file_change_hook from . import dev_handler_hook from . import post_render_hook from . import pre_render_hook from . import preprocess_hook # pylint: disable=invalid-name DevFileChangeHook = dev_file_change_hook.DevFileChangeHook DevHandlerHook = dev_handler_hook.DevHandlerHook...
28.956522
58
0.833333
ded0ac3dac726d44f57cb1f4433b84de7e3a4392
31
py
Python
src/pydensha/__init__.py
ichigozero/pydensha
2cfd0e4a51ce385f944cbc214000e0b3bdc1675b
[ "MIT" ]
1
2021-10-18T23:22:45.000Z
2021-10-18T23:22:45.000Z
src/pydensha/__init__.py
ichigozero/pydensha
2cfd0e4a51ce385f944cbc214000e0b3bdc1675b
[ "MIT" ]
null
null
null
src/pydensha/__init__.py
ichigozero/pydensha
2cfd0e4a51ce385f944cbc214000e0b3bdc1675b
[ "MIT" ]
null
null
null
from .pydensha import PyDensha
15.5
30
0.83871
6af8d5ff0227505fa49f2e9c88fde46ee1c072c6
9,296
py
Python
tf2_cnn_mnist.py
dvsseed/tf2_cnn_mnist
4386481dc5e915662f81599ef9cafb289f3de0f9
[ "MIT" ]
null
null
null
tf2_cnn_mnist.py
dvsseed/tf2_cnn_mnist
4386481dc5e915662f81599ef9cafb289f3de0f9
[ "MIT" ]
null
null
null
tf2_cnn_mnist.py
dvsseed/tf2_cnn_mnist
4386481dc5e915662f81599ef9cafb289f3de0f9
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals from PIL import Image from sklearn.preprocessing import OneHotEncoder from pathlib import Path from tensorflow.keras.layers import Dense, Flatten, Conv2D, MaxPool2D, Dropout, BatchNormalization from tensorflow.keras import Model, datase...
33.803636
122
0.63253
65b83109bb8520f25e0e8e74621bac4763dbf8d9
1,311
py
Python
pyparsing-2.0.1/examples/getNTPserversNew.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
1
2018-05-30T22:21:30.000Z
2018-05-30T22:21:30.000Z
pyparsing-2.0.1/examples/getNTPserversNew.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
pyparsing-2.0.1/examples/getNTPserversNew.py
johannes-schuetze/ALTO-framework-sim
7a8d1df549188684ad3636434ccd6cf064e82c4f
[ "MIT" ]
null
null
null
# getNTPserversNew.py # # Demonstration of the parsing module, implementing a HTML page scanner, # to extract a list of NTP time servers from the NIST web site. # # Copyright 2004-2010, by Paul McGuire # September, 2010 - updated to more current use of setResultsName, new NIST URL # from pyparsing import (Word,...
42.290323
83
0.67582
57738066a6099a602be96a8dabfe66a84254cea3
3,651
py
Python
python-backend/tests/mines/resources/test_mine_type_resource.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/tests/mines/resources/test_mine_type_resource.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/tests/mines/resources/test_mine_type_resource.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
import json, uuid, pytest from tests.factories import MineFactory # POST def test_post_mine_type_success(test_client, db_session, auth_headers): mine_guid = MineFactory(mine_type=None).mine_guid test_data = {'mine_guid': str(mine_guid), 'mine_tenure_type_code': 'MIN'} post_resp = test_client.post( ...
42.453488
100
0.748562