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
d4fae683109b51c37a205d6ed228be7bbb86f029
7,868
py
Python
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
null
null
null
vnTrader/uiMainWindow.py
bttt123/TradeSim
2374b0925d34d8fb299095250c5c8834192848ce
[ "Apache-2.0" ]
1
2022-03-29T21:57:31.000Z
2022-03-29T21:57:31.000Z
# encoding: UTF-8 from builtins import str import psutil # import sys # PyQt 4/5 compatibility try: from PyQt4.QtGui import QMainWindow, QDialog, QDockWidget, QAction, QHeaderView, QMessageBox, QLabel, QVBoxLayout from PyQt4 import QtCore except ImportError: from PyQt5.QtWidgets import QMainWindow, QDial...
35.441441
121
0.521734
7,526
0.918701
0
0
0
0
0
0
2,059
0.251343
d4fb4e3677b230700c8377c0c0d538eea2ac4e41
9,431
py
Python
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
1
2021-06-16T00:36:22.000Z
2021-06-16T00:36:22.000Z
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
line_notify_core.py
ficgra/PChome-alertor
5f4e798e3130c170eb75e03215128590ed02dcf9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import requests import json import re from flask import Flask, request, abort import mysql.connector as mariadb from mysql.connector import Error from linebot import ( LineBotApi, WebhookHandler ) from linebot.exceptions import ( InvalidSignatureError ) from l...
35.190299
214
0.626021
0
0
0
0
3,838
0.384685
0
0
3,089
0.309612
d4fd04698f7477aacd1d458ba68e94970c4579ef
1,143
py
Python
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
21
2016-11-03T12:30:50.000Z
2022-03-24T06:54:14.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
1
2019-04-02T02:01:27.000Z
2019-04-07T21:07:10.000Z
sfc_models/examples/scripts/intro_X_XX_sim_multiplier.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
12
2016-11-03T12:30:57.000Z
2021-09-14T23:08:23.000Z
# coding=utf-8 from sfc_models.objects import * from sfc_models.examples.Quick2DPlot import Quick2DPlot register_standard_logs('output', __file__) mod = Model() country = Country(mod, 'CO') Household(country, 'HH') ConsolidatedGovernment(country, 'GOV') FixedMarginBusiness(country, 'BUS', profit_margin=.025) Market(c...
34.636364
113
0.727909
0
0
0
0
0
0
0
0
384
0.335958
d4fe0f781e9f3139abc2757c5c86104cc2181049
4,135
py
Python
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
auth_framework/settings.py
DrChai/django-auth-framework
4f9a108de66fe102ff28518b6597ad26b5855518
[ "BSD-2-Clause" ]
null
null
null
from importlib import import_module from django.conf import settings from django.core.signals import setting_changed SOCIALACCOUNT_MODEL = getattr(settings, "REST_AUTH_SOCIALACCOUNT_MODEL", "auth_framework.SocialAccount") DEFAULTS = { 'UNIQUE_EMAIL': True, 'RESET_PASSWORD_BY': 'pin', # 'url'| 'pin' 'SER...
33.08
117
0.641112
2,326
0.562515
0
0
992
0.239903
0
0
1,166
0.281983
d4ff76335b31237c5497fc74cfffe7b1e1ab18a8
317
py
Python
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
shorty/models.py
gkiserpong/shorty
5795e26f3221d581223e37353bee360454532211
[ "MIT" ]
null
null
null
from django.db import models from shorty.manager import UrlManager class Url(models.Model): long_url = models.URLField() short_id = models.SlugField() counter = models.IntegerField(default=0) def __str__(self): return "%s -- %s" % (self.long_url, self.short_id) objects = UrlManager()
22.642857
58
0.684543
247
0.77918
0
0
0
0
0
0
10
0.031546
be0006e92a529db72d1a914a113e9040dbe56c1e
48,343
py
Python
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
null
null
null
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-07-03T13:32:38.000Z
2019-07-03T13:32:38.000Z
test/sec_full.py
time-track-tool/time-track-tool
a1c280f32a7766e460c862633b748fa206256f24
[ "MIT" ]
1
2019-05-15T16:01:31.000Z
2019-05-15T16:01:31.000Z
security = """ New Web users get the Roles "User,Nosy" New Email users get the Role "User" Role "admin": User may access the rest interface (Rest Access) User may access the web interface (Web Access) User may access the xmlrpc interface (Xmlrpc Access) User may create everything (Create) User may edit everything ...
83.063574
690
0.762034
0
0
0
0
0
0
0
0
48,322
0.999566
be004417db97934b47985fcf6b9c727896247c48
220
py
Python
CodeChef/problems/IMDB/main.py
object-oriented-human/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
1
2022-02-21T15:43:01.000Z
2022-02-21T15:43:01.000Z
CodeChef/problems/IMDB/main.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
CodeChef/problems/IMDB/main.py
foooop/competitive
9e761020e887d8980a39a64eeaeaa39af0ecd777
[ "MIT" ]
null
null
null
tc = int(input()) while tc: tc -= 1 best = 0 n, x = map(int, input().split()) for i in range(n): s, r = map(int, input().split()) if x >= s: best = max(best, r) print(best)
22
40
0.445455
0
0
0
0
0
0
0
0
0
0
be0099fd02ee40c6a15038fa8158d18b025dd23d
3,218
py
Python
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
1
2019-12-19T13:12:53.000Z
2019-12-19T13:12:53.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
9
2020-02-24T20:14:53.000Z
2021-04-30T21:51:04.000Z
tests/test_sqlite_wrapper.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
null
null
null
""" Tests related to :class:`.SqliteWrapper` / :class:`.ExampleWrapper` """ # from unittest import TestCase from tests.base import * class TestSQLiteWrapper(PrivexDBTestBase): def test_tables_created(self): w = self.wrp self.assertEqual(w.db, ':memory:') tables = w.list_tables() ...
31.242718
97
0.579863
3,082
0.957738
0
0
0
0
0
0
588
0.182722
be00d24937df6595d3c59f1ae767515161b8f7ef
5,320
py
Python
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/strumpack/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Strumpack(CMakePackage, CudaPackage): """STRUMPACK -- STRUctured Matrix PACKage - provides...
42.56
95
0.638346
5,099
0.958459
0
0
0
0
0
0
2,950
0.554511
be011eb0f4bc43a928140f63592325792f0414b5
6,318
py
Python
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
actionserver/actions/action_feedbackform.py
Ajju2211/frendy-bot
b86a7a3cb3fb54b300ad9b870defb947f22dc146
[ "Apache-2.0" ]
null
null
null
from typing import Any, Text, Dict, List, Union from rasa_sdk import Action, Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction from rasa_sdk.events import UserUtteranceReverted, UserUttered, FollowupAction # from rasa_core.events import (UserUtteranceReverted, UserUttered...
37.832335
181
0.597341
4,166
0.659386
0
0
176
0.027857
0
0
2,047
0.323995
be01c82117aa2911b241e39136b462d24502c315
793
py
Python
dash/graphs.py
fuzzylabs/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
5
2020-09-04T13:49:41.000Z
2021-07-30T02:33:49.000Z
dash/graphs.py
archena/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
2
2020-09-24T07:55:43.000Z
2020-09-24T09:30:19.000Z
dash/graphs.py
archena/wearable-my-foot
5e7d818fc51a3d3babbe1c0ec49450b1a1f030c6
[ "Apache-2.0" ]
1
2021-03-04T03:18:37.000Z
2021-03-04T03:18:37.000Z
import plotly.graph_objs as go class GraphsHelper: template = "plotly_dark" ''' Generate a plot for a timeseries ''' def generate_timeseries_plot(self, dataframe): pressure_plots = [] for sensor in ["p1", "p2", "p3"]: series = dataframe[sensor] scatter = go....
29.37037
59
0.493064
760
0.958386
0
0
0
0
0
0
112
0.141236
be01e27689f95fbc7033b6a5da2ab015674dada0
2,909
py
Python
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-web/azure/mgmt/web/models/app_service_certificate_resource.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
38.786667
102
0.625645
2,401
0.82537
0
0
0
0
0
0
2,229
0.766243
be0243ad78899348119ce102fbea0418e12871e2
5,379
py
Python
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
telethon/tl/functions/stickers.py
polisitni1/DogeClickBot
ac57eaeefca2c6ab9e48458f9f928a6a421a162e
[ "MIT" ]
null
null
null
"""File generated by TLObjects' generator. All changes will be ERASED""" from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct if TYPE_CHECKING: from ...tl.types import TypeInputStickerSet, TypeInputUser, TypeInputStickerSetItem, TypeInputDocument cl...
31.641176
117
0.622421
5,050
0.938836
0
0
1,018
0.189255
128
0.023796
1,321
0.245585
be035d1ced1e70706ec7a59e81ecf6539a9f044b
3,960
py
Python
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/ChimeraApplication/tests/chimera_analysis_base_test.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
import KratosMultiphysics import KratosMultiphysics.KratosUnittest as UnitTest import KratosMultiphysics.ChimeraApplication from KratosMultiphysics.ChimeraApplication.fluid_chimera_analysis import FluidChimeraAnalysis class ChimeraAnalysisBaseTest(UnitTest.TestCase): def setUp(self): # Set to true to get ...
58.235294
114
0.474495
3,740
0.944444
0
0
0
0
0
0
3,222
0.813636
be045e37a15278ad4b76fd0b0f607b024e9f6bee
925
py
Python
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
2
2021-06-28T01:52:31.000Z
2021-06-28T02:21:18.000Z
parsers/rss10.py
side-beach-city/SBCLinkCopyTool
12ec16eefddac215e6a2be92464fde75677c8548
[ "Apache-2.0" ]
null
null
null
import urllib.request import xml.etree.ElementTree class RSS10Parser: def __init__(self, url: str) -> None: self.url = url def getlist(self) -> list[dict[str, str]]: ENTRY = r"{http://www.w3.org/2005/Atom}" MEDIA = r"{http://search.yahoo.com/mrss/}" YOUTUBE = r"{http://www.youtube.com/xml/schemas/...
37
129
0.655135
699
0.755676
0
0
0
0
0
0
321
0.347027
be04a0613039c84ca76bcc0ca57e9da1601cdaf5
403
py
Python
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
examples/laser.py
MPI-IS/reactive_pepper
079f9b0627bfd6c9e3f2a4466c95ad662002a600
[ "BSD-3-Clause" ]
null
null
null
import math,time,random import pepper_interface IP = "192.168.0.147" PORT = 9559 simulation = False with pepper_interface.get(IP,PORT,simulation) as pepper: time.sleep(1.0) values,time_stamp = pepper.laser.get() print print "Front" print values["Front"] print print "Left" print va...
14.392857
56
0.647643
0
0
0
0
0
0
0
0
55
0.136476
be04c82cd5f62929d01752841a8ec17a1254d468
291
py
Python
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_01_03_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importar a classe da língua inglesa (English) e criar um objeto nlp from ____ import ____ nlp = ____ # Processar o texto doc = ____("I like tree kangaroos and narwhals.") # Selecionar o primeiro token first_token = doc[____] # Imprimir o texto do primeito token print(first_token.____)
22.384615
69
0.75945
0
0
0
0
0
0
0
0
191
0.65411
be04f5e587c1b673bb12feefbad95d55e8558e6e
3,946
py
Python
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
tests/integration/mci/test_happy_path.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from tests.integration.create_token import create_token from tests.integration.integration_test_case import IntegrationTestCase class TestHappyPath(IntegrationTestCase): def test_happy_path_203(self): self.happy_path('0203', '1') def test_happy_path_205(self): self.happy_path('0205', '1') ...
40.265306
141
0.639635
3,815
0.966802
0
0
0
0
0
0
1,352
0.342625
be0508937eb9d9d5130de65137f4cd2a7335c162
70,784
py
Python
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-25T01:33:40.000Z
2022-03-25T01:33:40.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
OllieBroadhurst/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
1
2022-03-23T19:49:13.000Z
2022-03-23T19:49:13.000Z
src/transformers/models/hubert/modeling_tf_hubert.py
erichan1/transformers
12428f0ef15bb3631e7a5f04672ddb05f363de97
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. 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/...
42.461908
164
0.656575
52,284
0.738642
0
0
17,514
0.247429
0
0
20,923
0.295589
be05301485051b024d0504eecb5189daad437a58
3,242
py
Python
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
1
2020-05-19T13:29:18.000Z
2020-05-19T13:29:18.000Z
# 6.00 Problem Set 2 # # Hangman # Name : Solutions # Collaborators : <your collaborators> # Time spent : <total time> # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions import random import string WO...
32.42
108
0.604874
0
0
0
0
0
0
0
0
1,551
0.478408
be05ff012f40e6f5a4b594110683f58699e3309e
412
py
Python
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
top/api/rest/FenxiaoRefundMessageAddRequest.py
forestsheep/middleman
34d54f9ffd9d7bcd775a8dcce4f00dd6c5bb1acd
[ "MIT" ]
null
null
null
''' Created by auto_sdk on 2016.04.13 ''' from top.api.base import RestApi class FenxiaoRefundMessageAddRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.image = None self.message_content = None self.sub_order_id = None def getapiname(self): r...
24.235294
55
0.75
336
0.815534
0
0
0
0
0
0
102
0.247573
be071e34802c8618edb66a1241ddd2e7d443b843
3,316
py
Python
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
image-generation/slegan/args.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group 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 requi...
42.512821
91
0.606454
0
0
0
0
0
0
0
0
1,459
0.439988
be077745c0ef294c19a02fb08ff66ab17f79fb99
898
py
Python
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
day1/files_ex1.py
grenn72/pynet-ons-feb19
5aff7dfa6a697214dc24818819a60b46a261d0d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function # READ #### f = open("my_file.txt") print("\nLoop directly over file") print("-" * 60) for line in f: print(line.strip()) print("-" * 60) f.seek(0) my_content = f.readlines() print("\nUse readlines method") print("-" * 60) for line in my_content: pri...
18.708333
42
0.614699
0
0
0
0
0
0
0
0
315
0.35078
be09ed482ae6fd03e6f106d0795f2a118eb2425c
2,332
py
Python
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
test/integration_tests/test_integration_datasets_client.py
self-host/selfhost-python-client
95797ef819099174d916b10e82878c370b1cd972
[ "MIT" ]
null
null
null
import uuid from typing import List, Dict, Any import unittest from selfhost_client import SelfHostClient, DatasetType class TestIntegrationDatasetsClient(unittest.TestCase): """ Run these tests individually because Self-Host will return HTTP 429 Too Many Requests otherwise. """ @classmethod de...
36.4375
100
0.653945
2,208
0.946827
0
0
593
0.254288
0
0
437
0.187393
be09ff199c76d0416c7ca2377918a44850900a71
909
py
Python
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
setup.py
pnxenopoulos/soccer-data-gen
bdc31be973eb12cdd9f58b04ab61ea9d5d1aa7a5
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="soccergen", version="0.1", packages=find_packages(), # Project uses reStructuredText, so ensure that the docutils get # installed or upgraded on the target machine install_requires=["gfootball>=2.8",], # metadata to display on PyPI ...
39.521739
87
0.693069
0
0
0
0
0
0
0
0
600
0.660066
be0a74b4d28b5ee5afbbd8993134c1568bbdff10
6,516
py
Python
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
metaspace/engine/sm/engine/tests/test_fdr.py
METASPACE2020/METASPACE
e1acd9a409f84a78eed7ca9713258c09b0e137ca
[ "Apache-2.0" ]
null
null
null
from itertools import product from unittest.mock import patch import pytest import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal from sm.engine.annotation.fdr import FDR, run_fdr_ranking from sm.engine.formula_parser import format_modifiers FDR_CONFIG = {'decoy_sample_size': 2} ...
32.58
121
0.558778
0
0
0
0
1,985
0.304635
0
0
1,069
0.164058
be0b585df12c7b4d77e31edbf4786b2ef1e4a31b
69
py
Python
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
tests/__init__.py
acarl005/plotille
44089a88f20b71b3314416947ae724bebbdc7739
[ "MIT" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
from logging import getLogger getLogger('flake8').propagate = False
17.25
37
0.797101
0
0
0
0
0
0
0
0
8
0.115942
be0c9d39fc49b73642a31f8fb89de4fff31f8d63
4,576
py
Python
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
null
null
null
umigame/nlp/labelling.py
penguinwang96825/Umigame
98d647ab6f40df08fe31d6b3bc444afe229a914e
[ "Apache-2.0" ]
1
2021-11-01T14:35:32.000Z
2021-11-01T14:35:32.000Z
import math import numpy as np import pandas as pd def fixed_time_horizon(df, column='close', lookback=20): """ Fixed-time Horizon As it relates to finance, virtually all ML papers label observations using the fixed-time horizon method. Fixed-time horizon is presented as one of the main procedures to ...
37.508197
124
0.647072
0
0
0
0
0
0
0
0
2,666
0.582605
be0d1242d33adfcfc290ba70e3637aa993c895e3
4,164
py
Python
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
3
2020-02-03T11:58:51.000Z
2020-10-20T03:52:21.000Z
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
null
null
null
mayan/apps/converter/api.py
Dave360-crypto/mayan-edms
9cd37537461347f79ff0429e4b8b16fd2446798d
[ "Apache-2.0" ]
2
2020-10-24T11:10:06.000Z
2021-03-03T20:05:38.000Z
from __future__ import absolute_import import hashlib import logging import os from django.utils.encoding import smart_str from common.conf.settings import TEMPORARY_DIRECTORY from common.utils import fs_cleanup from .exceptions import OfficeConversionError, UnknownFileFormat from .literals import (DEFAULT_PAGE_NUM...
32.53125
180
0.68828
0
0
0
0
0
0
0
0
350
0.084054
be0d8286d98d561dd73b8ad4757e80b16c93f068
2,798
py
Python
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
LogisticRegression/learn.py
ValYouW/DeepLearningCourse
d7d9edc60075f9078ec3f41074c958eaa7854964
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import utils def plot_data(x_mat, y, db_x, db_y): plt.figure() plt.title('Data') admitted = (y == 1).flatten() rejected = (y == 0).flatten() # plot decision boundary plt.plot(db_x, db_y) # plot admitted...
32.534884
105
0.605075
0
0
0
0
0
0
0
0
1,017
0.363474
be0d8c6e88406117103733f22d2fc8dd5f14eae8
30,231
py
Python
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
4,119
2017-11-23T18:10:37.000Z
2022-03-31T05:31:27.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
1,838
2017-11-24T11:19:25.000Z
2022-03-31T09:08:18.000Z
ignite/handlers/time_profilers.py
iamhardikat11/ignite
0666b407f7cdba81842014c6026e33b66113bb94
[ "BSD-3-Clause" ]
691
2017-11-24T10:57:33.000Z
2022-03-29T02:19:44.000Z
import functools from collections import OrderedDict from typing import Any, Callable, Dict, List, Mapping, Sequence, Tuple, Union, cast import torch from ignite.engine import Engine, EventEnum, Events from ignite.handlers.timing import Timer class BasicTimeProfiler: """ BasicTimeProfiler can be used to pro...
38.412961
119
0.582978
29,980
0.991697
0
0
8,922
0.295128
0
0
10,398
0.343952
be0e7ba87c886d267ec11352e01c184c5af3e8dc
9,671
py
Python
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
bellmanford.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
""" Bellman Ford Arbitrage implementation over websocket API. """ from __future__ import annotations from collections import namedtuple from datetime import datetime from decimal import Decimal from math import log import pandas as pd import numpy as np import asyncio import typing from aiokraken.model.assetpair imp...
39.798354
156
0.58722
2,889
0.298728
0
0
0
0
5,262
0.544101
3,152
0.325923
be0fe0b9b27dc32e6433b7115d2cc69a3736598b
362
py
Python
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
128
2021-03-04T21:54:04.000Z
2022-03-17T22:53:20.000Z
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
4
2021-03-07T21:18:12.000Z
2021-09-24T13:09:39.000Z
custom_components/snowtire/__init__.py
borys-kupar/smart-home
f9c5ac949106e09278b97f49d5e08f0d495b24ef
[ "MIT" ]
15
2021-03-05T07:29:31.000Z
2022-03-31T10:07:06.000Z
# # Copyright (c) 2020, Andrey "Limych" Khrolenok <[email protected]> # Creative Commons BY-NC-SA 4.0 International Public License # (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) # """ The Snowtire binary sensor. For more details about this platform, please refer to the documentation at h...
30.166667
74
0.743094
0
0
0
0
0
0
0
0
356
0.983425
be0fff91b15ea92d0c10da9f061370eeda2b8af8
23,079
py
Python
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
3,019
2015-01-04T23:19:03.000Z
2022-03-31T12:55:46.000Z
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
818
2015-01-05T10:15:57.000Z
2022-03-07T19:30:28.000Z
tests/test_bayes_classifier.py
manishgit138/pomegranate
3457dcefdd623483b8efec7e9d87fd1bf4c115b0
[ "MIT" ]
639
2015-01-05T04:16:42.000Z
2022-03-29T11:08:00.000Z
from __future__ import (division) from pomegranate import * from pomegranate.io import DataGenerator from pomegranate.io import DataFrameGenerator from nose.tools import with_setup from nose.tools import assert_almost_equal from nose.tools import assert_equal from nose.tools import assert_not_equal from nose.tools im...
32.597458
126
0.716669
0
0
0
0
18,547
0.803631
0
0
241
0.010442
be10e301876952317779fb802d1ea27b44f1342a
2,188
py
Python
ks_engine/variable_scoring.py
FilippoRanza/ks.py
47d909fb70fec50f8d3174855bf5d0c05527bf03
[ "MIT" ]
2
2021-01-29T11:45:39.000Z
2022-03-10T03:17:12.000Z
ks_engine/variable_scoring.py
Optimization-Algorithms/ks.py
44890d33a744c5c4865b96f97efc1e5241b719b1
[ "MIT" ]
1
2020-05-12T16:18:34.000Z
2020-05-12T16:18:34.000Z
ks_engine/variable_scoring.py
Optimization-Algorithms/ks.py
44890d33a744c5c4865b96f97efc1e5241b719b1
[ "MIT" ]
1
2021-01-29T11:45:45.000Z
2021-01-29T11:45:45.000Z
#! /usr/bin/python from .solution import Solution try: import gurobipy except ImportError: print("Gurobi not found: error ignored to allow tests") def variable_score_factory(sol: Solution, base_kernel: dict, config: dict): if config.get("VARIABLE_RANKING"): output = VariableRanking(sol, base_ker...
27.012346
86
0.65128
1,286
0.587751
0
0
0
0
0
0
84
0.038391
be139101ad7d93480666b4065956e230585c96d9
1,180
py
Python
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
7
2019-10-04T07:27:41.000Z
2021-06-07T04:39:18.000Z
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
64
2019-10-07T12:40:56.000Z
2022-02-17T18:44:37.000Z
src/fetchcode/vcs/pip/_internal/utils/entrypoints.py
quepop/fetchcode
ac2461bdf7a249d8815987b4d421dbc615c043b9
[ "Apache-2.0" ]
16
2019-10-04T08:48:12.000Z
2021-06-11T01:22:56.000Z
import sys from fetchcode.vcs.pip._internal.cli.main import main from fetchcode.vcs.pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import Optional, List def _wrapper(args=None): # type: (Optional[List[str]]) -> int """Central wrapper for all old entrypoints. ...
36.875
79
0.710169
0
0
0
0
0
0
0
0
839
0.711017
be145918e072dc9949c9e4a6667701e412064948
7,896
py
Python
Support/Make_Documentation.py
bvbohnen/x4-projects
2c9db75a720ddb52ddb9e4160c330d7bb1986aa3
[ "MIT" ]
24
2020-04-11T18:43:01.000Z
2022-02-23T11:02:02.000Z
Support/Make_Documentation.py
abouquet/x4-projects
27ba6d2faaab95cfb9114bccb41fadbfe56443b7
[ "MIT" ]
10
2020-04-11T07:50:33.000Z
2022-03-31T05:01:35.000Z
Support/Make_Documentation.py
abouquet/x4-projects
27ba6d2faaab95cfb9114bccb41fadbfe56443b7
[ "MIT" ]
8
2020-04-24T05:21:55.000Z
2022-03-26T03:02:13.000Z
''' Support for generating documentation readmes for the extensions. Extracts from decorated lua block comments and xml comments. ''' from pathlib import Path from lxml import etree import sys from itertools import chain project_dir = Path(__file__).resolve().parents[1] # Set up an import from the customizer for som...
31.967611
86
0.58498
0
0
0
0
0
0
0
0
3,498
0.443009
be14596b5522e0877a99c1e6b243c1003263e5ff
71
py
Python
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
null
null
null
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
null
null
null
Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py
alex-dsouza777/Python-Basics
8f1c406f2319cd65b5d54dfea990d09fa69d9adf
[ "MIT" ]
1
2021-04-21T10:23:08.000Z
2021-04-21T10:23:08.000Z
#Addition of two numbers a = 30 b = 17 print("Sum of a and b is",a + b)
17.75
32
0.633803
0
0
0
0
0
0
0
0
43
0.605634
be15fa91cd3274065ddb261552f8c0f2ea292fcd
2,960
py
Python
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
curso 1/04 - caixa de texto/a4.py
andersonssh/aprendendo-pyqt5
d15ad7378d4573410c11fc39042df19048c656e4
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import (QApplication, QMainWindow, QPushButton, QToolTip, QLabel, QLineEdit) from PyQt5 import QtGui class Janela(QMainWindow): def __in...
31.489362
140
0.591216
2,541
0.858446
0
0
0
0
0
0
562
0.189865
be18b88ab1937677b7e3d5583d09538c7f91bce2
2,460
py
Python
pdf2write.py
codeunik/stylus_labs_write_pdf_importer
25d7aa037647a86284c24527bda7b222cf95bb62
[ "MIT" ]
null
null
null
pdf2write.py
codeunik/stylus_labs_write_pdf_importer
25d7aa037647a86284c24527bda7b222cf95bb62
[ "MIT" ]
null
null
null
pdf2write.py
codeunik/stylus_labs_write_pdf_importer
25d7aa037647a86284c24527bda7b222cf95bb62
[ "MIT" ]
null
null
null
import base64 import os import sys import PyPDF2 svg = '''<svg id="write-document" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect id="write-doc-background" width="100%" height="100%" fill="#808080"/> <defs id="write-defs"> <script type="text/writeconfig"> <int name="docFormatVer...
37.846154
230
0.667073
0
0
0
0
0
0
0
0
1,802
0.73252
be18cd8c90ebbd40ae9aadcbac8dd9bce504b9ec
2,462
py
Python
py_headless_daw/project/having_parameters.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
22
2020-06-09T18:46:56.000Z
2021-09-28T02:11:42.000Z
py_headless_daw/project/having_parameters.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
19
2020-06-03T06:34:57.000Z
2021-01-26T07:36:17.000Z
py_headless_daw/project/having_parameters.py
hq9000/py-headless-daw
33e08727c25d3f00b2556adf5f25c9f7ff4d4304
[ "MIT" ]
1
2020-06-18T09:25:21.000Z
2020-06-18T09:25:21.000Z
from typing import Dict, List, cast from py_headless_daw.project.parameter import Parameter, ParameterValueType, ParameterRangeType class HavingParameters: def __init__(self): self._parameters: Dict[str, Parameter] = {} super().__init__() def has_parameter(self, name: str) -> bool: ...
35.681159
107
0.644598
2,326
0.94476
0
0
101
0.041024
0
0
247
0.100325
be193942a6e1e90e82121a1e52ce25e1006effc3
488
py
Python
wasatch/ROI.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
9
2018-10-31T11:38:18.000Z
2021-11-23T19:20:54.000Z
wasatch/ROI.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
3
2018-11-01T10:28:53.000Z
2022-03-21T17:40:05.000Z
wasatch/ROI.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
4
2018-08-03T08:46:08.000Z
2022-03-23T01:09:27.000Z
## # This class encapsulates a Region Of Interest, which may be either horizontal # (pixels) or vertical (rows/lines). class ROI: def __init__(self, start, end): self.start = start self.end = end self.len = end - start + 1 def valid(self): return self.start >= 0 and self.start ...
27.111111
79
0.622951
367
0.752049
0
0
0
0
0
0
117
0.239754
be19a958423363abc9e04beed1c7e6d4e8b02233
8,562
py
Python
examples/python/oled_ssd1327.py
whpenner/upm
3168c61d8613da62ecc7598517a1decf533d5fe7
[ "MIT" ]
1
2017-09-22T01:41:30.000Z
2017-09-22T01:41:30.000Z
bsp/intel/peripheral/libupm/examples/python/oled_ssd1327.py
Keneral/ahardware
9a8a025f7c9471444c9e271bbe7f48182741d710
[ "Unlicense" ]
null
null
null
bsp/intel/peripheral/libupm/examples/python/oled_ssd1327.py
Keneral/ahardware
9a8a025f7c9471444c9e271bbe7f48182741d710
[ "Unlicense" ]
1
2018-02-24T19:09:04.000Z
2018-02-24T19:09:04.000Z
#!/usr/bin/python # Author: Zion Orent <[email protected]> # Copyright (c) 2015 Intel Corporation. # # 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 limi...
45.063158
77
0.68512
0
0
0
0
0
0
0
0
1,260
0.147162
be1bdf6fe279b2f8b2c141f3279c61f47199ae18
898
py
Python
digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py
juansdev/digital_image_processing
a0fe429c0664d81063dc76502a3e4874eea901a7
[ "MIT" ]
1
2022-03-22T03:37:44.000Z
2022-03-22T03:37:44.000Z
digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py
juansdev/digital_image_processing
a0fe429c0664d81063dc76502a3e4874eea901a7
[ "MIT" ]
null
null
null
digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py
juansdev/digital_image_processing
a0fe429c0664d81063dc76502a3e4874eea901a7
[ "MIT" ]
null
null
null
from .bernsen import bernsen_thresholding_method from .bradley_roth import bradley_thresholding_method from .contrast import contrast_thresholding_method from .feng import feng_thresholding_method from .gaussian import threshold_value_gaussian from .johannsen import johannsen_thresholding_method from .kapur import kapu...
44.9
58
0.894209
0
0
0
0
0
0
0
0
0
0
be1d04203f18e6f16b60a723e614122b48a08671
1,097
py
Python
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import os from kombu import Queue, Exchange ## Broker settings. BROKER_URL = os.getenv('BROKER_URL', 'amqp://guest:guest@localhost:5672') #BROKER_URL = "amqp://guest:guest@localhost:5672/" #BROKER_URL = os.getenv('BROKER_URL', 'redis://guest@localhost:6379') #BROKER_HOST = "localhost" #BROKER_PORT = 27017 #BROKER_TRA...
30.472222
76
0.739289
0
0
0
0
0
0
0
0
761
0.69371
be1d72eb89ee80a827a9a1150e2c759579770b36
21,106
py
Python
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
timesheet.py
dgollub/timesheet-google-thingy
3ffab402444dba520ff3416b2327f6d2ceeeac39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # from __future__ import print_function import csv import os import re import sys import arrow from gsheets import Sheets CURRENT_PATH = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) DEBUG = os.environ.get('DEBUG', "0") == "1" AS_CSV = os.environ.get('CSV', "0") == "1" COL...
34.6
158
0.588032
0
0
0
0
0
0
0
0
4,750
0.225054
be1da4c3a9cd8b6f92a68b6f9d9dd0277f9d55ce
7,578
py
Python
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
league/game.py
Orpheon/All-in
016901953904250226f388422318ef2f739bf82e
[ "MIT" ]
null
null
null
import numpy as np import pickle import treys import constants FULL_DECK = np.array(treys.Deck.GetFullDeck()) class GameEngine: def __init__(self, BATCH_SIZE, INITIAL_CAPITAL, SMALL_BLIND, BIG_BLIND, logger): self.BATCH_SIZE = BATCH_SIZE self.INITIAL_CAPITAL = INITIAL_CAPITAL self.SMALL_BLIND = SMALL_...
44.05814
133
0.684613
7,465
0.984828
0
0
0
0
0
0
1,381
0.18219
be1dddb28d3c0ea4aa8ef940a579e9c73af88093
2,487
py
Python
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
cms/admin/views.py
miloprice/django-cms
c6f548f0983a7488609e07a57552b47675d8d78e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from cms.models import Page, Title, CMSPlugin, Placeholder from cms.utils import get_language_from_request from django.http import Http404 from django.shortcuts import get_object_or_404 def revert_plugins(request, version_id, obj): from reversion.models import Version version = get_obj...
36.573529
101
0.62686
0
0
0
0
0
0
0
0
188
0.075593
be1f1730e3c83173cbfa65bc65d2316eb598bfbe
4,127
py
Python
delete.py
lvwuyunlifan/crop
7392d007a8271ff384c5c66ed5717afbc4172b4d
[ "Apache-2.0" ]
null
null
null
delete.py
lvwuyunlifan/crop
7392d007a8271ff384c5c66ed5717afbc4172b4d
[ "Apache-2.0" ]
null
null
null
delete.py
lvwuyunlifan/crop
7392d007a8271ff384c5c66ed5717afbc4172b4d
[ "Apache-2.0" ]
null
null
null
import os from PIL import Image, ImageFilter import matplotlib.pyplot as plt import matplotlib.image as mpimg # import seaborn as sns import pandas as pd import numpy as np import random train_path = './AgriculturalDisease_trainingset/' valid_path = './AgriculturalDisease_validationset/' def genImage(gpath, datatyp...
35.886957
83
0.557063
0
0
0
0
0
0
0
0
1,258
0.292218
be1f5618419f3d6206980e4841ac306ca5a5ac13
854
py
Python
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
1
2021-08-20T11:47:51.000Z
2021-08-20T11:47:51.000Z
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
null
null
null
数据分析/matplotlib/03.demo.py
likedeke/python-spider-study
09bee3cbe833234a86efcc28d62ace000e2fbb4b
[ "Apache-2.0" ]
null
null
null
# - - - - - - - - - - - # @author like # @since 2021-02-23 11:08 # @email [email protected] # 十点到十二点的气温变化 from matplotlib import pyplot as plt from matplotlib import rc from matplotlib import font_manager import random x = range(0, 120) y = [random.randint(20, 35) for i in range(120)] plt.figure(figsize=(20, 8), dp...
23.722222
80
0.696721
0
0
0
0
0
0
0
0
361
0.379202
be1f96521bb4c93e3fbc514880ddde1a151dfa0d
1,351
py
Python
testing/vcs/test_vcs_isoline_labels.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
testing/vcs/test_vcs_isoline_labels.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
testing/vcs/test_vcs_isoline_labels.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
import os, sys, cdms2, vcs, vcs.testing.regression as regression dataset = cdms2.open(os.path.join(vcs.sample_data,"clt.nc")) data = dataset("clt") canvas = regression.init() isoline = canvas.createisoline() isoline.label="y" texts=[] colors = [] for i in range(10): text = canvas.createtext() text.color = 50 +...
29.369565
87
0.721688
0
0
0
0
0
0
0
0
257
0.190229
be204f98e2c8943df601cdf5f75bb96f08fc6392
34,671
py
Python
src/Python_version/ICE_py36.py
ds-utilities/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
2
2019-08-05T08:26:38.000Z
2020-05-16T14:10:00.000Z
src/Python_version/ICE_py36.py
postyear/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
null
null
null
src/Python_version/ICE_py36.py
postyear/ICE
9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f
[ "MIT" ]
2
2020-05-16T14:10:01.000Z
2021-02-09T20:05:46.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 5 05:47:03 2018 @author: zg """ import numpy as np #from scipy import io import scipy.io #import pickle from sklearn.model_selection import StratifiedKFold #import sklearn from scipy.sparse import spdiags from scipy.spatial import distance #impo...
31.348101
93
0.551123
0
0
0
0
0
0
0
0
18,959
0.546826
be20c61ee255e8ce67c5713e68e8dff144cc5ef4
44,105
py
Python
xc/common/utils/prjxray_routing_import.py
FireFox317/symbiflow-arch-defs
f0e7b4212544e1d55da776fb7a2ff79117e01454
[ "ISC" ]
1
2020-09-23T17:57:07.000Z
2020-09-23T17:57:07.000Z
xc/common/utils/prjxray_routing_import.py
tcal-x/symbiflow-arch-defs
1e513ac778371608c51fa86a98e54279e3c74752
[ "ISC" ]
null
null
null
xc/common/utils/prjxray_routing_import.py
tcal-x/symbiflow-arch-defs
1e513ac778371608c51fa86a98e54279e3c74752
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 """ Imports 7-series routing fabric to the rr graph. For ROI configurations, this also connects the synthetic IO tiles to the routing node specified. Rough structure: Add rr_nodes for CHANX and CHANY from the database. IPIN and OPIN rr_nodes should already be present from the input rr_graph. ...
30.375344
90
0.590114
0
0
2,481
0.056252
1,969
0.044643
0
0
12,494
0.283279
be20fd972c9533d7359e606c8ff9c31f5c519ad2
17,854
py
Python
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py
andrewbowen19/ClusterEclipsingBinaries
e554cb6bb613e0d3703314e50fcf5289f50bf572
[ "MIT" ]
null
null
null
######################### ######################### # Need to account for limit in input period ######################### ######################### # Baseline M67 long script -- NO crowding # New script copied from quest - want to take p and ecc from each population (all, obs, rec) and put them into separate file # Do...
35.284585
213
0.641089
0
0
0
0
0
0
0
0
5,571
0.312031
be21dcede1ec1af84c0ccb9e8297bd042d23271a
1,712
py
Python
CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms import os process = cms.Process("summary") process.MessageLogger = cms.Service( "MessageLogger", debugModules = cms.untracked.vstring( "*" ), cout = cms.untracked.PSet( threshold = cms.untracked.string( ...
38.044444
110
0.733645
0
0
0
0
0
0
0
0
812
0.474299
be237e880ccb11dff8fac9488a75005cce1dd897
381
py
Python
django/authentication/api/urls.py
NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project
f29ed189b988a2d46d76b3c58cf77d1ed58ca64d
[ "MIT" ]
2
2021-05-13T18:02:00.000Z
2022-03-30T19:53:38.000Z
django/authentication/api/urls.py
NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project
f29ed189b988a2d46d76b3c58cf77d1ed58ca64d
[ "MIT" ]
null
null
null
django/authentication/api/urls.py
NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project
f29ed189b988a2d46d76b3c58cf77d1ed58ca64d
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, TokenVerifyView ) urlpatterns = [ path('obtain/', TokenObtainPairView.as_view(), name='token_obtain_pair'), path('refresh/', TokenRefreshView.as_view(), name='token_refresh'), path('...
29.307692
77
0.734908
0
0
0
0
0
0
0
0
76
0.199475
be23b9cced5e521037b8711e7bde05f5d17925f0
7,257
py
Python
yue/core/explorer/ftpsource.py
nsetzer/YueMusicPlayer
feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf
[ "MIT" ]
null
null
null
yue/core/explorer/ftpsource.py
nsetzer/YueMusicPlayer
feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf
[ "MIT" ]
null
null
null
yue/core/explorer/ftpsource.py
nsetzer/YueMusicPlayer
feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf
[ "MIT" ]
1
2019-03-06T14:29:27.000Z
2019-03-06T14:29:27.000Z
from ftplib import FTP,error_perm, all_errors import posixpath from io import BytesIO,SEEK_SET from .source import DataSource import sys import re reftp = re.compile('(ssh|ftp)\:\/\/(([^@:]+)?:?([^@]+)?@)?([^:]+)(:[0-9]+)?\/(.*)') def parseFTPurl( url ): m = reftp.match( url ) if m: g = m.groups() ...
27.384906
83
0.539893
6,339
0.873501
0
0
0
0
0
0
1,685
0.23219
be23cbbbbbb53c2c62b109846cda81e757eb1b58
14,527
py
Python
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
tests/engine/knowledge_base.py
roshanmaskey/plaso
637856f578eb4bc81f62b97d7f483f69314e7f47
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the knowledge base.""" import unittest from plaso.containers import artifacts from plaso.engine import knowledge_base from tests import test_lib as shared_test_lib class KnowledgeBaseTest(shared_test_lib.BaseTestCase): """Tests for the knowledge base.""...
37.153453
79
0.748537
14,250
0.980932
0
0
0
0
0
0
3,773
0.259723
be247dcc0b3afb4ed9e9527cdfcf9da7e14edb83
2,244
py
Python
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/140. Word Break II.py
BYJRK/LeetCode-Solutions
008467e1717309066a519acb8623d2f84071b64a
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/word-break-ii/ from typing import List class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> List[str]: # 做一个快速的检查,如果 s 中存在所有 word 都不包含的字母,则直接退出 set1 = set(s) set2 = set(''.join(wordDict)) if not set1.issubset(set2): retur...
29.142857
162
0.483512
1,958
0.769049
0
0
0
0
0
0
982
0.385703
be260edf2b0780a31f443fdc8e024043c1398df0
30,595
py
Python
neutron/tests/unit/db/test_migration.py
banhr/neutron
4b3e73648327ce9f4d3437986a8663372f577f1b
[ "Apache-2.0" ]
1
2018-07-04T07:59:31.000Z
2018-07-04T07:59:31.000Z
neutron/tests/unit/db/test_migration.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/db/test_migration.py
weiqiLee/neutron
ddc72ebd41a0e7804b33a21583d3add008191229
[ "Apache-2.0" ]
1
2018-08-28T17:13:16.000Z
2018-08-28T17:13:16.000Z
# Copyright 2012 New Dream Network, LLC (DreamHost) # 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 # # ...
40.469577
79
0.610557
29,237
0.955614
0
0
12,368
0.404249
0
0
5,402
0.176565
be26276b9a7545ff4607b3e77287b80155ccbf7d
959
py
Python
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
23
2016-09-07T06:13:37.000Z
2022-02-17T23:49:03.000Z
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
null
null
null
withdrawal/floor_ceiling.py
hoostus/prime-harvesting
6606b94ea7859fbf217dbea4ace856e3fa4d154e
[ "BlueOak-1.0.0", "Apache-2.0" ]
12
2016-06-30T17:27:39.000Z
2021-12-12T07:54:27.000Z
from decimal import Decimal from .abc import WithdrawalStrategy # Bengen's Floor-to-Ceiling, as described in McClung's Living Off Your Money class FloorCeiling(WithdrawalStrategy): def __init__(self, portfolio, harvest_strategy, rate=.05, floor=.9, ceiling=1.25): super().__init__(portfolio, harvest_strate...
30.935484
91
0.693431
815
0.849844
0
0
0
0
0
0
76
0.079249
be2647506be1ffc3fcefa8eacc15a737776b73ab
8,288
py
Python
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
20190426/6_BME280_WiFi/bme280.py
rcolistete/MicroPython_MiniCurso_ProjOrientado
c82affe833587141c4c05ee08ea84b095bfe845f
[ "MIT" ]
null
null
null
""" MicroPython driver for Bosh BME280 temperature, pressure and humidity I2C sensor: https://www.bosch-sensortec.com/bst/products/all_products/bme280 Authors: Nelio Goncalves Godoi, Roberto Colistete Jr Version: 3.1.2 @ 2018/04 License: MIT License (https://opensource.org/licenses/MIT) """ import time from ustruct im...
33.554656
81
0.558518
7,512
0.906371
0
0
945
0.11402
0
0
651
0.078547
be2674ce54565aac0c872fd9c167bb04e3da2fda
9,749
py
Python
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
7
2020-10-05T18:20:16.000Z
2022-02-01T00:54:35.000Z
airflow/contrib/secrets/hashicorp_vault.py
colpal/airfloss
1857cf309b69d4c2d60e9bb67f731eb01d0ecda1
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-10-21T03:22:43.000Z
2020-10-21T03:22:43.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.452282
102
0.647656
8,587
0.880808
0
0
1,897
0.194584
0
0
5,188
0.532157
be27d0cf506bd514ef2b8fd412eba196789b1b66
6,347
py
Python
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py
AdamCoscia/eve-trajectory-mining
134f142a5665f66fbf92aada8dd6252fab64ddff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Computes distance between killmails by text similarity. Edit Distance Metrics - Levenshtein Distance - Damerau-Levenshtein Distance - Jaro Distance - Jaro-Winkler Distance - Match Rating Approach Comparison - Hamming Distance Vector Distance Metrics - Jaccard Similarity - Cosine Distance W...
37.556213
92
0.669293
0
0
0
0
0
0
0
0
3,564
0.561525
be28146fdfcf8ed2a16239294869650841f46a74
1,181
py
Python
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
6
2020-08-13T13:02:58.000Z
2022-02-10T02:21:49.000Z
src/chess/utils.py
Dalkio/custom-alphazero
e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db
[ "MIT" ]
null
null
null
import numpy as np from itertools import product from typing import List from src.config import ConfigChess from src.chess.board import Board from src.chess.move import Move def get_all_possible_moves() -> List[Move]: all_possible_moves = set() array = np.zeros((ConfigChess.board_size, ConfigChess.board_size...
36.90625
99
0.686706
0
0
0
0
0
0
0
0
135
0.11431
be2868ed0261dc37f256c2a99990b52d127544a4
1,845
py
Python
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
null
null
null
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
null
null
null
multirotor.py
christymarc/mfac
29449a0c79e618059fa6f67ae7ab76711543c513
[ "MIT" ]
1
2022-03-01T05:00:02.000Z
2022-03-01T05:00:02.000Z
from random import gauss class MultiRotor: """Simple vertical dynamics for a multirotor vehicle.""" GRAVITY = -9.81 def __init__( self, altitude=10, velocity=0, mass=1.54, emc=10.0, dt=0.05, noise=0.1 ): """ Args: altitude (float): initial altitude of the vehicle...
27.132353
86
0.566938
1,817
0.984824
0
0
0
0
0
0
852
0.461789
be286e006cd7ef8775677a3d599b4cc9bc55f723
6,329
py
Python
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
37
2019-01-06T02:52:38.000Z
2022-03-17T21:19:48.000Z
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
204
2018-09-05T22:55:33.000Z
2022-03-31T23:21:13.000Z
stpmex/client.py
cuenca-mx/stpmex-python
93f630cd05cea927b32f5aeb5f9b958c4ee91af9
[ "MIT" ]
20
2018-09-17T15:29:51.000Z
2022-02-03T06:29:32.000Z
import re from typing import Any, ClassVar, Dict, List, NoReturn, Union from cryptography.exceptions import UnsupportedAlgorithm from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from requests import Response, Session from .exc import ( AccountDoesNo...
34.026882
78
0.618739
2,871
0.45334
0
0
525
0.082899
0
0
1,132
0.178746
be288cac85f4b858cc1c87f0fce298bec6844670
4,770
py
Python
aql/tests/types/aql_test_list_types.py
menify/sandbox
32166c71044f0d5b414335b2b6559adc571f568c
[ "MIT" ]
null
null
null
aql/tests/types/aql_test_list_types.py
menify/sandbox
32166c71044f0d5b414335b2b6559adc571f568c
[ "MIT" ]
null
null
null
aql/tests/types/aql_test_list_types.py
menify/sandbox
32166c71044f0d5b414335b2b6559adc571f568c
[ "MIT" ]
null
null
null
import sys import os.path import timeit sys.path.insert( 0, os.path.normpath(os.path.join( os.path.dirname( __file__ ), '..') )) from aql_tests import skip, AqlTestCase, runLocalTests from aql.util_types import UniqueList, SplitListType, List, ValueListType #//=======================================================...
27.413793
88
0.469182
4,297
0.900839
0
0
0
0
0
0
789
0.165409
be2a32ef4dd37c381a36c7a58f2812962caeb4d5
502
py
Python
logger_application/logger.py
swatishayna/OnlineEDAAutomation
a1bfe8b1dee51a4872529a98f6e1136922329e3e
[ "MIT" ]
1
2022-03-24T20:26:44.000Z
2022-03-24T20:26:44.000Z
logger_application/logger.py
surajaiswal13/OnlineEDAAutomation
a1bfe8b1dee51a4872529a98f6e1136922329e3e
[ "MIT" ]
null
null
null
logger_application/logger.py
surajaiswal13/OnlineEDAAutomation
a1bfe8b1dee51a4872529a98f6e1136922329e3e
[ "MIT" ]
2
2022-02-08T16:35:32.000Z
2022-03-04T06:56:54.000Z
from datetime import datetime from src.utils import uploaded_file import os class App_Logger: def __init__(self): pass def log(self, file_object, email, log_message, log_writer_id): self.now = datetime.now() self.date = self.now.date() self.current_time = self.now.strftime("%H:...
27.888889
143
0.621514
423
0.842629
0
0
0
0
0
0
42
0.083665
be2a7a241325332e4117c63de7ba8c5d1c491871
332
py
Python
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
1
2019-05-28T15:59:35.000Z
2019-05-28T15:59:35.000Z
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
null
null
null
metasync/params.py
dstarikov/metavault
1933cc6cd828ee9c594a45a78238a9a319de0143
[ "MIT" ]
null
null
null
# config params KB = 1024 MB = 1024*KB GB = 1024*MB # name of meta root dir META_DIR = ".metasync" # batching time for daemon SYNC_WAIT = 3 # blob size BLOB_UNIT = 32*MB # Increase of Paxos proposal number PAXOS_PNUM_INC = 10 # authentication directory import os AUTH_DIR = os.path.join(os.path.expanduser("~"), "...
15.090909
61
0.713855
0
0
0
0
0
0
0
0
162
0.487952
be2be4ab8f891e1d119f0c6cbe7bc4c566727644
547
py
Python
py/tests/test_valid_parentheses.py
Dragonway/LeetCode
53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135
[ "MIT" ]
null
null
null
py/tests/test_valid_parentheses.py
Dragonway/LeetCode
53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135
[ "MIT" ]
null
null
null
py/tests/test_valid_parentheses.py
Dragonway/LeetCode
53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135
[ "MIT" ]
null
null
null
import unittest from py.tests.utils import test from py import valid_parentheses as vp class TestValidParentheses(unittest.TestCase): @test(vp.Solution.is_valid) def test_valid_parentheses(self) -> None: test("()", result=True) test("()[]{}", result=True) test("(]", ...
30.388889
46
0.521024
457
0.835466
0
0
405
0.740402
0
0
48
0.087751
be2c413f1972d5571cb52206e64c8dffe9762a99
2,503
py
Python
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
38
2021-09-05T13:59:11.000Z
2022-03-28T14:18:30.000Z
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
3
2021-11-25T08:21:01.000Z
2022-03-07T08:22:11.000Z
hitnet/hitnet.py
AchintyaSrivastava/HITNET-Stereo-Depth-estimation
90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166
[ "MIT" ]
5
2021-09-05T23:15:10.000Z
2022-02-10T08:32:00.000Z
import tensorflow as tf import numpy as np import time import cv2 from hitnet.utils_hitnet import * drivingStereo_config = CameraConfig(0.546, 1000) class HitNet(): def __init__(self, model_path, model_type=ModelType.eth3d, camera_config=drivingStereo_config): self.fps = 0 self.timeLastPrediction = time.time(...
25.804124
96
0.742709
2,339
0.934479
0
0
0
0
0
0
254
0.101478
be2cf6688bc9f36adc898b8d1394b2bd6f967ed1
854
py
Python
fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
6
2019-04-09T06:52:31.000Z
2021-08-31T04:31:59.000Z
fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
176
2019-01-11T21:05:50.000Z
2021-03-16T17:04:13.000Z
fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py
datamade/just-spaces
cc2b7d1518e5da65a403413d39a309fa3e2ac122
[ "MIT" ]
1
2019-05-10T15:30:25.000Z
2019-05-10T15:30:25.000Z
from django import forms from fobi.base import FormFieldPlugin, form_element_plugin_registry from .forms import HouseholdTenureForm class HouseholdTenurePlugin(FormFieldPlugin): """HouseholdTenurePlugin.""" uid = "household_tenure" name = "What year did you move into your current address?" form = H...
29.448276
70
0.686183
654
0.765808
0
0
0
0
0
0
171
0.200234
076c3b7d76dce4361980237fd24f6e7d24b9f302
368
py
Python
utils/scripts/OOOlevelGen/src/sprites/__init__.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/sprites/__init__.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
utils/scripts/OOOlevelGen/src/sprites/__init__.py
fullscreennl/monkeyswipe
c56192e202674dd5ab18023f6cf14cf51e95fbd0
[ "MIT" ]
null
null
null
__all__ = ['EnemyBucketWithStar', 'Nut', 'Beam', 'Enemy', 'Friend', 'Hero', 'Launcher', 'Rotor', 'SpikeyBuddy', 'Star', 'Wizard', 'EnemyEquipedRotor', 'CyclingEnemyObject', 'Joi...
21.647059
33
0.366848
0
0
0
0
0
0
0
0
160
0.434783
076ca6ec3c064417c645687635c5d40cf01c07b7
29,159
py
Python
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
1
2019-02-04T20:45:51.000Z
2019-02-04T20:45:51.000Z
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
null
null
null
code/trainer.py
mazzaAnt/StackGAN-v2
dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0
[ "MIT" ]
null
null
null
from __future__ import print_function from six.moves import range import torchvision.transforms as transforms import torch.backends.cudnn as cudnn import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim import torchvision.utils as vutils import numpy as np import os import ti...
41.360284
116
0.540245
21,291
0.730169
0
0
0
0
0
0
4,528
0.155287
076cc2a993643184f8804f5d69cb1769c80c9cee
5,654
py
Python
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
1
2021-11-11T08:20:13.000Z
2021-11-11T08:20:13.000Z
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
null
null
null
spletni_vmesnik.py
LeaHolc/recepcija
bff9f804e795e45c2da214432042c0ae067783b0
[ "MIT" ]
null
null
null
from bottle import TEMPLATE_PATH, route, run, template, redirect, get, post, request, response, auth_basic, Bottle, abort, error, static_file import bottle import controller from controller import dobi_parcele_za_prikaz, dobi_info_parcele, dodaj_gosta_na_rezervacijo, naredi_rezervacijo, dobi_rezervacijo_po_id, zakljuci...
37.693333
196
0.703926
0
0
0
0
5,208
0.921118
0
0
1,087
0.192253
076da057376eccf60a978162dbf694687eba8ff6
1,233
py
Python
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
2
2020-06-21T11:15:10.000Z
2021-12-03T08:08:45.000Z
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
1
2021-03-05T10:43:49.000Z
2021-03-05T10:43:49.000Z
espnet/nets/pytorch_backend/transducer/initializer.py
magictron/espnet
075cee8d586957241be3e54c47846fbb12a32310
[ "Apache-2.0" ]
2
2021-03-30T06:02:08.000Z
2021-08-06T06:59:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Parameter initialization for transducer RNN/Transformer parts.""" import six from espnet.nets.pytorch_backend.initialization import lecun_normal_init_parameters from espnet.nets.pytorch_backend.initialization import set_forget_bias_to_one from espnet.nets.pytorch_ba...
31.615385
83
0.697486
0
0
0
0
0
0
0
0
320
0.25953
076e350bd997dc6e64e333caef566c1b62991f65
970
py
Python
evaluate.py
adelmassimo/EM-Algorithm-for-MMPP
23ae031076a464bfba5286cf6b5a1fa5e1cc66b1
[ "MIT" ]
null
null
null
evaluate.py
adelmassimo/EM-Algorithm-for-MMPP
23ae031076a464bfba5286cf6b5a1fa5e1cc66b1
[ "MIT" ]
null
null
null
evaluate.py
adelmassimo/EM-Algorithm-for-MMPP
23ae031076a464bfba5286cf6b5a1fa5e1cc66b1
[ "MIT" ]
null
null
null
import model import numpy as np import datasetReader as df import main # Number of traces loaded T T = 1 # Generate traces traces_factory = df.DatasetFactory() traces_factory.createDataset(T) traces = traces_factory.traces P0 = np.matrix("[ .02 0;" "0 0 0.5;" "0 0 0]") P1 = np.matrix(...
23.095238
74
0.541237
0
0
0
0
0
0
0
0
167
0.172165
076ea8e320bea4958c4967806ffb3361e0b72568
2,400
py
Python
Imaging/Core/Testing/Python/TestHSVToRGB.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,755
2015-01-03T06:55:00.000Z
2022-03-29T05:23:26.000Z
Imaging/Core/Testing/Python/TestHSVToRGB.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
29
2015-04-23T20:58:30.000Z
2022-03-02T16:16:42.000Z
Imaging/Core/Testing/Python/TestHSVToRGB.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,044
2015-01-05T22:48:27.000Z
2022-03-31T02:38:26.000Z
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Use the painter to draw using colors. # This is not a pipeline object. It will support pipeline objects. # Please do not use this object directly. imageCanvas = vtk.vtkImageCanvasSource2D() imageCanvas.SetNumb...
34.285714
67
0.814583
0
0
0
0
0
0
0
0
288
0.12
076eec8de4f676b9d586492c7ab7750df189a96a
296
py
Python
kelas_2b/echa.py
barizraihan/belajarpython
57df4c939600dd34a519599d6c78178bfb55063b
[ "MIT" ]
null
null
null
kelas_2b/echa.py
barizraihan/belajarpython
57df4c939600dd34a519599d6c78178bfb55063b
[ "MIT" ]
null
null
null
kelas_2b/echa.py
barizraihan/belajarpython
57df4c939600dd34a519599d6c78178bfb55063b
[ "MIT" ]
null
null
null
import csv class echa: def werehousing(self): with open('kelas_2b/echa.csv', 'r') as csvfile: csv_reader = csv.reader(csvfile, delimiter=',') for row in csv_reader: print("menampilkan data barang:", row[0], row[1], row[2], row[3], row[4])
32.888889
93
0.567568
283
0.956081
0
0
0
0
0
0
51
0.172297
076f84eca9f11a3725b25d5cf7a8fa60fb6dd720
3,399
py
Python
tests/test_handler_surface_distance.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
tests/test_handler_surface_distance.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
tests/test_handler_surface_distance.py
dyollb/MONAI
9084c452c48095c82c71d4391b3684006e5a3c56
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# 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...
35.778947
120
0.692262
1,192
0.350691
0
0
0
0
0
0
1,056
0.31068
077018ad315b121efadde62952dbcb47369a343a
2,368
py
Python
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
benchmarks/eval.py
rom1mouret/anoflows
42381c06b8897e4510e73cda87ea97ea3f4a5579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import logging import yaml import pandas as pd import numpy as np from collections import defaultdict from sklearn.model_selection import train_test_split from sklearn.ensemble import IsolationForest from sklearn.impute import SimpleImputer from anoflows.hpo import find_best_flows ...
29.234568
94
0.678209
0
0
0
0
0
0
0
0
403
0.170186
07702a9eb4e9374ca232b483bdbecbfbdb1917c5
840
py
Python
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-02-25T15:28:47.000Z
2020-02-25T15:28:47.000Z
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-01-17T17:12:45.000Z
2020-01-17T17:12:45.000Z
pydantic/version.py
jamescurtin/pydantic
4f8f9396906a094626b770fb7cc8eecf03770ffe
[ "MIT" ]
1
2020-12-19T18:00:19.000Z
2020-12-19T18:00:19.000Z
__all__ = ['VERSION', 'version_info'] VERSION = '1.4a1' def version_info() -> str: import platform import sys from importlib import import_module from pathlib import Path from .main import compiled optional_deps = [] for p in ('typing-extensions', 'email-validator', 'devtools'): ...
27.096774
101
0.589286
0
0
0
0
0
0
0
0
210
0.25
0770f2a922548842dd4151e55d3fc69c6cf5b84c
2,319
py
Python
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
1
2016-09-15T16:19:27.000Z
2016-09-15T16:20:06.000Z
spire/core/registry.py
siq/spire
6365590277e9a6bfb6e4e0df5b2b47dba0f71711
[ "Linux-OpenIB" ]
null
null
null
from scheme import Structure __all__ = ('Configurable', 'Registry') class Configurable(object): """A sentry class which indicates that subclasses can establish a configuration chain.""" class Registry(object): """The unit registry.""" dependencies = {} schemas = {} units = {} @classmethod ...
34.61194
93
0.581285
2,246
0.968521
0
0
1,994
0.859853
0
0
140
0.060371
07710c963c7c958684d4d5e192f36678ee929e23
231
py
Python
oslo_devsupport/model/__init__.py
berrange/oslo.devsupport
463c5842e95c5f8a7009ab1041f290e3a1050a06
[ "Apache-1.1" ]
null
null
null
oslo_devsupport/model/__init__.py
berrange/oslo.devsupport
463c5842e95c5f8a7009ab1041f290e3a1050a06
[ "Apache-1.1" ]
null
null
null
oslo_devsupport/model/__init__.py
berrange/oslo.devsupport
463c5842e95c5f8a7009ab1041f290e3a1050a06
[ "Apache-1.1" ]
null
null
null
from .command import * from .database import * from .entrypoint import * from .group import * from .http import * from .messaging import * from .method import * from .operation import * from .stack import * from .threads import *
19.25
25
0.735931
0
0
0
0
0
0
0
0
0
0
0771ae571980aa4669298ae5f48b1ac83a19af96
2,953
py
Python
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
2
2020-10-05T08:52:01.000Z
2021-03-03T15:26:35.000Z
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
scripts/extract.py
nng555/fairseq
c9730a125825a85f33042e1b9fd1959b8ca829e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Extracts random constraints from reference files.""" import argparse import random import sys from sacrebleu imp...
31.752688
88
0.529292
0
0
0
0
0
0
0
0
489
0.165594
0773947b769d5f943efc051b2beaf2ee562da724
1,231
py
Python
AppImageBuilder/commands/file.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
AppImageBuilder/commands/file.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
AppImageBuilder/commands/file.py
gouchi/appimage-builder
40e9851c573179e066af116fb906e9cad8099b59
[ "MIT" ]
null
null
null
# Copyright 2020 Alexis Lopez Zubieta # # 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, publi...
31.564103
80
0.685621
557
0.452478
0
0
0
0
0
0
676
0.549147
0775eae440b3ed8a8de73f26dfbbc57343a6323d
6,670
py
Python
text_selection/analyse_zenon_scrape.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
text_selection/analyse_zenon_scrape.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
text_selection/analyse_zenon_scrape.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import csv import furl import json import re import sys from collections import defaultdict def filter_records_without_url(records: []) -> []: return [r for r in records if any(r.get("urls"))] def build_furl(url: str) -> furl.furl: try: ...
40.670732
192
0.669715
0
0
0
0
0
0
0
0
1,900
0.284858
07773d417997f41786d66f2eb9103478a102aad8
2,578
py
Python
src/python/twitter/pants/targets/java_antlr_library.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
1
2019-12-20T14:13:27.000Z
2019-12-20T14:13:27.000Z
src/python/twitter/pants/targets/java_antlr_library.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
null
null
null
src/python/twitter/pants/targets/java_antlr_library.py
wfarner/commons
42988a7a49f012665174538cca53604c7846ee86
[ "Apache-2.0" ]
1
2019-12-20T14:13:29.000Z
2019-12-20T14:13:29.000Z
# ================================================================================================== # Copyright 2012 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
44.448276
100
0.588053
1,567
0.607836
0
0
0
0
0
0
1,726
0.669511
0777dbaeb86425a933c2accd81e0d8dadd226bab
3,092
py
Python
bigml/tests/create_pca_steps_bck.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_pca_steps_bck.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
bigml/tests/create_pca_steps_bck.py
devs-cloud/python_ml
05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2018-2020 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
32.893617
83
0.698254
0
0
0
0
0
0
0
0
1,080
0.349288
077860d7dfef7192b10ddd84d4a9115cb45934f6
290
py
Python
config.py
Pasmikh/quiz_please_bot
2b619b359d8021be57b404525013c53403d6cde1
[ "MIT" ]
null
null
null
config.py
Pasmikh/quiz_please_bot
2b619b359d8021be57b404525013c53403d6cde1
[ "MIT" ]
null
null
null
config.py
Pasmikh/quiz_please_bot
2b619b359d8021be57b404525013c53403d6cde1
[ "MIT" ]
null
null
null
days_of_week = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday', 'Sunday'] operation = '' options = ['Info', 'Check-in/Out', 'Edit games', 'Back'] admins = ['admin1_telegram_nickname', 'admin2_telegram_nickname'] avail_days = [] TOKEN = 'bot_token' group_id = id_of_group_chat
41.428571
88
0.713793
0
0
0
0
0
0
0
0
167
0.575862
0778705078ff1aa67fe1ad3d2a88bc9581c13e09
2,331
py
Python
Chapter 8/sandwich-maker.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
4
2021-06-14T10:37:58.000Z
2021-12-30T17:49:17.000Z
Chapter 8/sandwich-maker.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
null
null
null
Chapter 8/sandwich-maker.py
ostin-r/automate-boring-stuff-solutions
78f0a2981e6520ff2907285e666168a0f35eba02
[ "FTL" ]
1
2021-07-29T15:26:54.000Z
2021-07-29T15:26:54.000Z
''' Austin Richards 2/20/21 sandwich-maker.py uses pyinputplus to validate user input for sandwich preferences ''' import pyinputplus as ip def get_cost(food_name): '''gets the cost of items in sandwich_builder''' food_dict = { 'sourdough':1.75, 'rye':2.0, 'wheat':1.50, 'whi...
33.3
96
0.62248
0
0
0
0
0
0
0
0
915
0.392535
0778aa1b06b2fda0447a13db0a273ce1b3e6b40f
2,021
py
Python
tests/core/test_headerupdater.py
My-Novel-Management/storybuilderunite
c003d3451e237f574c54a87ea7d4fd8da8e833be
[ "MIT" ]
1
2020-06-18T01:38:55.000Z
2020-06-18T01:38:55.000Z
tests/core/test_headerupdater.py
My-Novel-Management/storybuilder
1f36e56a74dbb55a25d60fce3ce81f3c650f521a
[ "MIT" ]
143
2019-11-13T00:21:11.000Z
2020-08-15T05:47:41.000Z
tests/core/test_headerupdater.py
My-Novel-Management/storybuilderunite
c003d3451e237f574c54a87ea7d4fd8da8e833be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' HeaderUpdater class test ======================== ''' import unittest from tests.testutils import print_testtitle, validate_with_fail from builder.commands.scode import SCode, SCmd from builder.containers.chapter import Chapter from builder.containers.episode import Episode from builder.con...
33.131148
66
0.597724
1,583
0.783276
0
0
97
0.047996
0
0
223
0.110341
0778ae783c1f5257a96e5e0972a23c96938e6782
682
py
Python
dotsDB/test_vlen_datasets.py
aernesto/Lab_DotsDB_Utilities
d8458b4126d80daeb5084234889fc6674158ea0f
[ "MIT" ]
1
2019-03-11T19:12:12.000Z
2019-03-11T19:12:12.000Z
dotsDB/test_vlen_datasets.py
aernesto/Lab_DotsDB_Utilities
d8458b4126d80daeb5084234889fc6674158ea0f
[ "MIT" ]
null
null
null
dotsDB/test_vlen_datasets.py
aernesto/Lab_DotsDB_Utilities
d8458b4126d80daeb5084234889fc6674158ea0f
[ "MIT" ]
1
2019-10-31T20:10:12.000Z
2019-10-31T20:10:12.000Z
import numpy as np import h5py filename = "test_vlen_datasets_np_bool.h5" rows = [np.array([np.True_, np.False_]), np.array([np.True_, np.True_, np.False_])] f = h5py.File(filename, 'x') # create file, fails if exists vlen_data_type = h5py.special_dtype(vlen=np.bool_) dset = f.create_dataset("vlen_matrix",...
22.733333
60
0.590909
0
0
0
0
0
0
0
0
99
0.145161
0779ab4524c7785b80eb2c94fee42447c65c7dbc
8,824
py
Python
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
1
2020-11-17T16:14:06.000Z
2020-11-17T16:14:06.000Z
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
null
null
null
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
1
2020-06-28T09:19:02.000Z
2020-06-28T09:19:02.000Z
import os, time import numpy as np import scipy.signal import scipy.misc import scipy.ndimage.filters import matplotlib.pyplot as plt import PIL from PIL import ImageDraw import angles import cv2 import SimpleITK as sitk def cvShowImage(imDisp, strName, strAnnotation='', textColor=(0, 0, 255), r...
24.241758
79
0.592248
0
0
0
0
0
0
0
0
970
0.109927
077a977fb0ed578109f21b4a8ba0c330e1e23efb
1,441
py
Python
weasyl/emailer.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
weasyl/emailer.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
weasyl/emailer.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import re from email.mime.text import MIMEText from smtplib import SMTP from weasyl import define, macro EMAIL_ADDRESS = re.compile(r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+\Z") def normalize_address(address): """ Converts an e-mail address to a consistent re...
26.685185
134
0.646079
0
0
0
0
0
0
0
0
565
0.392089
077ab159d3a90c5c7c3094919ba408b1a2cadaa4
663
py
Python
tests/test_missing_process.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
1
2021-07-31T10:06:50.000Z
2021-07-31T10:06:50.000Z
tests/test_missing_process.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
1
2021-05-05T18:15:48.000Z
2021-05-05T18:15:48.000Z
tests/test_missing_process.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
null
null
null
import pytest from rdflib import Graph, Namespace, Literal from rdflib.namespace import RDF, RDFS from sphinx_probs_rdf.directives import PROBS SYS = Namespace("http://example.org/system/") @pytest.mark.sphinx( 'probs_rdf', testroot='missing', confoverrides={'probs_rdf_system_prefix': str(SYS)}) def test_bui...
36.833333
153
0.764706
0
0
0
0
469
0.707391
0
0
220
0.331825
077afe0d8f015a761ad56ef674705600c184e8fe
1,721
py
Python
analysis_functionarcademix.py
thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis
e56e0e853aca4367ebf99ae18e920b80f39bd133
[ "MIT" ]
null
null
null
analysis_functionarcademix.py
thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis
e56e0e853aca4367ebf99ae18e920b80f39bd133
[ "MIT" ]
null
null
null
analysis_functionarcademix.py
thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis
e56e0e853aca4367ebf99ae18e920b80f39bd133
[ "MIT" ]
null
null
null
#analysis function for three level game def stat_analysis(c1,c2,c3): #ask question for viewing analysis of game analysis=input('\nDo you want to see your game analysis? (Yes/No) ') if analysis=='Yes': levels=['Level 1','Level 2','Level 3'] #calculating the score of levels l...
30.732143
72
0.613016
0
0
0
0
0
0
0
0
699
0.406159
077b64f9f341be6f03c89ac88afd5ce1383da321
2,246
py
Python
Hello_Cone.py
TechnoTanuki/Python_BMP
d6f7e7a4b74f7d6e8761d618c156d37c97726038
[ "MIT" ]
3
2022-02-24T15:46:43.000Z
2022-03-30T13:17:03.000Z
Hello_Cone.py
TechnoTanuki/Python_BMP
d6f7e7a4b74f7d6e8761d618c156d37c97726038
[ "MIT" ]
null
null
null
Hello_Cone.py
TechnoTanuki/Python_BMP
d6f7e7a4b74f7d6e8761d618c156d37c97726038
[ "MIT" ]
null
null
null
notice = """ Cone Demo ----------------------------------- | Copyright 2022 by Joel C. Alcarez | | [[email protected]] | |-----------------------------------| | We make absolutely no warranty | | of any kind, expressed or implied | |-----------------------------------| | This g...
38.724138
109
0.548531
0
0
0
0
0
0
0
0
1,068
0.475512
077c2964f05f1e340c5f354633e006236a1d9021
2,001
py
Python
analysis/training_curve_6D.py
AndrewKirby2/data_synthesis
656858137a348fd5dcb57bcd04bdfece2b9eac1b
[ "MIT" ]
null
null
null
analysis/training_curve_6D.py
AndrewKirby2/data_synthesis
656858137a348fd5dcb57bcd04bdfece2b9eac1b
[ "MIT" ]
null
null
null
analysis/training_curve_6D.py
AndrewKirby2/data_synthesis
656858137a348fd5dcb57bcd04bdfece2b9eac1b
[ "MIT" ]
null
null
null
""" Plot a training curve for the 6D data simulator of CT* """ import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import RBF, WhiteKernel, Matern from sklearn.metrics imp...
34.5
92
0.733633
0
0
0
0
0
0
0
0
580
0.289855