hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b95f2f6c2258ef8998ac2a053019013dbf870640
2,351
py
Python
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
account/views.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
# Create your views here. from django.db.models import QuerySet from django.utils.decorators import method_decorator from drf_yasg.utils import swagger_auto_schema from rest_framework import viewsets, status from rest_framework.permissions import IsAuthenticated, AllowAny from rest_framework.response import Response fr...
40.534483
103
0.722671
1,317
0.549896
0
0
1,854
0.774113
0
0
218
0.091023
b95fe9aa9fab4f285d9028f8b01c9820d83254e4
3,831
py
Python
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/front-door/azext_front_door/_validators.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
35.472222
119
0.645262
871
0.227356
0
0
0
0
0
0
923
0.240929
b960f3f5be88ef82754359823e7c6a9b7ed78089
7,763
py
Python
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
1
2022-03-26T07:46:59.000Z
2022-03-26T07:47:20.000Z
mimesis/data/int/development.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
"""Provides all the data related to the development.""" LICENSES = [ "Apache License, 2.0 (Apache-2.0)", "The BSD 3-Clause License", "The BSD 2-Clause License", "GNU General Public License (GPL)", "General Public License (LGPL)", "MIT License (MIT)", "Mozilla Public License 2.0 (MPL-2.0)", ...
17.845977
61
0.551977
0
0
0
0
0
0
0
0
5,167
0.665593
b962302fa813576c8cf57a4deea0db5f25dfb918
620
py
Python
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
16
2018-05-25T06:30:28.000Z
2020-08-08T00:03:47.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
46
2018-05-22T21:32:55.000Z
2019-06-12T13:10:02.000Z
docs/mathparse.py
pcmoritz/flow
bc97132e9e2d05262bb6bbad5bda173fd9f4ae92
[ "MIT" ]
6
2018-06-22T14:59:14.000Z
2019-08-29T06:00:34.000Z
""" A preliminary attempt at parsing an RST file's math syntax in order to make math render as inline rather than display mode. This doesn't work as of yet but might be useful. It could, however, be not useful if there's a pandoc option for converting .md to .rst that makes math inline and not display. Keeping it arou...
22.962963
70
0.693548
0
0
0
0
0
0
0
0
504
0.812903
b96253f9f9bc87e42d80842aebed3aa7dacb859b
1,994
py
Python
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
2
2015-08-07T15:39:25.000Z
2019-03-31T12:45:37.000Z
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
lib/layout/primitives.py
tailhook/pyzza
610be6ee4bea9b64f8226faf7338523fdafdf2cf
[ "MIT" ]
null
null
null
from layout import Shape, Widget from flash.text.engine import TextBlock, TextElement @package('layout') class Poly(Shape): __slots__ = ('fillcolor', 'sequence') def __init__(self, name, fillcolor, seq, states): super().__init__(name, states) self.fillcolor = fillcolor self.sequence = s...
32.688525
70
0.609829
1,824
0.914744
0
0
1,900
0.952859
0
0
96
0.048144
b963a238595dc05d6bc40e6f5888099b52a8fc14
20,515
py
Python
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
tests/testing_server.py
ImportTaste/WebRequest
0cc385622624de16ec980e0c12d9080d593cab74
[ "WTFPL" ]
null
null
null
import traceback import uuid import socket import logging import os import base64 import zlib import gzip import time import datetime from http import cookies from http.server import BaseHTTPRequestHandler from http.server import HTTPServer from threading import Thread import WebRequest def capture_expected_headers...
32.929374
165
0.640653
17,801
0.867707
0
0
0
0
0
0
7,644
0.372605
b963e6196b8baa521ce89adb40142bf81a9183a6
3,770
py
Python
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
calcgrades.py
qrowsxi/calcgrades
93c71c1afef8dde5174726ae1702b71ccba633de
[ "MIT" ]
null
null
null
import csv import math import numpy as np import pandas import scipy.optimize import sys import argparse def ineq_constraint_1(v): return np.array([vi for vi in v]) def ineq_constraint_2(v): return np.array([-vi + 30 for vi in v]) class WeightAverage: def __init__(self, mean, csv): self.df = ...
35.566038
116
0.609284
1,464
0.388329
0
0
0
0
0
0
991
0.262865
b9652ceb78b45d3bef98c61d48e3cd4630133615
19,317
py
Python
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/testing/v1/test_matrix.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.436031
458
0.67671
18,864
0.976549
0
0
15,506
0.802713
0
0
9,637
0.498887
b965c021bcb2dac479172708e85ad9ed89f09ef2
5,427
py
Python
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
View/View.py
MoriokaReimen/ConfigHeaderGenerator
73ba5d3bd5269d7e6881ec79b6fc0121ff2fb03e
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.messagebox from Control import Control class View: def __init__(self, control : Control.Control): self.control = control # Init Window self.root = tk.Tk() self.root.title(u"Header File Generator") self.root.geometry("700x800") se...
43.071429
112
0.629445
5,350
0.985812
0
0
0
0
0
0
463
0.085314
b9669e29ffa745ca4256305d7461bcbe497cc930
1,428
py
Python
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_3355_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_3355 # title: Wrong comparsion of DATE and TIMESTAMP if index is used # decription: # tracker_id: CORE-3355 # min_versions: ['2.1.5'] # versions: 3.0 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 3.0 # resou...
25.052632
95
0.641457
0
0
0
0
183
0.128151
0
0
953
0.667367
b967ba0197b144171458b230c2dfe31844ba0b72
5,231
py
Python
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
dags/download_decrypt_transfer_files.py
hms-dbmi/bch-pic-sure-airflow-dags
0c1e6f07da4e270581942e551ac30284474921d4
[ "Apache-2.0" ]
null
null
null
""" @author: anilkdegala """ import os from airflow import DAG from airflow.operators.bash_operator import BashOperator from airflow.operators.python_operator import PythonOperator, BranchPythonOperator from datetime import date, timedelta, datetime from collections import OrderedDict from scripts.dag_pebbles import ...
30.770588
171
0.664118
0
0
0
0
0
0
0
0
1,239
0.236857
b96834dcae4311b040352e86ae4bdc019619193a
7,518
py
Python
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
keystone-moon/keystone/endpoint_policy/controllers.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
1
2021-03-21T11:38:30.000Z
2021-03-21T11:38:30.000Z
# 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...
45.017964
79
0.699654
6,754
0.898377
0
0
6,827
0.908087
0
0
1,723
0.229183
b96893ff0c22487256e91c812d37a56c2c479eb3
11,886
py
Python
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
1
2019-10-03T21:20:48.000Z
2019-10-03T21:20:48.000Z
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
src/nibetaseries/cli/run.py
ipacheco-uy/NiBetaSeries
3d8716552f22f925524d80af9aace09469c22d4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -m nibetaser...
46.611765
98
0.595406
0
0
0
0
0
0
0
0
4,930
0.414774
b9693ae1ef191dd2735a2abba99bb1bc689af26f
2,727
py
Python
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
2
2022-01-15T09:55:58.000Z
2022-02-10T10:13:35.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
4
2022-01-15T19:41:28.000Z
2022-02-14T16:01:47.000Z
custom_components/senz/config_flow.py
astrandb/senz_hass
6725d37fd9c6d250ac10a16e68c56908bf1c8404
[ "MIT" ]
null
null
null
"""Config flow for SENZ WiFi.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant.components import persistent_notification from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers import config_entry_oauth2_flow from .const ...
34.518987
184
0.671067
2,363
0.86652
0
0
321
0.117712
1,829
0.6707
708
0.259626
b9697b05a9b44247d80463465fa92118d707fb98
6,465
py
Python
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
9
2019-12-06T13:12:33.000Z
2021-10-05T12:47:15.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2019-11-28T17:20:27.000Z
2019-12-09T18:44:35.000Z
astropy_helpers/git_helpers.py
bsipocz/astropy-helpers
4999df1cfb6a5022347b0cef9caf8a556517c625
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
3
2019-11-28T17:04:22.000Z
2021-10-19T13:12:34.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Utilities for retrieving revision information from a project's git repository. """ # Do not remove the following comment; it is used by # astropy_helpers.version_helpers to determine the beginning of the code in # this module # BEGIN import locale ...
33.324742
79
0.612065
0
0
0
0
0
0
0
0
3,176
0.491261
b96b280416f0d557826ffa670a7914f2d45e5fc5
526
py
Python
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
src/sot_talos_balance/test/test_feet_admittance.py
imaroger/sot-talos-balance
5e56700b4e105273ecf6feb3474789beac469a77
[ "BSD-2-Clause" ]
null
null
null
'''Test feet admittance control''' from sot_talos_balance.utils.run_test_utils import run_ft_calibration, run_test, runCommandClient try: # Python 2 input = raw_input # noqa except NameError: pass run_test('appli_feet_admittance.py') run_ft_calibration('robot.ftc') input("Wait before running the test") ...
25.047619
97
0.752852
0
0
0
0
0
0
0
0
266
0.505703
b96bb8e94e8bbfe556cc0ad3a314b6991573aa47
544
py
Python
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
24
2017-08-18T20:36:27.000Z
2020-03-27T08:55:39.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
6
2017-10-14T05:50:34.000Z
2019-06-03T08:39:49.000Z
tests/test_db.py
davebryson/py-tendermint
ec6a38a54950d9841759b0f2ed93659b58948a03
[ "Apache-2.0" ]
5
2018-01-09T11:07:06.000Z
2019-06-02T14:34:34.000Z
import os from tendermint.db import VanillaDB from tendermint.utils import home_dir def test_database(): dbfile = home_dir('temp', 'test.db') db = VanillaDB(dbfile) db.set(b'dave',b'one') result = db.get(b'dave') assert(b'one' == result) db.set(b'dave',b'two') result = db.get(b'dave') ...
20.923077
42
0.621324
0
0
0
0
0
0
0
0
102
0.1875
b96d766a7c5eab27eb3785b1277b6beccda7c9ed
1,446
py
Python
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
auth/tests/test_views.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.test import TestCase from django.test import Client class RegisterTestCase(TestCase): def test_register(self): c = Client() # on success redirects to / response = c.post('/accounts/register/', { 'username': 'asdas', 'password1': 'asdasdasd12', ...
30.125
52
0.53527
1,379
0.953665
0
0
0
0
0
0
533
0.368603
b96f6c5854c1e905c9ad5d8f08d016972c710a1f
4,134
py
Python
projects/OneNet/onenet/head.py
iFighting/OneNet
6e33b46d2aa13131262833c75f0fd1c3d224ef03
[ "MIT" ]
2
2021-06-16T01:31:17.000Z
2021-11-25T15:27:28.000Z
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
null
null
null
projects/OneNet/onenet/head.py
xieenze/OneNet
3b06ad6832727cef4c0262389de4cdbb2a666197
[ "MIT" ]
1
2021-02-04T06:38:42.000Z
2021-02-04T06:38:42.000Z
# # Modified by Peize Sun # Contact: [email protected] # # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ OneNet Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention * extra LN at the end of encoder is removed ...
32.296875
94
0.600871
3,152
0.762458
0
0
859
0.207789
0
0
830
0.200774
b96fae5c29fd446ea7199733a629bbe0f6190046
49,876
py
Python
mermaid/utils.py
HastingsGreer/mermaid
bd13c5fc427eb8cd9054973a8eaaeb302078182d
[ "Apache-2.0" ]
120
2019-10-29T23:53:02.000Z
2022-03-30T02:59:58.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
10
2019-11-05T09:28:35.000Z
2022-01-09T19:12:51.000Z
mermaid/utils.py
AlexanderChristgau/mermaid
ba07883cc3cb5982e4655048a434b4495cb49c6d
[ "Apache-2.0" ]
19
2019-11-10T13:34:39.000Z
2022-03-13T20:30:10.000Z
"""Various utility functions. .. todo:: Reorganize this package in a more meaningful way. """ from __future__ import print_function from __future__ import absolute_import # from builtins import str # from builtins import range import torch from torch.nn.parameter import Parameter from torch.autograd import Variab...
34.805304
130
0.602675
6,600
0.132328
0
0
0
0
0
0
17,362
0.348103
b96fca03cef0164231c4fa09bc83db6c5b2aa7db
1,093
py
Python
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2021-01-04T08:45:56.000Z
2021-05-19T12:25:59.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
examples/io/plot_read_evoked.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
""" ================================== Reading and writing an evoked file ================================== This script shows how to read and write evoked datasets. """ # Author: Alexandre Gramfort <[email protected]> # # License: BSD (3-clause) from mne import read_evokeds from mne.datasets import sample ...
29.540541
79
0.569076
0
0
0
0
0
0
0
0
751
0.6871
b970d836b7397be4bc4d63762c0eec8adfb90a91
611
py
Python
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
19
2016-05-11T05:15:31.000Z
2022-03-17T12:40:10.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
307
2015-08-27T11:22:33.000Z
2022-03-29T10:43:34.000Z
source/monkeyPatches/__init__.py
lukaszgo1/nvda
38a2efd1e1bff7db4471cb7afa03ab1590b7adef
[ "bzip2-1.0.6" ]
14
2016-03-28T07:31:49.000Z
2022-03-30T04:56:35.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2021 NV Access Limited # This file is covered by the GNU General Public License. # See the file COPYING for more details. from . import wxMonkeyPatches applyWxMonkeyPatches = wxMonkeyPatches.apply def applyMonkeyPatches(): # Apply several mon...
30.55
86
0.761047
0
0
0
0
0
0
0
0
387
0.633388
b970f8ccb56e24dd8d65fd92869bbf7790f6e611
5,298
py
Python
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
11
2022-01-06T22:09:50.000Z
2022-03-12T22:26:22.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
4
2022-02-25T08:20:18.000Z
2022-03-17T16:16:20.000Z
yt_dlp/extractor/ninenow.py
nxtreaming/yt-dlp
385ffb467b2285e85a2a5495b90314ba1f8e0700
[ "Unlicense" ]
3
2022-02-19T08:59:13.000Z
2022-03-06T16:11:21.000Z
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, float_or_none, smuggle_url, str_or_none, try_get, unified_strdate, unified_timestamp, ) class NineNowIE(InfoExtractor): IE_NAME = '9now.com.au' _VALID_URL = r'ht...
43.073171
146
0.575123
5,058
0.9547
0
0
0
0
0
0
1,871
0.353152
b97242dec299cf214174fe1ceb1c2d4c7e16b595
4,783
py
Python
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-05-05T01:37:42.000Z
2020-05-05T01:37:42.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2018-06-24T18:56:56.000Z
2018-06-24T18:56:56.000Z
apex/fp16_utils/fused_weight_norm.py
mcarilli/apex
766e36c9e10fe4efd847c3f77c3b38974c89eab1
[ "BSD-3-Clause" ]
1
2020-07-03T00:37:20.000Z
2020-07-03T00:37:20.000Z
import torch from torch.autograd import Variable from torch.autograd.function import Function, once_differentiable import apex_C def check_contig_cuda(tensors, names): for tensor, name in zip(tensors, names): if not tensor.is_contiguous(): raise RuntimeError(name+" with size {} is not contiguou...
41.95614
175
0.604223
4,238
0.886055
0
0
3,733
0.780473
0
0
2,826
0.590843
b9724b70833f729e47c38eb018294247250b7282
23,312
py
Python
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
1
2019-01-15T17:23:58.000Z
2019-01-15T17:23:58.000Z
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
bzt/modules/grinder.py
gerardorf/taurus
610872b4cf70af31d79a346db1aebd3466310d77
[ "Apache-2.0" ]
null
null
null
""" Module holds all stuff regarding Grinder tool usage Copyright 2015 BlazeMeter Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
40.82662
119
0.618823
22,046
0.945693
1,254
0.053792
150
0.006434
0
0
5,650
0.242364
b972e358701b6b26d8d3c931dfecc57580620c15
467
py
Python
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/Fortran/fixture/myfortran_flags.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
import getopt import sys comment = ('#' + sys.argv[1]).encode() opts, args = getopt.getopt(sys.argv[2:], 'cf:o:xy') optstring = '' length = len(comment) for opt, arg in opts: if opt == '-o': out = arg elif opt not in ('-f', '-K'): optstring = optstring + ' ' + opt infile = open(args[0], 'rb') outfile = open(out...
27.470588
67
0.601713
0
0
0
0
0
0
0
0
41
0.087794
b9736fc25869ac44481082e255dc93e0f52aa441
9,015
py
Python
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
30
2021-12-25T15:39:42.000Z
2022-02-25T04:53:44.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
11
2022-01-02T22:10:07.000Z
2022-02-02T00:56:33.000Z
zen_knit/organizer/__init__.py
Zen-Reportz/zen_knit
104c2693d2cc61520657131da769f5d59d2df8e9
[ "MIT" ]
2
2022-01-27T13:22:46.000Z
2022-01-30T05:01:59.000Z
import io import os import base64 from pathlib import Path from nbconvert import filters from pygments.formatters.latex import LatexFormatter from zen_knit import formattor from zen_knit.data_types import ChunkOption, ExecutedData, OrganizedChunk, OrganizedData from zen_knit.formattor.html_formatter import HTMLFormat...
37.5625
139
0.533888
8,590
0.952856
0
0
173
0.01919
0
0
1,463
0.162285
b974558759b358f82c2d72d79bab9c7dc3e35a76
12,467
py
Python
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
qibullet/robot_virtual.py
mcaniot/qibullet
9c5e1b319a18dd289263eb82f9d7303429bcbe21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import sys import pybullet from qibullet.camera import * from qibullet.link import Link from qibullet.joint import Joint IS_VERSION_PYTHON_3 = sys.version_info[0] >= 3 class RobotVirtual: """ Mother class representing a virtual robot """ def __init__(self, desc...
35.31728
79
0.593006
12,256
0.983075
0
0
0
0
0
0
5,530
0.443571
b974d5d1bd35654f50415a8f7c66f3fb9a0316ab
704
py
Python
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
tests/test_formatter.py
hbraux/kafkacli
5f7ed23150932b66b484fb43dd6210b6c0968776
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import pytest import json from kafkacli.formatter import Formatter sampleJson = json.loads('{"a":"s", "b":1}') def test_print_default(capsys): Formatter().print(sampleJson) captured = capsys.readouterr() assert captured.out == '{"a": "s", "b": 1}\n...
24.275862
62
0.640625
0
0
0
0
0
0
0
0
173
0.245739
b9750e636d7a3d49a65558af431533fc2e745edb
187
py
Python
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
20
2018-05-04T18:42:35.000Z
2021-03-18T07:15:12.000Z
src/jobs/forms.py
fleepgeek/django-jobsite
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
5
2020-02-11T22:22:33.000Z
2021-06-10T20:18:05.000Z
src/jobs/forms.py
arc198/DJANGO-JOB-SITE
d9547c4ee85751677ba6458380b609973c3b4a8d
[ "MIT" ]
8
2018-05-04T19:03:23.000Z
2020-09-23T00:24:46.000Z
from django import forms from .models import Application class ApplicationForm(forms.ModelForm): class Meta: model = Application fields = ('resume', 'cover_letter',)
23.375
44
0.700535
128
0.684492
0
0
0
0
0
0
22
0.117647
b975e6fb7fb3fa8849afb4e4ce41618c2ce94c1b
451
py
Python
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
1
2022-01-27T23:52:04.000Z
2022-01-27T23:52:04.000Z
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
src/test/tests/unit/protocol.py
ylee88/visit
8e0920996d84fef70a7014b0d770360918d849d5
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: protocolo.py # # Tests: vistprotocol unit test # # Mark C. Miller, Tue Jan 11 10:19:23 PST 2011 # ---------------------------------------------------------------------------- tapp = visit_bin_path(...
26.529412
78
0.432373
0
0
0
0
0
0
0
0
317
0.702882
b97645cb1bc48b7d30c6b37e139952912087b791
3,348
py
Python
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
2
2019-02-22T10:35:25.000Z
2020-08-11T01:25:12.000Z
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
pyMazeBacktrack.py
Dozed12/pyMazeBacktrack
aaa2a902fdca17dca6e2ee00e672b6bb38da5639
[ "MIT" ]
null
null
null
import libtcodpy as libtcod from random import randint nSquares = 30 nTiles = nSquares * 2 + 1 SCREEN_WIDTH = nTiles SCREEN_HEIGHT = nTiles libtcod.console_set_custom_font("cp437_12x12.png", libtcod.FONT_LAYOUT_ASCII_INROW) libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'pyMazeBacktrack', False, li...
20.168675
106
0.496416
0
0
0
0
0
0
0
0
48
0.014337
b978586a0e39802db346feaf3a0aa1c91c336f05
3,011
py
Python
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
6
2021-09-23T16:33:24.000Z
2022-03-31T11:45:13.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
4
2021-09-24T21:34:14.000Z
2022-01-27T22:11:08.000Z
source/tests/test_resources.py
aws-solutions/maintaining-personalized-experiences-with-machine-learning
3f6f1b0069df4828eae9b0835b717500189e4f71
[ "Apache-2.0" ]
9
2021-09-23T23:24:46.000Z
2022-02-12T04:53:16.000Z
# ###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
42.408451
120
0.454334
0
0
0
0
1,332
0.442378
0
0
2,027
0.673198
b9787b11fbcd5779df09a2f0f27e44e75ad576ac
1,870
py
Python
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/data/region_AG.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AG = PhoneMetadata(id='AG', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='(?:268|[58]\\d\\d|900)\\d{7}', possible_l...
103.888889
352
0.711765
0
0
0
0
0
0
0
0
638
0.341176
b97884a1b2bbd76cce01bb9efe2744d31832af25
2,182
py
Python
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
3
2016-10-03T15:29:20.000Z
2019-06-28T17:33:06.000Z
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
gradefiles-send.py
lapets/bu-gsubmit-grading
69c40a763908be1c954dce3e5e5aab854ac379ff
[ "MIT" ]
null
null
null
##################################################################### ## ## gradefiles-send.py ## ## Script to send grade files by email to enrolled students; the ## input grade file names should correspond to the user names of ## the students. ## ## from email.mime.text import MIMEText # For creating a message...
33.569231
112
0.519707
0
0
0
0
0
0
0
0
1,177
0.539413
b9789c0f2981942a54633089abdf3245b58a73a3
1,227
py
Python
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
3
2019-10-03T01:51:38.000Z
2019-10-04T16:15:43.000Z
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
null
null
null
Publisher/PGGAN-1024 trained on CelebaHQ/2-exporter.py
GalAster/16
47560a2132fbe4dda35a35dedfd7d8e6a8acc35a
[ "Unlicense" ]
1
2020-03-17T12:58:52.000Z
2020-03-17T12:58:52.000Z
import os import pickle import tensorflow as tf import wolframclient.serializers as wxf name = 'karras2018iclr-celebahq-1024x1024' file = open(name + '.pkl', 'rb') sess = tf.InteractiveSession() G, D, Gs = pickle.load(file) saver = tf.train.Saver() save_path = "./target/" + name + "/" model_name = 'model' if not os.pa...
34.083333
74
0.726976
0
0
0
0
0
0
0
0
216
0.173494
b978dfcb152bc099b2de54896ed9a54dfbc29639
6,890
py
Python
src/moveGoogle.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
src/moveGoogle.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
#!/usr/bin/env python import os import os.path import yaml import time import random import multiprocessing import RPi.GPIO as GPIO from talk import say GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) from adafruit_servokit import ServoKit Motor1 = {'EN': 27, 'input1': 19, 'input2': 16} Motor2 = {'EN': 22, 'input1': 2...
25.330882
154
0.560377
0
0
0
0
0
0
0
0
456
0.066183
b978fbbcd4002601ca1e2723cae4385002e671d8
2,063
py
Python
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/models/language.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from uuid import uuid4 from sqlalchemy import Index, Column, Text, Table, ForeignKey from sqlalchemy.orm import object_session from onegov.core.orm import Base from onegov.core.orm.types import UUID spoken_association_table = Table( 'spoken_lang_association', Base.metadata, Column( 'translator_i...
25.469136
79
0.650994
1,028
0.498303
0
0
773
0.374697
0
0
305
0.147843
b97a0b2a9f0b601569ce8973596517ed7d8790ec
3,588
py
Python
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py
djemeljanovs/tfjs
ee4430cd7a04283ec09184a3fe9d3fb27496f1dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.849057
80
0.726031
0
0
0
0
0
0
0
0
2,035
0.567168
b97af59ee4283114481f3e83dc8e3cf6244bb61c
1,014
py
Python
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
209
2021-10-30T08:32:10.000Z
2022-03-31T16:18:03.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
12
2021-12-04T10:47:11.000Z
2022-03-31T15:39:40.000Z
loss_fn/classification_loss_fns/binary_cross_entropy.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
50
2021-11-01T08:15:02.000Z
2022-03-29T08:17:34.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # from torch.nn import functional as F from torch import Tensor import argparse from . import register_classification_loss_fn from .. import BaseCriteria @register_classification_loss_fn(name="binary_cross_entropy"...
28.166667
87
0.667653
691
0.68146
0
0
753
0.742604
0
0
173
0.170611
b97c7f15dd61f4851cffcb3982337f852b3b8da5
576
py
Python
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
Sorting/insertion_sort.py
lakshyarawal/pythonPractice
4b400342198a8270c5ac0c6306afb555f927c6c1
[ "MIT" ]
null
null
null
""" Insertion Sort Algorithm:""" """Implementation""" def insertion_sort(arr) -> list: n = len(arr) for i in range(1, n): swap_index = i for j in range(i-1, -1, -1): if arr[swap_index] < arr[j]: arr[swap_index], arr[j] = arr[j], arr[swap_index] swa...
19.2
65
0.522569
0
0
0
0
0
0
0
0
100
0.173611
b97c828450c34038ee92e089e3f2b951d2113017
903
py
Python
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/spm/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Top-level namespace for spm.""" from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames) from .preprocess import (FieldMap, Slic...
53.117647
77
0.653378
0
0
0
0
0
0
0
0
169
0.187154
b97cd7905f5c596cb6d79b67c2c80e83907421d9
8,257
py
Python
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
3
2018-01-06T22:27:58.000Z
2018-08-12T20:29:51.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
1
2018-03-31T18:49:56.000Z
2018-04-19T04:52:33.000Z
network.py
tobloef/neural-network
bd05a8b9eccc0f5a973782247d39f9b5aa33156c
[ "MIT" ]
null
null
null
import numpy as np from mathUtils import * class Network(object): """ Model for a feedforward Neural Network that use backpropagation with stochastic gradient decent. """ def __init__(self, layerSizes, biasVectors, weightMatrices): """ Initialise the network with a list of layer sizes ...
53.270968
286
0.657987
8,213
0.994671
0
0
1,053
0.127528
0
0
3,275
0.396633
b97d4675d330154e0b12b91fbd601affd888ea29
1,901
py
Python
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
examples/airflow/dags/etl_orders_7_days.py
phixMe/marquez
06d71635369893b371a8a9c9e7023f11d7cbb1f8
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from marquez_airflow import DAG from airflow.operators.postgres_operator import PostgresOperator from airflow.utils.dates import days_ago default_args = { 'owner': 'datascience', 'depends_on_past': False, 'start_date': days_ago(1), 'email_on_failure': False, 'email_on_...
29.246154
135
0.681746
0
0
0
0
0
0
0
0
1,256
0.660705
b97deb7d2bd255cd9a3d9f169d969333b63452ec
313
py
Python
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
sample/pizza.py
marianarmorgado/python-starter
8bf3d7a16fd462cf99898c9a82c6e1cf4fc0e7f2
[ "MIT" ]
null
null
null
# store information about a pizza being ordered pizza = { 'crust': 'thick', 'toppings': ['mushrooms', 'extra vegan cheese'] } # summarize the order print("You ordered a " + pizza['crust'] + "-crust pizza" + "with the following toppings:") for topping in pizza['toppings']: print("\t" + topping)
26.083333
59
0.645367
0
0
0
0
0
0
0
0
204
0.651757
b97e1419e0e45b84ecc462227c812c10beb92718
181
py
Python
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
YouTube/CursoEmVideo/python/ex012.py
Fh-Shadow/Progamando
f496d83c36e9a079ed06b4e7c34396c57f539de9
[ "MIT" ]
null
null
null
a = float(input('Qual รฉ o preรงo do produto? R$')) d = a - (a * 23 / 100) print('O produto que custava R${:.2f}, na promoรงรฃo de 23% de desconto vai custar: R${:.2f}' .format(a, d))
45.25
106
0.607735
0
0
0
0
0
0
0
0
120
0.648649
b97e5feb1052b87d359d8e3d9f63ba930bff8e66
15,038
py
Python
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
1,172
2021-03-02T02:00:44.000Z
2022-03-31T02:46:45.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
37
2021-03-03T14:11:11.000Z
2022-03-12T15:40:15.000Z
dnnlib/submission/submit.py
gperdrizet/gansformer
c68ba623aa498c83d8df4c4f0a3b5e3f63c773a5
[ "MIT" ]
138
2021-03-02T06:37:10.000Z
2022-03-30T14:59:09.000Z
# Submit a function to be run either locally or in a computing cluster. # Compared to original StyleGAN implementation, we extend the support for automatic training resumption, # and network recompilation. import copy import inspect import os import pathlib import pickle import platform import pprint import re import s...
43.337176
238
0.691847
3,564
0.237
0
0
0
0
0
0
5,938
0.394866
b97f4f2077af2e6d4198d160e8fea133c49dee89
4,187
py
Python
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
pyecharts/custom/grid.py
zilong305/pycharts
6cf1bb7f17001a36da6a766615a78b1dbef5918f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from pyecharts.option import grid class Grid(object): def __init__(self): self._chart = None self._js_dependencies = set() def add(self, chart, grid_width=None, grid_height=None, grid_top=None, grid_bottom=...
31.961832
100
0.540482
4,112
0.982087
0
0
99
0.023645
0
0
1,192
0.284691
b97f78c59a8296809ae879f2d6f8355b0f8c52d0
4,588
py
Python
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
3
2016-07-04T12:02:03.000Z
2017-03-20T19:39:36.000Z
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
41
2019-05-28T09:54:04.000Z
2020-02-20T05:34:19.000Z
smooch/conversations.py
devinmcgloin/smooch
c9561c3e7f1546efc58daa472b70f738d0d35e13
[ "MIT" ]
2
2016-07-20T14:31:45.000Z
2016-11-18T12:19:38.000Z
import logging from .endpoint import ask def send_message(user_id, message, sent_by_maker=True): if not valid_args(user_id, message): logging.warning("send message called with invalid args user_id={} message={}".format(user_id, message)) return logging.debug("Sending message: user_id={0} mes...
30.586667
129
0.598954
0
0
0
0
0
0
0
0
1,670
0.363993
b980ab008a2dab6e2778edec1d7d9e24b2315a73
1,086
py
Python
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
cifar/evalit.py
Sharkbyteprojects/IRIS-ML_and_Deep-Learning
f0e053cf7a0e69019bbba36e6da3e60d76105fe9
[ "MIT" ]
null
null
null
import keras from keras.models import load_model from PIL import Image import matplotlib.pylab as plt import numpy as np import zipfile print("Extract") zip_ref = zipfile.ZipFile("./asset.zip", 'r') zip_ref.extractall(".") zip_ref.close() print("Load Model") model=load_model("cifar-model.h5") CIFAR_10_CLASSES=["Plane",...
27.15
88
0.710866
0
0
0
0
0
0
0
0
270
0.248619
b980be1e0d2b8db749e25a4f49c35cdddbdca9d9
1,650
py
Python
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
1
2021-05-09T08:18:49.000Z
2021-05-09T08:18:49.000Z
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
9
2021-03-19T01:11:35.000Z
2022-03-12T00:20:13.000Z
tt/urls.py
samiksha-patil/Knowledge-Sharing-Platform
22e61a659d5ad63fe656fa639dc897cbdebad4fe
[ "bzip2-1.0.6" ]
null
null
null
""" tt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based vi...
35.869565
100
0.726061
0
0
0
0
0
0
0
0
890
0.539394
b9814171798d1f2ddf5247c67182a7e7e032132e
105
py
Python
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
2
2021-01-21T15:04:32.000Z
2021-01-21T16:23:32.000Z
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
2
2020-12-30T20:34:51.000Z
2021-01-17T20:02:02.000Z
src/git/cmd.py
danihodovic/dht
636f54d70f8c6ca60ab48f2815b3e9e1a336d78f
[ "MIT" ]
null
null
null
import os import click os.environ["GIT_PYTHON_REFRESH"] = "quiet" @click.group() def git(): pass
9.545455
42
0.67619
0
0
0
0
34
0.32381
0
0
27
0.257143
b98238142a5e4442e3c9fdd220f6bde9274299de
570
py
Python
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
null
null
null
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
null
null
null
TwitterImage2JPG.py
Tymec/Playground
5a4aaa4a88e084d8d31803485b1ec521ad49a3d1
[ "MIT" ]
1
2019-02-19T10:32:07.000Z
2019-02-19T10:32:07.000Z
import glob import os def main(): os.chdir("F:/Downloads") extensions = ["*.jpg_large", "*.png_large", "*.jpg_orig"] file_list = list() for extension in extensions: file_list = file_list + glob.glob(extension) for file in file_list: for extension in extensions: new_ex...
22.8
67
0.585965
0
0
0
0
0
0
0
0
72
0.126316
b982943f0b8c226209550f8c7f62a0e03d0b5ff5
6,405
py
Python
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
Data Analysis/classification.py
Riccardo95Facchini/DIL-2019
febeda55fd647943a1b8c49b3c5192fcd69fdaf5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.metrics import classification_report #EVERY TIME THE DATASET IS RETRIEVED FROM GITHUB input_file = 'https://raw.githubusercontent.com/lcphy/Digital-Innovation-Lab/master/bank-full.csv' dataset = pd.read_csv(input...
25.722892
98
0.721624
0
0
0
0
0
0
0
0
1,210
0.188915
b982c2b4e976b723dfa3208c1bc1e4ea51b77ac9
5,562
py
Python
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
2
2020-01-20T19:46:28.000Z
2020-08-19T14:20:27.000Z
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/c7n_azure/tests/test_route_table.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
2
2019-04-22T15:20:23.000Z
2019-08-27T12:37:51.000Z
# Copyright 2015-2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
35.426752
95
0.538655
4,920
0.884574
0
0
3,668
0.659475
0
0
1,900
0.341604
b98531b0567b9e4719006397ec461d3fa4999e4b
11,730
py
Python
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
1
2019-04-03T18:31:36.000Z
2019-04-03T18:31:36.000Z
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
null
null
null
proto/tp_artifact_1.0/build/lib/sawtooth_artifact/processor/handler.py
pkthein/sparts_all_fam
ff162e4ea8c3919a197dc0cc13fde6b32da113c7
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Intel Corporation # Copyright 2017 Wind River # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.897959
82
0.521313
5,899
0.502899
0
0
749
0.063853
0
0
6,596
0.562319
b9877d896f97460bc5a35787da6277925368bc9f
764
py
Python
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
ReviewsCollector.py
fsandx/moodybooks
5c13fe43849e4fa861a163c74411e9f796518bc9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ STEP 2 Takes the list of urls in the json files and downloads the html files to local drive Start with: scrapy runspider ReviewsCollector.py """ import scrapy import json class ReviewsCollector(scrapy.Spider): def start_requests(self): with open("data/b...
29.384615
124
0.611257
539
0.705497
311
0.407068
0
0
0
0
284
0.371728
b9887b38cf06939bc8dd710e9861e2366862482a
3,120
py
Python
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
16
2021-11-29T03:05:31.000Z
2022-01-19T05:32:45.000Z
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
firelight/interfaces/light.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from .color import Color class LightSystem(ABC): @classmethod def __subclasshook__(cls, subclass): return (hasattr(subclass, 'set_transition_time') and callable(subclass.set_transition_time) and hasattr(subclass, 'discover_lights') ...
32.842105
77
0.641026
3,050
0.977564
0
0
2,901
0.929808
0
0
680
0.217949
b98b6f0b6e5f35ef44fd272ec1f3a99b4d72acf0
1,293
py
Python
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
PolymorphismPYTHON/Polypy.py
cadeng23/oop-cjgustafson
cd3e5ca0e37f8b00a80516c6c8d5d6789a77d9a8
[ "MIT" ]
null
null
null
import random class Family: def __init__(self,first, last, hair): self.first = first self.last = last self.hair = hair def fullname(self): return '{} {}'.format(self.first,self.last) def eyefind(self): temp = random.choice([1,2]) #using the punnet square...
23.089286
66
0.618716
1,027
0.794277
0
0
0
0
0
0
493
0.381284
b98c3a1636cff18e5244db1f52b8e6e89e2c99b5
1,494
py
Python
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
14
2015-11-10T07:57:43.000Z
2021-08-29T13:45:26.000Z
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
null
null
null
homeassistant/components/device_tracker/owntracks.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
8
2015-11-14T16:40:41.000Z
2020-02-17T19:48:08.000Z
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks/ """ import json import logging im...
27.666667
74
0.582999
0
0
0
0
0
0
0
0
617
0.412985
b98c6a6e2a07073f4614093d6ae5d6469afd6835
48,027
py
Python
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
2
2022-02-20T15:13:11.000Z
2022-03-22T03:47:21.000Z
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
null
null
null
src/models/end_to_end_event_coreference.py
luyaojie/E3C
4b2f33da4629211fd6a3738077794f821c7f7c8b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Created by Roger on 2019-09-10 # Mostly by AllenNLP import logging import math from typing import Any, Dict, List, Optional, Tuple import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.mod...
54.514188
134
0.629271
43,414
0.90395
0
0
43,462
0.904949
0
0
19,498
0.40598
b98ccbb0c859fdccad6b30924e5845122d497aa5
1,964
py
Python
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
3
2021-09-20T08:32:23.000Z
2021-09-25T08:11:48.000Z
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
null
null
null
week2/7litersProblem.py
vietanhtran2710/ArtificialIntelligenceHomework
f4da761016d67477b50856cadf1e2560230d3f79
[ "MIT" ]
null
null
null
""" Given 3 bottles of capacities 3, 5, and 9 liters, count number of all possible solutions to get 7 liters """ current_path = [[0, 0, 0]] CAPACITIES = (3, 5, 9) solutions_count = 0 def move_to_new_state(current_state): global solutions_count, current_path if 7 in current_state: solutions_co...
35.709091
91
0.548371
0
0
0
0
0
0
0
0
227
0.11558
b98d02f62eca1818cb1fb297d1c8644dd35ff288
8,263
py
Python
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/bootstrap/rulesregistrar.py
avezraj/st2
519c7f6819e52fb289c440bb7d1df7b558bb9ed7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.109453
98
0.57824
6,351
0.768607
0
0
0
0
0
0
2,013
0.243616
b9912797a8155d6800745fe804b93206d95de8ac
91,819
py
Python
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
1
2021-09-07T18:43:20.000Z
2021-09-07T18:43:20.000Z
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
aiven/azure-sdk-for-python
8764dc07423beca46ed0b51212d81289d9e52c60
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/costmanagement/azure-mgmt-costmanagement/azure/mgmt/costmanagement/models/_models_py3.py
msyyc/azure-sdk-for-python
e2dba75181f8b4336ae57e75aa391322c12c3123
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
38.16251
498
0.649005
90,996
0.991037
0
0
0
0
0
0
57,015
0.62095
b9921ebf7fdd9b5fb1dd763092a97ae1888e730f
3,860
py
Python
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
test/test_simple_compression.py
jayvdb/brotlipy
ffddf2ea5adc584c8c353d246bb1077b7e781b63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_simple_compression ~~~~~~~~~~~~~~~~~~~~~~~~~ Tests for compression of single chunks. """ import brotli import pytest from hypothesis import given from hypothesis.strategies import binary, integers, sampled_from, one_of def test_roundtrip_compression_with_files(simple_compressed_fil...
29.692308
78
0.615803
0
0
0
0
3,251
0.842228
0
0
459
0.118912
b992a4ec960bcf3e39ba5a1bb6a8cd2e68be293e
1,987
py
Python
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
3
2018-06-08T12:45:04.000Z
2018-08-02T11:09:11.000Z
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
null
null
null
wexapi/models/ticker.py
madmis/wexapi
f5b1b9b566f767bca7d8fad1f08c3d1bca42355a
[ "MIT" ]
null
null
null
from decimal import Decimal class Ticker(object): def __init__( self, high: float, low: float, avg: float, vol: float, vol_cur: int, last: float, buy: float, sell: float, updated: int, ): ...
20.27551
38
0.545546
1,956
0.984399
0
0
1,332
0.670357
0
0
0
0
b99506d26f9716e398b3a3724d393185a9900942
1,216
py
Python
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/98bb452dc14e8c40e403/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
from scryptos import * p1 = 32581479300404876772405716877547 p2 = 27038194053540661979045656526063 p3 = 26440615366395242196516853423447 n = p1*p2*p3 e = 3 c = int(open("flag.enc", "rb").read().encode("hex"), 16) # from User's Guide to PARI/GP, nth_root function sqrtnall = 'sqrtnall(x,n)={my(V,r,z,r2);r=sqrtn(x,n,&z...
39.225806
224
0.663651
0
0
0
0
0
0
0
0
678
0.557566
b9954284c404c9a5aed225965d5006c8735af349
1,717
py
Python
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
musa/migrations/0001_initial.py
ccsreenidhin/Music-Web-Django
9b8286914f9099b9ed56c712c7ca384846f189d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-29 06:43 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import musa.models class Migration(migrations.Migration): initial = True dependencies = [...
40.880952
121
0.633663
1,476
0.859639
0
0
0
0
0
0
245
0.142691
b9957182927ee0480e35dd837a4d9ee2d8587462
3,207
py
Python
nuitka/codegen/LoopCodes.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
1
2021-05-25T12:48:28.000Z
2021-05-25T12:48:28.000Z
venv/Lib/site-packages/nuitka/codegen/LoopCodes.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/nuitka/codegen/LoopCodes.py
matthijsvanvliet/raytracing-python
73d692b47330ab94eedde579a51063e3a907e92b
[ "MIT" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:[email protected] # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
34.858696
111
0.752728
0
0
0
0
0
0
0
0
1,505
0.469286
b995831c9a98c5b05882c5bbcc4b241cd51503bd
4,837
py
Python
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
3_module/C_BloomFilter.py
L4mborg1n1-D14610/Algoritms_and_DataStructure
f61b7434dbc600da02e8ec38648fa84beb160f17
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import math from sys import exit # ะธั‚ะฐะบ, n - ะฟั€ะธะฑะปะธะทะธั‚ะตะปัŒะฝะพะต ั‡ะธัะปะพ ัะปะตะผะตะฝั‚ะพะฒ ะฒ ะผะฐััะธะฒะต, P - ะฒะตั€ะพัั‚ะฝะพัั‚ัŒ ะปะพะถะฝะพะฟะพะปะพะถะธั‚ะตะปัŒะฝะพะณะพ ะพั‚ะฒะตั‚ะฐ, ั‚ะพะณะดะฐ ั€ะฐะทะผะตั€ # ัั‚ั€ัƒะบั‚ัƒั€ั‹ m = -(nlog2P) / ln2 (2 - ะพัะฝะพะฒะฐะฝะธะต), ะบะพะปะธั‡ะตัั‚ะฒะพ ั…ะตัˆ-ั„ัƒะฝะบั†ะธะน ะฑัƒะดะตั‚ ั€ะฐะฒะฝะพ -log2P # ั…ะตัˆ-ั„ัƒะฝะบั†ะธะธ ะธัะฟะพะปัŒะทัƒัŽั‚ัั ะฒะธะดะฐ: (((i + 1)*x + p(i+1)) mod M) mod m,ะณะดะต - x - ะบะปัŽั‡,...
34.798561
116
0.551995
2,671
0.46975
0
0
0
0
0
0
2,126
0.373901
b996ad8d5f407e5b1769d9b50ca7be5705a211e8
1,937
py
Python
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
null
null
null
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
1
2021-01-21T17:43:33.000Z
2021-01-21T17:43:33.000Z
pyzmq/examples/pubsub/subscriber.py
Surfndez/source-publish
c3838b303c1a0806f21cd4e8d8c207015b3ce9c8
[ "Intel" ]
null
null
null
"""A test that subscribes to NumPy arrays. Uses REQ/REP (on PUB/SUB socket + 1) to synchronize """ #----------------------------------------------------------------------------- # Copyright (c) 2010 Brian Granger # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD...
25.826667
78
0.545173
0
0
0
0
0
0
0
0
694
0.358286
b997c70668ace413cc27502883f737e007e56239
1,006
py
Python
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
36
2019-06-07T20:44:06.000Z
2022-03-23T06:19:43.000Z
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
49
2016-02-29T17:59:52.000Z
2019-05-05T04:59:26.000Z
Doc/includes/sqlite3/load_extension.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
28
2019-06-27T04:11:27.000Z
2022-03-11T06:27:44.000Z
import sqlite3 con = sqlite3.connect(":memory:") # enable extension loading con.enable_load_extension(True) # Load the fulltext search extension con.execute("select load_extension('./fts3.so')") # alternatively you can load the extension using an API call: # con.load_extension("./fts3.so") # disable extension load...
37.259259
104
0.744533
0
0
0
0
0
0
0
0
801
0.796223
b9982b7f935a0931c3a9dc4e8ec48b12b5523acb
22,060
py
Python
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
1
2021-09-02T18:04:13.000Z
2021-09-02T18:04:13.000Z
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
lingvo/core/inference_graph_exporter.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 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 ...
38.100173
116
0.694334
11,523
0.522348
958
0.043427
12,475
0.565503
0
0
8,165
0.370127
b9982e3e4e7a4b4799e5780bd7629d5235cc1b40
1,836
py
Python
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
src/preprocessing/annual_hc_by_crime_loc.py
VijayKalmath/USCrimeAnalysis
14c96aae52547a4f7ea140395c62a621a97def50
[ "MIT" ]
null
null
null
#! usr/env/bin python import glob import numpy as np import pandas as pd from tqdm import tqdm def main(): # Fetch File Paths file_paths = glob.glob(r'./data/raw/ucr/hc_count_by_place/*.xls') # Sort them according to year file_paths.sort(key = lambda x: int(x[-8:-4])) # Create a result dataframe ...
33.381818
84
0.6378
0
0
0
0
0
0
0
0
720
0.392157
b998534e368ce74be309448b790e384f839c6d4a
1,672
py
Python
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
24
2019-09-16T00:10:54.000Z
2021-09-08T19:31:51.000Z
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
null
null
null
allennlp/tests/modules/token_embedders/bag_of_word_counts_token_embedder_test.py
ethanjperez/allennlp
e520993f16f0da7e2c40f6e44b8dc56338f46b57
[ "Apache-2.0" ]
7
2019-09-16T02:37:31.000Z
2021-09-01T06:06:17.000Z
# pylint: disable=no-self-use,invalid-name import numpy as np from numpy.testing import assert_almost_equal import torch from allennlp.common import Params from allennlp.data import Vocabulary from allennlp.modules.token_embedders import BagOfWordCountsTokenEmbedder from allennlp.common.testing import AllenNlpTestCase ...
45.189189
93
0.70634
1,349
0.806818
0
0
0
0
0
0
79
0.047249
b998e92d411833a80bc4657adf0243c90d5c6084
5,457
py
Python
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
demo/demo_shapenet.py
hengkaiz/meshrcnn
eb5b5bc0639a33e48f0fc1e0834106798cd1e3d8
[ "BSD-3-Clause" ]
null
null
null
import argparse import logging import multiprocessing as mp import logging import os from detectron2.evaluation import inference_context import torch import torch.distributed as dist import torch.multiprocessing as mp from detectron2.utils.collect_env import collect_env_info from detectron2.utils.logger import setup_lo...
31.912281
99
0.637713
0
0
0
0
0
0
0
0
956
0.175188
b998f6994cf6e83702b501cd661bb37f91b59317
7,854
py
Python
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
proglearn/voters.py
jshin13/progressive-learning
dccc70fe5f6a03d2c53c2b01fd2122d7fd2798dc
[ "Apache-2.0" ]
null
null
null
import numpy as np # from sklearn.ensemble import BaggingClassifier # from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.utils.validation import ( check_X_y, check_array, NotFittedError, ) from sklearn.utils.multiclass import check_classificati...
26.805461
99
0.556277
7,412
0.943723
0
0
0
0
0
0
1,610
0.204991
b999024320e50c940c8f273e6f0536039450c829
1,949
py
Python
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
config.py
jhattat/photoBooth
f6fe3ab418bb917792e10349597401ed34078766
[ "MIT" ]
null
null
null
# Tumblr Setup # Replace the values with your information # OAuth keys can be generated from https://api.tumblr.com/console/calls/user/info consumer_key='ShbOqI5zErQXOL7Qnd5XduXpY9XQUlBgJDpCLeq1OYqnY2KzSt' #replace with your key consumer_secret='ulZradkbJGksjpl2MMlshAfJgEW6TNeSdZucykqeTp8jvwgnhu' #replace with your sec...
77.96
130
0.758338
0
0
0
0
0
0
0
0
1,561
0.800924
b9991711cbe60fa3459b0fb4cb64d023132610e8
896
py
Python
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
null
null
null
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
1
2022-03-24T10:41:10.000Z
2022-03-24T12:39:30.000Z
accounts/admin.py
GuilhemN/site-interludes
69873810d5b0168aa57277ba51805117e6c53874
[ "MIT" ]
1
2022-03-23T22:30:12.000Z
2022-03-23T22:30:12.000Z
from django.contrib import admin from django.contrib.auth.models import Group from accounts.models import EmailUser from shared.admin import ExportCsvMixin # no need for groups - we only have regular users and superusers admin.site.unregister(Group) @admin.register(EmailUser) class EmailUserAdmin(ExportCsvMixin, adm...
37.333333
106
0.753348
616
0.686734
0
0
643
0.716834
0
0
432
0.481605
b9993aa0d134cc4869bfe49fd1ecd6dc8c6b0b96
23,640
py
Python
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/exchanges/coinbase.py
vnavascues/rotki
8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f
[ "BSD-3-Clause" ]
null
null
null
import hashlib import hmac import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple from urllib.parse import urlencode import requests from rotkehlchen.assets.asset import Asset from rotkehlchen.assets.converters import asset_from_coinbase ...
40.688468
98
0.592047
20,182
0.853723
0
0
2,906
0.122927
0
0
7,542
0.319036
b9994eb6b47f29e07dc9f474ab82878fdc8ae029
3,533
py
Python
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
1
2019-06-21T11:51:26.000Z
2019-06-21T11:51:26.000Z
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
13
2019-07-03T21:28:31.000Z
2022-02-26T10:42:05.000Z
lib/python3.7/site-packages/ldap/controls/deref.py
aonrobot/MSC-thug-auth-provider
aef37ef5a000586b8502cc536244f31e08b9c2db
[ "Apache-2.0" ]
2
2020-02-11T09:34:39.000Z
2020-11-10T14:41:32.000Z
# -*- coding: utf-8 -*- """ ldap.controls.deref - classes for (see https://tools.ietf.org/html/draft-masarati-ldap-deref) See https://www.python-ldap.org/ for project details. """ __all__ = [ 'DEREF_CONTROL_OID', 'DereferenceControl', ] import ldap.controls from ldap.controls import LDAPControl,KNOWN_RESPONSE_CO...
29.441667
102
0.711577
2,552
0.722332
0
0
0
0
0
0
566
0.160204
b999aec7c34874ef90e0f30812ac97217ce90cca
3,145
py
Python
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
1
2020-03-19T20:09:00.000Z
2020-03-19T20:09:00.000Z
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
null
null
null
emoji.py
notagoat/Deepmoji
1ab922306c3647f9c7ea98caa2660a53b18fe4b6
[ "MIT" ]
null
null
null
import requests import urllib.request import os.path import shutil import csv def main(): with open("data.csv") as i: #Open the data.csv file instances = i.readlines() #Write them into memory instances = [x.strip() for x in instances] #Strip any weird issues from writing instances.sort() #Sort t...
37.440476
151
0.574245
0
0
0
0
0
0
0
0
1,256
0.399364
b99add86778172fa08bc930ed29f8f26a88ec4d3
943
py
Python
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
String/640.One Edit Distance/Solution_DP.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class Solution: """ @param s: a string @param t: a string @return: true if they are both one edit distance apart or false """ def isOneEditDistance(self, s, t): # write your code here if s == t: return False if abs(len(s) - len(t)) > 1: return Fal...
29.46875
81
0.341463
942
0.99894
0
0
0
0
0
0
147
0.155885
b99b1d1ec6004cbeeb91e19410dbbb1e2216c45e
1,478
py
Python
nsq/__init__.py
jehiah/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
1
2015-05-25T00:23:53.000Z
2015-05-25T00:23:53.000Z
nsq/__init__.py
barkinet/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
null
null
null
nsq/__init__.py
barkinet/pynsq
899b60a8ce77ed6c8ab899fbdfd7adbc1b450c96
[ "MIT" ]
null
null
null
from __future__ import absolute_import import signal import tornado.ioloop import logging from .protocol import ( Error, unpack_response, decode_message, valid_topic_name, valid_channel_name, identify, subscribe, ready, finish, touch, requeue, nop, pub, mpub, ...
26.392857
96
0.696211
0
0
0
0
0
0
0
0
450
0.304465
b99b2da4f2ac2ca37d2ded7c72545cef1cab4228
5,356
py
Python
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
3
2019-08-10T08:24:19.000Z
2019-08-12T07:16:03.000Z
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
null
null
null
scripts/summaryPlot.py
Hespian/ParFastKer
5ddf1685c0652e73c889cfc64c7ec1fd827f905c
[ "BSD-3-Clause", "MIT" ]
null
null
null
import get_data_ours import get_data_akiba import get_data_NearLinear import get_data_LinearTime import os import matplotlib.pyplot as plt # graphs = ["uk-2002", "arabic-2005", "gsh-2015-tpd", "uk-2005", "it-2004", "sk-2005", "uk-2007-05", "webbase-2001", "asia.osm", "road_usa", "europe.osm", "rgg_n26_s0", "RHG-10000...
39.094891
234
0.720127
0
0
0
0
0
0
0
0
1,795
0.335138
b99c2305beceab596bedee8ad399b6faa3216070
3,587
py
Python
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
bouncer/cli/base.py
lrnt/git-bouncer
3015e11a5d2c90986124de73bf1fd0f5a8563360
[ "MIT" ]
null
null
null
import configparser import sys import inspect from argparse import ArgumentParser, RawDescriptionHelpFormatter def opt(*args, **kwargs): def decorator(method): if not hasattr(method, 'options'): method.options = [] method.options.append((args, kwargs)) return method return...
27.381679
72
0.578199
3,180
0.886535
0
0
0
0
0
0
257
0.071648
b99c4d9fb380e0635cac67dff2a6820b500bf34f
13,728
py
Python
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
2
2020-04-28T12:50:26.000Z
2020-05-13T08:52:42.000Z
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
null
null
null
Examples/ExampleCodes_ssccoorriinngg.py
MahdadJafarzadeh/ssccoorriinngg
63c726e9e7d0f6d13032415c76b8c3bb1ff2bee3
[ "MIT" ]
1
2020-07-14T13:48:56.000Z
2020-07-14T13:48:56.000Z
#%% Import libs import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import cross_validate from sklearn.metrics import make_scorer, accuracy_score, precision_score, recall_score, f1_score import h5py import time from ssccoorriinngg import ssccoorriinngg import numpy as np ...
53.209302
127
0.682984
0
0
0
0
0
0
0
0
3,709
0.270178
b99d08420cae81be117acdda96af821aba38eea2
6,891
py
Python
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
igibson/examples/behavior/behavior_demo_collection.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
null
null
null
""" Main BEHAVIOR demo collection entrypoint """ import argparse import copy import datetime import os import bddl import numpy as np import igibson from igibson.activity.activity_base import iGBEHAVIORActivityInstance from igibson.render.mesh_renderer.mesh_renderer_cpu import MeshRendererSettings from igibson.rende...
31.465753
120
0.652881
0
0
0
0
0
0
0
0
1,308
0.189813
b99e3b0ee335439a781ae231769595415a1dc6ec
546
py
Python
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
1
2015-11-05T18:02:04.000Z
2015-11-05T18:02:04.000Z
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailadmin/menu.py
digitalmarmalade/wagtail
ac4d23172ff3f42746625630583b17d243fb9822
[ "BSD-3-Clause" ]
null
null
null
from django.utils.text import slugify from django.utils.html import format_html class MenuItem(object): def __init__(self, label, url, name=None, classnames='', order=1000): self.label = label self.url = url self.classnames = classnames self.name = (name or slugify(unicode(label)))...
32.117647
79
0.611722
463
0.847985
0
0
0
0
0
0
68
0.124542
b99ee5dfe9849188796ff8d2b024b524adedb8d2
1,950
py
Python
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
django_mfa/migrations/0001_initial.py
timgates42/django-mfa
89eeb83f7da3ea24f205b40b13c7f9d33ea15b99
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-03-26 11:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.489362
143
0.598974
1,791
0.918462
0
0
0
0
0
0
272
0.139487
b99f21827c3ba7ccbcab4806c878cdacfa139e20
317
py
Python
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
app/logger_example/main.py
khanh-nguyen-code/my-collection
31581ef0b1dae67aafb1f4e64b9973a38cc01edf
[ "MIT" ]
null
null
null
from my_collection import logger if __name__ == "__main__": logger.now().debug("debug1") logger.now().debug("debug2") logger.now().info("hello1") logger.now().info("hello2") logger.now().with_field("key", "val").error("with field1") logger.now().with_field("key", "val").error("with field2")
31.7
62
0.646688
0
0
0
0
0
0
0
0
88
0.277603
b9a14f8cda479b51cbe9296c63d8ae7397078bc7
760
py
Python
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
robotframework_iperf3/__main__.py
scathaig/robotframework-iperf3
cfeeb3e265777403d7eb06fcfa6d69650f2a5e67
[ "Apache-2.0" ]
null
null
null
import argparse from robotremoteserver import RobotRemoteServer from .iperf3 import Iperf3 if __name__ == '__main__': # create commandline parser parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.prog = 'python3 -m robotframework_iperf3' # add parser opt...
21.111111
92
0.619737
0
0
0
0
0
0
0
0
170
0.223684
b9a1ae11b40a499e6f6854e1a273c2ff226ef650
692
py
Python
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-docs/src/booklets/v2_2015/source/Python_Vignette_code_examples/python_combine_frames_append_one_as_columns.py
ahmedengu/h2o-3
ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
df8.cbind(df9) # A B C D A0 B0 C0 D0 # ----- ------ ------ ------ ------ ----- ----- ----- # -0.09 0.944 0.160 0.271 -0.351 1.66 -2.32 -0.86 # -0.95 0.669 0.664 1.535 -0.633 -1.78 0.32 1.27 # 0.17 0.657 0.970 -0.419 -1.413 -0.51 0.64 -1.25 # 0.58 -0.516 -1.598 -1.346 0.71...
43.25
54
0.460983
0
0
0
0
0
0
0
0
663
0.958092
b9a1dbb5125acea57356714e95e66c8e3a612e30
1,101
py
Python
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
FluentPython/dynamic_attr_and_prop/frozen_json.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- from collections import abc from keyword import iskeyword class FronzenJSON: def __init__(self, mapping): self._data = {} for key, value in mapping.items(): if iskeyword(key): key += '_' # self._data = di...
27.525
56
0.561308
990
0.899183
0
0
246
0.223433
0
0
122
0.110808
b9a20089dfb3f5c8a3472d1f3be189af236d4d44
4,062
py
Python
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
pomdp_problems/tag/models/transition_model.py
Semanti1/pomdp_findit
b96c1c06aab4b485fa005654cf6438ff63718083
[ "MIT" ]
null
null
null
"""The Tag problem. Implemented according to the paper `Anytime Point-Based Approximations for Large POMDPs <https://arxiv.org/pdf/1110.0027.pdf>`_. Transition model: the robot moves deterministically. The target's movement depends on the robot; With Pr=0.8 the target moves away from the robot, and with P...
45.640449
103
0.537912
3,466
0.853274
0
0
359
0.08838
0
0
494
0.121615
b9a21ff5a8c4fcb07930580d031f6847ecfaed43
4,731
py
Python
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
packit/fedpkg.py
bocekm/packit
b5da23c0fa3f205537551b9ed212d8f77d00d705
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Red Hat, Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
35.044444
82
0.609808
3,412
0.721201
0
0
0
0
0
0
2,434
0.514479
b9a3c97262cf3c50a695832e8941374463a78067
901
py
Python
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
3
2020-06-18T14:18:39.000Z
2021-07-22T18:05:52.000Z
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
2
2020-07-19T15:44:09.000Z
2020-07-28T23:22:21.000Z
tests/test_MaskedArrayCollection.py
ahaldane/NDducktype_tests
4876416e5fbff7ba0d85445c0eeae432d6e80014
[ "BSD-3-Clause" ]
2
2019-06-20T00:20:13.000Z
2020-09-20T21:42:52.000Z
#!/usr/bin/env python from ndarray_ducktypes.ArrayCollection import ArrayCollection from ndarray_ducktypes.MaskedArray import MaskedArray from ndarray_ducktypes.MaskedArrayCollection import MaskedArrayCollection import numpy as np # Tests for Masked ArrayCollections. # # First try: Simply make an arraycollection of Ma...
31.068966
75
0.738069
0
0
0
0
0
0
0
0
668
0.741398
b9a4cbf5401cd86949e3f94c13bc464c4725fcee
192,704
py
Python
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
rpc/gen/core_pb2.py
jasonjoo2010/core
7c05ddbdac2e05a3d96db28f8bdfacf661907b82
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: core.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflecti...
38.875126
16,249
0.731339
0
0
0
0
0
0
0
0
40,959
0.212549
b9a524c2d76717a70aa199aeb8c04e4579e1a276
2,217
py
Python
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
src/models/text_node.py
moevm/nosql1h19-text-graph
410f156ad4f232f8aa060d43692ab020610ddfd4
[ "MIT" ]
null
null
null
from neomodel import StructuredNode, StringProperty, JSONProperty, \ Relationship, IntegerProperty import numpy as np import re from models.text_relation import TextRelation __all__ = ['TextNode'] class TextNode(StructuredNode): order_id = IntegerProperty(required=True, unique_index=True) ...
31.671429
73
0.488498
2,088
0.903114
0
0
0
0
0
0
1,105
0.477941
b9a529f9f36fb2cce0a38f16148b6bc2117ab033
2,655
py
Python
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
6
2015-04-04T15:58:29.000Z
2019-04-07T11:45:02.000Z
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
1
2015-04-27T19:02:06.000Z
2015-04-27T19:02:06.000Z
tests/test_bishop_generate.py
otaviocarvalho/chess-negamax
21f1066611e581dac3257d3f46c71ca2b09b5964
[ "MIT" ]
3
2015-10-04T00:22:17.000Z
2019-04-07T11:44:56.000Z
import unittest from .helpers import StubBoard, StubPiece, C, WHITE, BLACK class TestBishopGenerate(unittest.TestCase): def get_bishop(self, board, team, position): from chess.models import Bishop return Bishop(board, team, position) def compare_list(self, expected, results): compared ...
30.872093
58
0.581921
2,530
0.952919
0
0
0
0
0
0
110
0.041431