hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1d55b1881ce2fa74e85f53eb5ec32ff00fb8b2c3
6,025
py
Python
aqms/management/commands/herebedragons.py
air-quality-monitoring-station/Messstation
4cdd6810d23d468abf2b8ff7e475190207922ce7
[ "MIT" ]
null
null
null
aqms/management/commands/herebedragons.py
air-quality-monitoring-station/Messstation
4cdd6810d23d468abf2b8ff7e475190207922ce7
[ "MIT" ]
null
null
null
aqms/management/commands/herebedragons.py
air-quality-monitoring-station/Messstation
4cdd6810d23d468abf2b8ff7e475190207922ce7
[ "MIT" ]
null
null
null
# Django specific settings import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") # Django imports from django.core.management.base import BaseCommand # Application specific imports # standard libs import uuid import datetime import threading import queue # other libs from sense_hat import SenseHat ...
32.744565
111
0.550705
1fa50d031bc0a412ca6ecde2f31a85f1bcd93ee2
1,922
py
Python
Test code/test.py
Timsel10/Group-D08-2021
fdfa5c37572712892280773b806826a94f678684
[ "MIT" ]
1
2021-03-24T20:36:18.000Z
2021-03-24T20:36:18.000Z
Test code/test.py
Timsel10/Group-D08-2021
fdfa5c37572712892280773b806826a94f678684
[ "MIT" ]
null
null
null
Test code/test.py
Timsel10/Group-D08-2021
fdfa5c37572712892280773b806826a94f678684
[ "MIT" ]
null
null
null
# Main goal: give k, c and m from data points # 6 dimensions. x, y, z and in roll # data input is X, Y, Z + roll, pitch, yaw of head # The base forced vibration is also given from scipy.integrate import odeint import numpy as np import matplotlib.pyplot as plt from random import uniform from scipy.optimize import leas...
27.457143
101
0.632674
9f1f9a78d5d84ad45e973e88fcd855f755bfe9cb
7,440
py
Python
hud.py
CS-192-WFR-2020-2021-Group-2/Post-Apocalyptic-Survival-Game
859fdc5bf2ebfa04800cb59d5383bd527a6d85f8
[ "MIT" ]
1
2021-03-12T09:35:37.000Z
2021-03-12T09:35:37.000Z
hud.py
CS-192-WFR-2020-2021-Group-2/Post-Apocalyptic-Survival-Game
859fdc5bf2ebfa04800cb59d5383bd527a6d85f8
[ "MIT" ]
null
null
null
hud.py
CS-192-WFR-2020-2021-Group-2/Post-Apocalyptic-Survival-Game
859fdc5bf2ebfa04800cb59d5383bd527a6d85f8
[ "MIT" ]
null
null
null
import math from itertools import zip_longest import pyglet from pyglet import font # constants SCREEN_WIDTH, SCREEN_HEIGHT = 1280, 720 class Button(object): def __init__(self, text='', font_name=None, font_size=None, color=(255, 255, 255, 255)...
34.929577
255
0.447043
7fc83db6e2529d8142d67984f8b21f9716d07bd2
5,136
py
Python
masteraniAPI.py
unl1kely/masteraniAPI
7c42b04779b39feea109eed692b253bc4246cc0c
[ "MIT" ]
2
2021-02-16T19:37:16.000Z
2022-01-29T00:11:40.000Z
masteraniAPI.py
unl1kely/masteraniAPI
7c42b04779b39feea109eed692b253bc4246cc0c
[ "MIT" ]
null
null
null
masteraniAPI.py
unl1kely/masteraniAPI
7c42b04779b39feea109eed692b253bc4246cc0c
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup as bs from JskPy import encodeUrl, best_match from requests import get ############## domainMasterani = "https://www.masterani.one" animeServers = "https://gogo-play.net/" class Anime: def __init__(self, title): self.kind=list self.title = title self.search_url = "{0}/search?q={1...
35.666667
108
0.688863
3513b5c7ea7061a2bff387a65c4a4c246a8a4eff
8,877
py
Python
doc/conf.py
StefanBruens/spglib
f8ddf5b2b242c6f1b8cf090545e236a48dffe06b
[ "BSD-3-Clause" ]
1
2019-12-19T16:35:11.000Z
2019-12-19T16:35:11.000Z
doc/conf.py
StefanBruens/spglib
f8ddf5b2b242c6f1b8cf090545e236a48dffe06b
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
StefanBruens/spglib
f8ddf5b2b242c6f1b8cf090545e236a48dffe06b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # spglib documentation build configuration file, created by # sphinx-quickstart on Wed Jun 17 15:04:04 2009. # # 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 # autogenerated file. # # All ...
32.756458
80
0.690098
d025b9974fd9ea89f3862945d94eb3791b17a4cb
142
py
Python
faform/admin.py
NDICSONLABS/cbcfa
bdc175fca4ae3e529afe48e47b2671afdc688a99
[ "MIT" ]
null
null
null
faform/admin.py
NDICSONLABS/cbcfa
bdc175fca4ae3e529afe48e47b2671afdc688a99
[ "MIT" ]
null
null
null
faform/admin.py
NDICSONLABS/cbcfa
bdc175fca4ae3e529afe48e47b2671afdc688a99
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import FaClerkInformation # Register your models here. admin.site.register(FaClerkInformation)
23.666667
39
0.838028
fb279975c737be02f903c15c8fc611d179cb37d6
1,052
py
Python
t3.py
julianfrank/pygame
31da2a26deea22b15c0291973a104832f80d93f0
[ "Apache-2.0" ]
null
null
null
t3.py
julianfrank/pygame
31da2a26deea22b15c0291973a104832f80d93f0
[ "Apache-2.0" ]
null
null
null
t3.py
julianfrank/pygame
31da2a26deea22b15c0291973a104832f80d93f0
[ "Apache-2.0" ]
null
null
null
"""t3.py""" import sys import pygame SCREEN = pygame.display.set_mode((640, 480)) PLAYER = pygame.image.load('ball.bmp').convert() BG = pygame.image.load('bg1600x1200.jpg').convert() SCREEN.blit(BG, (0, 0)) OBJECTS = [] class GameObject: """GameObject""" def __init__(self, image, height, speed): s...
25.047619
61
0.576046
89add68c51b6bdec1584d022fcd1a84557ead2a2
5,652
py
Python
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
47.495798
105
0.619604
a57d892dd0477f27d0fc968cc192577786aa18f8
1,666
py
Python
shopee_crawler/toolkit/crawl_by_search.py
lthoangg/shopee-crawler
3548a19b661cf1acb67417b4822b6055091f8838
[ "MIT" ]
5
2021-09-09T18:32:49.000Z
2022-01-10T10:31:17.000Z
shopee_crawler/toolkit/crawl_by_search.py
lthoangg/shopee-crawler
3548a19b661cf1acb67417b4822b6055091f8838
[ "MIT" ]
2
2021-09-10T14:28:52.000Z
2021-09-12T14:57:41.000Z
shopee_crawler/toolkit/crawl_by_search.py
lthoangg/shopee-crawler
3548a19b661cf1acb67417b4822b6055091f8838
[ "MIT" ]
6
2021-09-25T14:03:57.000Z
2022-03-19T14:44:04.000Z
from .curl import curl from .crawl_product import get_all_data, get_neccesary_data import concurrent.futures import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def get_total(origin, keyword): url = "https://{}/api/v4/search/search_items?by=relevancy&keyword={}&limit=60&ne...
40.634146
202
0.722089
b6a67a6bbf93f1c5858f52b90b444dd1bf2bbf4a
3,055
py
Python
examples/vanilla/generate_dataset.py
pfistfl/openml-defaults
0678167f807512bd0c957f82a83ff8181461090c
[ "BSD-3-Clause" ]
1
2019-08-01T13:44:47.000Z
2019-08-01T13:44:47.000Z
examples/vanilla/generate_dataset.py
pfistfl/openml-defaults
0678167f807512bd0c957f82a83ff8181461090c
[ "BSD-3-Clause" ]
null
null
null
examples/vanilla/generate_dataset.py
pfistfl/openml-defaults
0678167f807512bd0c957f82a83ff8181461090c
[ "BSD-3-Clause" ]
1
2019-08-29T15:54:38.000Z
2019-08-29T15:54:38.000Z
import arff import argparse import json import logging import openmlcontrib import openmldefaults import os import sklearnbot def parse_args(): metadata_file = '/home/janvanrijn/experiments/sklearn-bot/results/results__500__svc__predictive_accuracy.arff' parser = argparse.ArgumentParser(description='Creates a...
51.779661
117
0.597381
119c45e0e15b9ad52a61606be57569df97b94dc7
538
py
Python
examples/python/cpu_vs_gpu.py
MalcolmSun/dynet
9b2df1e74dafe13072af0c2d4ce7424539d29ac9
[ "Apache-2.0" ]
1
2021-04-21T05:30:08.000Z
2021-04-21T05:30:08.000Z
examples/python/cpu_vs_gpu.py
MalcolmSun/dynet
9b2df1e74dafe13072af0c2d4ce7424539d29ac9
[ "Apache-2.0" ]
null
null
null
examples/python/cpu_vs_gpu.py
MalcolmSun/dynet
9b2df1e74dafe13072af0c2d4ce7424539d29ac9
[ "Apache-2.0" ]
1
2019-10-26T12:39:08.000Z
2019-10-26T12:39:08.000Z
import _gdynet as G print import _dynet as C cm = C.Model() gm = G.Model() cpW = cm.add_parameters((1000,1000)) gpW = gm.add_parameters((1000,1000)) def do_cpu(): C.renew_cg() W = C.parameter(cpW) W = W*W*W*W*W*W*W z = C.squared_distance(W,W) z.value() z.backward() def do_gpu(): G.renew_cg() W = G.paramete...
13.794872
36
0.628253
1255da64f6b021f0778602d5deff57c904987cb4
18,591
py
Python
compchanga/compare.py
ibackus/compare-changa-builds
ba03c0f87d04c5595f1dfd8bb31e94f237dbbd36
[ "MIT" ]
null
null
null
compchanga/compare.py
ibackus/compare-changa-builds
ba03c0f87d04c5595f1dfd8bb31e94f237dbbd36
[ "MIT" ]
null
null
null
compchanga/compare.py
ibackus/compare-changa-builds
ba03c0f87d04c5595f1dfd8bb31e94f237dbbd36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 5 13:21:34 2016 @author: ibackus """ import numpy as np import os import pynbody SimArray = pynbody.array.SimArray import diskpy import runTest import config def summarizeResults(result, testName): """ Summarize test results. results should just be th...
30.327896
84
0.58878
fe5f111609119d073478971a7b4717d410fd8e00
1,294
py
Python
jacdac/jacscript_manager/constants.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-15T21:30:36.000Z
2022-02-15T21:30:36.000Z
jacdac/jacscript_manager/constants.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
null
null
null
jacdac/jacscript_manager/constants.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-08T19:32:45.000Z
2022-02-08T19:32:45.000Z
# Autogenerated constants for Jacscript Manager service from enum import IntEnum from jacdac.constants import * from jacdac.system.constants import * JD_SERVICE_CLASS_JACSCRIPT_MANAGER = const(0x1134ea2b) class JacscriptManagerMessageFlags(IntEnum): TO_BE_CONTINUED = const(0x1) JD_JACSCRIPT_MANAGER_CMD_DEPLOY_B...
39.212121
60
0.83694
de52b05f303f7e207f01b4ec83bfd922941e1877
746
py
Python
cli/polyaxon/polyaxonfile/specs/kinds.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
cli/polyaxon/polyaxonfile/specs/kinds.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
1
2022-01-24T11:26:47.000Z
2022-03-18T23:17:58.000Z
cli/polyaxon/polyaxonfile/specs/kinds.py
polyaxon/cli
3543c0220a8a7c06fc9573cd2a740f8ae4930641
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 applicable ...
35.52381
74
0.762735
befb353ba108f8f2587a63e15a48eecf8ab8f08a
611
py
Python
test/test_bag_of_hoarding.py
evilchili/telisar
4152de28ed03afecb579c6065414439146b8b169
[ "Unlicense" ]
1
2018-06-29T14:46:18.000Z
2018-06-29T14:46:18.000Z
test/test_bag_of_hoarding.py
evilchili/telisar
4152de28ed03afecb579c6065414439146b8b169
[ "Unlicense" ]
null
null
null
test/test_bag_of_hoarding.py
evilchili/telisar
4152de28ed03afecb579c6065414439146b8b169
[ "Unlicense" ]
1
2018-06-29T14:47:07.000Z
2018-06-29T14:47:07.000Z
from telisar.bot.plugins import hoarding from telisar import bag_of_hoarding from conftest import msg_factory import pytest @pytest.fixture def env(monkeypatch): monkeypatch.setenv(bag_of_hoarding.DATA, 'data') @pytest.fixture def plugin(env): return hoarding.BagOfHoarding() @pytest.mark.parametrize('mess...
21.068966
53
0.736498
93b3a63abff779939af27d4a806fc14f57ef60aa
101
py
Python
core/models/idol.py
darakudou/idol_sikiho_-crawler
54e2108c33d920ac6be682bf7c631dac139aa35c
[ "MIT" ]
1
2020-12-31T14:27:48.000Z
2020-12-31T14:27:48.000Z
core/models/idol.py
darakudou/idol_sikiho_crawler
54e2108c33d920ac6be682bf7c631dac139aa35c
[ "MIT" ]
null
null
null
core/models/idol.py
darakudou/idol_sikiho_crawler
54e2108c33d920ac6be682bf7c631dac139aa35c
[ "MIT" ]
null
null
null
from django.db import models class Idol(models.Model): name = models.CharField(max_length=255)
16.833333
43
0.752475
d78c23cfaf2010263ef1d46651842f85ce8274f2
4,292
py
Python
distributed/tests/test_versions.py
sternj/distributed
1e9656a01980381995993fb8df8dd29cbb632f85
[ "BSD-3-Clause" ]
2
2021-06-01T05:47:46.000Z
2022-01-24T12:21:35.000Z
distributed/tests/test_versions.py
sternj/distributed
1e9656a01980381995993fb8df8dd29cbb632f85
[ "BSD-3-Clause" ]
2
2022-02-11T21:08:28.000Z
2022-02-14T19:21:05.000Z
distributed/tests/test_versions.py
sternj/distributed
1e9656a01980381995993fb8df8dd29cbb632f85
[ "BSD-3-Clause" ]
1
2021-06-05T23:32:04.000Z
2021-06-05T23:32:04.000Z
import re import sys import pytest from distributed import Client, Worker from distributed.utils_test import gen_cluster from distributed.versions import error_message, get_versions # if one of the nodes reports this version, there's a mismatch mismatched_version = get_versions() mismatched_version["packages"]["dist...
30.013986
87
0.656104
322fb2a69ade9c816b902cc28c01e858c7588304
4,893
py
Python
pypureclient/flasharray/FA_2_9/models/remote_pods_response.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/flasharray/FA_2_9/models/remote_pods_response.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/flasharray/FA_2_9/models/remote_pods_response.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 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
37.638462
524
0.61026
f86a1adb69898fa5b5b812ce25b9676c98a243b1
2,758
py
Python
src/bxgateway/connections/eth/eth_node_discovery_connection.py
doubleukay/bxgateway
ac01fc9475c039cf4255576dd4ecd6bff6c48f69
[ "MIT" ]
21
2019-11-06T17:37:41.000Z
2022-03-28T07:18:33.000Z
src/bxgateway/connections/eth/eth_node_discovery_connection.py
doubleukay/bxgateway
ac01fc9475c039cf4255576dd4ecd6bff6c48f69
[ "MIT" ]
4
2019-11-06T22:08:00.000Z
2021-12-08T06:20:51.000Z
src/bxgateway/connections/eth/eth_node_discovery_connection.py
doubleukay/bxgateway
ac01fc9475c039cf4255576dd4ecd6bff6c48f69
[ "MIT" ]
10
2020-08-05T15:58:16.000Z
2022-02-07T23:51:10.000Z
import socket import time from typing import TYPE_CHECKING from bxcommon.messages.abstract_message import AbstractMessage from bxcommon.messages.abstract_message_factory import AbstractMessageFactory from bxcommon.network.abstract_socket_connection_protocol import AbstractSocketConnectionProtocol from bxgateway.connec...
39.4
113
0.76831
36d46941c4b17c032dabbd3bc7695f3d90d16c0c
2,567
py
Python
setup.py
sagar-orchestral/st2-auth-ldap
7ba29849ca98cc03cc8e1bc8b8e7a3f7aa67d23a
[ "Apache-2.0" ]
null
null
null
setup.py
sagar-orchestral/st2-auth-ldap
7ba29849ca98cc03cc8e1bc8b8e7a3f7aa67d23a
[ "Apache-2.0" ]
null
null
null
setup.py
sagar-orchestral/st2-auth-ldap
7ba29849ca98cc03cc8e1bc8b8e7a3f7aa67d23a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Extreme Networks, Inc - All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
36.15493
122
0.706661
3da4ead97b1ee1123ae685c318587ec4a73b6351
387
py
Python
myapi/wsgi.py
dylan1218/dylan1218-live.com
8f942bf53d87c177dc25198e55e66123c17ab2cb
[ "MIT" ]
40
2018-11-23T02:19:24.000Z
2022-01-06T15:43:03.000Z
myapi/wsgi.py
dylan1218/dylan1218-live.com
8f942bf53d87c177dc25198e55e66123c17ab2cb
[ "MIT" ]
3
2020-06-06T01:38:41.000Z
2021-06-10T22:42:24.000Z
myapi/wsgi.py
anuragal/apiserver
20775cfc04929a57be2ae639bd16983605119d7c
[ "MIT" ]
27
2018-12-04T14:35:38.000Z
2022-02-08T19:27:30.000Z
""" WSGI config for myapi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
84998cf864f62e90f763e127afeb7f9f6f2bda7a
8,571
py
Python
xlsxwriter/test/worksheet/test_data_bar10.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
1
2020-07-01T07:24:37.000Z
2020-07-01T07:24:37.000Z
xlsxwriter/test/worksheet/test_data_bar10.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_data_bar10.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ..helperfunctions import _xml_to_list from ...worksheet import Worksheet class TestAss...
50.715976
337
0.426555
a70eb69ff7d5ae196510f148673bb7b7cde302fe
6,292
py
Python
GLaDOS/queueapp/models/actuators.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
2
2021-11-29T13:51:27.000Z
2021-12-12T14:59:42.000Z
GLaDOS/queueapp/models/actuators.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
GLaDOS/queueapp/models/actuators.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
from time import time from django.core.cache import cache from django.db import models from integlib.jenkins import JenkinsException from integlib.runtime import runtime from ..utils import repr_attributes, run_if_active, abstract_run from ..integ_utils import issue_running_or_pending from .queue import Queue from ...
44
115
0.644628
df8ca534938196966f44c6672c3671bc9b5a49ee
2,038
py
Python
git.py
LNSEAB/nclr_versioning
11dd45ea448bd130aa3e61fae587ca317250ea2a
[ "MIT" ]
null
null
null
git.py
LNSEAB/nclr_versioning
11dd45ea448bd130aa3e61fae587ca317250ea2a
[ "MIT" ]
null
null
null
git.py
LNSEAB/nclr_versioning
11dd45ea448bd130aa3e61fae587ca317250ea2a
[ "MIT" ]
null
null
null
# coding : utf-8 # # nclr_versioning/git.py # # released under the MIT License. # https://opensource.org/licenses/mit-license.php # import subprocess import os import re def __execute_path(context): addon_prefs = context.user_preferences.addons[__package__].preferences if addon_prefs.execute_path and addon_prefs.ex...
30.41791
126
0.647694
8c1ae3ffac817438e4afa2f0f046e78809fc93e8
9,517
py
Python
core/state_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
2,209
2016-11-20T10:32:58.000Z
2022-03-31T20:51:27.000Z
core/state_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
1,074
2016-12-07T05:02:48.000Z
2022-03-22T02:09:11.000Z
core/state_test.py
Schweinepriester/oil
8b0e5c58a825223341896064d63a95c8b57a9c05
[ "Apache-2.0" ]
147
2016-12-11T04:13:28.000Z
2022-03-27T14:50:00.000Z
#!/usr/bin/env python2 """ state_test.py: Tests for state.py """ import unittest import os.path from _devbuild.gen.runtime_asdl import scope_e, lvalue, value, value_e from core import error from core import test_lib from core import state # module under test def _InitMem(): # empty environment, no arena. arena...
30.022082
87
0.631081
74f606dc3c7a43f80e98f0283adf586cae740f84
1,649
py
Python
lib/JumpScale/baselib/codetools/ClassDef.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
1
2015-10-26T10:38:13.000Z
2015-10-26T10:38:13.000Z
lib/JumpScale/baselib/codetools/ClassDef.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
lib/JumpScale/baselib/codetools/ClassDef.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
null
null
null
from JumpScale import j import PropertyDef class ClassDef: def __init__(self, filePath, name="", inheritance="", comments=""): self.filePath=filePath self.name=name self.comment=comments self.inheritanceString=inheritance.strip() if self.inheritanceString == "": ...
37.477273
216
0.620982
b74e019864b68712f53271358ab0df91a05422a3
2,498
py
Python
cairis/controllers/UploadController.py
nathanjenx/cairis
06d2d592b64af20746b9a2713551db597af46805
[ "Apache-2.0" ]
null
null
null
cairis/controllers/UploadController.py
nathanjenx/cairis
06d2d592b64af20746b9a2713551db597af46805
[ "Apache-2.0" ]
null
null
null
cairis/controllers/UploadController.py
nathanjenx/cairis
06d2d592b64af20746b9a2713551db597af46805
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
35.685714
98
0.742194
1ab689a434c0a2be1718478c74519e57e2a34182
186
py
Python
fs0GetHResultDefineName.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
2
2019-08-01T15:08:25.000Z
2021-01-30T07:29:34.000Z
fs0GetHResultDefineName.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
fs0GetHResultDefineName.py
SkyLined/mWindowsSDK
931cc9d30316893662a3dc4e200dabe97122d216
[ "CC-BY-4.0" ]
null
null
null
from .mWindowsConstants.dsHResultDefineName_by_uValue import dsHResultDefineName_by_uValue; def fs0GetHResultDefineName(uHResult): return dsHResultDefineName_by_uValue.get(uHResult);
37.2
91
0.887097
d985cba6d9f8bd2d9ffb4c283d73fe36be7e702b
485
py
Python
listings/admin.py
markdentoom/Dynasty-8-Real-Estate
f552e211bac81fc24baec3223455ed50508e63ac
[ "MIT" ]
1
2022-02-28T04:22:43.000Z
2022-02-28T04:22:43.000Z
listings/admin.py
markdentoom/Dynasty-8-Real-Estate
f552e211bac81fc24baec3223455ed50508e63ac
[ "MIT" ]
null
null
null
listings/admin.py
markdentoom/Dynasty-8-Real-Estate
f552e211bac81fc24baec3223455ed50508e63ac
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Listing # Register your models here. class ListingAdmin(admin.ModelAdmin): list_display = ('id', 'title', 'is_published', 'price', 'list_date', 'realtor') list_display_links = ('id', 'title') list_filter = ('realtor',) list_editable = ('is_published...
30.3125
92
0.686598
887095979b960fa17e32106dfc972aa96b78ac1d
1,779
py
Python
msgtracker/backend.py
mpillar/msg-tracker
16edb9d555795d0eec625dd954e14f914cbbbe2b
[ "MIT" ]
null
null
null
msgtracker/backend.py
mpillar/msg-tracker
16edb9d555795d0eec625dd954e14f914cbbbe2b
[ "MIT" ]
null
null
null
msgtracker/backend.py
mpillar/msg-tracker
16edb9d555795d0eec625dd954e14f914cbbbe2b
[ "MIT" ]
null
null
null
import redis import logging import msgtracker import datetime redis_client = redis.StrictRedis() def _format_day(sample_time): return "%04d%02d%02d" % (sample_time.year, sample_time.month, sample_time.day) def _format_epoch_seconds(sample_time): return sample_time.strftime('%s') def _get_key_name(userid, ...
31.210526
97
0.681282
b6daf03892779548058878df4dfd585c06cbe987
259
py
Python
cfbcursos/python/aula44(operacaoEmArquivo).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
cfbcursos/python/aula44(operacaoEmArquivo).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
cfbcursos/python/aula44(operacaoEmArquivo).py
mateusjustino/cursos
10927bf62f89b5847bb0acd998e9e9191472d0f4
[ "MIT" ]
null
null
null
file = open('texto.txt', 'a') # x - create - criar # r - read - leitura # a - append - anexar # w - write - escrita com w ele tbm cria caso nao exista # t - texto # b - binario txt = input('Digite um texto: ') file.write(f'{txt}\n') file.close()
16.1875
64
0.586873
12e47a48a1f3b22e5b54d5300acb90bee4fc0dea
6,962
py
Python
tests/orqviz/scans/scans_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
tests/orqviz/scans/scans_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
tests/orqviz/scans/scans_test.py
RonMeiburg/orqviz
fd3e345ac76325cc1f8bd0d523af33689af31fda
[ "Apache-2.0" ]
null
null
null
import os import matplotlib.pyplot as plt import numpy as np import pytest from orqviz.scans import ( perform_1D_interpolation, perform_1D_scan, perform_2D_interpolation, ) from orqviz.scans.data_structures import Scan1DResult, Scan2DResult from orqviz.scans.plots import ( plot_1D_scan_result, plo...
30.401747
87
0.654266
6b7fc5b1d219581c089e94f92ba7b45a1d11ad49
901
py
Python
neo/Utils/VerifiableTestCase.py
simplitech/neo-python
fe90f62e123d720d4281c79af0598d9df9e776fb
[ "MIT" ]
1
2019-06-11T06:03:48.000Z
2019-06-11T06:03:48.000Z
neo/Utils/VerifiableTestCase.py
simplitech/neo-python
fe90f62e123d720d4281c79af0598d9df9e776fb
[ "MIT" ]
null
null
null
neo/Utils/VerifiableTestCase.py
simplitech/neo-python
fe90f62e123d720d4281c79af0598d9df9e776fb
[ "MIT" ]
1
2019-06-16T04:29:49.000Z
2019-06-16T04:29:49.000Z
from neo.Core.Blockchain import Blockchain from neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain import LevelDBBlockchain import shutil from neo.Utils.NeoTestCase import NeoTestCase from neo.Settings import settings import os class VerifiableTestCase(NeoTestCase): LEVELDB_TESTPATH = os.path.join(setting...
28.15625
95
0.754717
b8de4688b617270a6bc974d4c66f4e3449a2abdc
978
py
Python
Layer.py
kaas3000/python-backpropagation
98af9f1d5216e22b41294d48d4e092957778a01c
[ "Apache-2.0" ]
1
2017-01-17T11:29:13.000Z
2017-01-17T11:29:13.000Z
Layer.py
kaas3000/python-backpropagation
98af9f1d5216e22b41294d48d4e092957778a01c
[ "Apache-2.0" ]
null
null
null
Layer.py
kaas3000/python-backpropagation
98af9f1d5216e22b41294d48d4e092957778a01c
[ "Apache-2.0" ]
null
null
null
from ActivationFunctions.ActivationFunction import ActivationFunction from Neuron import Neuron from Weight import Weight class Layer(object): def __init__(self, neurons_amount: int, activation_function: ActivationFunction): """ Instantiate a new Layer :param neurons_amount: int :p...
30.5625
92
0.642127
635b245198cceb9313d8fcf3fc74efcf21a56718
19,464
py
Python
TikTok_ZH.py
cysk003/TikTokDownloader_PyWebIO
4baf380e57e2dc7541777ff98f6fbf0becb60193
[ "MIT" ]
null
null
null
TikTok_ZH.py
cysk003/TikTokDownloader_PyWebIO
4baf380e57e2dc7541777ff98f6fbf0becb60193
[ "MIT" ]
null
null
null
TikTok_ZH.py
cysk003/TikTokDownloader_PyWebIO
4baf380e57e2dc7541777ff98f6fbf0becb60193
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # @Author: https://github.com/Evil0ctal/ # @Time: 2021/11/06 # @Update: 2022/01/01 # @Function: # 基于 PyWebIO、Requests、Flask,可实现在线批量解析抖音的无水印视频/图集。 # 可用于下载作者禁止下载的视频,同时可搭配iOS的快捷指令APP配合本项目API实现应用内下载。 from pywebio import config, session from pywebio.input import * ...
40.634656
180
0.564838
a6e7597290950e6daae38b545b84f385cb83097a
3,788
py
Python
realtimelrc.py
maao666/LrcMate
7525105fa4d4c8b3b746605fad672aa90e0fd665
[ "MIT" ]
null
null
null
realtimelrc.py
maao666/LrcMate
7525105fa4d4c8b3b746605fad672aa90e0fd665
[ "MIT" ]
null
null
null
realtimelrc.py
maao666/LrcMate
7525105fa4d4c8b3b746605fad672aa90e0fd665
[ "MIT" ]
null
null
null
# import pylyrics import logging # import vlc #logging.basicConfig(level = logging.DEBUG) def lrc_interpreter(lrcrawtext): lrc_line_list = lrcrawtext.split('\n') lrc_converted_list = [] for individual_line in lrc_line_list: # To handle multiple timestamps like [00:01.00][00:04.29]Something ...
41.626374
114
0.546463
2aa8094ad1f3d18c7f2864309ae7f458f9e3fb1d
4,923
py
Python
doc/conf.py
bellockk/makotemplate
74f28bb11a311bc6003d4a2c87618d6f41e4417d
[ "MIT" ]
1
2015-03-18T02:42:09.000Z
2015-03-18T02:42:09.000Z
doc/conf.py
bellockk/makotemplate
74f28bb11a311bc6003d4a2c87618d6f41e4417d
[ "MIT" ]
1
2015-03-21T18:04:39.000Z
2015-03-21T18:04:39.000Z
doc/conf.py
bellockk/scons_mako
74f28bb11a311bc6003d4a2c87618d6f41e4417d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # makotemplate documentation build configuration file # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. # If extensions (or...
29.656627
77
0.676417
4c387ab453fa2d3c5546a9e7647243a136369687
6,327
py
Python
m_theory/m_theory_lib/m_util.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
m_theory/m_theory_lib/m_util.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
m_theory/m_theory_lib/m_util.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.125654
80
0.6477
32bf088568bf62fac4796a693bcacfef46465aeb
123
py
Python
flask_wifiqr/__init__.py
fliphess/wifiqr
c457740deab50adea7359ca400353057a3f3bf2b
[ "MIT" ]
null
null
null
flask_wifiqr/__init__.py
fliphess/wifiqr
c457740deab50adea7359ca400353057a3f3bf2b
[ "MIT" ]
null
null
null
flask_wifiqr/__init__.py
fliphess/wifiqr
c457740deab50adea7359ca400353057a3f3bf2b
[ "MIT" ]
null
null
null
""" Flask_WifiQR: A simple flask app that serves your wifi password as a QR Code to smartphones """ __version__ = "0.0.4"
24.6
95
0.723577
f150fe76f02a0bd2eede81e564456d7e93c6049a
6,239
py
Python
src/rbx2/rbx2_arm_nav/scripts/moveit_constraints_demo.py
fujy/ROS-Project
b5e3b43c5eb5d3c1d984648f0f61710eea3a1bb8
[ "MIT" ]
9
2017-08-22T13:07:13.000Z
2021-07-13T10:02:29.000Z
src/rbx2/rbx2_arm_nav/scripts/moveit_constraints_demo.py
vcdanda/ROS-Turtlebot2
f24356486f55933d52e25a81715f1571aace0224
[ "MIT" ]
1
2017-12-14T06:46:58.000Z
2017-12-14T06:46:58.000Z
src/rbx2/rbx2_arm_nav/scripts/moveit_constraints_demo.py
vcdanda/ROS-Turtlebot2
f24356486f55933d52e25a81715f1571aace0224
[ "MIT" ]
5
2018-02-07T14:09:28.000Z
2021-01-08T20:41:52.000Z
#!/usr/bin/env python """ moveit_constraints_demo.py - Version 0.1 2014-01-14 Move the gripper while maintaining a given orientation Created for the Pi Robot Project: http://www.pirobot.org Copyright (c) 2014 Patrick Goebel. All rights reserved. This program is free software; you can re...
35.448864
82
0.67623
4b5b1b60b80355ecf6566570b51826eef90890c2
99
py
Python
Django/newsite/mysite/app1/urls.py
timmysutanto/Skippedia
97cd3c95c87b3bb865f8ecd71e7f9064b34f1e6a
[ "MIT" ]
null
null
null
Django/newsite/mysite/app1/urls.py
timmysutanto/Skippedia
97cd3c95c87b3bb865f8ecd71e7f9064b34f1e6a
[ "MIT" ]
null
null
null
Django/newsite/mysite/app1/urls.py
timmysutanto/Skippedia
97cd3c95c87b3bb865f8ecd71e7f9064b34f1e6a
[ "MIT" ]
null
null
null
from . import views from django.conf.urls import url urlpatterns = [ url(r'^$', views.index) ]
16.5
32
0.676768
94e40da2104c85b4ed4b5f8d0fe28e8c2134a80c
6,337
py
Python
tests/protocols/ws/test_client.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
24
2019-02-15T09:00:27.000Z
2021-12-23T05:45:03.000Z
tests/protocols/ws/test_client.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
20
2020-03-17T09:41:51.000Z
2021-07-14T12:29:02.000Z
tests/protocols/ws/test_client.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
5
2019-10-10T13:38:20.000Z
2021-12-22T14:22:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import uuid import pytest import six import tornado.concurrent import tornado.gen import tornado.ioloop import tornado.locks import tornado.websocket from mock import patch from rx.concurrency import IOLoopScheduler from tornado.concurrent import Future from...
33.707447
100
0.740729
d3c77f8c82f87ea7ec462b4335a1c2e6354789a0
2,414
py
Python
rpi/woImgReg/AndroidV3.py
Joash-JW/CZ3004-MDP-Image-Recognition
75a12aa7b44ace049ac8885fb832135083b26c9b
[ "MIT" ]
null
null
null
rpi/woImgReg/AndroidV3.py
Joash-JW/CZ3004-MDP-Image-Recognition
75a12aa7b44ace049ac8885fb832135083b26c9b
[ "MIT" ]
1
2020-03-10T05:19:54.000Z
2020-03-10T05:19:54.000Z
rpi/woImgReg/AndroidV3.py
Joash-JW/Image-Recognition
75a12aa7b44ace049ac8885fb832135083b26c9b
[ "MIT" ]
null
null
null
from bluetooth import * import time class AndroidV3: def __init__(self): self.uuid = "00001101-0000-1000-8000-00805F9B34FB" self.connected = False def connect(self): try: self.server_socket = BluetoothSocket(RFCOMM) self.server_socket.bind(("", 4)) s...
34.485714
174
0.527755
cfb7ff435747cbfd61e035e206e60d092357b6ed
3,511
py
Python
doc/conf.py
Anon1428/magnum
384e148c24293f513df69e6c03f94a2d4a1e3b6a
[ "MIT" ]
1
2022-03-02T19:44:27.000Z
2022-03-02T19:44:27.000Z
doc/conf.py
Anon1428/magnum
384e148c24293f513df69e6c03f94a2d4a1e3b6a
[ "MIT" ]
null
null
null
doc/conf.py
Anon1428/magnum
384e148c24293f513df69e6c03f94a2d4a1e3b6a
[ "MIT" ]
null
null
null
import re DOXYFILE = 'Doxyfile-mcss' STYLESHEETS = [ 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600&subset=latin-ext', '../css/m-dark+documentation.compiled.css' ] MAIN_PROJECT_URL = 'https://magnum.graphics/' LINKS_NAVBAR1 = [ (None, 'getting-s...
48.763889
763
0.631444
971e934192f8701af9221be9acaab9bd6181461e
3,128
py
Python
cqr/tune_params_cv.py
sofiaek/learning-pareto
600ea8375e9fa137c42c8d091a1aa65fb1ed0bd1
[ "MIT" ]
null
null
null
cqr/tune_params_cv.py
sofiaek/learning-pareto
600ea8375e9fa137c42c8d091a1aa65fb1ed0bd1
[ "MIT" ]
null
null
null
cqr/tune_params_cv.py
sofiaek/learning-pareto
600ea8375e9fa137c42c8d091a1aa65fb1ed0bd1
[ "MIT" ]
null
null
null
import cqr.helper as helper from skgarden import RandomForestQuantileRegressor from sklearn.model_selection import train_test_split def CV_quntiles_rf(params, X, y, target_coverage, grid_q, test_ratio, r...
43.444444
109
0.607097
1d2517f02db63f330e91cdf5e4215671252f61ad
9,870
py
Python
mmcv/utils/misc.py
logan-markewich/mmcv
eb08835fa246ea81263eb25fbe2caa54ef11271c
[ "Apache-2.0" ]
null
null
null
mmcv/utils/misc.py
logan-markewich/mmcv
eb08835fa246ea81263eb25fbe2caa54ef11271c
[ "Apache-2.0" ]
null
null
null
mmcv/utils/misc.py
logan-markewich/mmcv
eb08835fa246ea81263eb25fbe2caa54ef11271c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Open-MMLab. All rights reserved. import collections.abc import functools import itertools import subprocess import warnings from collections import abc from importlib import import_module from inspect import getfullargspec from itertools import repeat # From PyTorch internals def _ntuple(n): def ...
29.375
79
0.60618
f32e4360b29dc3168969fde1ac907da026672262
20,701
py
Python
ddpg_multi_agent.py
mattiasljungstrom/learningtorun_2018
3a9ad9136a9cb494c74ed2761d7f5d777cec3ef5
[ "MIT" ]
4
2019-07-13T03:14:50.000Z
2020-07-29T03:26:26.000Z
ddpg_multi_agent.py
mattiasljungstrom/learningtorun_2018
3a9ad9136a9cb494c74ed2761d7f5d777cec3ef5
[ "MIT" ]
1
2019-08-06T11:22:55.000Z
2019-08-12T12:40:32.000Z
ddpg_multi_agent.py
mattiasljungstrom/learningtorun_2018
3a9ad9136a9cb494c74ed2761d7f5d777cec3ef5
[ "MIT" ]
null
null
null
import time import traceback import threading as th import numpy as np import tensorflow as tf import gym gym.logger.set_level(40) from noise import one_fsq_noise from history import History from memory import Memory from hyper_params import hyper def w_init(stddev, inputs): return tf.truncated_normal_initial...
40.75
171
0.568137
16475803dd4f79e348cc24dfbb9bb827872c0505
1,824
py
Python
gempy/gemini/tests/test_gemini_tools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
19
2017-10-23T14:52:51.000Z
2022-03-28T04:49:00.000Z
gempy/gemini/tests/test_gemini_tools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
194
2017-11-01T17:32:45.000Z
2022-03-31T21:32:59.000Z
gempy/gemini/tests/test_gemini_tools.py
DBerke/DRAGONS
cecf9a03970af95126bd17a227bd5214a5d6c64b
[ "BSD-3-Clause" ]
16
2017-11-01T05:18:04.000Z
2021-12-14T23:08:57.000Z
import astrodata import astrodata.testing import gemini_instruments import pytest from geminidr.gmos.primitives_gmos_image import GMOSImage from gempy.gemini import gemini_tools as gt from gempy.utils import logutils from astropy.table import Table test_data = [ # (Filename, FWHM) ('N20180118S0344.fits', 1.3...
27.223881
75
0.66886
e96ca827b3885ce30d34546c614637624a517c3a
32,678
py
Python
docrep/__init__.py
fernandezc/docrep
2eeb272c2896ea7258d8b71061e0372ecafd3db8
[ "Apache-2.0" ]
27
2018-01-14T18:40:43.000Z
2022-02-14T19:02:20.000Z
docrep/__init__.py
fernandezc/docrep
2eeb272c2896ea7258d8b71061e0372ecafd3db8
[ "Apache-2.0" ]
29
2017-05-09T18:33:47.000Z
2021-08-11T11:22:17.000Z
docrep/__init__.py
fernandezc/docrep
2eeb272c2896ea7258d8b71061e0372ecafd3db8
[ "Apache-2.0" ]
5
2018-01-02T14:04:13.000Z
2020-07-15T05:39:46.000Z
"""The documentation repetition module. Disclaimer ---------- Copyright 2021 Philipp S. Sommer, Helmholtz-Zentrum Geesthacht 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.o...
32.580259
84
0.546667
21b28bb218c4033427aa637fcada81eb8ce2d8c4
966
py
Python
cappa/typings.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
3
2016-12-10T23:10:01.000Z
2017-12-28T19:38:49.000Z
cappa/typings.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
33
2015-01-08T01:32:39.000Z
2020-04-01T21:46:17.000Z
cappa/typings.py
Captricity/cappa
6fa541e145c7fac7c499a63f7625be0dc8d3ea5d
[ "MIT" ]
1
2019-12-13T19:53:32.000Z
2019-12-13T19:53:32.000Z
from __future__ import print_function, absolute_import import os import json import subprocess from .base import CapPA class Typings(CapPA): def __init__(self, *flags): super(Typings, self).__init__(*flags) self.name = 'typings' self.friendly_name = 'typings' def _install_package_d...
30.1875
79
0.646998
9546e5611c97a1af9f5cea78f9032dba4a920965
2,314
py
Python
datasets/Part 2 - Regression/Section 5 - Multiple Linear Regression/multiple_linear_regression.py
alatavencesd/machinelearningaz
947a5183bf661f106493ef67ed38f8e10214562d
[ "MIT" ]
null
null
null
datasets/Part 2 - Regression/Section 5 - Multiple Linear Regression/multiple_linear_regression.py
alatavencesd/machinelearningaz
947a5183bf661f106493ef67ed38f8e10214562d
[ "MIT" ]
null
null
null
datasets/Part 2 - Regression/Section 5 - Multiple Linear Regression/multiple_linear_regression.py
alatavencesd/machinelearningaz
947a5183bf661f106493ef67ed38f8e10214562d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Mar 3 13:10:07 2019 @author: juangabriel """ # Regresión Lineal Múltiple # Cómo importar las librerías import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importar el data set dataset = pd.read_csv('50_Startups.csv') X = dataset...
28.925
92
0.726448
b946fffadd419b336cd37d459461a5e60d883782
7,589
py
Python
status/views.py
AyazSaiyed/LiveCovidTracker2020
9b833a1c102da6dc47566a256346db9769f50366
[ "MIT" ]
null
null
null
status/views.py
AyazSaiyed/LiveCovidTracker2020
9b833a1c102da6dc47566a256346db9769f50366
[ "MIT" ]
null
null
null
status/views.py
AyazSaiyed/LiveCovidTracker2020
9b833a1c102da6dc47566a256346db9769f50366
[ "MIT" ]
null
null
null
#Ayaz Saiyed , 2020 # https://live-covid-tracker.herokuapp.com/ from django.shortcuts import render from django.http import HttpResponseRedirect,JsonResponse import json import requests from django.views.generic import View # from django.utils.timezone import datetime from .models import StateData from openpyxl impor...
31.102459
651
0.63368
59ef4061e9d1eef2eb5ed416faa0337ce13e7b06
1,445
py
Python
ftd/src/ftd/__init__.py
FifthTry/ftd-py
680729e04f84cf4ce7d61d62a39549dcdd0cc28b
[ "BSD-3-Clause" ]
2
2022-03-25T10:33:58.000Z
2022-03-26T06:41:56.000Z
ftd/src/ftd/__init__.py
FifthTry/ftd-py
680729e04f84cf4ce7d61d62a39549dcdd0cc28b
[ "BSD-3-Clause" ]
3
2022-03-31T04:57:02.000Z
2022-03-31T05:23:27.000Z
ftd/src/ftd/__init__.py
FifthTry/ftd-py
680729e04f84cf4ce7d61d62a39549dcdd0cc28b
[ "BSD-3-Clause" ]
null
null
null
import json import os from typing import Optional import ftd_sys import asyncio class Document: # noinspection PyShadowingBuiltins def __init__( self, id: str, root: Optional[str] = None, base_url: Optional[str] = None, **data ): self.id = id if not...
25.350877
80
0.619377
b8ee5f9fd16d1bdf2ebca6c174b4a2ebdbdb9d07
9,614
py
Python
discord/template.py
StockerMC/discord.py_
5b864f6c6709b20e04b519568dd4fb8107dc8658
[ "MIT" ]
7
2021-09-22T01:01:19.000Z
2022-02-21T20:31:35.000Z
discord/template.py
StockerMC/discord.py_
5b864f6c6709b20e04b519568dd4fb8107dc8658
[ "MIT" ]
4
2021-11-11T18:37:31.000Z
2022-02-16T01:49:36.000Z
discord/template.py
StockerMC/discord.py_
5b864f6c6709b20e04b519568dd4fb8107dc8658
[ "MIT" ]
3
2021-11-30T13:44:53.000Z
2022-02-11T03:07:20.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
30.328076
110
0.626378
ff4e8b4bf0775327b932feffba8efa6a9ac96785
6,731
py
Python
test/dlc_tests/ecs/tensorflow/inference/test_ecs_tensorflow_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
383
2020-05-19T18:09:10.000Z
2022-03-29T22:41:05.000Z
test/dlc_tests/ecs/tensorflow/inference/test_ecs_tensorflow_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
551
2020-05-27T17:25:50.000Z
2022-03-31T18:00:35.000Z
test/dlc_tests/ecs/tensorflow/inference/test_ecs_tensorflow_inference.py
Yixiao99/deep-learning-containers
01f078adf5abfb92e802b326511981bdd4a8c85c
[ "Apache-2.0" ]
263
2020-05-19T18:17:12.000Z
2022-03-29T22:41:10.000Z
import pytest import test.test_utils.ecs as ecs_utils import test.test_utils.ec2 as ec2_utils from test.test_utils import ( get_tensorflow_model_name, request_tensorflow_inference, request_tensorflow_inference_nlp, is_nightly_context, ) from test.test_utils import ECS_AML2_CPU_USWEST2, ECS_AML2_GPU_USW...
47.06993
110
0.760511
399ed0b88b889a8dfa42d5b4bb8c9a080dc30235
1,997
py
Python
pcdet/datasets/processor/point_feature_encoder.py
mingjitianming/OpenPCDet
ea12bb874eb30bdc6a181ff82e677ba5557ead85
[ "Apache-2.0" ]
null
null
null
pcdet/datasets/processor/point_feature_encoder.py
mingjitianming/OpenPCDet
ea12bb874eb30bdc6a181ff82e677ba5557ead85
[ "Apache-2.0" ]
null
null
null
pcdet/datasets/processor/point_feature_encoder.py
mingjitianming/OpenPCDet
ea12bb874eb30bdc6a181ff82e677ba5557ead85
[ "Apache-2.0" ]
null
null
null
import numpy as np class PointFeatureEncoder(object): def __init__(self, config, point_cloud_range=None): super().__init__() self.point_encoding_config = config assert list(self.point_encoding_config.src_feature_list[0:3]) == ['x', 'y', 'z'] self.used_feature_list = self.point_enco...
39.94
130
0.616925
33ac1317a5ef43c6dc6f9b5c233ef3f2ad20a9eb
13,380
py
Python
tests/get_or_create/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
1
2016-06-27T08:35:00.000Z
2016-06-27T08:35:00.000Z
tests/get_or_create/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
null
null
null
tests/get_or_create/tests.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
1
2021-03-06T14:22:00.000Z
2021-03-06T14:22:00.000Z
from __future__ import unicode_literals from datetime import date import traceback import warnings from django.db import IntegrityError, DatabaseError from django.utils.encoding import DjangoUnicodeDecodeError from django.test import TestCase, TransactionTestCase from .models import (DefaultPerson, Person, ManualPri...
38.119658
96
0.634978
24319190c7e9aad0579e1f0c90e6462cdf46b6d2
253
py
Python
Mundo 1/ex033.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
1
2021-01-06T22:12:30.000Z
2021-01-06T22:12:30.000Z
Mundo 1/ex033.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
Mundo 1/ex033.py
torvigoes/Exercicios-Python3
1c1ef59087405cd2272808802fd00fe0bb49a5fd
[ "MIT" ]
null
null
null
# 3 NÚMEROS MAIOR E MENOR n1 = int(input('Digite um número:')) n2 = int(input('Digite outro número: ')) n3 = int(input('Digite mais um número: ')) lista = [n1, n2, n3] print(f'O maior número é: {max(lista)}') print(f'O menor número é: {min(lista)}')
23
42
0.644269
60894f8c886e8266b40a1d7d920ba9e2c5e55f20
774
py
Python
d8p1.py
Maselkov/advent-of-code
c7af55c51df23aa4f010fefbabdae67c8b8061d5
[ "MIT" ]
null
null
null
d8p1.py
Maselkov/advent-of-code
c7af55c51df23aa4f010fefbabdae67c8b8061d5
[ "MIT" ]
null
null
null
d8p1.py
Maselkov/advent-of-code
c7af55c51df23aa4f010fefbabdae67c8b8061d5
[ "MIT" ]
null
null
null
with open("d8.txt") as f: image_data = f.read().strip() WIDTH = 25 HEIGHT = 6 layers = [] image = [] pointer = 0 while pointer != len(image_data): for _ in range(HEIGHT): image.append(image_data[pointer:pointer + WIDTH]) pointer += WIDTH layers.append(image) image = [] def digit_count...
20.918919
74
0.613695
702fedc4716902fd4651a0e4fe3312dc79bc02c0
17,915
py
Python
extgen/capi.py
pemryan/f2py
40c1bfcfe698fcf13444bf51439e99c3c6993a4b
[ "BSD-3-Clause" ]
2
2015-01-15T16:18:37.000Z
2015-01-23T05:56:41.000Z
extgen/capi.py
pemryan/f2py
40c1bfcfe698fcf13444bf51439e99c3c6993a4b
[ "BSD-3-Clause" ]
null
null
null
extgen/capi.py
pemryan/f2py
40c1bfcfe698fcf13444bf51439e99c3c6993a4b
[ "BSD-3-Clause" ]
null
null
null
import numpy implementation = dict() typedefs = dict() macros = dict() typedefs['npy_unicode'] = dict(\ code = 'typedef struct { Py_UNICODE* data; Py_ssize_t size; } npy_unicode;') typedefs['npy_string'] = dict(\ code = 'typedef struct { char* data; Py_ssize_t size; } npy_string;') macros['IS_VALID_INIT'] =...
33.801887
103
0.652135
98466715e1c96b08e1cc69de70cc3fa2980cb813
3,984
py
Python
epd/epd2in13_V2.py
AwesomeTac0/WeatherBot
b4e065247b615c9ab0807941cbd9f1a5e8f2edbd
[ "MIT" ]
2
2021-07-09T17:43:57.000Z
2021-07-10T11:43:45.000Z
epd/epd2in13_V2.py
DevJCrystal/WeatherBot
b4e065247b615c9ab0807941cbd9f1a5e8f2edbd
[ "MIT" ]
null
null
null
epd/epd2in13_V2.py
DevJCrystal/WeatherBot
b4e065247b615c9ab0807941cbd9f1a5e8f2edbd
[ "MIT" ]
null
null
null
from epd import display_io from epd.lib.waveshare_epd import epd2in13_V2 from PIL import Image, ImageFont, ImageDraw class Display: def __init__(self) -> None: self.epd = epd2in13_V2.EPD() self.epd.init(self.epd.FULL_UPDATE) self.scrub_needed = True self.blank_image = Image.new('1'...
38.679612
176
0.590612
95ddd0ae2ca8e9339bba4be9e2c1bd651ec34bca
587
py
Python
tin/auth.py
explody/tin
0d2507b88cc12aba376bb39361848052ccbd7e36
[ "Apache-2.0" ]
null
null
null
tin/auth.py
explody/tin
0d2507b88cc12aba376bb39361848052ccbd7e36
[ "Apache-2.0" ]
null
null
null
tin/auth.py
explody/tin
0d2507b88cc12aba376bb39361848052ccbd7e36
[ "Apache-2.0" ]
null
null
null
from requests.auth import AuthBase class HTTPGenericHeaderAuth(AuthBase): """Small custom extension of requests auth, for passing auth info in headers""" def __init__(self, headers): self.headers = headers def __call__(self, r): r.headers.update(self.headers) return r class HTT...
24.458333
88
0.679727
875a73b9e15be9c060246a868712c6b4fa08d518
187
py
Python
ores/score_caches/empty.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/score_caches/empty.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/score_caches/empty.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
from .score_cache import ScoreCache class Empty(ScoreCache): def lookup(self, *args, **kwargs): raise KeyError() def store(self, *args, **kwargs): return None
17
38
0.636364
75ae840a7360d725df2f088b13c5ce64c70bc994
24,639
py
Python
nova/tests/unit/api/openstack/compute/contrib/test_services.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
4
2015-04-13T14:52:41.000Z
2018-02-03T19:32:13.000Z
nova/tests/unit/api/openstack/compute/contrib/test_services.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/contrib/test_services.py
cloudbase/nova-virtualbox
cb758ecff10130ce7a06e0ce1c05dfc999af212f
[ "Apache-2.0" ]
2
2015-10-10T05:30:38.000Z
2020-07-24T01:56:46.000Z
# Copyright 2012 IBM 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 t...
37.732006
79
0.526239
c64f77ed535953dab7b8ad8e13fe72ae42f3092f
167
py
Python
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_Seasonal_Second_NoAR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_Seasonal_Second_NoAR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_ConstantTrend_Seasonal_Second_NoAR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['ConstantTrend'] , ['Seasonal_Second'] , ['NoAR'] );
41.75
89
0.760479
d9cc4bd981391c19f9bf7d7e3f5eaa43030cb2ed
12,142
py
Python
exp0005/train1.py
hirune924/kaggle-HuBMAP
e4c2008378eb773db551cee52380bfccdf3a10fa
[ "Apache-2.0" ]
null
null
null
exp0005/train1.py
hirune924/kaggle-HuBMAP
e4c2008378eb773db551cee52380bfccdf3a10fa
[ "Apache-2.0" ]
null
null
null
exp0005/train1.py
hirune924/kaggle-HuBMAP
e4c2008378eb773db551cee52380bfccdf3a10fa
[ "Apache-2.0" ]
null
null
null
#################### # Import Libraries #################### import os import sys import cv2 import numpy as np import pandas as pd import pytorch_lightning as pl from pytorch_lightning.metrics import Accuracy from pytorch_lightning import loggers from pytorch_lightning import seed_everything from pytorch_lightning im...
37.591331
156
0.565228
fe2b6915348778e1317ed0d22f0e52fe68ab9bc3
8,221
py
Python
python/kfserving/kfserving/configuration.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2020-12-03T22:45:44.000Z
2020-12-28T03:52:28.000Z
python/kfserving/kfserving/configuration.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
15
2020-11-13T19:05:44.000Z
2022-03-12T00:49:45.000Z
python/kfserving/kfserving/configuration.py
owennewo/kfserving
89f73c87525b8e06ea799f69f2979c4ad272fcb3
[ "Apache-2.0" ]
2
2020-10-06T09:24:31.000Z
2020-12-20T15:10:56.000Z
# Copyright 2020 kubeflow.org. # # 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,...
32.623016
97
0.625958
e9f8ec9364a11bf746aeeb23fa6a07aa6f3f9afe
12,484
py
Python
CRNN/train_multitask.py
Greyman-Seu/OCRx
3baf8d0d25e654de7ffc06e350382fb90c1ca0e9
[ "Apache-2.0" ]
null
null
null
CRNN/train_multitask.py
Greyman-Seu/OCRx
3baf8d0d25e654de7ffc06e350382fb90c1ca0e9
[ "Apache-2.0" ]
null
null
null
CRNN/train_multitask.py
Greyman-Seu/OCRx
3baf8d0d25e654de7ffc06e350382fb90c1ca0e9
[ "Apache-2.0" ]
null
null
null
import argparse import logging import random import os import numpy as np import matplotlib.pyplot as plt import torch from torch import nn import torch.optim as optim from torch.utils.data import DataLoader from model import crnn_multitask as crnn import utils import dataset import configure as cfg class Trainer:...
39.757962
130
0.574656
bf719a1a11c04264a540f3588a7d55cb100b7022
10,227
py
Python
formLapMasPer.py
klinikpython/pytkasir
32bd7e28f10607a239d53aa78b898ddaf2dbe0ca
[ "MIT" ]
2
2021-10-30T17:32:01.000Z
2021-12-21T13:04:36.000Z
formLapMasPer.py
klinikpython/pytkasir
32bd7e28f10607a239d53aa78b898ddaf2dbe0ca
[ "MIT" ]
null
null
null
formLapMasPer.py
klinikpython/pytkasir
32bd7e28f10607a239d53aa78b898ddaf2dbe0ca
[ "MIT" ]
2
2020-12-11T06:26:10.000Z
2021-12-21T08:18:05.000Z
# file: formLapMasPer.py # desain form laporan Barang Masuk per periode # tgl_buat: 28 okt 2010 08.12 AM # tgl_revisi : - # lisensi: GPL # dibuat oleh: masbiggie@PythonDahsyat.blogspot.com from tkinter import * from datetime import * import sqlite3 import tkinter.messagebox as tkMessageBox import string class FormLap...
33.641447
69
0.53349
6865ae165bc1b8fba6bed380da64f077408c58f5
36,404
py
Python
homeassistant/components/light/__init__.py
arrelid/core
071fcee9a9b554265a1c190e5620cfc0f176458d
[ "Apache-2.0" ]
1
2019-04-24T18:04:06.000Z
2019-04-24T18:04:06.000Z
homeassistant/components/light/__init__.py
arrelid/core
071fcee9a9b554265a1c190e5620cfc0f176458d
[ "Apache-2.0" ]
65
2020-07-23T07:14:28.000Z
2022-03-31T06:01:48.000Z
homeassistant/components/light/__init__.py
Munsio/home-assistant
1060630bbdccda416f4a00655069864bc851c3a9
[ "Apache-2.0" ]
null
null
null
"""Provides functionality to interact with lights.""" from __future__ import annotations from collections.abc import Iterable import csv import dataclasses from datetime import timedelta import logging import os from typing import cast, final import voluptuous as vol from homeassistant.config_entries import ConfigEn...
38.079498
91
0.670064
aac55d4637e9d94a417f294406115e5c0828f181
31,631
py
Python
pytext/data/data_handler.py
ahhegazy/pytext-1
ccb8705e79ed5dee17e8fe98bea8c1a83a099301
[ "BSD-3-Clause" ]
null
null
null
pytext/data/data_handler.py
ahhegazy/pytext-1
ccb8705e79ed5dee17e8fe98bea8c1a83a099301
[ "BSD-3-Clause" ]
null
null
null
pytext/data/data_handler.py
ahhegazy/pytext-1
ccb8705e79ed5dee17e8fe98bea8c1a83a099301
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import csv import math import multiprocessing import os from copy import deepcopy from typing import ( Any, Dict, Generator, Iterable, List, MutableMapping, Optional, Set, Tuple, Type, ...
38.858722
88
0.602637
3ed7705c05b7a9bdc24306e0e2f0f66086b90a9d
756
py
Python
tests/data/test_cli_common/setup.py
filwaitman/autosetup-py
e2275528d1a17af82e3563b6cc249d1bf22ec38f
[ "MIT" ]
2
2017-10-14T03:15:54.000Z
2018-02-28T15:50:16.000Z
tests/data/test_cli_common/setup.py
filwaitman/autosetup-py
e2275528d1a17af82e3563b6cc249d1bf22ec38f
[ "MIT" ]
null
null
null
tests/data/test_cli_common/setup.py
filwaitman/autosetup-py
e2275528d1a17af82e3563b6cc249d1bf22ec38f
[ "MIT" ]
null
null
null
from setuptools import setup VERSION = '1.0' BASE_CVS_URL = 'http://bitbucket.org/waitman/supermodule1' setup( name='yey', packages=['supermodule', ], version=VERSION, author='Filipe Waitman1', author_email='filwaitman1@gmail.com', install_requires=[x.strip() for x in open('requirements1.txt')...
30.24
81
0.649471
702fbbe1ef091f2961790d09eb01125cb76a0579
4,115
py
Python
benchmark/startQiskit2772.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit2772.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit2772.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=39 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.291667
140
0.648846
006f368362fddfa41398e44efe37b27e8449e51a
5,929
py
Python
stressinjector/cpu.py
thevickypedia/stress_injector
7b552698b788d3d5e9f12a54f289f0465bc5e6a5
[ "MIT" ]
1
2021-08-14T16:43:53.000Z
2021-08-14T16:43:53.000Z
stressinjector/cpu.py
thevickypedia/stress_injector
7b552698b788d3d5e9f12a54f289f0465bc5e6a5
[ "MIT" ]
null
null
null
stressinjector/cpu.py
thevickypedia/stress_injector
7b552698b788d3d5e9f12a54f289f0465bc5e6a5
[ "MIT" ]
null
null
null
from multiprocessing import Process from os import cpu_count from sys import stdout from threading import Thread from time import sleep, time from psutil import cpu_percent class CPUStress: """`Controller <https://git.io/JW70u>`__ for CPU stress using multiprocessing. Gets duration as user input. >>> CPUStr...
39.526667
120
0.604992
b5e9c9eb5620884a01bd0178dffc47b01a0df722
30,993
py
Python
icdar.py
arbaaz-abz/EAST-TextDetector
60376ce027fab9f909e4a75530bd89034a182a38
[ "MIT" ]
null
null
null
icdar.py
arbaaz-abz/EAST-TextDetector
60376ce027fab9f909e4a75530bd89034a182a38
[ "MIT" ]
null
null
null
icdar.py
arbaaz-abz/EAST-TextDetector
60376ce027fab9f909e4a75530bd89034a182a38
[ "MIT" ]
null
null
null
# coding:utf-8 import glob import csv import cv2 import time import os import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as Patches from shapely.geometry import Polygon import tensorflow as tf from data_util import GeneratorEnqueuer tf.app.flags.DEFINE_string('training_data_path', '/userap...
41.657258
119
0.512051
c15cd1779073feb1b02a860c7f7fd7a2a67faeb3
927
py
Python
rse/deliberative/arm_control.py
medhijk/ROS_quadrotor_simulator
ab9f00755653312f28480f7b7dd938177cc6ff76
[ "BSD-3-Clause" ]
2
2017-12-07T17:29:01.000Z
2021-12-22T07:13:03.000Z
rse/deliberative/arm_control.py
medhijk/ROS_quadrotor_simulator
ab9f00755653312f28480f7b7dd938177cc6ff76
[ "BSD-3-Clause" ]
null
null
null
rse/deliberative/arm_control.py
medhijk/ROS_quadrotor_simulator
ab9f00755653312f28480f7b7dd938177cc6ff76
[ "BSD-3-Clause" ]
2
2019-07-23T17:32:27.000Z
2020-05-20T20:25:49.000Z
#!/usr/bin/env python from check_force import call_ft from balsa_arm_move_group_python_interface import * import rospy class MediationLayer(object): def __init__(self): # Initialize rospy node rospy.init_node("mediation_layer", anonymous=True) rospy.loginfo("Med...
28.090909
74
0.635383
b2d1c52f583e8a984a8200ff3faa7f3dc537d5c7
1,499
py
Python
pymono/views/DiceView.py
MrKomish/pymono
6850d2c296055dc0e4ce6aac11991ba28739f689
[ "MIT" ]
1
2016-12-01T13:59:26.000Z
2016-12-01T13:59:26.000Z
pymono/views/DiceView.py
MrKomish/pymono
6850d2c296055dc0e4ce6aac11991ba28739f689
[ "MIT" ]
null
null
null
pymono/views/DiceView.py
MrKomish/pymono
6850d2c296055dc0e4ce6aac11991ba28739f689
[ "MIT" ]
null
null
null
from cocos.director import director from cocos.sprite import Sprite from pymono.lib.cocos2d import * class DiceView(cocos.layer.Layer): def __init__(self, dice_ctrl): super().__init__() self.dice_ctrl = dice_ctrl self.dice = None self.throw_dice_label = None self.x = dir...
29.98
86
0.562375
63dd3edb0e1240cb205191f56ea88aea7f07b6c4
1,759
py
Python
ansible/avd-evpn-l3ls-1/post_validation/translate/ansible_avd/topology/test/yaml_to_yaml.py
ankudinov/netdevops-examples
48e834d7f64e26fa4624e0eb8b09f01018475416
[ "Apache-2.0" ]
null
null
null
ansible/avd-evpn-l3ls-1/post_validation/translate/ansible_avd/topology/test/yaml_to_yaml.py
ankudinov/netdevops-examples
48e834d7f64e26fa4624e0eb8b09f01018475416
[ "Apache-2.0" ]
null
null
null
ansible/avd-evpn-l3ls-1/post_validation/translate/ansible_avd/topology/test/yaml_to_yaml.py
ankudinov/netdevops-examples
48e834d7f64e26fa4624e0eb8b09f01018475416
[ "Apache-2.0" ]
null
null
null
from translate.tools import * def dut_lldp(src_filename, dst_filename): # translate test data from YAML with show commands into test topology YAML dut_show_data = load_yaml(src_filename) topology_dict = dict() for hostname, details in dut_show_data['duts'].items(): for peer in details['show ...
37.425532
99
0.598636
3fe5f11fa6d3a2b4d2ed16e541fb6f873e598307
13,156
py
Python
elasticai/creator/qat/QRigL.py
es-ude/elastic-ai.creator
329f779e97bcb9e175409564b733f7a756996143
[ "MIT" ]
1
2022-02-02T14:11:26.000Z
2022-02-02T14:11:26.000Z
elasticai/creator/qat/QRigL.py
es-ude/elastic-ai.creator
329f779e97bcb9e175409564b733f7a756996143
[ "MIT" ]
50
2021-12-16T15:57:28.000Z
2022-03-28T13:29:46.000Z
elasticai/creator/qat/QRigL.py
es-ude/elastic-ai.creator
329f779e97bcb9e175409564b733f7a756996143
[ "MIT" ]
1
2021-12-17T11:55:53.000Z
2021-12-17T11:55:53.000Z
""" Original: version:https://github.com/nollied/rigl-torch """ from typing import List import numpy as np import torch from elasticai.creator.qat.masks import randomMask4D class IndexMaskHook: def __init__(self, layer, scheduler): self.layer = layer self.scheduler = scheduler self.dense...
36.242424
267
0.566738
2168b64b1eba574d5c0afa40cfe3da1eaf201b21
2,062
py
Python
Udemy/Aula_127_Enum_.py
Gbrvi/Python
02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab
[ "MIT" ]
null
null
null
Udemy/Aula_127_Enum_.py
Gbrvi/Python
02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab
[ "MIT" ]
null
null
null
Udemy/Aula_127_Enum_.py
Gbrvi/Python
02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab
[ "MIT" ]
null
null
null
from enum import Enum, auto # #ENUM é como se fosse um dicionario, porém com algumas diferenças # # Permite deixar mais organizado e mais limpo para quem estiver olhando o codigo # # É para utilzar quando se tem um conjunto padrão de dados # class Direcoes(Enum): # direita = auto() # Defino minha vari...
27.493333
117
0.609602
cb6e201ca3fa48a3cc38fef319da57fc151c4a51
6,543
py
Python
xmlrpcbruteforce.py
Dodi-Lorentz/xmlrpc
b6449fa9b5646cafd0511e397dc96234b713a78c
[ "Apache-2.0" ]
null
null
null
xmlrpcbruteforce.py
Dodi-Lorentz/xmlrpc
b6449fa9b5646cafd0511e397dc96234b713a78c
[ "Apache-2.0" ]
null
null
null
xmlrpcbruteforce.py
Dodi-Lorentz/xmlrpc
b6449fa9b5646cafd0511e397dc96234b713a78c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Author: Dodi Lorentz # Date: 2020-Juni-11 # Email: iamserver87@gmail.com # WhatsApp: https://api.whatsapp.com/send?phone=6283141895141&text=hi # Python || SecBSD || Penetration Tester ###############################################################################################...
41.411392
155
0.494269
dc0c11c5c2d4bd43da394aca14f66a9947f91e87
57,824
py
Python
tensorflow/python/ops/linalg/linalg_impl.py
weikhor/tensorflow
ce047fc05c7b5ff54868ba53d724d9c171c4adbb
[ "Apache-2.0" ]
2
2021-06-20T13:42:45.000Z
2021-06-23T04:48:28.000Z
tensorflow/python/ops/linalg/linalg_impl.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2021-11-10T20:16:36.000Z
2022-02-10T05:52:17.000Z
tensorflow/python/ops/linalg/linalg_impl.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1
2021-11-26T09:36:59.000Z
2021-11-26T09:36:59.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.933702
80
0.66213
345f80ca8d9754db591d830a96e15dc013b80487
4,386
py
Python
Round1/old_models/model.py
NavneelSinghal/HCLHackIITK
91ceb865d1ff7c1ff109fbbbcfda8005d3b9cf93
[ "MIT" ]
null
null
null
Round1/old_models/model.py
NavneelSinghal/HCLHackIITK
91ceb865d1ff7c1ff109fbbbcfda8005d3b9cf93
[ "MIT" ]
null
null
null
Round1/old_models/model.py
NavneelSinghal/HCLHackIITK
91ceb865d1ff7c1ff109fbbbcfda8005d3b9cf93
[ "MIT" ]
null
null
null
# author: Navneel Singhal # functionality: extraction, training and validation import string_analysis import utility from time import time import pickle import numpy as np import random classes = [ 'Benign', 'Malware/Backdoor', 'Malware/Trojan', 'Malware/Trojandownloader', 'Mal...
28.855263
104
0.656863
faeecf7fe648c3a15a03a39cadca39fc6b0269ff
114
py
Python
enthought/developer/tools/image_info_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/developer/tools/image_info_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/developer/tools/image_info_editor.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from etsdevtools.developer.tools.image_info_editor import *
28.5
59
0.859649
fad0c96f7c4e59e3142a7c1f2dd6ce8192448709
907
py
Python
main.py
banana-galaxy/word_gen
77c44be9031615476689579a3fe75cb072df70a9
[ "MIT" ]
null
null
null
main.py
banana-galaxy/word_gen
77c44be9031615476689579a3fe75cb072df70a9
[ "MIT" ]
null
null
null
main.py
banana-galaxy/word_gen
77c44be9031615476689579a3fe75cb072df70a9
[ "MIT" ]
null
null
null
import string, sys, random #print(f"list length: {len(sys.argv)}") if len(sys.argv) > 1: try: length = int(sys.argv[1]) except ValueError: print("Please enter a number") quit() else: print("Please add a word length as an argument") quit() word = "" cons = random.randint(0,1) i ...
22.675
68
0.499449
8b136a47bad8d072123e14aa99ddc95de18fe82e
531
py
Python
auth/users/migrations/0002_auto_20220207_1052.py
Shamsherocode/docker-django-nginx-gunicorn
119d5c127dc96755fdd6c524d0a13985e03d1bfe
[ "MIT" ]
null
null
null
auth/users/migrations/0002_auto_20220207_1052.py
Shamsherocode/docker-django-nginx-gunicorn
119d5c127dc96755fdd6c524d0a13985e03d1bfe
[ "MIT" ]
null
null
null
auth/users/migrations/0002_auto_20220207_1052.py
Shamsherocode/docker-django-nginx-gunicorn
119d5c127dc96755fdd6c524d0a13985e03d1bfe
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2022-02-07 10:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='first_name', f...
22.125
51
0.566855
eee0fb055b15e0fdfedaea05e115f85dc814de27
95
py
Python
tesserakti/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
2
2021-05-18T17:25:06.000Z
2021-05-28T04:24:16.000Z
tesserakti/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
38
2021-01-20T09:38:37.000Z
2021-05-15T13:10:05.000Z
tesserakti/apps.py
sainioan/extractiontool
9908b7ff1915b00a5721405a48b13d941442e1dd
[ "MIT" ]
3
2021-01-20T13:18:31.000Z
2021-02-25T13:34:49.000Z
from django.apps import AppConfig class TesseraktiConfig(AppConfig): name = 'tesserakti'
15.833333
34
0.768421
31adad20a2de244ef10d570bca221eeeee161ae7
575
py
Python
LeetCode/N-ary Tree/Maximum Depth of N-ary Tree.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/N-ary Tree/Maximum Depth of N-ary Tree.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/N-ary Tree/Maximum Depth of N-ary Tree.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
""" # Definition for a Node. class Node: def __init__(self, val=None, children=None): self.val = val self.children = children """ class Solution: def maxDepth(self, root: 'Node') -> int: depth, stack = 0, deque() if root is not None: stack.append((1, root)) w...
28.75
55
0.530435
8ce1cecac149bfa274a8dba29039016e5bd4694b
6,639
bzl
Python
elisp/util.bzl
phst/rules_elisp
331951ae22d5fcd8d50eab21f815130aba1dc8b7
[ "Apache-2.0" ]
7
2020-05-09T18:51:48.000Z
2022-01-03T19:32:23.000Z
elisp/util.bzl
phst/rules_elisp
331951ae22d5fcd8d50eab21f815130aba1dc8b7
[ "Apache-2.0" ]
null
null
null
elisp/util.bzl
phst/rules_elisp
331951ae22d5fcd8d50eab21f815130aba1dc8b7
[ "Apache-2.0" ]
3
2020-11-30T16:13:09.000Z
2022-02-28T12:35:49.000Z
# Copyright 2020, 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.942105
79
0.682784
c0531e82fe630dec51de806b877e0f8bf498e44c
5,611
py
Python
src/dials/algorithms/refinement/parameterisation/beam_parameters.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-10T17:28:16.000Z
2021-12-10T17:28:16.000Z
src/dials/algorithms/refinement/parameterisation/beam_parameters.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
src/dials/algorithms/refinement/parameterisation/beam_parameters.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
1
2021-12-07T12:39:04.000Z
2021-12-07T12:39:04.000Z
from __future__ import annotations from scitbx import matrix from dials.algorithms.refinement.parameterisation.model_parameters import ( ModelParameterisation, Parameter, ) from dials.algorithms.refinement.refinement_helpers import dR_from_axis_and_angle class BeamMixin: """Mix-in class defining some fu...
35.289308
83
0.648191
b3c70834b6867a76bf85da3c3311a97f2d8cd155
9,802
py
Python
app.py
Forever-CodingNoob/Q-A-bot
ff5a2e6e191e053e40c4a959fba5052dc3aa8531
[ "MIT" ]
null
null
null
app.py
Forever-CodingNoob/Q-A-bot
ff5a2e6e191e053e40c4a959fba5052dc3aa8531
[ "MIT" ]
null
null
null
app.py
Forever-CodingNoob/Q-A-bot
ff5a2e6e191e053e40c4a959fba5052dc3aa8531
[ "MIT" ]
null
null
null
import os, datetime, pytz, json # flask from flask import Flask, request, abort # firebase import firebase_admin from firebase_admin import credentials from firebase_admin import firestore # Use a service account cred = credentials.Certificate(os.path.join(os.getcwd(), 'secret', 'firebase.json')) firebase_admin.init...
33.8
122
0.560294
9826133f1c8fcac08dcf3e566ec468c2cdb7a020
325
py
Python
beyondtheadmin/clients/migrations/0012_remove_client_company.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
1
2021-11-27T06:40:34.000Z
2021-11-27T06:40:34.000Z
beyondtheadmin/clients/migrations/0012_remove_client_company.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
2
2021-05-13T04:50:50.000Z
2022-02-28T21:06:24.000Z
beyondtheadmin/clients/migrations/0012_remove_client_company.py
gfavre/invoice-manager
2a1db22edd51b461c090282c6fc1f290f3265379
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-08-17 21:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('clients', '0011_client_company'), ] operations = [ migrations.RemoveField( model_name='client', name='company', ), ...
18.055556
47
0.587692
cbbbc40e5ff7157ec07930299cbcd9e98f4deee2
3,289
py
Python
functions/notify_slack.py
trebidav/terraform-module-aws-notify-slack
5b9ed0fc6449216c8c9dc9614d088eaab4d0b520
[ "Apache-2.0" ]
null
null
null
functions/notify_slack.py
trebidav/terraform-module-aws-notify-slack
5b9ed0fc6449216c8c9dc9614d088eaab4d0b520
[ "Apache-2.0" ]
2
2020-03-15T22:20:01.000Z
2020-11-13T14:23:49.000Z
functions/notify_slack.py
trebidav/terraform-module-aws-notify-slack
5b9ed0fc6449216c8c9dc9614d088eaab4d0b520
[ "Apache-2.0" ]
2
2020-03-11T12:06:14.000Z
2020-03-15T22:19:13.000Z
from __future__ import print_function import os, boto3, json, base64 import urllib.request, urllib.parse import logging # Decrypt encrypted URL with KMS def decrypt(encrypted_url): region = os.environ['AWS_REGION'] try: kms = boto3.client('kms', region_name=region) plaintext = kms.decrypt(Ciph...
38.694118
284
0.64062
43cb7427e57e55e04b2c502c37d6ba5f7c27d791
3,178
py
Python
xero_python/payrolluk/models/employee_leave_types.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/employee_leave_types.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/employee_leave_types.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.3.4 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EmployeeLeaveTyp...
26.04918
86
0.617369
8e9ab039ae9df54163878c1c6297fc2eb932a82d
1,256
py
Python
pydoop/hdfs/common.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
1
2017-11-16T02:13:15.000Z
2017-11-16T02:13:15.000Z
pydoop/hdfs/common.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
pydoop/hdfs/common.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
# BEGIN_COPYRIGHT # # Copyright 2009-2014 CRS4. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
25.632653
77
0.713376
ab4ce380901146f508da14f776b9bfdb63a97168
3,169
py
Python
cms/tests/tests_thumbnail.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
null
null
null
cms/tests/tests_thumbnail.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
3
2020-02-11T21:47:12.000Z
2021-06-10T18:24:43.000Z
cms/tests/tests_thumbnail.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse import hashlib from ..models import Content from .helpers import login, create_content, s3_upload, s3_delete, is_s3_exists test_file = 'cms/tests/テスト ファイル.mp4' test_thumbnail = 'cms/tests/テスト ファイル.jpg' class ThumbnailTest(TestCase): def setUp(self...
32.010101
78
0.632376
2bf4314444d1530b5548dffe9ab87ca4c26fe7e4
1,525
py
Python
mvc/models/properties/bool_property.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
mvc/models/properties/bool_property.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
mvc/models/properties/bool_property.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # ------------------------------------------------------------------------- # Copyright (C) 2014 by Mathijs Dumon <mathijs dot dumon at gmail dot com> # # mvc is a framework derived from the original pygtkmvc framework # hosted at: <http://sourceforge.net/projects/pygtkmvc/> # # ...
39.102564
76
0.652459
a7469c05e9ed63e1a3d52175167cb1875a28324f
70,918
py
Python
python/cudf/cudf/core/column/string.py
sriramch/cudf
db4adb284e0a16e807cb70ff01f0be537051c60a
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/string.py
sriramch/cudf
db4adb284e0a16e807cb70ff01f0be537051c60a
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/string.py
sriramch/cudf
db4adb284e0a16e807cb70ff01f0be537051c60a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019-2020, NVIDIA CORPORATION. import functools import pickle import warnings from codecs import decode import numpy as np import pandas as pd import pyarrow as pa import nvstrings import cudf._lib as libcudf import cudf._libxx as libcudfxx import cudf._libxx.string_casting as str_cast from cudf._li...
31.930662
79
0.568967
697dcd2560cff38443a489c8b29a2a7b4902cbea
353
py
Python
tests/concepts_skills/software_engineering/test_numpy.py
KarrLab/python_package_tutorial
dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6
[ "MIT" ]
15
2018-01-06T11:33:01.000Z
2022-03-01T15:18:40.000Z
tests/concepts_skills/software_engineering/test_numpy.py
KarrLab/python_package_tutorial
dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6
[ "MIT" ]
2
2018-01-30T23:21:12.000Z
2018-03-23T20:22:06.000Z
tests/concepts_skills/software_engineering/test_numpy.py
KarrLab/python_package_tutorial
dd20e0d3056138904e7e7fbbf6bb884d64dbf8f6
[ "MIT" ]
8
2018-01-08T21:40:19.000Z
2022-01-04T14:48:02.000Z
""" Tests the NumPy introduction exercises :Author: Jonathan Karr <jonrkarr@gmail.com> :Date: 2017-07-11 :Copyright: 2017, Karr Lab :License: MIT """ from intro_to_wc_modeling.concepts_skills.software_engineering import numpy_exercises import unittest class TestNumPyExercises(unittest.TestCase): def test(self)...
20.764706
85
0.773371
5df2fe0473b39476b80f41e44d72e6b2cebf4d5d
284
py
Python
OMS/helpers/user.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
1
2021-12-24T18:14:35.000Z
2021-12-24T18:14:35.000Z
OMS/helpers/user.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
null
null
null
OMS/helpers/user.py
RumaisaHabib/orphan-management-system
4671f40fb2a979e54dec4d12cc522829c2aa739e
[ "MIT" ]
null
null
null
from .format import executeSQL def exists(email, utype): sql = fr"SELECT * FROM Users WHERE Email='{email}' AND Usertype='{utype}'" result = executeSQL(sql, ['Email', 'Usertype']) print(result) print(len(result)) if len(result) == 0: return 0 return 1
28.4
78
0.630282