hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
89bda989e539c7632adc7d04344b9f91d361ac15
24,644
py
Python
psx/_dump_/10/_dump_ida_/overlay_b/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/10/_dump_ida_/overlay_b/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/10/_dump_ida_/overlay_b/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
set_name(0x80122CDC, "PreGameOnlyTestRoutine__Fv", SN_NOWARN) set_name(0x80124DA0, "DRLG_PlaceDoor__Fii", SN_NOWARN) set_name(0x80125274, "DRLG_L1Shadows__Fv", SN_NOWARN) set_name(0x8012568C, "DRLG_PlaceMiniSet__FPCUciiiiiii", SN_NOWARN) set_name(0x80125AF8, "DRLG_L1Floor__Fv", SN_NOWARN) set_name(0x80125BE4, "StoreBlo...
50.5
68
0.822147
c4312b8b9b3276cd82f195ec746b56497843ecbb
9,085
py
Python
route_report.py
cmosig/route-report
35599caded6b78f665446dfb5cca4df3d8a86dbd
[ "MIT" ]
5
2021-06-02T10:20:36.000Z
2021-06-26T13:13:35.000Z
route_report.py
cmosig/route-report
35599caded6b78f665446dfb5cca4df3d8a86dbd
[ "MIT" ]
3
2021-06-02T10:37:49.000Z
2021-06-03T21:04:11.000Z
route_report.py
cmosig/route-report
35599caded6b78f665446dfb5cca4df3d8a86dbd
[ "MIT" ]
null
null
null
import osm_tags import output import utility as uti import metadata import country_detection import gpxpy import pandas as pd import argparse from termcolor import colored # ------------------------------------------------------------ # INIT # ------------------------------------------------------------ def setup_pa...
35.07722
136
0.574353
932ee2092e9077898e421cc7f9287f8342e8ca96
2,111
py
Python
iridium/inveniordm/models/base.py
chriz-uniba/iridium
4d357dc9d61aebfedd3c3e6a6b6451798c2c7122
[ "MIT" ]
2
2022-01-21T14:00:31.000Z
2022-03-29T13:47:20.000Z
iridium/inveniordm/models/base.py
chriz-uniba/iridium
4d357dc9d61aebfedd3c3e6a6b6451798c2c7122
[ "MIT" ]
8
2022-01-21T10:18:09.000Z
2022-03-25T13:11:21.000Z
iridium/inveniordm/models/base.py
chriz-uniba/iridium
4d357dc9d61aebfedd3c3e6a6b6451798c2c7122
[ "MIT" ]
2
2022-02-15T16:48:38.000Z
2022-02-16T14:58:24.000Z
"""Modified base model with enhanced pretty-printing.""" import json from typing import cast from pydantic import BaseModel from ...pprint import pp class JSONModel(BaseModel): """ Subclass adding additional features to pydantic BaseModel for API responses. Models deriving from this variant: * aut...
31.507463
85
0.663667
d1d29a0c496b91cbd883e24adeb75d8e67249bff
1,100
py
Python
jobs/types/feedback_validation_errors.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
2
2021-05-24T10:23:32.000Z
2021-08-22T18:50:14.000Z
jobs/types/feedback_validation_errors.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
11
2021-03-03T07:21:27.000Z
2022-03-12T01:03:44.000Z
jobs/types/feedback_validation_errors.py
Tim810306/oppia
6f90044d12dbe0979c999265cbe46f267c4c592d
[ "Apache-2.0" ]
1
2017-12-06T19:41:49.000Z
2017-12-06T19:41:49.000Z
# coding: utf-8 # # Copyright 2021 The Oppia 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 requi...
35.483871
74
0.761818
4066e3b597675f9403e717731bdd050d5683c108
1,257
py
Python
core/logic.py
tfagerlind/verso
c2ecbce47180396e640e97450ee72aa034f704b0
[ "MIT" ]
null
null
null
core/logic.py
tfagerlind/verso
c2ecbce47180396e640e97450ee72aa034f704b0
[ "MIT" ]
3
2022-01-21T21:52:52.000Z
2022-01-21T22:03:26.000Z
core/logic.py
tfagerlind/verso
c2ecbce47180396e640e97450ee72aa034f704b0
[ "MIT" ]
null
null
null
"""Provides the main logic of the application""" import logging import semver logger = logging.getLogger() def get_current_version(tags): """Get the current version. Args: tags(list): list of git tags Returns: string: A version that corresponds to the tag that represents ...
29.232558
69
0.568019
13820e0f0290b16fcc6bb034e6e8b87cd7825b40
4,116
py
Python
test/system/anarchism/molecule/default/tests/test_testaid_system_anarchism_project_templates.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
17
2019-08-04T09:29:19.000Z
2020-05-16T02:25:20.000Z
test/system/anarchism/molecule/default/tests/test_testaid_system_anarchism_project_templates.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
12
2019-07-19T22:20:42.000Z
2020-01-20T06:45:38.000Z
test/system/anarchism/molecule/default/tests/test_testaid_system_anarchism_project_templates.py
RebelCodeBase/testaid
998c827b826fe4374ecf0a234fef61a975e2fcd7
[ "Apache-2.0" ]
3
2019-08-08T18:18:13.000Z
2019-10-07T13:46:03.000Z
import json import testaid testinfra_hosts = testaid.hosts() def test_testaid_system_templates_resolve_template_string( host, testvars): assert testvars['project_my_var_1'] == 'my_string_1' def test_testaid_system_templates_resolve_template_string_reference( host, testvars): ...
28.783217
77
0.719631
163064019a865a44ee4212a77f525a36189841fe
563
py
Python
adapters/innr/SP120.py
lily148/domoticz-zigbee2mqtt-plugin
5d8b8121b0a86d341ca054df68cb26697e023af9
[ "MIT" ]
null
null
null
adapters/innr/SP120.py
lily148/domoticz-zigbee2mqtt-plugin
5d8b8121b0a86d341ca054df68cb26697e023af9
[ "MIT" ]
null
null
null
adapters/innr/SP120.py
lily148/domoticz-zigbee2mqtt-plugin
5d8b8121b0a86d341ca054df68cb26697e023af9
[ "MIT" ]
null
null
null
from adapters.on_off_switch_adapter import OnOffSwitchAdapter from devices.sensor.current import CurrentSensor from devices.sensor.voltage import VoltageSensor from devices.sensor.kwh import KwhSensor class InnrSP120Plug(OnOffSwitchAdapter): def __init__(self, devices): super().__init__(devices) s...
43.307692
86
0.738899
a1ca0e5b229e00901396d5e239fe4ddba417f443
7,812
py
Python
pymodbus/utilities.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
null
null
null
pymodbus/utilities.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
null
null
null
pymodbus/utilities.py
vmacari/pymodbus
ec97e2f2b50c6db0a932f44e550a5dee60bf0970
[ "BSD-3-Clause" ]
null
null
null
""" Modbus Utilities ----------------- A collection of utilities for packing data, unpacking data computing checksums, and decode checksums. """ from pymodbus.compat import int2byte, byte2int, IS_PYTHON3 from six import string_types import logging _logger = logging.getLogger(__name__) class ModbusTransactionState(...
29.258427
88
0.584357
76a11a27553fb8227bce6ed35f26e14a0df47d01
2,256
py
Python
utils.py
asakko/covid-vaccination-monitor
cce99652958842eb57f5b6a42d8d9dc94f068dc6
[ "MIT" ]
null
null
null
utils.py
asakko/covid-vaccination-monitor
cce99652958842eb57f5b6a42d8d9dc94f068dc6
[ "MIT" ]
null
null
null
utils.py
asakko/covid-vaccination-monitor
cce99652958842eb57f5b6a42d8d9dc94f068dc6
[ "MIT" ]
null
null
null
import json import matplotlib.pyplot as plt import matplotlib.dates as mdates import numpy as np import pandas as pd import requests import sys import warnings from collections import OrderedDict from datetime import datetime, timezone from io import StringIO def load_data(): url = 'https://raw.githubusercontent...
33.176471
188
0.612145
32717b0f34ce8f25426fa5c1e9d84844a6f2effa
1,216
py
Python
electrum_dsv/gui/kivy/uix/dialogs/qr_scanner.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/gui/kivy/uix/dialogs/qr_scanner.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/gui/kivy/uix/dialogs/qr_scanner.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.lang import Builder Factory.register('QRScanner', module='electrum_dsv.gui.kivy.qr_scanner') class QrScannerDialog(Factory.AnimatedPopup): __events__ = ('on_complete', ) def on_symbols(self, instance, value): instance.stop() ...
25.87234
82
0.635691
f0a60b0e5f1343a97320ef8e18114c4bdd37831e
32,708
py
Python
os_ken/lib/packet/icmpv6.py
rolaya/os-ken
10009e41539c737c7c423f13e4f5bc5f46d219ff
[ "Apache-2.0" ]
1
2019-04-24T04:01:07.000Z
2019-04-24T04:01:07.000Z
os_ken/lib/packet/icmpv6.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
null
null
null
os_ken/lib/packet/icmpv6.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli...
33.37551
83
0.578054
3926809d4781ea2e15e890d37af86da93bd799ee
1,667
py
Python
setup.py
manuhortet/prom2teams
cde06758af1b5574182beff01a991697a151c264
[ "Apache-2.0" ]
null
null
null
setup.py
manuhortet/prom2teams
cde06758af1b5574182beff01a991697a151c264
[ "Apache-2.0" ]
null
null
null
setup.py
manuhortet/prom2teams
cde06758af1b5574182beff01a991697a151c264
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as req: requirements = req.read().splitlines() with open('README.md') as f: try: import pypandoc readme = pypandoc.convert('README.md', 'rst') except (IOError, ImportError) as error: readme = open('README.m...
28.254237
68
0.592082
e74560db67e019622b29707819590fdab77909f8
724
py
Python
Chapter10/hillar_django_restful_10_02/restful01/drones/v2/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
95
2018-01-22T21:35:21.000Z
2022-03-30T10:13:35.000Z
Chapter10/hillar_django_restful_10_02/restful01/drones/v2/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
6
2020-03-24T16:37:46.000Z
2021-06-10T21:04:36.000Z
Chapter10/hillar_django_restful_10_02/restful01/drones/v2/views.py
weiliy/Django-RESTful-Web-Services
0b26a84ec8005c6a2cef61671b6d009f0780a9cc
[ "MIT" ]
73
2018-01-24T02:38:17.000Z
2022-01-23T21:02:41.000Z
""" Book: Django RESTful Web Services Author: Gaston C. Hillar - Twitter.com/gastonhillar Publisher: Packt Publishing Ltd. - http://www.packtpub.com """ from rest_framework import generics from rest_framework.response import Response from rest_framework.reverse import reverse from drones import views class ApiRootVer...
31.478261
62
0.762431
a49a852899938510ac9b67ee3a445c00d24d80b3
6,668
py
Python
simple.py
acamara1498/algs
683ea919607cc5e4a22d2d5f7095fb643000a6a5
[ "Apache-2.0" ]
null
null
null
simple.py
acamara1498/algs
683ea919607cc5e4a22d2d5f7095fb643000a6a5
[ "Apache-2.0" ]
null
null
null
simple.py
acamara1498/algs
683ea919607cc5e4a22d2d5f7095fb643000a6a5
[ "Apache-2.0" ]
null
null
null
import alpaca_trade_api as tradeapi import logging import pandas as pd import time import universe api = tradeapi.REST() Universe = universe.Universe NY = 'America/New_York' logger = logging.getLogger(__name__) logging.basicConfig(level=logging.DEBUG) def main(): done = None logging.info('start running') ...
31.158879
78
0.579784
aed661f8b6c823ad6cda792a43435af31b428d1b
1,433
py
Python
setup.py
idlesign/django-logexpose
5f9839d3211bc5bf39ada11a928b95a2efd2525d
[ "BSD-3-Clause" ]
1
2016-08-28T14:51:12.000Z
2016-08-28T14:51:12.000Z
setup.py
idlesign/django-logexpose
5f9839d3211bc5bf39ada11a928b95a2efd2525d
[ "BSD-3-Clause" ]
1
2019-07-08T00:18:02.000Z
2019-07-08T08:10:49.000Z
setup.py
idlesign/django-logexpose
5f9839d3211bc5bf39ada11a928b95a2efd2525d
[ "BSD-3-Clause" ]
2
2016-05-25T08:14:26.000Z
2019-07-08T00:12:19.000Z
import os from setuptools import setup from logexpose import VERSION PATH_BASE = os.path.dirname(__file__) PATH_BIN = os.path.join(PATH_BASE, 'bin') SCRIPTS = None if os.path.exists(PATH_BIN): SCRIPTS = [os.path.join('bin', f) for f in os.listdir(PATH_BIN) if os.path.join(PATH_BIN, f)] f = open(os.path.join(PAT...
28.098039
97
0.648988
bd97927c3f3e0280f0e97c61411770abed362e7c
3,194
py
Python
deployment/pypi/setup.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
null
null
null
deployment/pypi/setup.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
null
null
null
deployment/pypi/setup.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # # 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 restriction, # including without limitation the rights to u...
38.02381
124
0.641828
8c8360a1e775fa05470933c6e700234ab8ccc198
12,707
py
Python
tests/elm_car_simulator.py
EdwardApollo/panda
fcec81cbaf58494bf66eef2067efcf1a6d4e4b7f
[ "MIT" ]
1,279
2017-04-07T02:11:39.000Z
2022-03-28T05:01:30.000Z
tests/elm_car_simulator.py
EdwardApollo/panda
fcec81cbaf58494bf66eef2067efcf1a6d4e4b7f
[ "MIT" ]
473
2017-05-03T06:54:54.000Z
2022-03-31T07:09:12.000Z
tests/elm_car_simulator.py
EdwardApollo/panda
fcec81cbaf58494bf66eef2067efcf1a6d4e4b7f
[ "MIT" ]
610
2017-04-07T05:17:33.000Z
2022-03-26T14:58:32.000Z
#!/usr/bin/env python3 # flake8: noqa """Used to Reverse/Test ELM protocol auto detect and OBD message response without a car.""" import sys import os import struct import binascii import time import threading from collections import deque sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".....
38.6231
101
0.544424
e3e2d8ea3f47d4df3fe07ca4d01e83d8a36eeef2
8,303
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/MediaTypesVersionTolerant/mediatypesversiontolerant/aio/operations/_operations.py
Azure/autorest.python
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.727273
119
0.628809
07eb3236e96168107973e4e4db2af6ef79943b55
709
py
Python
geemap/__init__.py
Yisheng-Li/geemap
0594917a4acedfebb85879cfe2bcb6a406a55f39
[ "MIT" ]
null
null
null
geemap/__init__.py
Yisheng-Li/geemap
0594917a4acedfebb85879cfe2bcb6a406a55f39
[ "MIT" ]
null
null
null
geemap/__init__.py
Yisheng-Li/geemap
0594917a4acedfebb85879cfe2bcb6a406a55f39
[ "MIT" ]
null
null
null
"""Top-level package for geemap.""" __author__ = """Qiusheng Wu""" __email__ = "giswqs@gmail.com" __version__ = "0.11.4" import os def in_colab_shell(): """Tests if the code is being executed within Google Colab.""" import sys if "google.colab" in sys.modules: return True else: retu...
19.162162
67
0.64598
10be8316d7a849e45d5c434df043d6296f870245
877
py
Python
project_euler/python/094_almost_equilateral_triangles.py
Sabihxh/secret
fb940df9af9c6d440150ffe43b80fcb49ff6c2b4
[ "MIT" ]
null
null
null
project_euler/python/094_almost_equilateral_triangles.py
Sabihxh/secret
fb940df9af9c6d440150ffe43b80fcb49ff6c2b4
[ "MIT" ]
null
null
null
project_euler/python/094_almost_equilateral_triangles.py
Sabihxh/secret
fb940df9af9c6d440150ffe43b80fcb49ff6c2b4
[ "MIT" ]
null
null
null
import numpy as np from math import sqrt n = 10**2 def prime_factors(n): i = 2 factors = [] while i * i <= n: if n % i: i += 1 else: n //= i factors.append(i) if n > 1: factors.append(n) return factors def solution(limit): squares...
19.065217
67
0.476625
cca1b9f233aa0ed3fcaa4b0ffe2fa52e36d50d77
18,311
py
Python
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/SDP.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2017-03-28T06:41:51.000Z
2017-03-28T06:41:51.000Z
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/SDP.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
null
null
null
linux-distro/package/nuxleus/Source/Vendor/Microsoft/IronPython-2.0.1/Lib/Kamaelia/Protocol/SDP.py
mdavid/nuxleus
653f1310d8bf08eaa5a7e3326c2349e56a6abdc2
[ "BSD-3-Clause" ]
1
2016-12-13T21:08:58.000Z
2016-12-13T21:08:58.000Z
#!/usr/bin/env python # # Copyright (C) 2007 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General ...
37.369388
149
0.531102
e5f7b538daf2a631271a40cb18d32a3a66fa3bd8
3,259
py
Python
tests/automaton_test.py
University-Projects-UH/ia-sim-cmp
c8bcb11950584c0989ef92789d06a2afd0aa05f4
[ "MIT" ]
null
null
null
tests/automaton_test.py
University-Projects-UH/ia-sim-cmp
c8bcb11950584c0989ef92789d06a2afd0aa05f4
[ "MIT" ]
null
null
null
tests/automaton_test.py
University-Projects-UH/ia-sim-cmp
c8bcb11950584c0989ef92789d06a2afd0aa05f4
[ "MIT" ]
null
null
null
from core import Automaton, nfa_to_dfa, DFA, union_automatas, concat_automatas, \ closure_automaton def test_transform_nfa_to_dfa(): automaton = Automaton(3, 0, [2], transitions=[ (0, 'a', [0]), (0, 'b', [1]), (1, 'a', [2]), (1, 'b', [1]), (2, 'a', [0]), (2, 'b',...
26.933884
81
0.561522
764da7952bce284a6e360b42e546625cf9330b26
5,417
py
Python
ck_maml_train.py
zhangming880102/facial_expression_recognition_maml_pytorch
072655d25028e7d1e384f488d9b344b584d0a254
[ "MIT" ]
1
2021-08-10T06:01:06.000Z
2021-08-10T06:01:06.000Z
ck_maml_train.py
zhangming880102/facial_expression_recognition_maml_pytorch
072655d25028e7d1e384f488d9b344b584d0a254
[ "MIT" ]
null
null
null
ck_maml_train.py
zhangming880102/facial_expression_recognition_maml_pytorch
072655d25028e7d1e384f488d9b344b584d0a254
[ "MIT" ]
null
null
null
import torch, os import numpy as np from fer2013NShot import FerNShot import argparse from meta import Meta def main(args): torch.manual_seed(222) torch.cuda.manual_seed_all(222) np.random.seed(222) print(args) config =[ ('conv2d',[64,3,3,3,1,1]), ('bn',[64]), ('...
37.358621
118
0.541259
d0441c503f5b1418b533840bfaba64021a64858d
13,265
py
Python
frequency_model.py
Aurelien1609/Computational-model
ee11c06d3d84f3caab2deef9b7ec2ec96e30d6bd
[ "BSD-3-Clause" ]
1
2019-03-01T02:17:12.000Z
2019-03-01T02:17:12.000Z
frequency_model.py
Aurelien1609/Computational-model
ee11c06d3d84f3caab2deef9b7ec2ec96e30d6bd
[ "BSD-3-Clause" ]
null
null
null
frequency_model.py
Aurelien1609/Computational-model
ee11c06d3d84f3caab2deef9b7ec2ec96e30d6bd
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys import numpy as np from scipy.spatial.distance import cdist import matplotlib.pyplot as plt from math import sqrt import matplotlib.animation as animation from dana import * ''' Spikes model in computational neuroscience with Brian library. ''' # -------------...
32.997512
162
0.599095
8411ee7763470f14a25cb6ca7803dfbe67d2ba82
14,920
py
Python
ViewWidget.py
Linzecong/ExcelDiffer
97ee053cf29f70e401e9ddc65fc2f79d5da2d923
[ "Apache-2.0" ]
20
2019-03-04T11:11:30.000Z
2022-03-14T06:52:46.000Z
ViewWidget.py
hubuyaolian/ExcelDiffer-1
97ee053cf29f70e401e9ddc65fc2f79d5da2d923
[ "Apache-2.0" ]
3
2019-03-04T11:12:44.000Z
2022-01-12T18:06:15.000Z
ViewWidget.py
hubuyaolian/ExcelDiffer-1
97ee053cf29f70e401e9ddc65fc2f79d5da2d923
[ "Apache-2.0" ]
8
2019-03-28T11:07:39.000Z
2022-01-03T19:45:52.000Z
#-*- codingg:utf8 -*- from PyQt5.QtWidgets import QScrollBar, QWidget,QAction, QSplitter, QMainWindow, QApplication, QTableWidgetItem,QTableWidget,QHBoxLayout,QVBoxLayout from PyQt5.QtGui import QBrush,QColor,QIcon from PyQt5.QtCore import Qt,QSettings import sys from ExcelWidget import ExcelWidget class ViewWidget(Q...
52.350877
159
0.623995
d92cf40ab5c5e3dc812b111ba84bce6a36bf7565
1,229
py
Python
server/static/old/FacialDetect.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
2
2017-07-13T13:13:33.000Z
2020-03-27T02:06:56.000Z
server/static/old/FacialDetect.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
null
null
null
server/static/old/FacialDetect.py
loudest/Videostream-Face-Biometrics
44c297c59bf14cd0f9a59c68f5718718e14b0c6e
[ "MIT" ]
null
null
null
import numpy as np import cv2 def facialDetect(cascadePath=None): if cascadePath == None: cascadePath = "haarcascades/haarcascade_frontalface_default.xml" camera = cv2.VideoCapture(0) while True: res, frame = camera.read() cascade = cv2.CascadeClassifier(cascadePath) gray = ...
38.40625
97
0.631408
8266904a36c348eb901c23f43201155bf23cf202
4,603
py
Python
main.py
kokonut27/BHTML-Compiler
39e7e79d789be3ded946965d2b152c4cf6aa8459
[ "MIT" ]
6
2021-04-21T22:46:08.000Z
2021-12-19T14:12:59.000Z
main.py
kokonut27/BHTML-Compiler
39e7e79d789be3ded946965d2b152c4cf6aa8459
[ "MIT" ]
2
2021-04-21T22:54:23.000Z
2021-04-26T12:35:53.000Z
main.py
kokonut27/BHTML-Compiler
39e7e79d789be3ded946965d2b152c4cf6aa8459
[ "MIT" ]
3
2021-04-21T22:48:37.000Z
2021-04-24T21:44:14.000Z
import os, sys, time, re import string fp = input('FilePath: ') def parse(file): print("i started parsing!!!") if '.bhtml' in file: pass else: raise Exception("The file is not a 'bhtml' file") try: f = open(file,'r') except: raise Exception("There is no such file") content = f.read()...
23.247475
99
0.494026
cb721357046f290b4a4f3e82a54f8c1537b2b002
8,040
py
Python
src/graph_transpiler/webdnn/optimizer/sub_rules/merge_sgemm_and_elementwise_mul.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/optimizer/sub_rules/merge_sgemm_and_elementwise_mul.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/optimizer/sub_rules/merge_sgemm_and_elementwise_mul.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import Tuple from webdnn.graph import traverse from webdnn.graph.axis import Axis from webdnn.graph.graph import Graph from webdnn.graph.operators.elementwise_mul import ElementwiseMul from webdnn.graph.operators.sgemm import Sgemm from webdnn.graph.operators.transpose import Transpose from webdnn.graph.op...
36.545455
135
0.468035
b0cfa4b3ecf030d303632f51da390fc09933e2e0
590
py
Python
util.py
IshantRam/Pong
4b67dae587e034c5eb04e729ac3bd3920975bfd5
[ "MIT" ]
null
null
null
util.py
IshantRam/Pong
4b67dae587e034c5eb04e729ac3bd3920975bfd5
[ "MIT" ]
null
null
null
util.py
IshantRam/Pong
4b67dae587e034c5eb04e729ac3bd3920975bfd5
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from sys import exit import random from termcolor import colored # Height and Width HEIGHT = 720 WIDTH = 1024 # RGB Colors WHITE = (255, 255, 255) BLACK = (0, 0, 0) # The scores LEFT_SCORE = 0 RIGHT_SCORE = 0 # The sounds pygame.mixer.init() paddleSound = pygame.mixer.Sound...
21.071429
59
0.742373
47e49e7f026ff9e2c53a716c48067094352b29c1
6,257
py
Python
apteco_api/models/paged_results_export_system_summary.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
2
2020-05-21T14:24:16.000Z
2020-12-03T19:56:34.000Z
apteco_api/models/paged_results_export_system_summary.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
null
null
null
apteco_api/models/paged_results_export_system_summary.py
Apteco/apteco-api
7440c98ab10ea6d8a5997187f6fc739ce1c75d2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Apteco API An API to allow access to Apteco Marketing Suite resources # noqa: E501 The version of the OpenAPI document: v2 Contact: support@apteco.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class PagedResultsExpo...
30.671569
107
0.601726
6621f4a2e4b2a07b420a80ebfb626e3dbc6728bf
767
py
Python
example.py
KelvinGitu/MLDeploy
0f914519173ee31bb265199b7c0e82b3470da596
[ "MIT" ]
3
2019-05-18T17:57:02.000Z
2020-10-19T23:13:17.000Z
example.py
KelvinGitu/MLDeploy
0f914519173ee31bb265199b7c0e82b3470da596
[ "MIT" ]
89
2019-05-16T02:21:14.000Z
2022-03-31T02:01:15.000Z
example.py
KelvinGitu/MLDeploy
0f914519173ee31bb265199b7c0e82b3470da596
[ "MIT" ]
4
2019-05-18T17:57:19.000Z
2020-10-17T14:16:43.000Z
import Sentiment as s print(s.sentiment("This movie was awesome the acting was great, and there were pythons")) print(s.sentiment("This movie was utter junk. There were absolutely 0 pythons. I don't see what the point was at all. Horrible movie. 0/10")) print(s.sentiment("Maize scandal")) print(s.sentiment("Trump sig...
69.727273
293
0.780965
2fe2bba83405e7ac95ba65f7b9d9df48e9c5c5f2
7,815
py
Python
maskrcnn_benchmark/modeling/rpn/fcos/inference.py
Ricardozzf/FCOS_PLUS
418b0678fe5c3936ae853a23af0aeff2f085544d
[ "BSD-2-Clause" ]
313
2019-07-20T08:30:17.000Z
2022-03-29T03:10:27.000Z
maskrcnn_benchmark/modeling/rpn/fcos/inference.py
Ricardozzf/FCOS_PLUS
418b0678fe5c3936ae853a23af0aeff2f085544d
[ "BSD-2-Clause" ]
16
2019-07-25T05:56:46.000Z
2021-11-04T06:40:08.000Z
maskrcnn_benchmark/modeling/rpn/fcos/inference.py
Ricardozzf/FCOS_PLUS
418b0678fe5c3936ae853a23af0aeff2f085544d
[ "BSD-2-Clause" ]
48
2019-07-21T14:28:57.000Z
2022-03-20T16:30:33.000Z
import torch from ..inference import RPNPostProcessor from ..utils import permute_and_flatten from maskrcnn_benchmark.modeling.box_coder import BoxCoder from maskrcnn_benchmark.modeling.utils import cat from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.boxlist_ops impor...
39.271357
96
0.606142
12e98e8d061c8b8076f693224d9f2fcdffbd859c
875
py
Python
slides/slide18.py
samdmarshall/pyconfig
10c5d2ce5465510404c3a119f0be4a0ee9b5ae33
[ "BSD-3-Clause" ]
51
2016-05-17T19:31:30.000Z
2020-08-16T13:55:51.000Z
slides/slide18.py
samdmarshall/pyconfig
10c5d2ce5465510404c3a119f0be4a0ee9b5ae33
[ "BSD-3-Clause" ]
54
2016-06-03T11:13:50.000Z
2019-03-10T22:02:57.000Z
slides/slide18.py
samdmarshall/pyconfig
10c5d2ce5465510404c3a119f0be4a0ee9b5ae33
[ "BSD-3-Clause" ]
4
2016-05-31T16:10:01.000Z
2017-04-07T03:23:18.000Z
#!/usr/bin/python import pypresenter.slide class slide18(pypresenter.slide): def __init__(self): super(self.__class__, self).__init__('left') def content(self, window=None): return "\nIntegration with Xcode is easy!"\ "\n\n"\ "1. Install pyconfig\n\n"\ ...
35
77
0.513143
99fbb70d88a82934ebe65d9ba89df09d492d5bb6
1,080
py
Python
Services/JSON-RPC/Basic_Template/test_call_basic_services.py
astroseger/dnn-model-services
1755ac9a45d6113544d12010fb3ba95ab3a0690c
[ "MIT" ]
null
null
null
Services/JSON-RPC/Basic_Template/test_call_basic_services.py
astroseger/dnn-model-services
1755ac9a45d6113544d12010fb3ba95ab3a0690c
[ "MIT" ]
null
null
null
Services/JSON-RPC/Basic_Template/test_call_basic_services.py
astroseger/dnn-model-services
1755ac9a45d6113544d12010fb3ba95ab3a0690c
[ "MIT" ]
null
null
null
import jsonrpcclient from services import registry if __name__ == '__main__': try: opt = input('Which service (1|2)? ') if opt == '1': # Service ONE - Arithmetics jsonrpc_method = input('Which method (add|sub|mul|div)? ') a = input('Number 1: ') b = ...
36
70
0.480556
f46954c4960373fd49532e76ec463644479b320b
1,878
py
Python
tools/pylcc/guide/eventOut.py
liaozhaoyan/surftrace
879e9d6a4410373b211cc7a9d22dd3fa102bfbf4
[ "MIT" ]
null
null
null
tools/pylcc/guide/eventOut.py
liaozhaoyan/surftrace
879e9d6a4410373b211cc7a9d22dd3fa102bfbf4
[ "MIT" ]
null
null
null
tools/pylcc/guide/eventOut.py
liaozhaoyan/surftrace
879e9d6a4410373b211cc7a9d22dd3fa102bfbf4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # cython:language_level=2 """ ------------------------------------------------- File Name: eventOut Description : Author : liaozhaoyan date: 2021/11/3 ------------------------------------------------- Change Activity: 2021/11/3: --------------...
26.828571
79
0.57934
4bbd16566a711c0a7725d46f901d9cd6d75c3233
204
py
Python
testdataToAudio.py
Shameli91/prml
3f09f87cad830d8566d523058b3ccec4de25a3c2
[ "MIT" ]
null
null
null
testdataToAudio.py
Shameli91/prml
3f09f87cad830d8566d523058b3ccec4de25a3c2
[ "MIT" ]
null
null
null
testdataToAudio.py
Shameli91/prml
3f09f87cad830d8566d523058b3ccec4de25a3c2
[ "MIT" ]
null
null
null
import numpy as np from scipy.io.wavfile import write for i in range(0, 4512): data = np.load('./bird-audio-detection/' + str(i) + '.npy') write('./main/testData/' + str(i) + '.wav', 48000, data)
34
63
0.627451
374a2de1b2e9059689e1a639908faa7db46bbe95
223
py
Python
shop/urls.py
DenisDolmatov2020/lote
cb6b1021ed541799cabb5b3e850792690debcec8
[ "MIT" ]
null
null
null
shop/urls.py
DenisDolmatov2020/lote
cb6b1021ed541799cabb5b3e850792690debcec8
[ "MIT" ]
null
null
null
shop/urls.py
DenisDolmatov2020/lote
cb6b1021ed541799cabb5b3e850792690debcec8
[ "MIT" ]
null
null
null
from django.urls import path from shop.views import ShopListView, shop_detail_view urlpatterns = [ path('<slug:slug>/', shop_detail_view, name='detail-shop'), path('', ShopListView.as_view(), name='list-shops') ]
24.777778
63
0.717489
d6c2f969c5b93ee71273e78f4a129232cbf2585c
416
py
Python
tests/commands/test_convert.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
1,573
2016-12-09T09:28:50.000Z
2022-03-31T06:16:45.000Z
tests/commands/test_convert.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
257
2016-12-25T06:54:33.000Z
2022-03-18T22:12:17.000Z
tests/commands/test_convert.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
153
2016-12-09T07:23:58.000Z
2022-03-18T22:01:23.000Z
import sys import pytest from bonobo.util.environ import change_working_directory from bonobo.util.testing import all_runners @all_runners def test_convert(runner, tmpdir): csv_content = "id;name\n1;Romain" tmpdir.join("in.csv").write(csv_content) with change_working_directory(tmpdir): runner("...
23.111111
63
0.730769
87fc073da18fdd50aeb56e8565202e691e97d1a4
4,069
py
Python
tests/operators/gpu/test_fused_relu_grad_bn_double_reduce_grad.py
Kiike5/akg
f16019261cca6b2d33b3b6f27c45ee8e6f7a834b
[ "Apache-2.0" ]
null
null
null
tests/operators/gpu/test_fused_relu_grad_bn_double_reduce_grad.py
Kiike5/akg
f16019261cca6b2d33b3b6f27c45ee8e6f7a834b
[ "Apache-2.0" ]
null
null
null
tests/operators/gpu/test_fused_relu_grad_bn_double_reduce_grad.py
Kiike5/akg
f16019261cca6b2d33b3b6f27c45ee8e6f7a834b
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 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 agre...
43.287234
134
0.706808
bb32713cad3ef761bc5847b3b339d1aab75152e6
398
py
Python
jobportal/migrations/0008_remove_person_join_date.py
klenks/jobsportal
330f3b40220a9a721897a047ebaaabe98a11edde
[ "MIT" ]
null
null
null
jobportal/migrations/0008_remove_person_join_date.py
klenks/jobsportal
330f3b40220a9a721897a047ebaaabe98a11edde
[ "MIT" ]
null
null
null
jobportal/migrations/0008_remove_person_join_date.py
klenks/jobsportal
330f3b40220a9a721897a047ebaaabe98a11edde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-14 23:57 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jobportal', '0007_auto_20170314_2337'), ] operations = [ migrations.RemoveField( ...
19.9
49
0.61809
1222d8b11f2d788ac26dd5e7b250c152ffd2c4fa
800
py
Python
setup.py
jsta/gssurgo
d1ff22880040fcb58347cf948cf7f3ce8b7830ee
[ "MIT" ]
3
2018-08-16T02:13:46.000Z
2020-06-03T06:31:42.000Z
setup.py
jsta/gssurgo
d1ff22880040fcb58347cf948cf7f3ce8b7830ee
[ "MIT" ]
16
2018-08-16T02:14:07.000Z
2021-04-09T10:31:49.000Z
setup.py
jsta/gSSURGO
d1ff22880040fcb58347cf948cf7f3ce8b7830ee
[ "MIT" ]
1
2018-11-14T18:39:14.000Z
2018-11-14T18:39:14.000Z
"""A package that enables open source workflows with the gSSURGO dataset.""" import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="gssurgo", version="1.0.1", author="Jemma Stachelek", author_email="stachel2@msu.edu", description="Python tool...
30.769231
76
0.68625
7ecd210caca6ebe7d1f38bc144c284dfaf0d9adc
1,091
py
Python
examples/pyplot/customIndividualAxes.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
1
2021-04-25T06:28:01.000Z
2021-04-25T06:28:01.000Z
examples/pyplot/customIndividualAxes.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
null
null
null
examples/pyplot/customIndividualAxes.py
danielhrisca/vedo
487568b7956a67b87752e3d518ba3f7e87b327a6
[ "CC0-1.0" ]
null
null
null
"""Create individual axes to each separate object in a scene. Access any element to change its size and color""" from vedo import * # Create a bunch of objects s1 = Sphere(pos=(10, 0, 0), r=1, c='r') s2 = Sphere(pos=( 0,10, 0), r=2, c='g') s3 = Sphere(pos=( 0, 0,10), r=3, c='b') pt = Point([-4,-4,-4], c='k') # Build...
32.088235
62
0.652612
155ba7e6691e8501725daf3f1a4e5a3a742a3a82
57,193
py
Python
tests/integration/test_subscription.py
sharma7n/braintree_python
34c36bddca7aa55512ee5129175eedcfc6d1fb30
[ "MIT" ]
null
null
null
tests/integration/test_subscription.py
sharma7n/braintree_python
34c36bddca7aa55512ee5129175eedcfc6d1fb30
[ "MIT" ]
null
null
null
tests/integration/test_subscription.py
sharma7n/braintree_python
34c36bddca7aa55512ee5129175eedcfc6d1fb30
[ "MIT" ]
null
null
null
from tests.test_helper import * from braintree.test.nonces import Nonces from datetime import date, timedelta class TestSubscription(unittest.TestCase): def setUp(self): self.credit_card = Customer.create({ "first_name": "Mike", "last_name": "Jones", "credit_card": { ...
42.053676
131
0.64695
7d128d5bf4a50e75ca592d54eddac6091352fe63
296
py
Python
python/phonenumbers/data/alt_format_36.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
2,424
2015-01-05T05:34:45.000Z
2022-03-28T22:37:53.000Z
python/phonenumbers/data/alt_format_36.py
rodgar-nvkz/python-phonenumbers
4c7c4892211dbc9bc328bc3356b03853eaf993dc
[ "Apache-2.0" ]
166
2015-01-30T23:59:18.000Z
2022-03-14T21:08:42.000Z
Lib/site-packages/phonenumbers/data/alt_format_36.py
PsychedVic/Portafolio
4bd59d19de41fbea5317d4f2b9e6219ea0359945
[ "bzip2-1.0.6" ]
345
2015-01-02T00:33:27.000Z
2022-03-26T13:06:57.000Z
"""Auto-generated file, do not edit by hand. 36 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_36 = [NumberFormat(pattern='(\\d)(\\d{4})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['1']), NumberFormat(pattern='(\\d{2})(\\d{4})(\\d{3})', format='\\1 \\2 \\3')]
59.2
193
0.628378
4d5b397e37a092cf5f61d5636b7860b318a6f8ed
436
py
Python
detect_secrets/plugins/twilio.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
2,212
2018-04-03T20:58:42.000Z
2022-03-31T17:58:38.000Z
detect_secrets/plugins/twilio.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
354
2018-04-03T16:29:55.000Z
2022-03-31T18:26:26.000Z
detect_secrets/plugins/twilio.py
paulo-sampaio/detect-secrets
73ffbc35a72cb316d9e1842cc131b6098cf3c36a
[ "Apache-2.0" ]
298
2018-04-02T19:35:15.000Z
2022-03-28T04:52:14.000Z
""" This plugin searches for Twilio API keys """ import re from .base import RegexBasedDetector class TwilioKeyDetector(RegexBasedDetector): """Scans for Twilio API keys.""" secret_type = 'Twilio API Key' denylist = [ # Account SID (ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) re.compile(r'AC[a-z...
21.8
58
0.662844
5597dfc0fee593a1a48d9a5e3ef52ff15e9b6b34
5,685
py
Python
app/util/analytics/log_reader.py
dsplugins/dc-app-performance-toolkit
0a1bb0f8d40f1dc4104aebe926695238a0ef3d00
[ "Apache-2.0" ]
null
null
null
app/util/analytics/log_reader.py
dsplugins/dc-app-performance-toolkit
0a1bb0f8d40f1dc4104aebe926695238a0ef3d00
[ "Apache-2.0" ]
null
null
null
app/util/analytics/log_reader.py
dsplugins/dc-app-performance-toolkit
0a1bb0f8d40f1dc4104aebe926695238a0ef3d00
[ "Apache-2.0" ]
null
null
null
import os import re from datetime import datetime from util.project_paths import ENV_TAURUS_ARTIFACT_DIR GIT_OPERATIONS = ['jmeter_clone_repo_via_http', 'jmeter_clone_repo_via_ssh', 'jmeter_git_push_via_http', 'jmeter_git_fetch_via_http', 'jmeter_git_push_via_ssh', 'jmeter_git_fetch...
38.673469
115
0.651187
cf2fdc23b093f1a49f1e0e1433a54c5706ccda12
2,611
py
Python
tests/components/test_panel_iframe.py
loraxx753/skynet
86a1b0a6c6a3f81bc92d4f61de6a9a6b9f964543
[ "Apache-2.0" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
tests/components/test_panel_iframe.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
tests/components/test_panel_iframe.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
"""The tests for the panel_iframe component.""" import unittest from unittest.mock import patch from homeassistant import bootstrap from homeassistant.components import frontend from tests.common import get_test_home_assistant class TestPanelIframe(unittest.TestCase): """Test the panel_iframe component.""" ...
34.813333
78
0.52049
ddf657cbfc82f31e521b7c5d0638fdad968e135c
15,032
py
Python
ios/build/tools/setup-gn.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ios/build/tools/setup-gn.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ios/build/tools/setup-gn.py
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-03-07T14:20:02.000Z
2021-03-07T14:20:02.000Z
#!/usr/bin/python # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import convert_gn_xcodeproj import errno import os import re import shutil import subprocess import sys import tempfile tr...
37.024631
80
0.668973
5ba7cdb84391d7ab67cac5954bf757125e3ce6d4
3,201
py
Python
utils/logger.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
29
2021-11-05T10:09:21.000Z
2022-03-15T13:37:06.000Z
utils/logger.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
null
null
null
utils/logger.py
MoustafaMeshry/fbias_gan_residual
798a7935d42b9987039ceddb2e415a499a2e18ce
[ "MIT" ]
2
2021-12-15T13:04:52.000Z
2022-01-22T16:30:34.000Z
"""From https://github.com/LMescheder/GAN_stability/blob/master/gan_training/logger.py""" import pickle import os import torchvision class Logger(object): def __init__(self, log_dir='./logs', img_dir='./imgs', monitoring=None, monitoring_dir=None): self.stats = dict() self.log_di...
33.34375
89
0.577632
be6f75e6d06fa23e958363ecc97342fd015af791
6,481
py
Python
scripts/TEMP/temp_post.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
scripts/TEMP/temp_post.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
scripts/TEMP/temp_post.py
shunhuahan/mcclintock
999f064847e824d41a76791c913e24454ef6cba8
[ "Unlicense" ]
null
null
null
import os import sys import subprocess sys.path.append(snakemake.config['args']['mcc_path']) import scripts.mccutils as mccutils import scripts.output as output import config.TEMP.temp_post as config def main(): mccutils.log("temp","running TEMP post processing") insert_summary = snakemake.input.insert_summary...
43.206667
170
0.597284
b65182c8d950fc5ef1a251c5f78310ab9456518c
330
py
Python
actions/__init__.py
BlackCatDevel0per/s2txt
fe1cf551057be5777eb8f27e9d56dd2ae3cbb514
[ "Apache-2.0" ]
null
null
null
actions/__init__.py
BlackCatDevel0per/s2txt
fe1cf551057be5777eb8f27e9d56dd2ae3cbb514
[ "Apache-2.0" ]
null
null
null
actions/__init__.py
BlackCatDevel0per/s2txt
fe1cf551057be5777eb8f27e9d56dd2ae3cbb514
[ "Apache-2.0" ]
null
null
null
from .uic4load import UIC from .menubar import FileMenu from .menubar import Record from .menubar import Options from .menubar import Other from .window import WindowActions from .buttons import Buttons from .buttons import Shortcuts class Actions(WindowActions, FileMenu, Record, Options, Other, Buttons, Shortcuts):...
23.571429
83
0.80303
e836256d50a2fa4f979740aa49b809c52f73f21e
457
py
Python
chapter9/leds_led_shim.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
19
2020-05-13T12:53:59.000Z
2022-03-07T19:50:30.000Z
chapter9/leds_led_shim.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
1
2020-11-20T16:56:24.000Z
2020-12-01T06:24:45.000Z
chapter9/leds_led_shim.py
dannystaple/Learn-Robotics-Programming-Second-Edition
081ed9bbab59aab57334fe8f2f06a157a8639eb4
[ "MIT" ]
12
2019-12-24T18:13:14.000Z
2022-03-20T23:44:12.000Z
import ledshim class Leds: @property def count(self): return ledshim.width def set_one(self, led_number, color): ledshim.set_pixel(led_number, *color) def set_range(self, led_range, color): for pixel in led_range: ledshim.set_pixel(pixel, *color) def set_all...
19.041667
45
0.610503
e738fa006b43b0aafbdbe957091cd90856c35c67
3,049
py
Python
docs/tests/test_images.py
yjf18340/webots
60d441c362031ab8fde120cc0cd97bdb1a31a3d5
[ "Apache-2.0" ]
1
2019-01-21T07:14:55.000Z
2019-01-21T07:14:55.000Z
docs/tests/test_images.py
chinakwy/webots
7c35a359848bafe81fe0229ac2ed587528f4c73e
[ "Apache-2.0" ]
null
null
null
docs/tests/test_images.py
chinakwy/webots
7c35a359848bafe81fe0229ac2ed587528f4c73e
[ "Apache-2.0" ]
1
2020-09-25T02:01:45.000Z
2020-09-25T02:01:45.000Z
"""Test module of the images.""" import unittest from books import Books import fnmatch import os import re class TestImages(unittest.TestCase): """Unit test of the images.""" def test_images_are_valid(self): """Test that the MD files refer to valid URLs.""" books = Books() for book ...
42.347222
104
0.501804
5f44da2c24c3de60f95ddb288c8d9295ccd2ae5e
10,246
py
Python
tcfcli/cmds/deploy/cli.py
alfredhuang211/scfcli
f5e086ff4fcee8d645682e85cd1486b28a224d08
[ "Apache-2.0" ]
null
null
null
tcfcli/cmds/deploy/cli.py
alfredhuang211/scfcli
f5e086ff4fcee8d645682e85cd1486b28a224d08
[ "Apache-2.0" ]
null
null
null
tcfcli/cmds/deploy/cli.py
alfredhuang211/scfcli
f5e086ff4fcee8d645682e85cd1486b28a224d08
[ "Apache-2.0" ]
null
null
null
import click import os import sys import time from io import BytesIO from tcfcli.common.template import Template from tcfcli.common.user_exceptions import TemplateNotFoundException, InvalidTemplateException, ContextException from tcfcli.common.user_exceptions import CloudAPIException from tcfcli.libs.utils.scf_client i...
43.232068
111
0.60121
dec5c48341dd63e70af67a32c7c2142426be2404
4,026
py
Python
src/tributaries/metadata.py
akilby/tributary-cache
f4884a2aa49685b9e8aeb925c50afda887db1b18
[ "MIT" ]
null
null
null
src/tributaries/metadata.py
akilby/tributary-cache
f4884a2aa49685b9e8aeb925c50afda887db1b18
[ "MIT" ]
null
null
null
src/tributaries/metadata.py
akilby/tributary-cache
f4884a2aa49685b9e8aeb925c50afda887db1b18
[ "MIT" ]
null
null
null
from .utils.codeparsers import code_tree from .utils.objecthashers import complex_hasher def determine_metadata(func, args, kwargs, exclusion_list, globals_list, old_version=False): metadata = dict() metadata['func'] = func metadata['args'] = args metadata...
33.831933
78
0.564083
fa5a804f51c456014a5b0677dbaa37c9b7d84eb9
2,572
py
Python
partname_resolver/units/resistance.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
partname_resolver/units/resistance.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
partname_resolver/units/resistance.py
sakoPO/partname-resolver
ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal from .unit_base import Unit import re class Resistance(Unit): multiply = {u'G': Decimal('1000000000'), u'G\u03a9': Decimal('1000000000'), u'GR': Decimal('1000000000'), u'M': Decimal('1000000'), u'M\u03a9': Decimal('1000000...
40.1875
90
0.531882
ccbba72c16c09f70975f250b253f1ebc57e79161
23
py
Python
ros/devel/lib/python2.7/dist-packages/kvaser/msg/__init__.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
ros/devel/lib/python2.7/dist-packages/kvaser/msg/__init__.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
ros/devel/lib/python2.7/dist-packages/kvaser/msg/__init__.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
from ._CANESR import *
11.5
22
0.73913
3e9ea83d0288e186d79c951cfb17aac1ef101fa3
8,858
py
Python
accelbyte_py_sdk/api/lobby/operations/player/admin_set_player_session_attribute.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/player/admin_set_player_session_attribute.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/lobby/operations/player/admin_set_player_session_attribute.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:26.588557+08:00 # from: Justice Lobby Service (1.33.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code # pylin...
31.411348
148
0.634793
cefb6546985d976e9ae0021f73b367ddccb17ec6
64,458
py
Python
monai/transforms/utility/dictionary.py
bamf-health/MONAI
6a2086d21baf4b60c2ab3d400ed5c97cf24a0da9
[ "Apache-2.0" ]
null
null
null
monai/transforms/utility/dictionary.py
bamf-health/MONAI
6a2086d21baf4b60c2ab3d400ed5c97cf24a0da9
[ "Apache-2.0" ]
null
null
null
monai/transforms/utility/dictionary.py
bamf-health/MONAI
6a2086d21baf4b60c2ab3d400ed5c97cf24a0da9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
39.642066
120
0.648841
850c4eed4265db8cc45336dd535e6aa16427e73b
525
py
Python
Learning Python/practice/prnt, str, num/numbers.py
Magical-Man/Learning-Python
488347b06be8013ab048963a0a0e9e81995d18b6
[ "MIT" ]
null
null
null
Learning Python/practice/prnt, str, num/numbers.py
Magical-Man/Learning-Python
488347b06be8013ab048963a0a0e9e81995d18b6
[ "MIT" ]
null
null
null
Learning Python/practice/prnt, str, num/numbers.py
Magical-Man/Learning-Python
488347b06be8013ab048963a0a0e9e81995d18b6
[ "MIT" ]
null
null
null
print (8 * 8) #there are several different kinds of math operations and symbols # + plus adding #- minus subtracting # / slash dividing # * asterisk multiplying # % modulous dividing with remainder # < less than true false # > greater than true false # <= less than equal ...
20.192308
65
0.607619
ec901f7328ecdfde0b3ccc1f2bd5a260f0851fe5
1,158
py
Python
lib/test_bindings.py
pymor/pymor-deal.II
520b36b42d7e58e8adaefb4c772d36d650f30c27
[ "BSD-2-Clause" ]
7
2016-05-12T12:15:30.000Z
2020-06-14T08:06:27.000Z
lib/test_bindings.py
pymor/pymor-deal.II
520b36b42d7e58e8adaefb4c772d36d650f30c27
[ "BSD-2-Clause" ]
8
2020-01-24T13:13:22.000Z
2022-02-24T08:25:22.000Z
lib/test_bindings.py
pymor/pymor-deal.II
520b36b42d7e58e8adaefb4c772d36d650f30c27
[ "BSD-2-Clause" ]
2
2019-03-02T14:32:22.000Z
2021-10-06T09:10:01.000Z
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2018 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np import pydealii_bindings as dealii def test_vector(): v = dealii.Vector(1...
24.125
77
0.57772
e127733d9795a18762c920210a765e26d847b3b0
1,427
py
Python
blueque/listener.py
ustudio/Blueque
f973c470d6558856bbd7f3bf4d6a3e42d38fce85
[ "Apache-2.0" ]
5
2016-12-03T23:10:45.000Z
2018-06-06T17:06:27.000Z
blueque/listener.py
ustudio/Blueque
f973c470d6558856bbd7f3bf4d6a3e42d38fce85
[ "Apache-2.0" ]
8
2015-06-19T21:32:48.000Z
2021-01-08T19:27:45.000Z
blueque/listener.py
ustudio/Blueque
f973c470d6558856bbd7f3bf4d6a3e42d38fce85
[ "Apache-2.0" ]
1
2017-05-18T06:15:17.000Z
2017-05-18T06:15:17.000Z
from blueque.process_helpers import process_running import os import socket import time class Listener(object): def __init__(self, queue, task_factory): super(Listener, self).__init__() self._hostname = socket.getfqdn() self._pid = os.getpid() self._name = "_".join((self._hostnam...
25.482143
68
0.567624
c6ee8b75944aa328e566138154ae36edefdf01bb
112
py
Python
deploy/apache/wsgi.py
archman/unicorn-webapp
fac170e228760246c56673587b4a0aa2758adf53
[ "MIT" ]
1
2018-07-06T16:04:32.000Z
2018-07-06T16:04:32.000Z
deploy/apache/wsgi.py
archman/unicorn-webapp
fac170e228760246c56673587b4a0aa2758adf53
[ "MIT" ]
1
2021-11-02T14:12:57.000Z
2021-11-02T14:12:57.000Z
deploy/apache/wsgi.py
archman/unicorn-webapp
fac170e228760246c56673587b4a0aa2758adf53
[ "MIT" ]
1
2018-09-27T17:06:56.000Z
2018-09-27T17:06:56.000Z
#!/usr/bin/env python3 import sys sys.path.insert(0, '/usr/share/unicorn') from app import app as application
16
40
0.741071
3bf9f9aea79b4940fe9ce236b504ece6711ab2f9
2,995
py
Python
setup.py
serge-sotnyk/inception-external-recommender
ad3c9a5d18d45940b2002c7c72b7d3dcfcca258e
[ "Apache-2.0" ]
null
null
null
setup.py
serge-sotnyk/inception-external-recommender
ad3c9a5d18d45940b2002c7c72b7d3dcfcca258e
[ "Apache-2.0" ]
null
null
null
setup.py
serge-sotnyk/inception-external-recommender
ad3c9a5d18d45940b2002c7c72b7d3dcfcca258e
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- import io import os from setuptools import setup, find_packages # Package meta-data. NAME = "inception-rec" DESCRIPTION = "INCEpTION external recommender library in Python" HOMEPAGE = "https://inception-project.github.io/" EMAIL = "inception-users@googlegroups.com" AUTH...
26.741071
95
0.668114
8de18155b7410b62598a4078529a184027a9cff5
1,276
py
Python
maxarcat_client/test/test_search_body.py
fsvenson/maxarcat
3b015b73734c274dbc821ac118980dbcd2e36879
[ "MIT" ]
null
null
null
maxarcat_client/test/test_search_body.py
fsvenson/maxarcat
3b015b73734c274dbc821ac118980dbcd2e36879
[ "MIT" ]
null
null
null
maxarcat_client/test/test_search_body.py
fsvenson/maxarcat
3b015b73734c274dbc821ac118980dbcd2e36879
[ "MIT" ]
2
2021-02-25T08:43:06.000Z
2022-02-21T19:18:21.000Z
# coding: utf-8 """ Maxar Content API - Catalog The Maxar Content Catalog API implements a STAC-compliant service for searching the Maxar content catalog. __The STAC specification is still under development. When version 1.0 of the STAC specification is released the Content Catalog API will be updated to re...
31.9
440
0.732759
89f98dbbb4de95181e5eddf12f565f1869e397d9
622
py
Python
GUI/dialogs/geometry_dialogs/landing_dialog/landing_gear_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
7
2021-03-17T01:23:28.000Z
2021-05-06T20:41:21.000Z
GUI/dialogs/geometry_dialogs/landing_dialog/landing_gear_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
GUI/dialogs/geometry_dialogs/landing_dialog/landing_gear_dialog.py
StepLogic/Parametric-Drone-Design-Software
be9c537427f85b08c071c2666712fd32643cd439
[ "Unlicense" ]
null
null
null
from PyQt5.QtCore import * from PyQt5.QtWidgets import * from GUI.tabs.geometry_tabs_.landing_gear.landing_gear_tab import landing_gear_tab class landing_gear_dialog(QDialog): def __init__(self): super().__init__() self.tab = landing_gear_tab() self.layout = QFormLayout(self) sel...
31.1
82
0.694534
e65f9534a8d4407674ace98975fddbe39ac28de4
271
py
Python
tests/artificial/transf_Quantization/trend_ConstantTrend/cycle_7/ar_12/test_artificial_128_Quantization_ConstantTrend_7_12_0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Quantization/trend_ConstantTrend/cycle_7/ar_12/test_artificial_128_Quantization_ConstantTrend_7_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Quantization/trend_ConstantTrend/cycle_7/ar_12/test_artificial_128_Quantization_ConstantTrend_7_12_0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 12);
38.714286
171
0.738007
ad98b405c270fb42a3b257fd39f7166d8a93aff4
1,602
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/sms/apis/BatchSendRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/sms/apis/BatchSendRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/sms/apis/BatchSendRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
# 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 ...
29.127273
75
0.682272
25afba94385e8aba86bf83e3db52dd52b28a266b
3,313
py
Python
main.py
kristerduster/stock-fundamentals
edef9b273968de01cbb79b8efe93b75f4dec2ae9
[ "MIT" ]
null
null
null
main.py
kristerduster/stock-fundamentals
edef9b273968de01cbb79b8efe93b75f4dec2ae9
[ "MIT" ]
null
null
null
main.py
kristerduster/stock-fundamentals
edef9b273968de01cbb79b8efe93b75f4dec2ae9
[ "MIT" ]
null
null
null
#import stock info module from yahoo fin api to use methods import yahoo_fin.stock_info as si #import pandas module to use pandas methods import pandas as pd #define function (acronym for convert to number) takes object parameter, converts to number, ex: changes 13.56 B to 13,560,000,000 def ctn(x): x=str(x) ...
48.720588
185
0.679445
0478f3c8bd4203f238622e97f3b2f2f8f49180be
353
py
Python
django_import_data/migrations/0018_remove_modelimportattempt_row_data.py
GreenBankObservatory/django-import-data
80b75f5a1a750c75c1d9f6c759a357cf600d4a5e
[ "MIT" ]
1
2021-09-22T14:37:41.000Z
2021-09-22T14:37:41.000Z
django_import_data/migrations/0018_remove_modelimportattempt_row_data.py
GreenBankObservatory/django-import-data
80b75f5a1a750c75c1d9f6c759a357cf600d4a5e
[ "MIT" ]
null
null
null
django_import_data/migrations/0018_remove_modelimportattempt_row_data.py
GreenBankObservatory/django-import-data
80b75f5a1a750c75c1d9f6c759a357cf600d4a5e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-08 19:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_import_data', '0017_auto_20190708_1504'), ] operations = [ migrations.RemoveField( model_name='modelimportattempt', n...
19.611111
58
0.620397
3125387b09450e85c9b88c20c03355c47519399a
984
py
Python
model-optimizer/mo/front/kaldi/extractors/activation_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
3
2019-07-08T09:03:03.000Z
2020-09-09T10:34:17.000Z
model-optimizer/mo/front/kaldi/extractors/activation_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
3
2020-11-13T18:59:18.000Z
2022-02-10T02:14:53.000Z
model-optimizer/mo/front/kaldi/extractors/activation_ext.py
undeadinu/dldt
fbc7a4a710c24def8ab199926a7da90a0394b87d
[ "Apache-2.0" ]
1
2018-12-05T07:38:25.000Z
2018-12-05T07:38:25.000Z
""" Copyright (c) 2018 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 wri...
29.818182
82
0.734756
37c5ef61e2e4c021eb5d5f919a617987f7f32763
215
py
Python
codigo/Live25/tabulares/ods_parser.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live25/tabulares/ods_parser.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live25/tabulares/ods_parser.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
import ezodf doc = ezodf.opendoc('episodios.ods') # type(doc) folhas = list(doc.sheets.names()) ep_folha = doc.sheets[folhas[0]] linhas = sum(list(ep_folha.rows()), []) print(list(map(lambda x: x.value, linhas)))
21.5
43
0.693023
1bbd77a24d056c3d22878fd6737b4541a3266094
886
py
Python
isi_sdk_8_1_1/test/test_mapping_import.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/test/test_mapping_import.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/test/test_mapping_import.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_1_1 from i...
21.609756
83
0.699774
ba1cce940083a1e90b7891cd1938ab449ef8d4d3
566
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractBierutranslationsHomeBlog.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBierutranslationsHomeBlog.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractBierutranslationsHomeBlog.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractBierutranslationsHomeBlog(item): ''' Parser for 'bierutranslations.home.blog' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ...
25.727273
104
0.64311
2f1bc58eef4fedc834bc1db3c7fd47178424ce04
21,036
py
Python
commands/moderation.py
OxLemonxO/RobTheBoat
a556ad76665f23b83421ce6a62f3170cf8850508
[ "MIT" ]
null
null
null
commands/moderation.py
OxLemonxO/RobTheBoat
a556ad76665f23b83421ce6a62f3170cf8850508
[ "MIT" ]
null
null
null
commands/moderation.py
OxLemonxO/RobTheBoat
a556ad76665f23b83421ce6a62f3170cf8850508
[ "MIT" ]
null
null
null
import asyncio from discord.ext import commands from utils.mysql import * from utils.channel_logger import Channel_Logger from utils.tools import * from utils import checks class Moderation(commands.Cog): def __init__(self, bot): self.bot = bot self.logger = Channel_Logger(bot) @...
50.934625
216
0.58918
1867db84d8f3ff1a9adac3a2c8e66cd1823f7516
13,455
py
Python
Predictions/csv/last_rows.py
janithmehta/StockMarketPrediction
5f85b81289ad599bd30b5cd8555eec0f7bfb509d
[ "MIT" ]
18
2018-02-01T09:41:16.000Z
2022-01-13T06:53:56.000Z
Predictions/csv/wrong_csv/last_rows.py
darbary/StockMarketPrediction
5f85b81289ad599bd30b5cd8555eec0f7bfb509d
[ "MIT" ]
1
2018-08-08T06:29:28.000Z
2018-08-15T07:10:49.000Z
Predictions/csv/wrong_csv/last_rows.py
darbary/StockMarketPrediction
5f85b81289ad599bd30b5cd8555eec0f7bfb509d
[ "MIT" ]
10
2017-05-09T06:25:56.000Z
2021-01-05T23:17:58.000Z
import pandas as pd import statistics as st import numpy as np list1=['AMBUJACEM','ASIANPAINT','BANKBARODA','HDIL','HEROMOTOCO','HINDUNILVR','ITC','INFY','TCS','MARUTI'] for m in list1: name=m+'.csv' df=pd.read_csv(name) #df=df[::-1] #For Old format ''' df=df.replace([np...
32.188995
106
0.365292
3102c6d711ac87d1ac5d6160c439fed7b2e76845
1,740
py
Python
setup.py
ihmeuw/vivarium_conic_vitamin_a_supp_gbd2019
5cd99c9fad9d93b69801e82835dfb1f843e7782a
[ "BSD-3-Clause" ]
null
null
null
setup.py
ihmeuw/vivarium_conic_vitamin_a_supp_gbd2019
5cd99c9fad9d93b69801e82835dfb1f843e7782a
[ "BSD-3-Clause" ]
null
null
null
setup.py
ihmeuw/vivarium_conic_vitamin_a_supp_gbd2019
5cd99c9fad9d93b69801e82835dfb1f843e7782a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os from setuptools import setup, find_packages if __name__ == "__main__": base_dir = os.path.dirname(__file__) src_dir = os.path.join(base_dir, "src") about = {} with open(os.path.join(src_dir, "vivarium_conic_vitamin_a_supp_gbd2019", "__about__.py")) as f: exec...
25.217391
99
0.597126
eff41738ab63d16911e60f00eb5f48d7e14e13a4
3,393
py
Python
third_party/tests/YosysTestSuite/rpc/frontend.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
156
2019-11-16T17:29:55.000Z
2022-01-21T05:41:13.000Z
third_party/tests/YosysTestSuite/rpc/frontend.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
414
2021-06-11T07:22:01.000Z
2022-03-31T22:06:14.000Z
third_party/tests/YosysTestSuite/rpc/frontend.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
30
2019-11-18T16:31:40.000Z
2021-12-26T01:22:51.000Z
def modules(): return ["python_inv"] def derive(module, parameters): assert module == r"python_inv" if parameters.keys() != {r"\width"}: raise ValueError("Invalid parameters") return "ilang", r""" module \impl wire width {width:d} input 1 \i wire width {width:d} output 2 \o cell $neg $0 parameter \A_SIGNED ...
26.716535
80
0.644562
f548f72c851943202f587791ccf51c2ca1f7b02b
545
py
Python
server/managers/BulleManager.py
b3ckerdev/Transformice-Server
d87ef61618fbed2736b72347ccf645765ad22b66
[ "MIT" ]
2
2021-03-15T14:46:57.000Z
2022-01-27T10:50:49.000Z
server/managers/BulleManager.py
b3ckerdev/Transformice-Server
d87ef61618fbed2736b72347ccf645765ad22b66
[ "MIT" ]
null
null
null
server/managers/BulleManager.py
b3ckerdev/Transformice-Server
d87ef61618fbed2736b72347ccf645765ad22b66
[ "MIT" ]
null
null
null
import random class BulleManager: __bulles__ = [] @staticmethod def get(): return BulleManager.__bulles__ @staticmethod def count(): return len(BulleManager.__bulles__) @staticmethod def add(bulle_ip): BulleManager.__bulles__.append(bulle_ip) @staticmethod def remove(bulle_ip): ...
20.185185
47
0.730275
55244a0d81363097896cadd79c5cf307e1cfad22
22,465
py
Python
venv/lib/python2.7/site-packages/sslyze/plugins/robot_plugin.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
venv/lib/python2.7/site-packages/sslyze/plugins/robot_plugin.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/sslyze/plugins/robot_plugin.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import socket import types from enum import Enum from typing import Optional, Tuple, Text, List, Dict, Type from xml.etree.ElementTree import Element import binascii import math from cryptography.hazmat....
49.373626
121
0.668329
195fdfcbf0ab13e99ed72417886818cb28db21e5
3,318
py
Python
tensorflow_datasets/testing/fake_data_generation/flic.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2021-05-10T10:41:27.000Z
2021-05-10T10:41:27.000Z
tensorflow_datasets/testing/fake_data_generation/flic.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/testing/fake_data_generation/flic.py
shashwat9kumar/datasets
99b055408025f8e934fcbb0fc054488aa087ebfb
[ "Apache-2.0" ]
1
2021-08-02T22:12:40.000Z
2021-08-02T22:12:40.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
31.6
78
0.589512
69ba4ed8e89c06f186b94b0a9345b10c1f7f72e9
8,727
py
Python
db_rest_api/test_api.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
db_rest_api/test_api.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
null
null
null
db_rest_api/test_api.py
min-yin-sri/indra
93d4cb8b23764a2775f9dbdf5eb73b6053006d73
[ "BSD-2-Clause" ]
null
null
null
import unittest import json import sys from itertools import combinations from datetime import datetime from db_rest_api.api import MAX_STATEMENTS from indra.statements import stmts_from_json from db_rest_api import api TIMELIMIT = 1 SIZELIMIT = 4e7 class DbApiTestCase(unittest.TestCase): def setUp(self): ...
42.570732
85
0.576143
21ee399f035f3042134c162511659e50c2a90e93
5,230
py
Python
crabageprediction/venv/Lib/site-packages/numpy/f2py/diagnose.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
20,453
2015-01-02T09:00:47.000Z
2022-03-31T23:35:56.000Z
crabageprediction/venv/Lib/site-packages/numpy/f2py/diagnose.py
13rianlucero/CrabAgePrediction
92bc7fbe1040f49e820473e33cc3902a5a7177c7
[ "MIT" ]
14,862
2015-01-01T01:28:34.000Z
2022-03-31T23:48:52.000Z
bot/lib/python3.7/site-packages/numpy/f2py/diagnose.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
9,362
2015-01-01T15:49:43.000Z
2022-03-31T21:26:51.000Z
#!/usr/bin/env python3 import os import sys import tempfile def run_command(cmd): print('Running %r:' % (cmd)) os.system(cmd) print('------') def run(): _path = os.getcwd() os.chdir(tempfile.gettempdir()) print('------') print('os.name=%r' % (os.name)) print('------') print('sys....
33.741935
102
0.478967
449881578f011e35bf3228d4b17eb15e702469a8
18,506
gyp
Python
Source/devtools/devtools.gyp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
1
2017-08-25T05:15:52.000Z
2017-08-25T05:15:52.000Z
Source/devtools/devtools.gyp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
null
null
null
Source/devtools/devtools.gyp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions an...
48.572178
257
0.45034
2c0c94ab6e1a54403ba3bf2e6cd87543c698cde5
1,331
py
Python
test/test_cluster_nodes_onefs_version.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_cluster_nodes_onefs_version.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
test/test_cluster_nodes_onefs_version.py
Atomicology/isilon_sdk_python
91039da803ae37ed4abf8d2a3f59c333f3ef1866
[ "MIT" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
27.163265
92
0.746807
5565f14d40cd6255a96f070259d3b3e1e73778c2
13,436
py
Python
espnet/nets/e2e_asr_common.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
1
2020-02-06T15:59:22.000Z
2020-02-06T15:59:22.000Z
espnet/nets/e2e_asr_common.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
null
null
null
espnet/nets/e2e_asr_common.py
LuoTianqi/espnet
b7ff2546b37c3f12b2bd45d879f2f0f88767b639
[ "Apache-2.0" ]
1
2021-02-28T05:57:51.000Z
2021-02-28T05:57:51.000Z
#!/usr/bin/env python3 # Copyright 2017 Johns Hopkins University (Shinji Watanabe) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Common functions for ASR.""" import argparse import editdistance import json import logging import numpy as np import six import sys from itertools import groupby def e...
34.363171
102
0.607175
284cc42ad58fa9d7f464b554d862caf47c34fb71
59,546
py
Python
gewittergefahr/gg_utils/gridded_forecasts.py
dopplerchase/GewitterGefahr
4415b08dd64f37eba5b1b9e8cc5aa9af24f96593
[ "MIT" ]
26
2018-10-04T01:07:35.000Z
2022-01-29T08:49:32.000Z
gewittergefahr/gg_utils/gridded_forecasts.py
liuximarcus/GewitterGefahr
d819874d616f98a25187bfd3091073a2e6d5279e
[ "MIT" ]
4
2017-12-25T02:01:08.000Z
2018-12-19T01:54:21.000Z
gewittergefahr/gg_utils/gridded_forecasts.py
liuximarcus/GewitterGefahr
d819874d616f98a25187bfd3091073a2e6d5279e
[ "MIT" ]
11
2017-12-10T23:05:29.000Z
2022-01-29T08:49:33.000Z
"""Methods to create gridded spatial forecasts from storm-cell-based ones.""" import copy import numpy import pandas from gewittergefahr.gg_utils import storm_tracking_utils as tracking_utils from gewittergefahr.gg_utils import projections from gewittergefahr.gg_utils import polygons from gewittergefahr.gg_utils impor...
41.236842
80
0.718856
56e49e0d3837092ddd568580e2fa534c4574a070
451
py
Python
python/fundir/du_jindutiao.py
harkhuang/harkcode
1c9802bfc8d599e20ee9082eca14165a782ddf85
[ "MIT" ]
3
2015-10-27T00:49:46.000Z
2019-04-19T08:14:46.000Z
python/fundir/du_jindutiao.py
harkhuang/harkcode
1c9802bfc8d599e20ee9082eca14165a782ddf85
[ "MIT" ]
1
2018-11-05T07:54:55.000Z
2018-11-05T07:54:55.000Z
python/fundir/du_jindutiao.py
harkhuang/harkcode
1c9802bfc8d599e20ee9082eca14165a782ddf85
[ "MIT" ]
1
2015-12-19T08:47:53.000Z
2015-12-19T08:47:53.000Z
import sys import time # Output example: [======= ] 75% # width defines bar width # percent defines current percentage def progress(width, percent): print "%s %d%%\r" % (('%%-%ds' % width) % (width * percent / 100 * '='), percent), if percent >= 100: print sys.stdout.flush() ...
23.736842
87
0.563193
ec098986397d79df0f19a66fa4f98f19ff0f2d90
5,069
py
Python
scripts/synmap/dag_tools.py
LyonsLab/coge
1d9a8e84a8572809ee3260ede44290e14de3bdd1
[ "BSD-2-Clause" ]
37
2015-02-24T18:58:30.000Z
2021-03-07T21:22:18.000Z
scripts/synmap/dag_tools.py
LyonsLab/coge
1d9a8e84a8572809ee3260ede44290e14de3bdd1
[ "BSD-2-Clause" ]
12
2016-06-09T21:57:00.000Z
2020-09-11T18:48:51.000Z
scripts/synmap/dag_tools.py
LyonsLab/coge
1d9a8e84a8572809ee3260ede44290e14de3bdd1
[ "BSD-2-Clause" ]
19
2016-03-26T08:15:17.000Z
2021-04-12T05:03:29.000Z
#!/usr/bin/env python from operator import itemgetter import numpy import re try: import psyco; pysco.full() except: pass def dag_array(dagf): recs = [] #collections.defaultdict(list) fh = open(dagf, 'r') qname_len = 0 sname_len = 0 qchr_len = 0 schr_len = 0 for line in fh: if li...
34.719178
129
0.575853
69794be633b15aa9552c4427a027a10d5c44da9a
2,231
py
Python
bot/messenger.py
teamgalaxis/beercounter-bot
00d632eca2b4c1bc943a95d156b9d6058d2f9834
[ "MIT" ]
null
null
null
bot/messenger.py
teamgalaxis/beercounter-bot
00d632eca2b4c1bc943a95d156b9d6058d2f9834
[ "MIT" ]
null
null
null
bot/messenger.py
teamgalaxis/beercounter-bot
00d632eca2b4c1bc943a95d156b9d6058d2f9834
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import random logger = logging.getLogger(__name__) class Messenger(object): def __init__(self, slack_clients): self.clients = slack_clients def send_message(self, channel_id, msg): # in the case of Group and Private channels, RTM channel payload is a c...
44.62
125
0.639623
2c74166bf9ec4eb7b543ee3ea940751a6b3bfb0e
2,425
py
Python
baselines/deepq/experiments/atari/model.py
yenchenlin/rl-attack-detection
13ff1765cf52dda150c4266d8e68fd3c4aa350ed
[ "MIT" ]
66
2017-09-27T21:40:56.000Z
2022-02-22T13:58:41.000Z
baselines/deepq/experiments/atari/model.py
haider4445/AdvDRL
c17ef8d6044c31a172884d2124e87d72f848dda2
[ "MIT" ]
4
2017-09-27T19:29:26.000Z
2021-02-22T10:01:33.000Z
baselines/deepq/experiments/atari/model.py
haider4445/AdvDRL
c17ef8d6044c31a172884d2124e87d72f848dda2
[ "MIT" ]
14
2017-09-27T22:13:16.000Z
2021-07-12T10:01:58.000Z
import tensorflow as tf import tensorflow.contrib.layers as layers def model(img_in, num_actions, scope, reuse=False, concat_softmax=False): """As described in https://storage.googleapis.com/deepmind-data/assets/papers/DeepMindNature14236Paper.pdf""" with tf.variable_scope(scope, reuse=reuse): out = i...
52.717391
113
0.693196
c70b20988a0b1db8e34d3ab9b47456170f316371
1,783
py
Python
qa/Rules/NamingConventionRules/FunctionNamingRule.py
tartarini/MAF3
f9614d36591754544b23e3a670980799254dfd2c
[ "Apache-2.0" ]
1
2021-05-10T19:01:48.000Z
2021-05-10T19:01:48.000Z
qa/Rules/NamingConventionRules/FunctionNamingRule.py
examyes/MAF3
f9614d36591754544b23e3a670980799254dfd2c
[ "Apache-2.0" ]
null
null
null
qa/Rules/NamingConventionRules/FunctionNamingRule.py
examyes/MAF3
f9614d36591754544b23e3a670980799254dfd2c
[ "Apache-2.0" ]
1
2018-02-06T03:51:57.000Z
2018-02-06T03:51:57.000Z
from xml.dom import minidom as xd import re from AbstractRule import AbstractRule class FunctionNamingRule(AbstractRule): def __init__(self): AbstractRule.__init__(self) def execute(self): self.dom = xd.parse(self.FullPathInputFile) className = self.dom.getElementsByTagName('compoundde...
48.189189
128
0.550757
6f59749556298066b29379b2a96838661e424475
1,275
py
Python
Src/Scripts/clean.py
Enerccio/ironpython26-fixed
e302db14f05396a378adb438565a829e66acbf94
[ "MS-PL" ]
1
2020-02-11T06:02:40.000Z
2020-02-11T06:02:40.000Z
Src/Languages/IronPython/Scripts/clean.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
null
null
null
Src/Languages/IronPython/Scripts/clean.py
rudimk/dlr-dotnet
71d11769f99d6ff1516ddbaed091a359eb46c670
[ "MS-PL" ]
1
2018-11-21T04:10:23.000Z
2018-11-21T04:10:23.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Microsoft Public License. A # copy of the license can be found in the License.html file at the root of this...
31.097561
97
0.58902
3f761d68a19f2f12339f3b75f281c92a21e6c7d6
3,110
py
Python
app/models.py
gabrielranulfo/projeto-integrador
4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f
[ "MIT" ]
null
null
null
app/models.py
gabrielranulfo/projeto-integrador
4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f
[ "MIT" ]
19
2021-11-13T22:16:31.000Z
2021-11-13T22:20:49.000Z
app/models.py
gabrielranulfo/projeto-integrador
4b3dc72fa2a38697fd4b21b08ec5ad5e8c44e28f
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.db import models #from django.contrib.auth.models import User class Cad_empresa(models.Model): nome_fantasia_empresa = models.CharField(max_length=80) cnpj_empresa = models.CharField(max_length=18) endereco...
36.588235
71
0.739228
59efe88ffa92f1f7968cc71c174e468051bc56ef
2,955
py
Python
src/uams_platform/uams_manipulation/script/waypoint_generation_visualization.py
S-JingTao/ROS_Air_ground_simulation_model
393aa2c881dd6d0fe5efdb94409800c2d161832a
[ "MIT" ]
null
null
null
src/uams_platform/uams_manipulation/script/waypoint_generation_visualization.py
S-JingTao/ROS_Air_ground_simulation_model
393aa2c881dd6d0fe5efdb94409800c2d161832a
[ "MIT" ]
null
null
null
src/uams_platform/uams_manipulation/script/waypoint_generation_visualization.py
S-JingTao/ROS_Air_ground_simulation_model
393aa2c881dd6d0fe5efdb94409800c2d161832a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function from __future__ import division import rospy import rosbag import numpy as np import matplotlib.pyplot as plt import matplotlib; matplotlib.use('TkAgg') from waypoint_generation_library import WaypointGen from scipy import linalg from nav_msgs.msg import Odom...
33.202247
82
0.710321
c536ca9ef0c7bea3c88f7db8a210a5321b275010
430
py
Python
tests/params.py
dendisuhubdy/mapper-tda
fa54ab7bd4aa383aa5101e31f5424c09b91d86c7
[ "MIT" ]
1
2017-06-05T12:25:43.000Z
2017-06-05T12:25:43.000Z
tests/params.py
dendisuhubdy/mapper-tda
fa54ab7bd4aa383aa5101e31f5424c09b91d86c7
[ "MIT" ]
null
null
null
tests/params.py
dendisuhubdy/mapper-tda
fa54ab7bd4aa383aa5101e31f5424c09b91d86c7
[ "MIT" ]
null
null
null
import os # Info DATASET_DIM = 3 # Code Path EM_CODE_PATH = '' DATA_PATH = os.getcwd() + '/tests/' # Graph Plot Parameters PLOT_PATH = os.getcwd() + '/plots/' ANGLE = (20,170) plot_type_str = ['spring', 'random' ,'shell' ,'spectral' ,'viz'][4] # Clustering Parameters CLUSTERING_PLOT_BOOL = True CLUSTERING_...
10.75
67
0.667442
f9b40ac93f7ae67a3ec57b9a5bf784740e1abff9
2,560
py
Python
parameters.py
ash368/FaceParsing
67f8bb7e9a4651c1be45687113d3d6d9e55e04bb
[ "MIT" ]
138
2020-01-10T17:54:30.000Z
2022-03-17T04:05:38.000Z
parameters.py
ash368/FaceParsing
67f8bb7e9a4651c1be45687113d3d6d9e55e04bb
[ "MIT" ]
21
2020-02-07T12:27:41.000Z
2022-02-05T14:50:15.000Z
parameters.py
ash368/FaceParsing
67f8bb7e9a4651c1be45687113d3d6d9e55e04bb
[ "MIT" ]
28
2020-01-10T10:27:19.000Z
2022-03-10T07:52:25.000Z
import argparse def str2bool(v): return v.lower() in ('true') def get_parameters(): parser = argparse.ArgumentParser() parser.add_argument('--imsize', type=int, default=512) parser.add_argument( '--arch', type=str, choices=['UNet', 'DFANet', 'DANet', 'DABNet', 'CE2P', 'FaceParseNet18', ...
43.389831
119
0.645313
967873951f8e30a56973275a38df007655282ded
867
py
Python
services/todo.py
gitrus/flask-rest-pylearn
b62d62d54b508d3e30e3c1a2e29658df0e2d86b4
[ "MIT" ]
null
null
null
services/todo.py
gitrus/flask-rest-pylearn
b62d62d54b508d3e30e3c1a2e29658df0e2d86b4
[ "MIT" ]
null
null
null
services/todo.py
gitrus/flask-rest-pylearn
b62d62d54b508d3e30e3c1a2e29658df0e2d86b4
[ "MIT" ]
1
2020-07-01T10:40:53.000Z
2020-07-01T10:40:53.000Z
import datetime import typing as t from models.todo.todo import ToDo, ToDoStatus class ToDoService: def update(self, todo: ToDo, update_obj: dict) -> ToDo: pass def create(self, create_obj: dict) -> ToDo: pass def fetch_overdue_todos(self, date: datetime) -> t.List[ToDo]: pass ...
20.162791
66
0.540946
f19fd783995fcf7ca441b4b0696658c263945fd6
3,779
py
Python
allennlp/tests/models/reading_comprehension/qanet_fine_test.py
Whu-wxy/allennlp
c863900e3e1fe7be540b9a0632a7a032491fc3ab
[ "Apache-2.0" ]
6
2019-05-27T03:24:30.000Z
2021-01-23T14:32:45.000Z
allennlp/tests/models/reading_comprehension/qanet_fine_test.py
Whu-wxy/allennlp
c863900e3e1fe7be540b9a0632a7a032491fc3ab
[ "Apache-2.0" ]
null
null
null
allennlp/tests/models/reading_comprehension/qanet_fine_test.py
Whu-wxy/allennlp
c863900e3e1fe7be540b9a0632a7a032491fc3ab
[ "Apache-2.0" ]
3
2019-09-05T05:55:14.000Z
2021-06-20T05:12:06.000Z
# pylint: disable=no-self-use,invalid-name from flaky import flaky import numpy from numpy.testing import assert_almost_equal from allennlp.common import Params from allennlp.data import DatasetReader, Vocabulary from allennlp.common.testing import ModelTestCase from allennlp.data.dataset import Batch from allennlp.mo...
47.2375
104
0.705213
86d940c55389dc36574adc7bfec882bb42703d17
3,985
py
Python
test/programytest/mappings/test_normalise.py
cdoebler1/AIML2
ee692ec5ea3794cd1bc4cc8ec2a6b5e5c20a0d6a
[ "MIT" ]
345
2016-11-23T22:37:04.000Z
2022-03-30T20:44:44.000Z
test/programytest/mappings/test_normalise.py
MikeyBeez/program-y
00d7a0c7d50062f18f0ab6f4a041068e119ef7f0
[ "MIT" ]
275
2016-12-07T10:30:28.000Z
2022-02-08T21:28:33.000Z
test/programytest/mappings/test_normalise.py
VProgramMist/modified-program-y
f32efcafafd773683b3fe30054d5485fe9002b7d
[ "MIT" ]
159
2016-11-28T18:59:30.000Z
2022-03-20T18:02:44.000Z
import os import re import unittest from unittest.mock import patch from programy.mappings.normal import NormalCollection from programy.storage.factory import StorageFactory from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.file.config import FileStoreConfiguration fr...
43.791209
223
0.738018