hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0098a592b7c07c057dde9192d552f78e133677
15,206
py
Python
gs_quant/target/content.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
gs_quant/target/content.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
gs_quant/target/content.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
32.91342
123
0.691964
4a00990617d75ff066209837f8687f4c6daaf3df
8,564
py
Python
pysnmp-with-texts/DCS3FRU-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DCS3FRU-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DCS3FRU-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DCS3FRU-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DCS3FRU-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:37:15 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
104.439024
837
0.78468
4a009b1865caf9bc2209f3bb3babffcaceb1b472
3,529
py
Python
idomoo/models/body.py
Idomoo-RnD/idomoo-python-sdk
d5b7c6a55f75196145a7e6d8f53772a92e4ee2ac
[ "MIT" ]
1
2018-05-01T10:47:47.000Z
2018-05-01T10:47:47.000Z
idomoo/models/body.py
Idomoo-RnD/idomoo-python-sdk
d5b7c6a55f75196145a7e6d8f53772a92e4ee2ac
[ "MIT" ]
3
2018-06-06T08:14:43.000Z
2021-03-15T18:35:52.000Z
idomoo/models/body.py
Idomoo-RnD/idomoo-python-sdk
d5b7c6a55f75196145a7e6d8f53772a92e4ee2ac
[ "MIT" ]
2
2018-06-26T09:34:20.000Z
2019-11-14T10:23:44.000Z
# coding: utf-8 """ Idomoo API OpenAPI spec version: 2.0 Contact: dev.support@idomoo.com """ import pprint import six class Body(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swa...
24.678322
80
0.547181
4a009b2d9d45b3f52fc5e6fdf73577a55a9cfe42
12,816
py
Python
tensorflow/python/ops/numpy_ops/np_math_ops_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/ops/numpy_ops/np_math_ops_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/ops/numpy_ops/np_math_ops_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2020 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...
35.305785
80
0.604791
4a009b498e40635268231cf5e0dcc34b237afe7b
2,928
py
Python
custom_components/bosch/bosch_entity.py
pszafer/home-assistant-bosch-custom-component
82660d39a989bc7120ae8261f22c477e71aa1e52
[ "Apache-2.0" ]
10
2019-05-19T19:21:15.000Z
2020-01-24T20:13:42.000Z
custom_components/bosch/bosch_entity.py
pszafer/home-assistant-bosch-custom-component
82660d39a989bc7120ae8261f22c477e71aa1e52
[ "Apache-2.0" ]
24
2019-05-19T16:41:41.000Z
2020-04-15T14:37:13.000Z
custom_components/bosch/bosch_entity.py
pszafer/home-assistant-bosch-custom-component
82660d39a989bc7120ae8261f22c477e71aa1e52
[ "Apache-2.0" ]
5
2019-11-01T10:15:35.000Z
2020-04-02T16:25:45.000Z
"""Bosch base entity.""" from homeassistant.const import TEMP_CELSIUS from .const import DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP, DOMAIN class BoschEntity: """Bosch base entity class.""" def __init__(self, **kwargs): """Initialize the entity.""" self.hass = kwargs.get("hass") self._bosch_...
28.153846
62
0.620219
4a009ba7f8312a524087ce0917e5d34dc65fe765
1,532
py
Python
tests/apps/user/commands/test_create.py
cheesycod/piccolo
254750cdd2f40f118a200074f97e93c7dae4461c
[ "MIT" ]
null
null
null
tests/apps/user/commands/test_create.py
cheesycod/piccolo
254750cdd2f40f118a200074f97e93c7dae4461c
[ "MIT" ]
null
null
null
tests/apps/user/commands/test_create.py
cheesycod/piccolo
254750cdd2f40f118a200074f97e93c7dae4461c
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from piccolo.apps.user.commands.create import create from piccolo.apps.user.tables import BaseUser class TestCreate(TestCase): def setUp(self): BaseUser.create_table(if_not_exists=True).run_sync() def tearDown(self): BaseUser.alte...
27.854545
77
0.597258
4a009c3ca0154c5108e65c364e6a9a8daee6170f
1,945
py
Python
antipetros_discordbot/utility/data.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/utility/data.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/utility/data.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
1
2021-02-12T01:10:51.000Z
2021-02-12T01:10:51.000Z
IMAGE_EXTENSIONS = {'png', 'jpg', 'jpeg', 'tif', 'tiff', 'tga', 'gif'} COMMAND_CONFIG_SUFFIXES = {'enabled': ('_enabled', True), 'channels': ('_allowed_channels', ''), 'roles': ('_allowed_roles', ''), 'dm_ids': ('_allowed_dm_ids', '')} DEFAULT_CONFIG_OPTION_NAMES = {'dm_ids': 'default_allowed_dm_ids', 'channels': ...
45.232558
164
0.703856
4a009c477522a8cd8e172a00bf963366e3ba14cc
14,969
py
Python
es/ch15/pruebas.py
skypather/GeneticAlgorithmsWithPython
d6d99f59e6e2b77380cadf0a1158d2442298fe89
[ "Apache-2.0" ]
2
2018-04-08T15:05:42.000Z
2018-04-08T15:06:30.000Z
es/ch15/pruebas.py
skypather/GeneticAlgorithmsWithPython
d6d99f59e6e2b77380cadf0a1158d2442298fe89
[ "Apache-2.0" ]
null
null
null
es/ch15/pruebas.py
skypather/GeneticAlgorithmsWithPython
d6d99f59e6e2b77380cadf0a1158d2442298fe89
[ "Apache-2.0" ]
1
2019-10-09T01:28:38.000Z
2019-10-09T01:28:38.000Z
# File: pruebas.py # Del capítulo 15 de _Algoritmos Genéticos con Python_ # # Author: Clinton Sheppard <fluentcoder@gmail.com> # Copyright (c) 2017 Clinton Sheppard # # 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 ...
35.138498
79
0.573452
4a009c6be2386eca896e1c67f07b5c72e5633a86
6,382
py
Python
userbot/plugins/alive.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
2
2020-12-06T03:46:08.000Z
2022-02-19T20:34:52.000Z
userbot/plugins/alive.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
4
2020-11-07T07:39:51.000Z
2020-11-10T03:46:41.000Z
userbot/plugins/alive.py
pro-boy/Marshmello
4cf6d96b69a7e0617ba5ced96eb5ee557b318b4c
[ "MIT" ]
9
2020-11-28T11:30:44.000Z
2021-06-01T07:11:57.000Z
# Thanks to Sipak bro and Aryan.. # animation Idea by @(Sipakisking) && @Hell boy_pikachu # Made by @hellboi_atul ....and thanks to @Crackexy for the logos... # Kang with credits else gay... import asyncio import os import requests import time from PIL import Image from io import BytesIO from datetime import datetime ...
42.546667
222
0.580852
4a009c9a28a9369d2f11ca59a57e2a0a7984695e
706
py
Python
app/models/owner.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
null
null
null
app/models/owner.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
96
2021-05-12T11:05:37.000Z
2022-03-15T02:20:26.000Z
app/models/owner.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Optional from pydantic import AnyUrl, BaseModel, EmailStr, StrictBool class OwnerCreate(BaseModel): email: EmailStr password: str class OwnerDetails(BaseModel): state: Optional[str] = None city: Optional[str] = None phone_number: Optional[str] = ...
20.764706
60
0.685552
4a009cd7aeeda27506aea9ebbaac75e8bd3cff78
1,694
py
Python
raysect/optical/material/modifiers/__init__.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
71
2015-10-25T16:50:18.000Z
2022-03-02T03:46:19.000Z
raysect/optical/material/modifiers/__init__.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
336
2015-02-11T22:39:54.000Z
2022-02-22T18:42:32.000Z
raysect/optical/material/modifiers/__init__.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
24
2016-09-11T17:12:10.000Z
2022-02-24T22:57:09.000Z
# Copyright (c) 2014-2021, Dr Alex Meakins, Raysect Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
49.823529
79
0.764463
4a009d71e42e7ee2b66baf0176b45022cd9e2aa6
259
py
Python
produto.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
produto.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
produto.py
paulo-caixeta/00_CURSO_PYTHON
03097c7ed625796560a79c01511b8990f37efa6a
[ "MIT" ]
null
null
null
tamanho = int(input("Digite o tamanho da sequência de números: ")) produto = 1 i=0 while i < tamanho: valor = float(input("Digite um valor a ser multiplicado: ")) produto = produto * valor i = i + 1 print ("O produto dos valores digitados é:", produto)
23.545455
67
0.687259
4a009dcf2b9f181b5ad4495c0fc98bfe40a76523
2,983
py
Python
huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_reset_tracks_task_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_reset_tracks_task_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/create_reset_tracks_task_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class CreateResetTracksTaskResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_...
26.873874
80
0.56051
4a009e4486a32815520a275c9bf6b4bbba4da247
1,114
py
Python
tests/code/test_code_finder.py
sentrip/pygamehack
90a8722172d6a45bf7468e306a23d89832a9ea44
[ "MIT" ]
2
2021-07-25T16:07:17.000Z
2021-11-22T15:33:35.000Z
tests/code/test_code_finder.py
sentrip/pygamehack
90a8722172d6a45bf7468e306a23d89832a9ea44
[ "MIT" ]
null
null
null
tests/code/test_code_finder.py
sentrip/pygamehack
90a8722172d6a45bf7468e306a23d89832a9ea44
[ "MIT" ]
null
null
null
import pytest import pygamehack as gh from pygamehack.code import CodeFinder, CodeFindTarget @pytest.mark.skip def test_code_finder(hack, app, set_cleanup): def cleanup(): hack.write_u32(app.addr.marker + 0x8, 0) hack.write_u32(app.addr.marker + 0xC, 0) set_cleanup(cleanup) class Player(g...
27.85
105
0.598743
4a009f0833f6488509ac6d5c3f7386b3070939cb
218,958
py
Python
corporate/tests/test_stripe.py
yuroitaki/zulip
95303a9929424b55a1f7c7cce9313c4619a9533b
[ "Apache-2.0" ]
1
2022-01-26T14:45:16.000Z
2022-01-26T14:45:16.000Z
corporate/tests/test_stripe.py
jai2201/zulip
95303a9929424b55a1f7c7cce9313c4619a9533b
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
jai2201/zulip
95303a9929424b55a1f7c7cce9313c4619a9533b
[ "Apache-2.0" ]
null
null
null
import json import operator import os import random import re import sys import uuid from dataclasses import dataclass from datetime import datetime, timedelta, timezone from decimal import Decimal from functools import wraps from typing import ( TYPE_CHECKING, Any, Callable, Dict, List, Mapping...
44.795008
198
0.632477
4a009fd6d4f35ce02e1377e83ed56537b0444846
2,463
py
Python
components/Calibrate/calibrateEXT.py
bforest-ariadne/Live-AV-Template
6b663c3757c15ab5695a22d42001b35f7c8db925
[ "MIT" ]
2
2019-08-30T01:22:56.000Z
2019-11-02T02:36:00.000Z
components/Calibrate/calibrateEXT.py
bforest-ariadne/Live-AV-Template
6b663c3757c15ab5695a22d42001b35f7c8db925
[ "MIT" ]
null
null
null
components/Calibrate/calibrateEXT.py
bforest-ariadne/Live-AV-Template
6b663c3757c15ab5695a22d42001b35f7c8db925
[ "MIT" ]
null
null
null
op = op # pylint:disable=invalid-name,used-before-assignment root = root # pylint:disable=invalid-name,used-before-assignment PreShowExtension = mod('preShowEXT').PreShowExtension ParSendModeExtension = mod('parSendModeEXT').ParSendModeExtension class CalibrateExtension(PreShowExtension, ParSendModeExtension): ...
34.690141
95
0.587495
4a00a021ca3aa67503ecd517d437519b354c9c80
887
py
Python
ros/src/mux_demux/scripts/mock_propigate.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-01-13T17:28:59.000Z
2020-02-14T01:00:14.000Z
ros/src/mux_demux/scripts/mock_propigate.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2019-10-23T23:16:36.000Z
2020-10-10T17:52:27.000Z
ros/src/mux_demux/scripts/mock_propigate.py
purduerov/X12-Repo
33574a9a07c3512d6db3a513d13a5666f60fc1f7
[ "MIT" ]
2
2020-02-15T19:00:38.000Z
2020-02-15T19:00:40.000Z
#! /usr/bin/python import rospy from shared_msgs.msg import can_msg, auto_command_msg, thrust_status_msg, thrust_command_msg, esc_single_msg from sensor_msgs.msg import Imu, Temperature from std_msgs.msg import Float32 import random mock = thrust_command_msg() def mock_catch(msg): global mock mock = msg i...
26.878788
108
0.674183
4a00a120144bd4efec75bc485c163b16d276964a
63,189
py
Python
crits/emails/handlers.py
puhley/crits
9870f2d449295c272402af73b5b335e2494b61f3
[ "MIT" ]
null
null
null
crits/emails/handlers.py
puhley/crits
9870f2d449295c272402af73b5b335e2494b61f3
[ "MIT" ]
null
null
null
crits/emails/handlers.py
puhley/crits
9870f2d449295c272402af73b5b335e2494b61f3
[ "MIT" ]
null
null
null
from __future__ import absolute_import import datetime import email as eml from email.parser import Parser from email.utils import parseaddr, getaddresses, mktime_tz, parsedate_tz import hashlib import json import magic import re import yaml import StringIO import sys from dateutil.parser import parse as date_parser ...
37.951351
123
0.539398
4a00a3c3d26a63ae9487fe3ae2f9e2ba7fd9aa9f
3,108
py
Python
che/che/spiders/artlist.py
worry1613/che-spider
32f75249db6bc15d4a795cb20aab428cf32f855d
[ "MIT" ]
null
null
null
che/che/spiders/artlist.py
worry1613/che-spider
32f75249db6bc15d4a795cb20aab428cf32f855d
[ "MIT" ]
null
null
null
che/che/spiders/artlist.py
worry1613/che-spider
32f75249db6bc15d4a795cb20aab428cf32f855d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @创建时间 : 10/12/2018 # @作者 : worry1613(549145583@qq.com) # GitHub : https://github.com/worry1613 # @CSDN : http://blog.csdn.net/worryabout/ from bs4 import BeautifulSoup from scrapy_redis_bloomfilter import bloomfilter from scrapy_redis_bloomfilter.spiders import RedisSpider import json #...
39.846154
115
0.631918
4a00a440138618ef34003276a834f3e75055a978
445
py
Python
GDAL/ReadHDF.py
xiaoke0O/Tests
ec8124879be31d64d526bf274dcd4edb4f85365c
[ "MIT" ]
null
null
null
GDAL/ReadHDF.py
xiaoke0O/Tests
ec8124879be31d64d526bf274dcd4edb4f85365c
[ "MIT" ]
null
null
null
GDAL/ReadHDF.py
xiaoke0O/Tests
ec8124879be31d64d526bf274dcd4edb4f85365c
[ "MIT" ]
null
null
null
from osgeo import gdal datasets = gdal.Open("MOD13A3.A2020001.h21v03.006.2020034153005.hdf", gdal.GA_ReadOnly).GetMetadata('SUBDATASETS') # 输出每个数据集的键 print(datasets.keys()) # 打开第一波段 dataset1 = gdal.Open(datasets["SUBDATASET_1_NAME"]) dataset1_data = dataset1.ReadAsArray() # 打开第二波段 dataset2 = gdal.Open(datasets["SUBDAT...
29.666667
114
0.786517
4a00a458f11700c59130133fe6b65dbe4e91e351
555
py
Python
setup.py
h0rac/raiden-python
df722086759e111f0846a7c6fd5433febc6c3b42
[ "BSD-3-Clause" ]
5
2020-10-17T18:02:59.000Z
2021-07-05T20:39:26.000Z
setup.py
h0rac/raiden-python
df722086759e111f0846a7c6fd5433febc6c3b42
[ "BSD-3-Clause" ]
1
2021-03-22T04:48:33.000Z
2021-03-22T04:48:33.000Z
setup.py
h0rac/raiden-python
df722086759e111f0846a7c6fd5433febc6c3b42
[ "BSD-3-Clause" ]
1
2020-10-19T06:29:47.000Z
2020-10-19T06:29:47.000Z
from setuptools import setup setup( name='raiden_python', version='1.0.2', description='Raiden api', url='', author='Grzegorz Wypych (h0rac) & Adam Laurie (M@jor Malfunction)', author_email='', license='BSD 3-clause', packages=['raiden_python'], install_requires=['pySerial', ...
25.227273
71
0.540541
4a00a4c2fc1262f0f24b288e210ed8b046cbac44
5,045
py
Python
src/upax/importer.py
jddixon/upax
23037212570d35a6d5d01b9ebd9f60280e4eacc5
[ "MIT" ]
null
null
null
src/upax/importer.py
jddixon/upax
23037212570d35a6d5d01b9ebd9f60280e4eacc5
[ "MIT" ]
null
null
null
src/upax/importer.py
jddixon/upax
23037212570d35a6d5d01b9ebd9f60280e4eacc5
[ "MIT" ]
null
null
null
# upax/__init__.py import re try: from os.scandir import scandir except BaseException: from scandir import scandir from xlattice import HashTypes from upax.server import BlockingServer __all__ = ['Importer', ] # PATs AND REs ###################################################### DIR_NAME_PAT = '^[0-9a-fA-F]...
32.973856
79
0.510406
4a00a4f5f22bdc7135eb57353401e37f1860977e
3,328
py
Python
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/standard_metrics/http_dependency.py
jtbeach/opencensus-python
2e396b063a238b3e823b6efc136b9a0405dd5565
[ "Apache-2.0" ]
1
2020-10-19T07:46:42.000Z
2020-10-19T07:46:42.000Z
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/standard_metrics/http_dependency.py
dineshkrishnareddy/opencensus-python
e5e752ceab3371ec4b78cec23a717168e2ed9372
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/standard_metrics/http_dependency.py
dineshkrishnareddy/opencensus-python
e5e752ceab3371ec4b78cec23a717168e2ed9372
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, OpenCensus 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 w...
36.173913
79
0.683894
4a00a557a46211486b0108d1576776f2a3422bb7
1,051
py
Python
pincer/middleware/message_delete_bulk.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-11-04T13:20:23.000Z
2021-11-04T13:20:23.000Z
pincer/middleware/message_delete_bulk.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-10-31T11:41:42.000Z
2021-10-31T11:41:42.000Z
pincer/middleware/message_delete_bulk.py
Kylianalex/Pincer
7ca530798a696c70e7d5c939902653575e3d8054
[ "MIT" ]
1
2021-11-17T13:55:07.000Z
2021-11-17T13:55:07.000Z
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. """sent when multiple messages are deleted at once""" from ..core.dispatch import GatewayDispatch from ..objects.events.message import MessageDeleteBulkEvent from ..utils.conversion import construct_client_dict from ..ut...
28.405405
79
0.706946
4a00a56dc7ed3d3d7ba203e1ad7c97a80b464737
4,201
py
Python
tic_tac_toe_5_4/network.py
alphagamatoe/AlphaToe
a7cd0969aa46dfd151a22ed8b9aec1a894747b17
[ "MIT" ]
172
2016-09-27T12:23:10.000Z
2022-01-19T09:52:11.000Z
tic_tac_toe_5_4/network.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
13
2018-07-19T09:42:28.000Z
2018-09-25T15:08:05.000Z
tic_tac_toe_5_4/network.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
63
2016-09-27T13:00:51.000Z
2021-04-04T04:34:37.000Z
import tensorflow as tf from common.benchmark import benchmark from games.tic_tac_toe_x import TicTacToeXGameSpec tic_tac_toe_5_4_game_spec = TicTacToeXGameSpec(5, 4) def create_convolutional_network(): input_layer = tf.input_layer = tf.placeholder("float", (Non...
51.231707
124
0.702452
4a00a5a06daae6231674f188126a01fb6299c3d7
3,200
py
Python
ephios/core/migrations/0005_auto_20210106_2219.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
14
2021-01-13T12:15:03.000Z
2022-03-20T10:02:11.000Z
ephios/core/migrations/0005_auto_20210106_2219.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
570
2020-09-19T13:37:27.000Z
2022-03-31T09:14:37.000Z
ephios/core/migrations/0005_auto_20210106_2219.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
5
2021-01-08T16:52:31.000Z
2022-03-20T10:02:25.000Z
# Generated by Django 3.1.4 on 2021-01-06 21:19 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0004_auto_20201014_1648"), ] operations = [ migrations.AlterUnique...
35.955056
96
0.425625
4a00a65d4d8ec24cf9f32230ecab303677cefd42
433
py
Python
find/views.py
WilliamTakeshi/eCommerce
26fd1b178aa117cb35a8112f8249280d0a68a0f7
[ "MIT" ]
null
null
null
find/views.py
WilliamTakeshi/eCommerce
26fd1b178aa117cb35a8112f8249280d0a68a0f7
[ "MIT" ]
null
null
null
find/views.py
WilliamTakeshi/eCommerce
26fd1b178aa117cb35a8112f8249280d0a68a0f7
[ "MIT" ]
null
null
null
from django.shortcuts import render from products.models import Product from django.views.generic import ListView # Create your views here. class FindProductView(ListView): template_name = "find/view.html" def get_queryset(self, *args, **kwargs): request = self.request query = request.GET.g...
24.055556
48
0.688222
4a00a76fcc9561c983c65a5b22ffe21c81d273d8
10,379
py
Python
src/silicone/database_crunchers/time_dep_ratio.py
gaurav-ganti/silicone
9d8a814a3518aa309f87a53bdc01e38d9de365c2
[ "BSD-3-Clause" ]
null
null
null
src/silicone/database_crunchers/time_dep_ratio.py
gaurav-ganti/silicone
9d8a814a3518aa309f87a53bdc01e38d9de365c2
[ "BSD-3-Clause" ]
null
null
null
src/silicone/database_crunchers/time_dep_ratio.py
gaurav-ganti/silicone
9d8a814a3518aa309f87a53bdc01e38d9de365c2
[ "BSD-3-Clause" ]
null
null
null
""" Module for the database cruncher which uses the 'time-dependent ratio' technique. """ import logging import warnings import numpy as np import pandas as pd from pyam import IamDataFrame from .base import _DatabaseCruncher logger = logging.getLogger(__name__) class TimeDepRatio(_DatabaseCruncher): """ D...
40.862205
89
0.579439
4a00a89c414fe1d1344c476b74fcb0191b23a70f
783
py
Python
aoj/2/AOJ0523.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
aoj/2/AOJ0523.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
aoj/2/AOJ0523.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
def discard(c, cards): for card in cards: if c < card: return card return 0 while True: n = int(input()) if n == 0: break taro = [int(input()) for _ in range(n)] hanako = [x + 1 for x in range(2*n) if (x + 1) not in taro] taro.sort() hanako.sort() table...
20.605263
63
0.439336
4a00a8d0679fc0d3f5ed722fc51b6088d8914270
5,176
py
Python
examples/contrib/webscanner_helper/proxyauth_selenium.py
KarlParkinson/mitmproxy
fd5caf40c75ca73c4b767170497abf6a5bf016a0
[ "MIT" ]
24,939
2015-01-01T17:13:21.000Z
2022-03-31T17:50:04.000Z
examples/contrib/webscanner_helper/proxyauth_selenium.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,655
2015-01-02T12:31:43.000Z
2022-03-31T20:24:57.000Z
examples/contrib/webscanner_helper/proxyauth_selenium.py
PeterDaveHello/mitmproxy
4bd7b6c4eadeaca712f63e0e73f20bcf6aadbffb
[ "MIT" ]
3,712
2015-01-06T06:47:06.000Z
2022-03-31T10:33:27.000Z
import abc import logging import random import string import time from typing import Dict, List, cast, Any import mitmproxy.http from mitmproxy import flowfilter from mitmproxy import master from mitmproxy.script import concurrent from selenium import webdriver logger = logging.getLogger(__name__) cookie_key_name = ...
38.917293
115
0.627512
4a00a8d898e4ddad2f548a9cbb763e331d9ac2be
805
py
Python
drf_tutorial/drf_tutorial/urls.py
Ryu0n/stock_prediction
f6d117768ff33f6de95d5b94ce46d2ca07964873
[ "Unlicense" ]
6
2021-06-01T10:48:40.000Z
2021-09-10T04:51:07.000Z
drf_tutorial/drf_tutorial/urls.py
Ryu0n/stock_prediction
f6d117768ff33f6de95d5b94ce46d2ca07964873
[ "Unlicense" ]
null
null
null
drf_tutorial/drf_tutorial/urls.py
Ryu0n/stock_prediction
f6d117768ff33f6de95d5b94ce46d2ca07964873
[ "Unlicense" ]
1
2021-06-01T00:13:15.000Z
2021-06-01T00:13:15.000Z
"""drf_tutorial URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
30.961538
77
0.700621
4a00a913f71e290ef7e079c3bccc4237b599001d
518
py
Python
ex86 matriz.py
joaoschweikart/python_projects
a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc
[ "MIT" ]
null
null
null
ex86 matriz.py
joaoschweikart/python_projects
a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc
[ "MIT" ]
null
null
null
ex86 matriz.py
joaoschweikart/python_projects
a30361551ec71ac3bef6d38e4b6ffc7bad21f1cc
[ "MIT" ]
null
null
null
matriz = [[], [], []] for c in range(0, 3): for d in range(0, 3): matriz[c].append(int(input(f'Digite um valor para a posição [{c+1}, {d+1}] da matriz: '))) print('=-'*30) for c in range(0, 3): for d in range(0, 3): print(f'[{matriz[c][d]:^5}]', end='') print() print('=-'*30) '''print(f...
28.777778
98
0.455598
4a00aacf7add960aaf84458e8e4a2f8f32fa6288
13,804
py
Python
nova/tests/test_service.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
1
2015-11-25T10:18:22.000Z
2015-11-25T10:18:22.000Z
nova/tests/test_service.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/test_service.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a ...
37.207547
79
0.632643
4a00aacff52d774506c0b3e3f850871190151c85
263
py
Python
bugtests/test306.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
577
2020-06-04T16:34:44.000Z
2022-03-31T11:46:07.000Z
bugtests/test306.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
174
2015-01-08T20:37:09.000Z
2020-06-03T16:48:59.000Z
bugtests/test306.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
162
2015-02-07T02:14:38.000Z
2020-05-30T16:42:03.000Z
""" Test normcase. """ import support import os if os.sep == '\\': #only do this test on windows. p1 = os.path.normpath('e:\\someDir\\packag/modul.py') if p1 != 'e:\\someDir\\packag\\modul.py': raise support.TestError('Wrong normpath %s' % p1)
20.230769
57
0.61597
4a00ab45a64e46c952e0330f4c127601af1400cc
372
py
Python
src/movieapi/migrations/0009_auto_20190715_1946.py
tabramczyk/moviebase_rest_api
c3b2f14bf7f7c2c7bfcb8e2eed0ff06e1acf7619
[ "MIT" ]
null
null
null
src/movieapi/migrations/0009_auto_20190715_1946.py
tabramczyk/moviebase_rest_api
c3b2f14bf7f7c2c7bfcb8e2eed0ff06e1acf7619
[ "MIT" ]
9
2019-12-04T23:46:01.000Z
2022-02-10T12:27:14.000Z
src/movieapi/migrations/0009_auto_20190715_1946.py
tabramczyk/moviebase_rest_api
c3b2f14bf7f7c2c7bfcb8e2eed0ff06e1acf7619
[ "MIT" ]
1
2020-05-07T15:12:07.000Z
2020-05-07T15:12:07.000Z
# Generated by Django 2.2.3 on 2019-07-15 19:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('movieapi', '0008_auto_20190715_1937'), ] operations = [ migrations.RenameField( model_name='comment', old_name='commented_fi...
19.578947
48
0.594086
4a00ab90632f1eae995dc04584c469b6db668987
335
py
Python
multi_layer_network/test/run_entity.py
shinyichen/gaia-clustering
4e91604085e2132b712eaba11527c51fc7ab4296
[ "MIT" ]
null
null
null
multi_layer_network/test/run_entity.py
shinyichen/gaia-clustering
4e91604085e2132b712eaba11527c51fc7ab4296
[ "MIT" ]
1
2018-09-19T18:49:06.000Z
2018-09-19T18:49:06.000Z
multi_layer_network/test/run_entity.py
shinyichen/gaia-clustering
4e91604085e2132b712eaba11527c51fc7ab4296
[ "MIT" ]
3
2018-08-26T21:36:23.000Z
2018-09-16T22:11:02.000Z
from from_jsonhead2cluster import run_with_file_io # output = "/Users/dongyuli/isi/jsonhead/1003r2nl/" # output = "/Users/dongyuli/isi/jsonhead/1003r1wl/" output = "/Users/dongyuli/isi/jsonhead/1003r4nl/" entity_json = output + "entity.json" entity_file = output + "cluster.json" run_with_file_io(entity_json, entity...
27.916667
51
0.776119
4a00abcc657136ecd0b6a6ae40f5d16a0c6f3575
33,315
py
Python
tests/components/zwave_js/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/zwave_js/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/zwave_js/test_init.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Test the Z-Wave JS init module.""" from copy import deepcopy from unittest.mock import call, patch import pytest from zwave_js_server.exceptions import BaseZwaveJSServerError, InvalidServerVersion from zwave_js_server.model.node import Node from openpeerpower.components.oppio.handler import OppioAPIError from open...
35.328738
108
0.711691
4a00acddfd6c9bb409e4ca0e85951c48fc490956
116
py
Python
Lab_5/Task_3.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
1
2022-01-12T21:48:23.000Z
2022-01-12T21:48:23.000Z
Lab_5/Task_3.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
Lab_5/Task_3.py
spencerperley/CPE_101
9ae3c5a0042780f824de5edee275b35cdb0bbaec
[ "MIT" ]
null
null
null
def filter_pallendromes(myList): return [value for value in myList if (value[0]+value[1])==(value[4]+value[3])]
38.666667
82
0.698276
4a00ad051c446dcc93590eafccde1f7fa63b723d
4,152
py
Python
run.py
tuzi3040/qwebirc
7a69c77d7325fa271f1cdf6e07755587eb35763d
[ "BSD-3-Clause" ]
2
2021-06-10T19:13:54.000Z
2021-11-21T15:17:35.000Z
run.py
tuzi3040/qwebirc
7a69c77d7325fa271f1cdf6e07755587eb35763d
[ "BSD-3-Clause" ]
null
null
null
run.py
tuzi3040/qwebirc
7a69c77d7325fa271f1cdf6e07755587eb35763d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # this entire thing is a hack and badly needs reimplementing import bin.compile bin.compile.vcheck() DEFAULT_PORT = 9090 from optparse import OptionParser import sys, os, config def run_twistd(args1=None, args2=None): from twisted.scripts.twistd import run args = [sys.argv[0]] if args1 is...
37.745455
199
0.706166
4a00adb300244686e7b2b7fc1b770b1a1024e07d
11,885
py
Python
elasticsearch/_sync/client/utils.py
elastic/elasticsearch-py
c0d9bd1b0bd94f6819172199bebc338358410496
[ "Apache-2.0" ]
3,353
2015-03-12T17:41:01.000Z
2022-03-31T05:03:02.000Z
elasticsearch/_sync/client/utils.py
elastic/elasticsearch-py
c0d9bd1b0bd94f6819172199bebc338358410496
[ "Apache-2.0" ]
1,356
2015-03-11T14:27:35.000Z
2022-03-30T22:57:07.000Z
elasticsearch/_sync/client/utils.py
elastic/elasticsearch-py
c0d9bd1b0bd94f6819172199bebc338358410496
[ "Apache-2.0" ]
1,193
2015-03-11T15:13:26.000Z
2022-03-29T02:45:55.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
32.922438
116
0.621708
4a00add5cfc6b0fb864012326da9f7de8d73468c
21,812
py
Python
sdks/python/apache_beam/pvalue.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
3
2020-08-28T17:47:26.000Z
2021-08-17T06:38:58.000Z
sdks/python/apache_beam/pvalue.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
5
2020-11-13T19:06:10.000Z
2021-11-10T19:56:12.000Z
sdks/python/apache_beam/pvalue.py
shitanshu-google/beam
9cd959f61d377874ee1839c2de4bb8f65a948ecc
[ "Apache-2.0" ]
1
2021-10-05T20:53:52.000Z
2021-10-05T20:53:52.000Z
# # 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 not us...
33.975078
80
0.710114
4a00aeadb08d02308019396b3b94b862c9c3b404
46,887
py
Python
src/module.py
DanielLin94144/End-to-End-jointCTC-Attention-ASR
2b8900f1f397d65d0e86972f7379bb3dfeb7c4ea
[ "MIT" ]
3
2020-10-12T08:08:25.000Z
2021-11-15T01:02:11.000Z
src/module.py
DanielLin94144/End-to-End-jointCTC-Attention-ASR
2b8900f1f397d65d0e86972f7379bb3dfeb7c4ea
[ "MIT" ]
1
2021-11-15T16:40:54.000Z
2021-11-15T16:40:54.000Z
src/module.py
DanielLin94144/End-to-End-jointCTC-Attention-ASR
2b8900f1f397d65d0e86972f7379bb3dfeb7c4ea
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence,pad_packed_sequence from torch.autograd import Function FBANK_SIZE = 80 <<<<<<< HEAD ======= >>>>>>> jit_ligru ''' one layer of liGRU using torchscript to accelrate training s...
38.181596
130
0.517308
4a00aefa455fe9e71097c48983aa10e86b00b444
1,450
py
Python
synth.py
wyardley/nodejs-pubsub
40f315fe1203c441f22937ce4e5b518c32d0c214
[ "Apache-2.0" ]
null
null
null
synth.py
wyardley/nodejs-pubsub
40f315fe1203c441f22937ce4e5b518c32d0c214
[ "Apache-2.0" ]
null
null
null
synth.py
wyardley/nodejs-pubsub
40f315fe1203c441f22937ce4e5b518c32d0c214
[ "Apache-2.0" ]
null
null
null
import synthtool as s import synthtool.gcp as gcp import logging import subprocess logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() common_templates = gcp.CommonTemplates() # tasks has two product names, and a poorly named artman yaml version = 'v1' library = gapic.node_library( 'pubsub', ve...
33.72093
87
0.647586
4a00b0ab878801d0cac6ce7b68c9e08634fb2082
137
py
Python
denorm/agg_query.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
11
2021-03-29T14:27:48.000Z
2022-01-01T00:31:40.000Z
denorm/agg_query.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
null
null
null
denorm/agg_query.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
null
null
null
def query(): return f""" INSERT INTO {target} () SELECT FROM {source} GROUP BY 1, 2 ORDER BY 1, 2 ON CONFLICT () DO UPDATE SET """
12.454545
24
0.627737
4a00b1049898da39e0340d4ae0e9bf3fe560f2ab
11,874
py
Python
deepchem/utils/test/test_evaluate.py
hssinejihene/deepchem
7b5177240eb85a68819b4450635ec9df54afed23
[ "MIT" ]
1
2020-09-14T02:34:40.000Z
2020-09-14T02:34:40.000Z
deepchem/utils/test/test_evaluate.py
cpfpengfei/deepchem
a3d827ddeaa181157237894abe5055e200cfd27e
[ "MIT" ]
null
null
null
deepchem/utils/test/test_evaluate.py
cpfpengfei/deepchem
a3d827ddeaa181157237894abe5055e200cfd27e
[ "MIT" ]
null
null
null
"""Unit tests for evaluators.""" import deepchem as dc import numpy as np import unittest import sklearn from deepchem.utils.evaluate import Evaluator from deepchem.utils.evaluate import GeneratorEvaluator def test_multiclass_threshold_predictions(): """Check prediction thresholding works correctly.""" # Construc...
36.875776
80
0.732862
4a00b1d13eb3925d7e5032d05f15107f379263e7
6,755
py
Python
model_zoo/official/recommend/wide_and_deep/train_and_eval_parameter_server_distribute.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
1
2021-06-01T12:34:37.000Z
2021-06-01T12:34:37.000Z
model_zoo/official/recommend/wide_and_deep/train_and_eval_parameter_server_distribute.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
null
null
null
model_zoo/official/recommend/wide_and_deep/train_and_eval_parameter_server_distribute.py
ATestGroup233/mindspore
5d81221b5896cf7d7c6adb44daef28d92cb43352
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
39.735294
115
0.687787
4a00b2bb59451d3fc227af526d4f8af185be2016
1,085
py
Python
tests/test_validate_meta_schema.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
8
2019-08-12T08:16:12.000Z
2022-03-15T12:42:03.000Z
tests/test_validate_meta_schema.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
95
2019-01-29T08:05:35.000Z
2022-01-06T07:42:59.000Z
tests/test_validate_meta_schema.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
14
2019-02-06T08:15:10.000Z
2020-11-05T12:59:37.000Z
"""Copyright 2020 Equinor ASA and The Netherlands Organisation for Applied Scientific Research TNO. Licensed under the MIT license. 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 restric...
33.90625
71
0.770507
4a00b433c1610e008792f185a6c7b282d1c9638e
5,547
py
Python
others/GDAS/lib/nas_rnn/basemodel.py
shashank3959/NAS-Projects
2c0577231a52375de5ebd7a588750899a8c7bf1c
[ "MIT" ]
20
2019-10-10T07:13:27.000Z
2022-03-25T11:33:16.000Z
lib/nas_rnn/basemodel.py
BaiYuYuan/GDAS
5eed8101a78d223a20a43494176051298b24ac3a
[ "MIT" ]
1
2022-02-22T14:00:59.000Z
2022-02-25T08:57:29.000Z
lib/nas_rnn/basemodel.py
BaiYuYuan/GDAS
5eed8101a78d223a20a43494176051298b24ac3a
[ "MIT" ]
6
2020-04-21T14:52:02.000Z
2021-08-05T15:00:22.000Z
import math import torch import torch.nn as nn import torch.nn.functional as F from .genotypes import STEPS from .utils import mask2d, LockedDropout, embedded_dropout INITRANGE = 0.04 def none_func(x): return x * 0 class DARTSCell(nn.Module): def __init__(self, ninp, nhid, dropouth, dropoutx, genotype): s...
30.478022
102
0.650261
4a00b5e8fc47f5a63cdbf3000cdb40a59b42eace
5,211
py
Python
textrank4zh/Segmentation.py
yanzhelee/TextRank4ZH
e0336c8e0d53e1414394ce8fccda6ff9ecb1a720
[ "MIT" ]
null
null
null
textrank4zh/Segmentation.py
yanzhelee/TextRank4ZH
e0336c8e0d53e1414394ce8fccda6ff9ecb1a720
[ "MIT" ]
null
null
null
textrank4zh/Segmentation.py
yanzhelee/TextRank4ZH
e0336c8e0d53e1414394ce8fccda6ff9ecb1a720
[ "MIT" ]
null
null
null
#-*- encoding:utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import jieba.posseg as pseg import codecs import os from . import util def get_default_stop_words_file(): d = os.path.dirname(os.path.realpath(__file__)) return os.path.join(d, '...
38.88806
106
0.551909
4a00b720beba669c8bd3cb8cc4f5a7a037a7be00
14,910
py
Python
pytest_django/fixtures.py
qaprosoft/pytest-django
b502af3dc3ed55b0ac67a1b357bf5d57f005619e
[ "BSD-3-Clause" ]
null
null
null
pytest_django/fixtures.py
qaprosoft/pytest-django
b502af3dc3ed55b0ac67a1b357bf5d57f005619e
[ "BSD-3-Clause" ]
null
null
null
pytest_django/fixtures.py
qaprosoft/pytest-django
b502af3dc3ed55b0ac67a1b357bf5d57f005619e
[ "BSD-3-Clause" ]
null
null
null
"""All pytest-django fixtures""" from __future__ import with_statement import os import warnings from contextlib import contextmanager from functools import partial import pytest from . import live_server_helper from .django_compat import is_django_unittest from .lazy_django import skip_if_no_django __all__ = [ ...
30.742268
84
0.687324
4a00b76ad404c0db4526afe6783576198aa493ad
4,750
py
Python
main.py
YRC99/CellMachineLearning
abdffcd10e313721180737fb306821d3d10f7cdb
[ "MIT" ]
null
null
null
main.py
YRC99/CellMachineLearning
abdffcd10e313721180737fb306821d3d10f7cdb
[ "MIT" ]
null
null
null
main.py
YRC99/CellMachineLearning
abdffcd10e313721180737fb306821d3d10f7cdb
[ "MIT" ]
1
2022-01-09T10:58:21.000Z
2022-01-09T10:58:21.000Z
from __future__ import annotations import os from os import environ from flask import Flask, request import scanpy import joblib import pandas as pd from pymongo import MongoClient import boto3 requiredKeysDefault = { 'nCount_ADT': 0, 'nFeature_ADT': 0, 'nCount_RNA': 0, 'nFeature_RNA': 0, 'nCount_SCT': 0, 'nFe...
33.687943
125
0.663158
4a00b77bdca32486a6f85be27b21485474d2fb24
1,411
py
Python
generate.py
Dominique2509/generate-fsm
cb032ed310693f95048929d5840f5b5df3624a4b
[ "MIT" ]
null
null
null
generate.py
Dominique2509/generate-fsm
cb032ed310693f95048929d5840f5b5df3624a4b
[ "MIT" ]
null
null
null
generate.py
Dominique2509/generate-fsm
cb032ed310693f95048929d5840f5b5df3624a4b
[ "MIT" ]
null
null
null
import random import sys # State the amount of states and transitions the FSM should have. num_of_states = 5 transitions = 4; # Your input alphabet, can be any character input_alphabet = {"A", "B", "C", "D"} if transitions > len(input_alphabet): sys.exit("Input alphabet has to be longer than the amount of transi...
32.813953
79
0.595322
4a00b7bc97d1f9329a2ea9cd12963603477b40f5
984
py
Python
src/kd/cmd/linux/blockdev_hdlr.py
chiyukuan/ktest
05714b683940d88a8c0b3523a5245ca056a457da
[ "MIT" ]
null
null
null
src/kd/cmd/linux/blockdev_hdlr.py
chiyukuan/ktest
05714b683940d88a8c0b3523a5245ca056a457da
[ "MIT" ]
null
null
null
src/kd/cmd/linux/blockdev_hdlr.py
chiyukuan/ktest
05714b683940d88a8c0b3523a5245ca056a457da
[ "MIT" ]
null
null
null
#! /usr/bin/env python ''' ------------------------| Python SOURCE FILE |------------------------ The Description of this file. @copyright: Copyright (c) by Kodiak Data, Inc. All rights reserved. ''' from lcmd_hdlr import LcmdHdlr from kd.ep.cmd_ctx import CmdCtx from kd.util.rc_msg import RC class Blockde...
22.363636
76
0.566057
4a00b82404a6c9cc5b17ff42ef4360e457dc4252
5,870
py
Python
material_models/plot.py
fnrizzi/ElasticShearWaves
b09cde0711562412c6bc24de0d18ad3a972b7289
[ "BSD-3-Clause" ]
8
2021-12-06T16:17:17.000Z
2022-03-05T09:23:45.000Z
material_models/plot.py
fnrizzi/ElasticShearWaves
b09cde0711562412c6bc24de0d18ad3a972b7289
[ "BSD-3-Clause" ]
6
2021-12-01T14:40:38.000Z
2022-01-13T07:44:41.000Z
material_models/plot.py
fnrizzi/ElasticShearWaves
b09cde0711562412c6bc24de0d18ad3a972b7289
[ "BSD-3-Clause" ]
1
2021-11-02T02:06:41.000Z
2021-11-02T02:06:41.000Z
#!/usr/bin/env python import matplotlib.pyplot as plt import numpy as np import sys, re from argparse import ArgumentParser # radius of the earth earthRadius = 6371. #km # thickness of the mantle cmbDepth = 2891. # km # the radius of the core-mantle boundary cmbRadius = earthRadius - cmbDepth def ak135f(dv): n =...
27.175926
76
0.540204
4a00b8cc6299d66fd36cf4132cc80486b0c90a6c
4,556
py
Python
IreneUtility/util/u_logging.py
MujyKun/IreneUtility
1790c80e220e2d8bf7901286177893e985ec4cf4
[ "MIT" ]
1
2021-07-08T05:06:29.000Z
2021-07-08T05:06:29.000Z
IreneUtility/util/u_logging.py
mina9999/IreneUtility
bf3a4a379b6f0b27a2c9f1d7b72888beb90ba756
[ "MIT" ]
null
null
null
IreneUtility/util/u_logging.py
mina9999/IreneUtility
bf3a4a379b6f0b27a2c9f1d7b72888beb90ba756
[ "MIT" ]
3
2021-07-09T16:24:17.000Z
2021-11-11T02:06:51.000Z
from ..Base import Base # noinspection PyBroadException,PyPep8 class Logging(Base): def __init__(self, *args): super().__init__(*args) ################# # ## LOGGING ## # ################# async def get_servers_logged(self): """Get the servers that are being logged.""" ret...
45.56
125
0.620939
4a00b9ef2f10e09629ac406f42e5decdde33f18d
1,602
py
Python
src/python/grpcio_tests/tests/unit/_cython/test_utilities.py
4con/grpc-win-xp
26e73cad8721030ada9b5765bea627376ccaef9e
[ "Apache-2.0" ]
91
2018-11-24T05:33:58.000Z
2022-03-16T05:58:05.000Z
src/python/grpcio_tests/tests/unit/_cython/test_utilities.py
4con/grpc-win-xp
26e73cad8721030ada9b5765bea627376ccaef9e
[ "Apache-2.0" ]
11
2019-06-02T23:50:17.000Z
2022-02-04T23:58:56.000Z
src/python/grpcio_tests/tests/unit/_cython/test_utilities.py
4con/grpc-win-xp
26e73cad8721030ada9b5765bea627376ccaef9e
[ "Apache-2.0" ]
18
2018-11-24T10:35:29.000Z
2021-04-22T07:22:10.000Z
# Copyright 2015 gRPC 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 writing...
30.226415
81
0.67603
4a00ba0f40b3fed6125d30cdb229094508293f17
378
py
Python
PythonExercicios/04-condicoes/ex041.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/04-condicoes/ex041.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
PythonExercicios/04-condicoes/ex041.py
mateusmarinho/python3-cursoemvideo
706d419865532e156fb80b8a873e18cb90d6e0da
[ "MIT" ]
null
null
null
from datetime import date nasc = int(input('Digite o ano de nascimento do atleta: ')) atual = date.today().year idade = atual - nasc if idade <= 9: print('Categoria MIRIM.') elif idade <= 14: print('Categoria INFANTIL.') elif idade <= 19: print('Categoria JUNIOR.') elif idade <= 25: print('Ca...
25.2
60
0.640212
4a00bcb30697ed50d014318a400f9d72b391c830
11,686
py
Python
cryptodoge/util/merkle_set.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
10
2021-08-21T17:41:51.000Z
2022-02-09T04:28:12.000Z
cryptodoge/util/merkle_set.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
1
2021-12-15T21:23:38.000Z
2021-12-15T21:23:38.000Z
cryptodoge/util/merkle_set.py
grayfallstown-cryptodoge/cryptodoge
ffeb5218ce184a56073a5dc0ac5acddba3728bd4
[ "Apache-2.0" ]
2
2021-08-21T18:22:59.000Z
2021-12-10T07:12:18.000Z
from abc import ABCMeta, abstractmethod from hashlib import sha256 from typing import Any, Dict, List, Tuple from cryptodoge.types.blockchain_format.sized_bytes import bytes32 """ A simple, confidence-inspiring Merkle Set standard Advantages of this standard: Low CPU requirements Small proofs of inclusion/exclusion ...
29.069652
112
0.617919
4a00bdfd052e88877ee6d3fbf47663ec9c6c9f5b
1,032
py
Python
utils.py
subramanya1997/Low-Light-Single-Image-Depth-Estimation-via-Transfer-Learning
2a7d9c7599fc8d748339818e761f5aae19d15dc6
[ "MIT" ]
1
2021-11-16T03:35:18.000Z
2021-11-16T03:35:18.000Z
utils.py
subramanya1997/Low-Light-Single-Image-Depth-Estimation-via-Transfer-Learning
2a7d9c7599fc8d748339818e761f5aae19d15dc6
[ "MIT" ]
null
null
null
utils.py
subramanya1997/Low-Light-Single-Image-Depth-Estimation-via-Transfer-Learning
2a7d9c7599fc8d748339818e761f5aae19d15dc6
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.cm import numpy as np def DepthNorm(depth, maxDepth=1000.0): return maxDepth / depth class AverageMeter(object): def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def up...
24
59
0.583333
4a00c0caf9d180ee7fc3fd97c2f303192b2e6937
467
py
Python
bindings/python/pydeck/pydeck/bindings/view.py
shalevy1/deck.gl
7b57f0c0a02a44821a3f18ba91f1786c8c166b2b
[ "MIT" ]
null
null
null
bindings/python/pydeck/pydeck/bindings/view.py
shalevy1/deck.gl
7b57f0c0a02a44821a3f18ba91f1786c8c166b2b
[ "MIT" ]
4
2021-05-09T12:05:30.000Z
2022-02-13T22:38:00.000Z
bindings/python/pydeck/pydeck/bindings/view.py
shalevy1/deck.gl
7b57f0c0a02a44821a3f18ba91f1786c8c166b2b
[ "MIT" ]
null
null
null
from .json_tools import JSONMixin class View(JSONMixin): """ Represents a "hard configuration" of a camera location Parameters --------- type : str, default None deck.gl view to display, e.g., MapView controller : bool, default None If enabled, camera becomes interactive. "...
22.238095
58
0.59743
4a00c0dde2de1cf3d91f828f254a96a9a8bf8dd2
1,625
py
Python
jeu_educatif/python/test_copy.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/test_copy.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/test_copy.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
import temp def test(): if temp.deepCopy(temp.files.Dossier()) is None: print("Incorrect : aucun retour") return False fichier1 = temp.files.Fichier(1) fichier2 = temp.files.Fichier(2) fichier3 = temp.files.Fichier(3) fichier4 = temp.files.Fichier(4) fichier5 = temp.files.Fich...
30.092593
97
0.666462
4a00c2ba4813f1ec7fbe5ac7894679697159f518
3,668
py
Python
examples/zhihu/zhihu_spider.py
lmeetr1984/haipproxy
b071ea7c347ef3c72f81fc1e92f227bed0e1f8cc
[ "MIT" ]
null
null
null
examples/zhihu/zhihu_spider.py
lmeetr1984/haipproxy
b071ea7c347ef3c72f81fc1e92f227bed0e1f8cc
[ "MIT" ]
3
2021-03-31T18:48:49.000Z
2022-02-11T03:39:55.000Z
examples/zhihu/zhihu_spider.py
lmeetr1984/haipproxy
b071ea7c347ef3c72f81fc1e92f227bed0e1f8cc
[ "MIT" ]
null
null
null
# the code is partially copied from https://github.com/windcode/zhihu-crawler-people import json import time from multiprocessing import Pool from bs4 import BeautifulSoup as BS from examples.zhihu.crawler import Crawler from haipproxy.utils import get_redis_conn per_page = 20 info_max_process_num = 50 list_max_pro...
28
90
0.652126
4a00c312accd12d8d5fe3c86e31339cf1863eaed
317
py
Python
flask_app/tests/system/home_test.py
MDRCS/Automation_testing
609ac8d295de86ffdd237afb407418b198576b9a
[ "MIT" ]
null
null
null
flask_app/tests/system/home_test.py
MDRCS/Automation_testing
609ac8d295de86ffdd237afb407418b198576b9a
[ "MIT" ]
null
null
null
flask_app/tests/system/home_test.py
MDRCS/Automation_testing
609ac8d295de86ffdd237afb407418b198576b9a
[ "MIT" ]
null
null
null
from flask_app.tests.system.test_base import BaseTest import json class HomeTest(BaseTest): def test_home(self): with self.app() as c: req = c.get('/') self.assertEqual(req.status_code, 200) self.assertEqual(json.loads(req.get_data()), {'message': 'Hello, world!'})
26.416667
86
0.62776
4a00c452cca927361f3450c7b5d2d72764c59b08
137,427
py
Python
destiny2data.py
movsesyanpv/clanBot
5d46ee7ee685b9606a1627c46944ee27cdd275da
[ "BSD-3-Clause" ]
null
null
null
destiny2data.py
movsesyanpv/clanBot
5d46ee7ee685b9606a1627c46944ee27cdd275da
[ "BSD-3-Clause" ]
245
2019-11-20T15:18:37.000Z
2022-02-07T20:57:16.000Z
destiny2data.py
movsesyanpv/clanBot
5d46ee7ee685b9606a1627c46944ee27cdd275da
[ "BSD-3-Clause" ]
1
2020-09-21T17:07:56.000Z
2020-09-21T17:07:56.000Z
import json import time from urllib.parse import quote import pydest from bs4 import BeautifulSoup from bungied2auth import BungieOAuth from datetime import datetime, timezone, timedelta from dateutil.parser import * import aiohttp import aiosqlite import matplotlib.pyplot as plt import csv import codecs import mariadb...
51.470787
210
0.495172
4a00c5766513e41ae3b3d5d456b8b258f6bb47c6
7,120
py
Python
Lib/copy_reg.py
Whosemario/stackless-python
437aca219bbb82fb7f01d05a22d061cdb6f28ea1
[ "PSF-2.0" ]
1
2019-05-14T05:05:42.000Z
2019-05-14T05:05:42.000Z
Lib/copy_reg.py
Whosemario/stackless-python
437aca219bbb82fb7f01d05a22d061cdb6f28ea1
[ "PSF-2.0" ]
4
2020-03-17T03:29:59.000Z
2021-06-10T21:01:47.000Z
venv/Lib/copy_reg.py
wenyueFan/devopsOfBk
ab5f53f2296101ecb40f8f1b3eead7aa736d12fa
[ "Apache-2.0" ]
2
2018-07-15T06:35:21.000Z
2019-05-14T05:05:31.000Z
"""Helper to provide extensibility for pickle/cPickle. This is only useful to add pickle support for extension types defined in C, not for instances of user-defined classes. """ from types import ClassType as _ClassType __all__ = ["pickle", "constructor", "add_extension", "remove_extension", "clear_extens...
34.066986
75
0.638062
4a00c5b387e91f7ca5bab68aa58527658f59d4a1
14,554
py
Python
Agent_PPO.py
supersglzc/Social-Learning
cea6551a9c587a1f839f7122e8e05d680bfad2e6
[ "MIT" ]
null
null
null
Agent_PPO.py
supersglzc/Social-Learning
cea6551a9c587a1f839f7122e8e05d680bfad2e6
[ "MIT" ]
null
null
null
Agent_PPO.py
supersglzc/Social-Learning
cea6551a9c587a1f839f7122e8e05d680bfad2e6
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np from collections import deque import numpy.random as rd from env import IntersectionEnv import matplotlib.pyplot as plt from matplotlib.cm import get_cmap from utils import MovingAverage, RewardTracker SEED = 42 IMAGE = True GAMMA = 0.99 BATCH_SIZE = 64 MEAN_REWARD...
41.346591
115
0.634533
4a00c60e05bc5ac78f86b8f7643aaa6ba24a1951
3,158
py
Python
examples/example_routing.py
dwaardenburg/gds_tools
7faf42070890924add9c2c5a7937ec474b78bc4d
[ "MIT" ]
null
null
null
examples/example_routing.py
dwaardenburg/gds_tools
7faf42070890924add9c2c5a7937ec474b78bc4d
[ "MIT" ]
null
null
null
examples/example_routing.py
dwaardenburg/gds_tools
7faf42070890924add9c2c5a7937ec474b78bc4d
[ "MIT" ]
null
null
null
import sys, os import numpy as np import gdspy as gp import gds_tools as gdst file_authors = "Daan Waardenburg" last_author_email = "daanwaardenburg@gmail.com" created_on_date = "14 November 2019" filename = os.path.basename(__file__) filepath = __file__.replace(filename, "") source_file = "example_desig...
27.46087
100
0.550348
4a00c6e1f93455dcd730cd8c43d3c2b8e6e4bee0
199
py
Python
src/user/urls.py
SUNGOD3/solution-challenge-backend
b89399f4f344f9b5ddbd2a0a437f230c6c51a994
[ "MIT" ]
null
null
null
src/user/urls.py
SUNGOD3/solution-challenge-backend
b89399f4f344f9b5ddbd2a0a437f230c6c51a994
[ "MIT" ]
4
2021-03-03T12:22:28.000Z
2021-03-21T05:02:38.000Z
src/user/urls.py
SUNGOD3/solution-challenge-backend
b89399f4f344f9b5ddbd2a0a437f230c6c51a994
[ "MIT" ]
2
2021-02-03T12:12:38.000Z
2021-03-06T17:53:24.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.UserList.as_view()), path('<str:email>', views.UserDetail.as_view()), path('login/', views.user_login), ]
22.111111
52
0.663317
4a00c71916e3304b9c52172fd3301ec7a66d6cdc
229
py
Python
data/spiders/basic.py
unreal-estate/chicago
8cacef1ce883217939f2b97d4d0dd8a88ed43a1c
[ "MIT" ]
null
null
null
data/spiders/basic.py
unreal-estate/chicago
8cacef1ce883217939f2b97d4d0dd8a88ed43a1c
[ "MIT" ]
null
null
null
data/spiders/basic.py
unreal-estate/chicago
8cacef1ce883217939f2b97d4d0dd8a88ed43a1c
[ "MIT" ]
1
2019-06-17T15:11:30.000Z
2019-06-17T15:11:30.000Z
# -*- coding: utf-8 -*- import scrapy class BasicSpider(scrapy.Spider): name = 'basic' allowed_domains = ['cityofchicago.org'] start_urls = ['http://cityofchicago.org/'] def parse(self, response): pass
19.083333
46
0.628821
4a00c72e71b30c1e5230090b08a8a08edc11d260
537
py
Python
orchestration/celery.py
spectrum-dev/django-orchestration
3b3257a00cbb086bc6a3b367e76de1081f751cc9
[ "MIT" ]
null
null
null
orchestration/celery.py
spectrum-dev/django-orchestration
3b3257a00cbb086bc6a3b367e76de1081f751cc9
[ "MIT" ]
null
null
null
orchestration/celery.py
spectrum-dev/django-orchestration
3b3257a00cbb086bc6a3b367e76de1081f751cc9
[ "MIT" ]
null
null
null
import os from celery import Celery # this code copied from manage.py # set the default Django settings module for the 'celery' app. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "orchestration.settings") # you change change the name here app = Celery("orchestration") # read config from Django settings, the CELER...
26.85
74
0.778399
4a00c8445301c5f7db68a7746b379f2955427bad
7,892
py
Python
nanotune/fit/coulomboscillationfit.py
theatlasroom/nanotune
444edb47b34739db82e1c58a6c963cb14b223398
[ "MIT" ]
1
2021-07-03T11:58:52.000Z
2021-07-03T11:58:52.000Z
nanotune/fit/coulomboscillationfit.py
Ayushparikh-code/nanotune
6d63adc64c89aa38592cf732345d38f7c18f05e1
[ "MIT" ]
null
null
null
nanotune/fit/coulomboscillationfit.py
Ayushparikh-code/nanotune
6d63adc64c89aa38592cf732345d38f7c18f05e1
[ "MIT" ]
null
null
null
import copy import logging import os from typing import Dict, List, Optional, Tuple import matplotlib import matplotlib.pyplot as plt import numpy as np import scipy as sc import nanotune as nt from nanotune.data.plotting import (colors_dict, default_plot_params, plot_params_type) ...
33.299578
86
0.565763
4a00c97f233b5fe5f48a15db238e0d0c20f7d4e5
1,042
py
Python
oauth/models.py
wjzhangcsu/MyDjangoBlog
6f1a1d9205ad84b38ba1cbc1bf3bdba46eaaa9d7
[ "MIT" ]
null
null
null
oauth/models.py
wjzhangcsu/MyDjangoBlog
6f1a1d9205ad84b38ba1cbc1bf3bdba46eaaa9d7
[ "MIT" ]
15
2020-02-11T21:37:20.000Z
2022-03-11T23:12:25.000Z
oauth/models.py
wjzhangcsu/MyDjangoBlog
6f1a1d9205ad84b38ba1cbc1bf3bdba46eaaa9d7
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.conf import settings from django.utils.timezone import now class OAuthUser(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name='用户', blank=True, null=True, on_delete=models.CASCADE) ...
38.592593
98
0.715931
4a00c98302d126729e22203a9697556eaa3cb81e
380
py
Python
other/dingding/dingtalk/api/rest/OapiCrmObjectdataListRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiCrmObjectdataListRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiCrmObjectdataListRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2021.01.28 ''' from dingtalk.api.base import RestApi class OapiCrmObjectdataListRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.current_operator_userid = None self.data_id_list = None self.name = None def getHttpMethod(self): return 'POST' def get...
22.352941
44
0.757895
4a00ca08aa54cdd19ac20d49a3ca8ec922cb3a80
31,390
py
Python
src/viewer/app/plots.py
mappin/asxtrade
2b97ffcdefae642a49ce5bfcc131db17796f1691
[ "Apache-2.0" ]
null
null
null
src/viewer/app/plots.py
mappin/asxtrade
2b97ffcdefae642a49ce5bfcc131db17796f1691
[ "Apache-2.0" ]
1
2021-04-13T05:00:40.000Z
2021-04-13T05:00:40.000Z
src/viewer/app/plots.py
mappin/asxtrade
2b97ffcdefae642a49ce5bfcc131db17796f1691
[ "Apache-2.0" ]
null
null
null
""" Responsible for production of data visualisations and rendering this data as inline base64 data for various django templates to use. """ import base64 import io from datetime import datetime from collections import Counter, defaultdict import numpy as np import pandas as pd import matplotlib.dates as mdates import ...
35.309336
135
0.616311
4a00caa79e7feacc4e9cbd2c2e1cea085171854e
130
py
Python
sqlite_file_index/__init__.py
0xf0f/sqlite-file-index
8037ef6e86b91db130ecc01fd181140c024acd5e
[ "MIT" ]
2
2020-01-27T00:26:16.000Z
2021-01-14T21:00:14.000Z
sqlite_file_index/__init__.py
0xf0f/sqlite-file-index
8037ef6e86b91db130ecc01fd181140c024acd5e
[ "MIT" ]
null
null
null
sqlite_file_index/__init__.py
0xf0f/sqlite-file-index
8037ef6e86b91db130ecc01fd181140c024acd5e
[ "MIT" ]
null
null
null
from .file_index import FileIndex from .file_index_task import FileIndexTask __all__ = [ 'FileIndex', 'FileIndexTask', ]
16.25
42
0.738462
4a00cb9ef40e2ae8cdf91c47a47afac57b929326
11,045
py
Python
platformio/commands/debug/client.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
platformio/commands/debug/client.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
platformio/commands/debug/client.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.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 appli...
37.696246
79
0.601811
4a00cbf03a3bf122dc286d5d67b3fc5045d4c93d
1,898
py
Python
dis_snek/event_processors/user_events.py
Catalyst4222/Dis-Snek
1578733acb204f7de45a22b132cd7e8a430e7ace
[ "MIT" ]
null
null
null
dis_snek/event_processors/user_events.py
Catalyst4222/Dis-Snek
1578733acb204f7de45a22b132cd7e8a430e7ace
[ "MIT" ]
null
null
null
dis_snek/event_processors/user_events.py
Catalyst4222/Dis-Snek
1578733acb204f7de45a22b132cd7e8a430e7ace
[ "MIT" ]
null
null
null
import logging from typing import Union from dis_snek.const import logger_name from dis_snek.event_processors._template import EventMixinTemplate from dis_snek.models import listen, events, User, Member, BaseChannel, Timestamp, to_snowflake, Activity from dis_snek.models.enums import Status from dis_snek.models.events...
36.5
119
0.655954
4a00cc5488ea0e31763fa394e0eeb4e2a18b910c
16,043
py
Python
tests/ut/python/dataset/test_cache_nomap.py
i4oolish/mindspore
dac3be31d0f2c0a3516200f47af30980e566601b
[ "Apache-2.0" ]
2
2020-08-12T16:14:40.000Z
2020-12-04T03:05:57.000Z
tests/ut/python/dataset/test_cache_nomap.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_cache_nomap.py
dilingsong/mindspore
4276050f2494cfbf8682560a1647576f859991e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
34.206823
119
0.660724
4a00cc7abecae35f7db67142617b521ce3d03ee4
1,008
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/streambus/models/AddTopic.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/streambus/models/AddTopic.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/streambus/models/AddTopic.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
31.5
75
0.705357
4a00cd2b9984c265db424e1f3e8f72fa416de7d6
794
py
Python
scripts/python/grafana.py
tesla-cm/tulong
f0dcddb5dbfa8a99a29ceea76ca2d68ebfd0c8cd
[ "Apache-2.0" ]
null
null
null
scripts/python/grafana.py
tesla-cm/tulong
f0dcddb5dbfa8a99a29ceea76ca2d68ebfd0c8cd
[ "Apache-2.0" ]
null
null
null
scripts/python/grafana.py
tesla-cm/tulong
f0dcddb5dbfa8a99a29ceea76ca2d68ebfd0c8cd
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # coding=UTF-8 import urllib import urllib2 import json def _get_metric_sum(): api_url = u"http://10.3.204.91:4242/api/query?start=1508342400&end=1508428800&m=sum:1h-sum:durian.adx.bidding.throughput" req = urllib2.Request(url=api_url) resp = urllib2.urlopen(req) resp_data = js...
25.612903
125
0.610831
4a00cd5eed082cf7ab4bef0c6e2f0806e8669e4e
648
py
Python
setup.py
nmgcfyxl/apollo_config
936ec200a92f17acf7fa9a59033bd2b315aaee5a
[ "Apache-2.0" ]
null
null
null
setup.py
nmgcfyxl/apollo_config
936ec200a92f17acf7fa9a59033bd2b315aaee5a
[ "Apache-2.0" ]
null
null
null
setup.py
nmgcfyxl/apollo_config
936ec200a92f17acf7fa9a59033bd2b315aaee5a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ apollo 连接工具包 """ from setuptools import setup, find_packages import apollo_config SHORT = u'apollo_config' setup( name='apollo_config', version=apollo_config.__version__, packages=find_packages(), install_requires=[ 'requests' ], author=apollo_config.__author__,...
20.25
48
0.660494
4a00ce460b1ee2e5a69c1f090eea249211bca857
51,553
py
Python
statsmodels/genmod/families/family.py
varunjha089/statsmodels
98f5db981be17aab3801f7266ee8810cef8ee18a
[ "BSD-3-Clause" ]
null
null
null
statsmodels/genmod/families/family.py
varunjha089/statsmodels
98f5db981be17aab3801f7266ee8810cef8ee18a
[ "BSD-3-Clause" ]
null
null
null
statsmodels/genmod/families/family.py
varunjha089/statsmodels
98f5db981be17aab3801f7266ee8810cef8ee18a
[ "BSD-3-Clause" ]
null
null
null
''' The one parameter exponential family distributions used by GLM. ''' # TODO: quasi, quasibinomial, quasipoisson # see http://www.biostat.jhsph.edu/~qli/biostatistics_r_doc/library/stats/html/family.html # for comparison to R, and McCullagh and Nelder import warnings import inspect import numpy as np from scipy imp...
30.025044
90
0.529979
4a00ce47f63a1ead42fc9c72e6648584279bb9b8
789
py
Python
contact/models.py
Cifram/shadowcon
46ff5921390743d2b64af7e15c08b86470e070ac
[ "MIT" ]
null
null
null
contact/models.py
Cifram/shadowcon
46ff5921390743d2b64af7e15c08b86470e070ac
[ "MIT" ]
null
null
null
contact/models.py
Cifram/shadowcon
46ff5921390743d2b64af7e15c08b86470e070ac
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import Group, User class EmailList(models.Model): name = models.CharField(max_length=256) def __str__(self): return self.name class GroupEmailEntry(models.Model): list = models.ForeignKey(Email...
26.3
65
0.752852
4a00ce94bc1df00fb99cea493a26983a68fca841
6,382
py
Python
nncf/torch/dynamic_graph/graph_tracer.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
null
null
null
nncf/torch/dynamic_graph/graph_tracer.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
null
null
null
nncf/torch/dynamic_graph/graph_tracer.py
MaximProshin/nncf
2290d2f4cebcf6749e419dc76850e7bd8b7d8da1
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2019-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
40.649682
106
0.660138
4a00cebd61f86590cabea70f3d60977eedb18847
6,108
py
Python
keystone/endpoint_policy/backends/sql.py
ISCAS-VDI/keystone
11af181c06d78026c89a873f62931558e80f3192
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/sql.py
ISCAS-VDI/keystone
11af181c06d78026c89a873f62931558e80f3192
[ "Apache-2.0" ]
null
null
null
keystone/endpoint_policy/backends/sql.py
ISCAS-VDI/keystone
11af181c06d78026c89a873f62931558e80f3192
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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 to in writing, s...
43.319149
78
0.632286
4a00cee2129dd09de714eabcdcdb4c9450cb33f1
7,746
py
Python
V2RaycSpider1225/src/BusinessLogicLayer/cluster/cook.py
codemonkeyBeginner/V2RayCloudSpider
9cb8acc0bab3c81168256e9498f5a6a926396646
[ "MIT" ]
1
2021-12-10T14:28:14.000Z
2021-12-10T14:28:14.000Z
V2RaycSpider1225/src/BusinessLogicLayer/cluster/cook.py
codemonkeyBeginner/V2RayCloudSpider
9cb8acc0bab3c81168256e9498f5a6a926396646
[ "MIT" ]
null
null
null
V2RaycSpider1225/src/BusinessLogicLayer/cluster/cook.py
codemonkeyBeginner/V2RayCloudSpider
9cb8acc0bab3c81168256e9498f5a6a926396646
[ "MIT" ]
null
null
null
# TODO :demand:用于补充某种类型的链接,将抽象机场信息实例化 # 1. 遍历所有"可用"机场实例 # 2. 审核授权 # if 该机场不具备该类型链接的采集权限,剔除。 # elif 该机场同时具备其他类型的采集权限,权限收缩(改写),实例入队。 # else 该机场仅具备该类型任务的采集权限,实例入队。 __all__ = ["ActionShunt", "devil_king_armed", "reset_task", "DevilKingArmed"] import os from loguru import logger from requests import HTTPError, Conne...
32.008264
90
0.562742
4a00cf06bceed7c6dc2eeb84ed95bfa040815943
7,481
py
Python
rqalpha/data/base_data_source/storages.py
lucifersteph/rqalpha
34b2404872203486e19d18b0d4b64e2e589ba414
[ "Apache-2.0" ]
null
null
null
rqalpha/data/base_data_source/storages.py
lucifersteph/rqalpha
34b2404872203486e19d18b0d4b64e2e589ba414
[ "Apache-2.0" ]
null
null
null
rqalpha/data/base_data_source/storages.py
lucifersteph/rqalpha
34b2404872203486e19d18b0d4b64e2e589ba414
[ "Apache-2.0" ]
1
2021-09-04T01:05:11.000Z
2021-09-04T01:05:11.000Z
# -*- coding: utf-8 -*- # 版权所有 2020 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”), # 您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时...
31.432773
117
0.627991
4a00cf9fe9613137445da56347de4866b1e0f596
4,335
py
Python
scripts/accuracy_bandwidth/post_process/filterforward.py
viscloud/ff
480eb87c6832b3f0bc72a87771abf801c340cab4
[ "Apache-2.0" ]
20
2019-06-05T02:32:14.000Z
2022-01-15T15:35:00.000Z
scripts/accuracy_bandwidth/post_process/filterforward.py
viscloud/filterforward
480eb87c6832b3f0bc72a87771abf801c340cab4
[ "Apache-2.0" ]
null
null
null
scripts/accuracy_bandwidth/post_process/filterforward.py
viscloud/filterforward
480eb87c6832b3f0bc72a87771abf801c340cab4
[ "Apache-2.0" ]
5
2019-06-13T08:56:16.000Z
2020-08-03T02:48:45.000Z
# Copyright 2016 The FilterForward 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 app...
39.409091
126
0.699654
4a00cfd969ffba99c0a8040c6b439d690d6a7d87
2,307
py
Python
ironic/tests/unit/drivers/modules/oneview/test_inspect.py
lenovo-lxca-ci/ironic
333f983198360a791bc0ecf8ac2c4036729f7d3a
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/oneview/test_inspect.py
lenovo-lxca-ci/ironic
333f983198360a791bc0ecf8ac2c4036729f7d3a
[ "Apache-2.0" ]
5
2018-03-28T07:52:38.000Z
2020-05-15T09:35:46.000Z
ironic/tests/unit/drivers/modules/oneview/test_inspect.py
lenovo-lxca-ci/ironic
333f983198360a791bc0ecf8ac2c4036729f7d3a
[ "Apache-2.0" ]
1
2019-05-08T14:20:54.000Z
2019-05-08T14:20:54.000Z
# Copyright (2015-2017) Hewlett Packard Enterprise Development LP # Copyright (2015-2017) Universidade Federal de Campina Grande # # 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 # # ...
44.365385
78
0.70091
4a00d1208911097554af8469b865bc935ab37dfe
5,302
py
Python
bigml/tests/create_anomaly_steps.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_anomaly_steps.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_anomaly_steps.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2014-2020 BigML # # 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 requi...
40.166667
96
0.713127
4a00d2946413b38ab89de3447182c01a77b696b9
2,261
py
Python
stream.py
Watemlifts/spark-kinesis-redshift
f979954e982865966e20403dbe9b0857df18d7ea
[ "MIT" ]
8
2019-07-29T05:58:37.000Z
2022-01-03T11:03:32.000Z
stream.py
Watemlifts/spark-kinesis-redshift
f979954e982865966e20403dbe9b0857df18d7ea
[ "MIT" ]
null
null
null
stream.py
Watemlifts/spark-kinesis-redshift
f979954e982865966e20403dbe9b0857df18d7ea
[ "MIT" ]
3
2018-12-12T01:18:40.000Z
2021-04-21T06:25:25.000Z
from __future__ import print_function from pyspark import SparkContext from pyspark.streaming import StreamingContext from pyspark.streaming.kinesis import KinesisUtils, InitialPositionInStream import datetime import json from pyspark.sql import SQLContext, Row from pyspark.sql.types import * aws_region = 'us-east-1' ...
36.467742
102
0.666962
4a00d2bb9b49bae360bcbed183183d14aa3bb41b
3,014
py
Python
projects/graph/test_graph.py
Nolanole/Graphs
fedfb61d81794c5a0e10e59ae67f447947c8d43c
[ "MIT" ]
null
null
null
projects/graph/test_graph.py
Nolanole/Graphs
fedfb61d81794c5a0e10e59ae67f447947c8d43c
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/projects/graph/test_graph.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import unittest import sys import io from graph import Graph class Test(unittest.TestCase): def setUp(self): self.graph = Graph() self.graph.add_vertex(1) self.graph.add_vertex(2) self.graph.add_vertex(3) self.graph.add_vertex(4) self.graph.add_vertex(5) sel...
25.116667
59
0.483743
4a00d2bcd4e7b011a25c43eb625ff87b09a4c88e
2,036
py
Python
app.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
app.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
app.py
ManualDoCodigo/pyhexeditor
211cc360d468de98367cfd5b4972e7fa3da46712
[ "MIT" ]
null
null
null
# 2021 - Douglas Diniz - www.manualdocodigo.com.br import sys from PyQt5 import QtCore, QtWidgets, uic from PyQt5.QtCore import QFile, QTextStream class MainWindow(QtWidgets.QMainWindow): def __init__(self, *args, **kwargs): super(MainWindow, self).__init__(*args, **kwargs) self.filename = "" ...
25.772152
79
0.608055
4a00d317e66325f91110d1977a1b846c595d9953
3,995
py
Python
src/PAWS/paws_train.py
annilea/potholes_detection_sys
6604225c2db867ffebbef42395251af7ec9ad53b
[ "MIT" ]
1
2021-09-11T11:34:42.000Z
2021-09-11T11:34:42.000Z
src/PAWS/paws_train.py
annilea/potholes_detection_sys
6604225c2db867ffebbef42395251af7ec9ad53b
[ "MIT" ]
1
2021-08-13T15:57:07.000Z
2021-08-13T15:57:07.000Z
src/PAWS/paws_train.py
annilea/potholes_detection_sys
6604225c2db867ffebbef42395251af7ec9ad53b
[ "MIT" ]
1
2021-07-30T16:31:42.000Z
2021-07-30T16:31:42.000Z
# Imports from utils import ( multicrop_loader, labeled_loader, paws_trainer, config, lr_scheduler, lars_optimizer, data_loader ) from models import wide_resnet import matplotlib.pyplot as plt import tensorflow as tf import time # Load dataset x_train,_,y_train,_ = data_loader.get_train_te...
31.456693
86
0.677096
4a00d355e534ff70ab1801e908c00a49a45bd817
4,806
py
Python
test/test_ssl.py
PleasantMachine9/urllib3
a1fd6bc5c196b8cbc10c67ddd64643492ac09205
[ "MIT" ]
1
2020-12-10T06:47:40.000Z
2020-12-10T06:47:40.000Z
test/test_ssl.py
PleasantMachine9/urllib3
a1fd6bc5c196b8cbc10c67ddd64643492ac09205
[ "MIT" ]
1
2020-10-01T13:47:23.000Z
2020-10-01T13:47:23.000Z
test/test_ssl.py
PleasantMachine9/urllib3
a1fd6bc5c196b8cbc10c67ddd64643492ac09205
[ "MIT" ]
null
null
null
from test import notPyPy2 import mock import pytest from urllib3.exceptions import SNIMissingWarning from urllib3.util import ssl_ @pytest.mark.parametrize( "addr", [ # IPv6 "::1", "::", "FE80::8939:7684:D84b:a5A4%251", # IPv4 "127.0.0.1", "8.8.8.8", ...
28.105263
88
0.677486
4a00d6f7d6f04680dc02730c4975ea4e6f75173f
5,238
py
Python
rpython/jit/metainterp/optimizeopt/rawbuffer.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
rpython/jit/metainterp/optimizeopt/rawbuffer.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
rpython/jit/metainterp/optimizeopt/rawbuffer.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
from rpython.rlib.debug import debug_start, debug_stop, debug_print from rpython.rlib.objectmodel import compute_unique_id, we_are_translated class InvalidRawOperation(Exception): pass class InvalidRawWrite(InvalidRawOperation): pass class InvalidRawRead(InvalidRawOperation): pass class RawBuffer(object...
38.8
90
0.57331
4a00d80afd4aec8043d4ffcee1f2a0c6416e9225
5,334
py
Python
src/m2_todo_and_commit_push.py
landod/01-IntroductionToPython
c7d2e8a3514fd52f39c2e254edce386ee8e3c46b
[ "MIT" ]
null
null
null
src/m2_todo_and_commit_push.py
landod/01-IntroductionToPython
c7d2e8a3514fd52f39c2e254edce386ee8e3c46b
[ "MIT" ]
null
null
null
src/m2_todo_and_commit_push.py
landod/01-IntroductionToPython
c7d2e8a3514fd52f39c2e254edce386ee8e3c46b
[ "MIT" ]
null
null
null
print('Hello, World') print('My name is Owen Land') print(3607 * 34227) ############################################################################### # # This line is a COMMENT -- a note to human readers of this file. # When a program runs, it ignores everything from a # (hash) mark # to the end of the line ...
42.672
79
0.55943
4a00d91981464013a3ca42b44af826a6a6fa5e81
1,312
py
Python
vdf.py
CaptainZidgel/StraightToVDM
66086063eeac0edae1b818d116dc2d10aa8d1a26
[ "CNRI-Python" ]
1
2020-10-30T07:29:51.000Z
2020-10-30T07:29:51.000Z
vdf.py
CaptainZidgel/StraightToVDM
66086063eeac0edae1b818d116dc2d10aa8d1a26
[ "CNRI-Python" ]
null
null
null
vdf.py
CaptainZidgel/StraightToVDM
66086063eeac0edae1b818d116dc2d10aa8d1a26
[ "CNRI-Python" ]
null
null
null
''' VDM appears to be VDF (Valve Demo Format). There are other modules that already implement read/write for VDF But I decided to write my own for 2 reasons: 0 - I like writing code :) 1 - I didn't want to have to learn an external module 2 - VDM files are extremely simple anyway and I don't feature any nesting o...
32.8
141
0.653963
4a00d9eecdab208e207885a452d700ea8c1ee991
2,075
py
Python
exe0900car.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0900car.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0900car.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
"""[Uma Classe que pode ser usada para representar um carro]""" class Car(): """[Uma tentativa simples de representar um carro]""" def __init__(self, make, model, year): """[Inicializa os atribuitos que descrevem um carro] """ self.make = make self.model = model self.year = ye...
30.072464
75
0.66988
4a00da8a5b5f4ca04bb5802cf13d9c49eb1fb63c
4,073
py
Python
rlkit/rlkit/envs/goal_generation/pickup_goal_dataset.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
36
2021-10-29T21:23:11.000Z
2022-03-30T15:38:13.000Z
rlkit/rlkit/envs/goal_generation/pickup_goal_dataset.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
null
null
null
rlkit/rlkit/envs/goal_generation/pickup_goal_dataset.py
mihdalal/raps
4818769adc7496f60f819c875a9995950bd5ed19
[ "MIT" ]
4
2021-10-31T16:32:53.000Z
2022-02-11T11:09:03.000Z
import os.path as osp import random import cv2 import numpy as np from multiworld.envs.mujoco.sawyer_xyz.sawyer_pick_and_place import ( get_image_presampled_goals, ) from rlkit.util.io import local_path_from_s3_or_local_path def setup_pickup_image_env(image_env, num_presampled_goals): """ Image env and ...
31.091603
86
0.646207