hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
f086e23326974385e58539f73f32221be9b737e8
507
py
Python
src/comex_stat/schema.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/schema.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/schema.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
import graphene import comex_stat.assets.schema class Query(comex_stat.assets.schema.Query, graphene.ObjectType): # This class will inherit from multiple Queries # as we begin to add more apps to our project class Meta: description = ("Essas são as operações possíveis de pesquisa e seus " + ...
31.6875
79
0.680473
c5c6a4f720f5e8d2fb8a759751fa88c691203178
4,164
py
Python
haas_lib_bundles/python/docs/examples/rfid_open_door/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/rfid_open_door/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/rfid_open_door/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
######### from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import network # Wi-Fi功能所在库 import ujson ################## from driver import SPI,GPIO,PWM import mfrc522 import utime import servo rfid_card = 0 mfrc522Dev = 0 buzzerobj = 0 servoObj = 0 ######### # 物联网平台连接标志位 iot_connected = False...
22.508108
75
0.623439
c5ea632580fc2bd003c5e5e02ae9d44f6aa8e6cb
12,314
py
Python
src/visitpy/visit_utils/src/qplot/scene.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/src/qplot/scene.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/src/qplot/scene.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: qplot/scene.py author: Cyrus Harrison <cyrush@llnl.gov> description: Qt based off...
40.37377
78
0.51072
a88d5d9a614c22467d9a5997b6190b57ee6260c8
1,498
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/meta_import/user_group_import_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/meta_import/user_group_import_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/meta_import/user_group_import_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter, Depends from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_meta.admin import UserGroupService from watchmen_meta.common import ask_meta_storage, ask_snowflake_generator from watchmen_model.admin import UserGroup, Use...
37.45
112
0.843124
a8d14ed3770850d56bade081199175db8e7d653b
851
py
Python
数据结构/NowCode/40_FindGreatestSumOfSubArray.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/40_FindGreatestSumOfSubArray.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/40_FindGreatestSumOfSubArray.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 连续子数组的最大和 class Solution: # def FindGreatestSumOfSubArray(self, array): # # write code here # maxSum = -99999 # for i in range(len(array)): # sum = 0 # for j in range(i, len(array)): # sum += array[j] # if sum > maxSum: # ...
28.366667
70
0.46416
4f62e622399c2f6e943f63b7356f0190748ae521
55,205
py
Python
Autovermietung_Frank.py
bc24/Autovermietung
3bde09a898fbb338a9256d5f6afee7516ad5dd00
[ "CNRI-Python" ]
null
null
null
Autovermietung_Frank.py
bc24/Autovermietung
3bde09a898fbb338a9256d5f6afee7516ad5dd00
[ "CNRI-Python" ]
null
null
null
Autovermietung_Frank.py
bc24/Autovermietung
3bde09a898fbb338a9256d5f6afee7516ad5dd00
[ "CNRI-Python" ]
null
null
null
""" Copyright 2019 Frank Panzer Python Projekt - Autovermietung Vorausgesetzt Installationen python -m pip install mysql-connector-python Quellen Modul MySQL Connector - https://pypi.org/project/mysql-connector-python/ Modul sys - https://docs.python.org/3/library/sys.html...
49.246209
3,452
0.64208
8c18633db384d265de96840f4380318505add180
1,060
py
Python
ebenezer/atencion/migrations/0001_initial.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/migrations/0001_initial.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/migrations/0001_initial.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-05 00:25 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Dominio', fields=[ ('id', model...
34.193548
252
0.575472
8b3cd66841c9c3d5dde4ff314747aa5c46dd738c
265
py
Python
pages/themes/beginners/sequenceDataTypes/labs/sequences.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/labs/sequences.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/labs/sequences.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
book_names = ( "book_title_1", "book_title_1", "book_title_1", "book_title_1", "book_title_1", "book_title_1", "book_title_1", "book_title_1" ) book_names_list = list(book_names) book_names_list[0] = "agata" print(book_names_list)
16.5625
34
0.664151
5083ff6589d063fc33e0a1808b79076a3b4291b7
1,722
py
Python
frappe-bench/apps/erpnext/erpnext/education/doctype/course_schedule/course_schedule.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/education/doctype/course_schedule/course_schedule.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/course_schedule/course_schedule.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document class CourseSchedule(Document): def validate(self): self.instru...
33.764706
113
0.753775
ba165cfb578011211eaf60335b2674e8b2e19d31
7,841
py
Python
Packs/CommonScripts/Scripts/FeedRelatedIndicatorsWidget/FeedRelatedIndicatorsWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/FeedRelatedIndicatorsWidget/FeedRelatedIndicatorsWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/FeedRelatedIndicatorsWidget/FeedRelatedIndicatorsWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto FILE_INDICATOR = {'CustomFields': { 'campaign': ['pickaxe_play2'], 'feedrelatedindicators': [ {'description': 'https://blog.cloudsploit.com/the-danger-of-unused-aws-regions-af0bf1b878fc', 'type': 'MITRE ATT&CK', 'value': None}, {'description'...
59.854962
120
0.578243
3afddae0b1ef746735e38e042f0acc3f804d1a0c
2,641
py
Python
Utils/test_upload_flow/TestUploadFlow/Integrations/TestUploadFlow/TestUploadFlow.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Utils/test_upload_flow/TestUploadFlow/Integrations/TestUploadFlow/TestUploadFlow.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Utils/test_upload_flow/TestUploadFlow/Integrations/TestUploadFlow/TestUploadFlow.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
from typing import Dict import demistomock as demisto # noqa: F401 from CommonServerPython import * class Client(BaseClient): # type: ignore pass def test_module(client: Client) -> str: """Tests API connectivity and authentication' Returning 'ok' indicates that the integration works like it is suppos...
29.674157
105
0.624763
ad7809fb201d9a29a2320a45c009a38a068dfe6e
9,909
py
Python
scripts/flow_rank_hypothesis.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
1
2021-01-20T00:37:31.000Z
2021-01-20T00:37:31.000Z
scripts/flow_rank_hypothesis.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
17
2021-03-03T14:48:54.000Z
2021-09-08T15:52:50.000Z
scripts/flow_rank_hypothesis.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
2
2021-03-05T12:23:20.000Z
2021-03-29T11:49:53.000Z
#%% [markdown] # # Flow ranking and hypothesis testing # TODO: explain the goal of finding a latent ordering, comparing between graphs #%% [markdown] # TODO: explain some of the math behind spring rank/signal flow #%% import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as ...
32.811258
92
0.683015
d102a71cd53516249eaae76691952749a0286f64
243
py
Python
min-cost-climbing-stairs/min-cost-climbing-stairs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
min-cost-climbing-stairs/min-cost-climbing-stairs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
min-cost-climbing-stairs/min-cost-climbing-stairs.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def minCostClimbingStairs(self, cost: List[int]) -> int: dp=[cost[0], cost[1]] # dp:= stepped on ith step for val in cost[2:]: dp.append(val+min(dp[-1], dp[-2])) return min(dp[-1],dp[-2])
40.5
60
0.547325
0f07135d88c8db565b66695e83fefcc00fcee57f
205
py
Python
exercises/fr/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importe la classe de langue "English" from spacy.lang.____ import ____ # Crée l'objet nlp nlp = ____ # Traite un texte doc = nlp("This is a sentence.") # Affiche le texte du document print(____.text)
17.083333
39
0.721951
0f8786c4fb4a7bd3e9148768bd56d9c4d74761a8
1,918
py
Python
backend/geojson/generateDatabaseInserts.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
null
null
null
backend/geojson/generateDatabaseInserts.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
2
2021-09-29T08:15:26.000Z
2021-11-03T09:37:37.000Z
backend/geojson/generateDatabaseInserts.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
null
null
null
import pandas as pd import geopandas as gp import json import sys import os import pathlib #import matplotlib as mp from shapely.geometry import Point from shapely.geometry.polygon import Polygon def list_files(path,format): current_path = pathlib.Path(path) files = os.listdir(current_path) for file in fi...
34.872727
350
0.610532
7e368db9241f0f6253f7416b4e9fcb24301af035
405
py
Python
10_days_of_statistics/mean_median_mode.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
10_days_of_statistics/mean_median_mode.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
10_days_of_statistics/mean_median_mode.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import Counter n = int(input().strip()) ar = [int(a_temp) for a_temp in input().strip().split(' ')] ar = sorted(ar) mean = sum(ar) / n median = (ar[n // 2 - 1] + ar[n // 2]) / 2 print(mean) print(median) cnt = Counter(ar) mode_list = [] max_val = max(cnt.values()) for k, v in...
19.285714
59
0.614815
bc1c3993a66873695c488fdb90aa44bb1d94d88f
653
py
Python
Website/backend/database/Queries/Insert.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
3
2018-06-16T12:49:20.000Z
2021-01-26T16:15:11.000Z
Website/backend/database/Queries/Insert.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
2
2019-11-01T09:36:31.000Z
2020-11-20T13:27:42.000Z
Website/backend/database/Queries/Insert.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
1
2019-04-23T06:46:45.000Z
2019-04-23T06:46:45.000Z
# -*- coding: utf-8 -*- ''' Created on May 10, 2018 @author: iranox ''' INSERT = {} INSERT['waypoints'] = ("INSERT INTO waypoints (name,lat,lon) VALUES (%(name)s, %(lat)s, %(lon)s)") INSERT['tour'] = ("INSERT INTO tour (name,length,link,year) VALUES (%(name)s,%(length)s,%(link)s, %(year)s)") INSERT['tour_waypoints'] ...
43.533333
109
0.620214
70cfb9a2c6a526447cb9611d46444aadca43a0be
1,791
py
Python
MyWord2Vec.py
hakimkt/SAIVS
c310bd7c9426f0d21efeea8866cf6b881b7e8530
[ "Apache-2.0" ]
40
2018-10-29T02:29:13.000Z
2021-11-23T13:14:50.000Z
MyWord2Vec.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
1
2021-02-23T12:27:28.000Z
2021-02-23T12:27:28.000Z
MyWord2Vec.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
29
2018-10-29T02:29:17.000Z
2022-03-17T06:31:35.000Z
# -*- coding: utf-8 -*- from gensim.models import word2vec import os import logging MODEL_NAME = 'text8' DATA_PATH = 'data\\text8' class Word2Vec: def __init__(self, int_count=10): self.int_word_count = int_count def learn_sentense(self): if os.path.exists(MODEL_NAME): ...
37.3125
114
0.537688
699bda638e93b309698beea3b9a74e895568750f
2,716
py
Python
tests/test___init__.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/test___init__.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/test___init__.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import sqlalchemy def test_mail_server(): import os os.environ["MAIL_SERVER"] = "mailserver.com" from project import app app.config["TESTING"] = True app.testing = True def drop_db(db): db.drop_all() db.engine.execute("DROP TABLE IF EXISTS alembic_version;") def populate_db(db): ...
28.589474
189
0.699926
38e55652fe896e3e6eaeb819686cb7cfebfe9f87
11,213
py
Python
menucard/tests/test_views.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/tests/test_views.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/tests/test_views.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
from django.urls import reverse from menucard.models import * from django.contrib.auth.models import User, Group from django.test import TestCase, Client class TestViews(TestCase): def setUp(self): self.user = User.objects.create_superuser(username="user1", email="user1@example.de", password="Hallo12345...
36.288026
124
0.648979
2a3ee2d9ff3899e64df6640b65e6e94c9bbc89d7
3,145
py
Python
Packs/Hackuity/Integrations/Hackuity/Hackuity_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Hackuity/Integrations/Hackuity/Hackuity_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/Hackuity/Integrations/Hackuity/Hackuity_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json from functools import partial from pathlib import Path from typing import Any import pytest from Hackuity import ( Client, format_date, get_first_value, hackuity_dashboard_data_command, hackuity_dashboard_widgets_command, hackuity_search_findings_command, hackuity_search_vulnera...
24.76378
83
0.631161
aabaff67023575c7840a1642deec9c145e9a0355
1,617
py
Python
addition_module/DMUE/datasets/make_dataloader.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/datasets/make_dataloader.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/datasets/make_dataloader.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
import torch import torchvision.transforms as T from torch.utils.data import DataLoader from .bases import ImageDataset from .preprocessing import RandomErasing from .sampler import ImbalancedDatasetSampler from .image_utils import add_gaussian_noise, flip_image, color2gray def make_dataloader(cfg): t...
33.6875
102
0.667285
2ac0aba129fb8372a4ee8a275fe4a431c5b02d2d
238
py
Python
comp/offpop/swapsort.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
comp/offpop/swapsort.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/offpop/swapsort.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# O(n log n) # Challenge: O(n) def solution(A): origin = A[:] A.sort() cnt = 0 for i in range(len(A)): if A[i] != origin[i]: cnt += 1 if cnt == 0 or cnt == 2: return True return False
15.866667
29
0.453782
9355ebeef4895b805997fe1c93653d87fd2776c6
299
py
Python
leetcode/294-Flip-Game-II/FlipGameII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/294-Flip-Game-II/FlipGameII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/294-Flip-Game-II/FlipGameII.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def generatePossibleNextMoves(self, s): """ :type s: str :rtype: List[str] """ res = [] for i in range(len(s) - 1): if s[i:i + 2] == '++': res.append(s[:i] + '--' + s[i + 2:]) return res
24.916667
52
0.401338
fabca0abd72dbd924d90d1362d4de83e735091b8
16,026
py
Python
AustinBot/all_cogs/rpgFunctions/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/character.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from .. import sql, log, BASE_PATH, chunk, Page from random import randint, random, choice from datetime import datetime as dt, timedelta as td import json from . import * from .equipment import (Equipment, Weapon, Armour, Jewelry, get_equipment, all_weapons, dual_wield_weapons, two_handed_weapons, all_armour, ignores...
32.507099
177
0.673281
fadd5d44c231ed1dddf620d4e0a73efc1dcfd51e
1,248
py
Python
CLI Tools/test_getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
null
null
null
CLI Tools/test_getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
CLI Tools/test_getTimeExtent.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
''' Created on 17.01.2019 @author: Aysel Tandik ''' import os import sys import tempfile import unittest import getTimeExtent # add local modules folder file_path = os.path.join('..', 'Testdata') sys.path.append(file_path) def test_getTimeNetCdf(): timeextent = getTimeExtent.getTimeExtent("tos_O1_2001-2002.nc", f...
34.666667
86
0.736378
579d4d1a028ae7371eab18f47bcb712d7650a473
379
py
Python
pacman-termux/test/pacman/tests/querycheck002.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/querycheck002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/querycheck002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Query--check mtree, no mtree" pkg = pmpkg("dummy") pkg.files = [ "usr/lib/libdummy.so.0", "usr/lib/libdummy.so -> libdummy.so.0", "usr/share/dummy/C/", "usr/share/dummy/C/msgs", "usr/share/dummy/en -> C"] self.addpkg2db("local",pkg) self.args = "-Qkk" self.addrule("PACMAN_RETC...
23.6875
50
0.654354
aa361c119679466f47d0d9e4b53848cef59fc8f9
450
py
Python
exercises/zh/solution_01_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/solution_01_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/solution_01_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy # 导入Matcher from spacy.matcher import Matcher nlp = spacy.load("zh_core_web_sm") doc = nlp("苹果公布了预购细节,泄露了即将到来的iPhone X的发布日期。") # 用模型分享的词汇表初始化Matcher matcher = Matcher(nlp.vocab) # 创建一个模板来匹配这两个词符:"iPhone"和"X" pattern = [{"TEXT": "iPhone"}, {"TEXT": "X"}] # 把模板加入到matcher中 matcher.add("IPHONE_X_PATTERN",...
21.428571
76
0.728889
5e21d8cbb6798962cd44e9cd5b6c86258a292dc2
33
py
Python
start.py
NeumannSven/esp_websocket
9fc4c5a42e92958ecd106b8f32d68cac860ba4dd
[ "MIT" ]
null
null
null
start.py
NeumannSven/esp_websocket
9fc4c5a42e92958ecd106b8f32d68cac860ba4dd
[ "MIT" ]
null
null
null
start.py
NeumannSven/esp_websocket
9fc4c5a42e92958ecd106b8f32d68cac860ba4dd
[ "MIT" ]
null
null
null
import wlanstart import webstart
11
16
0.878788
dc3955ac3c61a73f804916225386cd5b3f104bf8
742
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/powerport.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/powerport.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/powerport.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
28.538462
68
0.672507
f4f06ecfc220d7146bbc4c8f7f02a6a92148b125
2,748
py
Python
zencad/geom/exttrans.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/geom/exttrans.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/exttrans.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import numpy as np from zencad.geom.trans import * from zencad.util import deg, vector3 from zencad.geom.boolops import union import evalcache DEF_MTRANS_ARRAY = False DEF_MTRANS_UNIT = False class multitransform: """ fuse: True - вернуть объединение. False - вернуть массив. multiply_in...
27.757576
123
0.641921
760127e6ece0a091c987d38e9bfdc18ac7005c21
438
py
Python
src/onegov/agency/request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.org.request import OrgRequest class AgencyRequest(OrgRequest): @cached_property def current_role(self): """ Onegov Agency allows to additionally elevate the member role to the editor role by defining group role mappings. """ ...
29.2
79
0.737443
5e7fb0bef1a960f031e3ec03bb8a5e90c4b6b664
9,204
py
Python
src/main/apps/authentication/views.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/authentication/views.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/authentication/views.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import re from .email import send_email from .models import User from .serializers import ( AccountVerificationSerializer, PasswordResetSerializer, SignInSerializer, SignUpSerializer, UserInfoSerializer, UserSerializer, TokenInfoSerializer, ) from .token import ( check_token, get_to...
41.647059
152
0.659496
219238d18b3d80a93f1abfc066c28116ff3e5cfa
6,976
py
Python
etl/transforms/primitives/df/format_data.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/transforms/primitives/df/format_data.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/transforms/primitives/df/format_data.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import etl.mappings.unit_format as unit_format from etl.mappings.cdm_definitions import cdm_defs import etl.core.config as app_config import datetime as dt import pandas as pd import numpy as np import re import logging import itertools import base64 import json def initialize_tsp(df): df['tsp'] = pd.to_datetime('...
35.411168
129
0.578842
6389f74b6450e70df426b6c90b458910396704b4
273
py
Python
WD/Cwiczenia/podzielne_przez_4.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/podzielne_przez_4.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/podzielne_przez_4.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
#wygenerujemy listę elementów podzielnych przez 4 #wykorzystując python comprehension #wersja z petla przez_4=[] for x in range(10): przez_4.append(x*4) print(przez_4) #wersja python comprehension przez_4_II=[x*4 for x in range(10)] print(przez_4_II)
18.2
50
0.728938
1266cc7ca5087fe7cf7250d9112c1d0220a1dac4
2,056
py
Python
research/cv/metric_learn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/metric_learn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/metric_learn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
46.727273
86
0.697471
2c0a3bdf8193239215a638f5307d5ea606dc1127
2,142
py
Python
src/view/MS1MapWidget.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-26T16:16:14.000Z
2020-05-26T16:16:14.000Z
src/view/MS1MapWidget.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
null
null
null
src/view/MS1MapWidget.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-16T20:09:17.000Z
2020-05-16T20:09:17.000Z
import sys, os from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QHBoxLayout, QWidget, QAction import pyqtgraph as pg from pyqtgraph import PlotWidget import numpy as np import pyopenms class MS1MapWidget(PlotWidget): def __init__(self, parent=None, dpi=100): PlotWidget.__...
35.114754
129
0.570495
2591ffaa3afa5ce498afcaa953d8dea57ed18dee
773
py
Python
Subdomains Scan.py
Pommesmajo09/Subdomains-Scan
8d939769fb83251cd0d683cba3916ba070fa6765
[ "MIT" ]
null
null
null
Subdomains Scan.py
Pommesmajo09/Subdomains-Scan
8d939769fb83251cd0d683cba3916ba070fa6765
[ "MIT" ]
null
null
null
Subdomains Scan.py
Pommesmajo09/Subdomains-Scan
8d939769fb83251cd0d683cba3916ba070fa6765
[ "MIT" ]
null
null
null
import requests log = open("data/Log.txt", "w") log.write("") log.close() domain = input("Bitte füge hier eine Valide Domain ein!") file = open("data/subdomains.txt") subdomains = [] for i in file.readlines(): subdomains.append(i.replace("\n", "")) print(f"----- Checking {len(subdomains)} Subdomains ----...
28.62963
66
0.569211
1a57a0a278f103eb67c02a722d10cfa1e84adf26
7,652
py
Python
classification/scripts/DataVisualizer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/DataVisualizer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/DataVisualizer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Imports from luigi.parameter import IntParameter from luigi import LocalTarget, Task from luigi.format import UTF8 import datetime import pandas as pd import re import os from configs.Configurations import Configurations '''bigrams''' from gensim.models import Phrases from coll...
39.241026
112
0.645844
03a1451a5d977dc154b28c753166502cf349ceef
95
py
Python
python/coursera_python/TORONTO/test/ll.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/TORONTO/test/ll.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/TORONTO/test/ll.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def common_chars(s1, s2)i: res='' for ch in s1: if ch in s2: res = ch + res return res
13.571429
26
0.6
205c3e3613c1b424b11f6c76b362e5427026dc95
126
py
Python
src/backend/activationOTP.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-24T14:12:09.000Z
2020-03-25T07:43:10.000Z
src/backend/activationOTP.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-23T11:56:03.000Z
2020-03-24T13:50:14.000Z
src/backend/activationOTP.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-20T22:00:58.000Z
2020-03-21T00:11:45.000Z
from random import SystemRandom random = SystemRandom() def generate_otp(): return "%06d" % random.randint(0, 999999)
14
45
0.714286
20a90f4bfe3bb6d38528307d403c605aaf6c6704
6,106
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_profile/pos_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_profile/pos_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/pos_profile/pos_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import msgprint, _ from frappe.utils import cint, now from erpnext.accounts.doctype.sales_invoice.pos import get_child_nodes f...
35.294798
115
0.715362
20c86fca24dd7f491e96f46d2edd3eb1cdeae2b3
2,435
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex11_array_min_max_and_pos.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex11_array_min_max_and_pos.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex11_array_min_max_and_pos.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def find_min(values): if len(values) == 0: raise ValueError("find_min not supported for empty input") min = values[0] for i in range(1, len(values)): if values[i] < min: min = values[i] ...
25.904255
70
0.613142
455890165f23f6f32c0e2d7f331f68c05236153a
6,920
py
Python
Sooty/Modules/phishtank.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Sooty/Modules/phishtank.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Sooty/Modules/phishtank.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
""" Author: Axel Robbe Version: 0.1 This script checks URLs against the Phishtank database and allows for the usage of a local database. Expected script syntax is python phishtank.py <True/False> <user_agent> <api_key> <url> Example: python phishtank.py False "test application" some_api_key "https://some.link/" The ...
33.429952
104
0.602746
afda87ab6b1c87b67e16e682d5a487c89758ae87
4,870
py
Python
resources/mechanics_lib/api/tabs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/tabs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/tabs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from drawing import Drawing from shapes import * from edge import * from math import pi, sin, tan, atan class Tab(Face): def __init__(self, w, t, noflap=False): if (noflap or t > w/2): Face.__init__(self, ((w,0), (w,t), (0,t))) else: Face.__init__(self, ((w,0), (w+t,0), (w,t), (...
31.419355
101
0.592608
2be4ba05343fcb2c911d641fcb5c655561fb37ee
9,455
py
Python
Implementation/vibrostudies-backend/db/models.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/db/models.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/db/models.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
import binascii import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ #from django_mysql.models import ListTextField from django.contrib.postgres.fields import ArrayField from .utils import * class User(models.Model): id = models.AutoFi...
38.75
137
0.750925
a60b9031ac0c4aec95af44d2e0a0a4049daa72f5
1,087
py
Python
tests/hm/testState.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
tests/hm/testState.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
tests/hm/testState.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
import unittest from hm import State dp1 = {'ise_id': '1463', 'name': 'OPERATING_VOLTAGE', 'operations': '5', 'timestamp': '1575232894', 'type': 'OPERATING_VOLTAGE', 'value': '3.000000', 'valuetype': '4', 'valueunit': ''} dp2 = {'ise_id': '1487', 'name': 'HUMIDITY', 'operations': '5', 'timestamp': '1575232894',...
31.970588
110
0.647654
a67713db8c46bfa29f6e1c32ca7b1419bcebbdf3
1,540
py
Python
tests/service/test_turn.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
tests/service/test_turn.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
tests/service/test_turn.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import unittest import chillow.exceptions as ex from chillow.model.direction import Direction from chillow.model.player import Player from chillow.service.game_service import Turn class TurnTest(unittest.TestCase): def setUp(self): self.player1 = Player(1, 2, 2, Direction.up, 1, True, "") self....
33.478261
91
0.712338
5b70fa362e983b7fb628aabe2661520d8ae76901
2,500
py
Python
tests/test_externe_referenz.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_externe_referenz.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_externe_referenz.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from bo4e.bo.geschaeftspartner import Geschaeftspartner, GeschaeftspartnerSchema from bo4e.com.adresse import Adresse from bo4e.com.externereferenz import ExterneReferenz, ExterneReferenzSchema from bo4e.enum.geschaeftspartnerrolle import Geschaeftspartnerrolle class TestExterneReferenz: def test_serialization(se...
35.714286
87
0.646
848bc57c8d3c907e8d713ecd48f57db66dc4115a
305
py
Python
Licence 1/I11/TP1/tp1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP1/tp1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP1/tp1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
a = int(input("a=")) b = int(input("b=")) print( "Somme de " + str(a) + " et " + str(b) + " = " + str(a + b), "Difference de " + str(a) + " et " + str(b) + " = " + str(a - b), "Produit de " + str(a) + " et " + str(b) + " = " + str(a * b), "Rapport de " + str(a) + " et " + str(b) + " = " + str(a / b), )
30.5
65
0.4
84c5648603f42107868672c72e46ec674aabf262
92
py
Python
2015/03/lookup-clearance-rates/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/lookup-clearance-rates/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/lookup-clearance-rates/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1j9sUhIoMEqcHimHBHphnqMQQOHCc1-NX0yixeOQWl_Y'
23
68
0.836957
047138a99627534b7ce76e9e4cf5085670048ea3
6,544
py
Python
novel/items.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
novel/items.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
novel/items.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# coding=utf-8 from jinja2 import Template class Entity(object): def __init__(self, name): self.name = name def __str__(self): return super(Entity, self).__str__() + " name=%s" % self.name class ItemType(object): WEAPON = 0 ARMOR = 1 CONSUMABLE = 2 ONLY_SEE = 3 class Item(...
29.214286
121
0.619193
8e08ec759d232524fd01174f4ccbc5bb67ff7213
6,638
py
Python
test/computer_test.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
test/computer_test.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
9
2019-05-11T19:53:01.000Z
2020-11-10T07:24:14.000Z
test/computer_test.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
import unittest from configparser import ConfigParser from pathlib import Path from worker.computer import Computer from worker.sharebrowser import ShareBrowser class ComputerTestCase(unittest.TestCase): ip = "192.168.0.95" configFile = Path(str(Path.home()) + "/.ecman.conf") def setUp(self): se...
49.17037
133
0.684242
6d4be0b584ed9b2dc157c7bd9904830cb587f441
483
py
Python
src/server/app/endpoints/presentation/presentation_viewer/controller.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/presentation/presentation_viewer/controller.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/presentation/presentation_viewer/controller.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from flask import Flask, Blueprint, render_template, abort, g, request from flask_jwt_extended.utils import get_jwt_identity from flask_jwt_extended.view_decorators import jwt_required import json from bson import json_util presentation_viewer = Blueprint("presentate", __name__, static_folde...
21.954545
74
0.778468
b63705b216650cceabff1ffb9f6b1fd795da7336
1,158
py
Python
tsp.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
tsp.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
tsp.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
# Traveling salesman problem import numpy as np import matplotlib.pyplot as plt from pyind import pyind as pi from pyind import crossover as xovr from pyind import mutation as mut from pyind import defaults as df CITIES_LEN = 30 POP_LEN = 300 END_GEN = 500 cities = np.random.rand(CITIES_LEN * 2).reshape((-1, 2)) ...
20.315789
75
0.604491
fcb081909f7d370cc37c7f64234420d313f4ca69
62
py
Python
python/python_backup/PRAC_PYTHON/m.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/m.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/m.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
s=0 for i in range(1,10+1,1): i=(i*i)-1 print (25*i)-1
12.4
26
0.5
1e5e75f5959adfdc19026e2f67a307d709ecb4e3
369
py
Python
exercises/zh/solution_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/solution_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/solution_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.zh import Chinese from spacy.tokens import Token nlp = Chinese() # 定义取值器函数,读入一个词符并返回其逆序的文本 def get_reversed(token): return token.text[::-1] # 注册词符的扩展属性get_reversed及其取值器get_reversed Token.set_extension("reversed", getter=get_reversed) # 处理文本,打印没一个词符的逆序属性 doc = nlp("我说的所有话都是假的,包括这一句。") for token ...
20.5
52
0.761518
1ee41d4a21e42911c2809979002e07123eba38cb
12,143
py
Python
boto/cloudtrail/layer1.py
jamesob/boto
62d2818fdb6a9fa09e160d0f8c17ccbbc6d28ec8
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
boto/cloudtrail/layer1.py
jamesob/boto
62d2818fdb6a9fa09e160d0f8c17ccbbc6d28ec8
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/boto-2.19.0-py2.7.egg/boto/cloudtrail/layer1.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
39.170968
100
0.66071
94bc2fd9c03d6dfaf441f7072e703fc75709da91
8,568
py
Python
Packs/CommonScripts/Scripts/SSDeepSimilarity/SSDeepSimilarity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/SSDeepSimilarity/SSDeepSimilarity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/SSDeepSimilarity/SSDeepSimilarity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto # noqa: F401 CASE_ANCHOR_EMPTY = {'ssdeep_hash': '', 'ssdeep_hashes_to_compare': '3:AXGBicFlIHBGcL6wCrFQEv:AXGH6xLsr2C'} CASE_HASH_LIST_EMPTY = {'ssdeep_hash': '3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C', 'ssdeep_hashes_to_compare...
42.84
120
0.637255
156999f42a262835b05cb9a10c855be0691f8d6b
262
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/1. calculate the sum of three given numbers.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/1. calculate the sum of three given numbers.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/1. calculate the sum of three given numbers.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" 1. Write a function that accepts three variables a,b,c and returns the sum of these variables, if the values are equal then return two times their sum. """ def sum_num(a,b,c): if a == b == c: return 2 * (a+b+c) else: return (a+b+c)
23.818182
102
0.614504
157e6115a002c6f0c599522714bf1e7ad5a172f0
3,895
py
Python
python/SignalVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/SignalVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/SignalVisitor.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
""" @author: rhallmen @date: 24.06.2017 """ from antlr4 import * from sxlLexer import sxlLexer from sxlParser import sxlParser from sxlVisitor import sxlVisitor class Signal(object): def __init__(self, name): self.name = name self.position = None self.mode = None self.isInput = Non...
29.507576
72
0.61181
15881ad90a36771143eefe0b75897b2bafa60c02
602
py
Python
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/modules.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/modules.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/modules.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import sys import os # Module "sys" # # See docs for the sys module: https://docs.python.org/3.7/library/sys.html # Print out the command line arguments in sys.argv, one per line: for arg in sys.argv: print(arg) # Print out the plaform from sys: print(sys.platform) # Print out the Python version from sys: print(s...
18.242424
77
0.712625
01d859f0f722ef8170d9c4715971ffbd27eb0446
1,855
py
Python
practices/practice_3/lab_3_exp.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_3/lab_3_exp.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_3/lab_3_exp.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
from libs.can import CANSocket from libs.myactuator import MyActuator from time import perf_counter from math import pi, sin # the serial port of device # you may find one by examing /dev/ folder, # this is usually devices ttyACM serial_device = 'ttyACM0' # Initiate the can bus socket can_bus = CANSocket(serial_port...
29.444444
85
0.590296
01df4466ea70378fbfec30c2d3b06ed68cc76323
1,941
py
Python
PMIa/2015/Donkor_A_H/task_8_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/Donkor_A_H/task_8_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/Donkor_A_H/task_8_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 8. Вариант 10. #Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. #Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. #Разработайте систему начисления очков, по которой бы игроки, отгадавшие сл...
40.4375
284
0.704276
bd5df2c01aa18548173e86e4f0d369735ba75ad4
3,678
py
Python
concorde/__init__.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
2
2018-05-24T08:27:23.000Z
2019-01-06T18:55:15.000Z
concorde/__init__.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
1
2017-05-20T10:05:49.000Z
2017-08-09T05:57:45.000Z
concorde/__init__.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import with_statement import os import codecs from operator import itemgetter from datetime import datetime from urlparse import urljoin try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from markdown import Markdown import dateutil.parse...
34.698113
99
0.647091
e5d6054486393809006a153977ddd8f060591cfc
1,518
py
Python
Packs/QRadar/Scripts/QRadarFetchedEventsSum/QRadarFetchedEventsSum.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/QRadar/Scripts/QRadarFetchedEventsSum/QRadarFetchedEventsSum.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/QRadar/Scripts/QRadarFetchedEventsSum/QRadarFetchedEventsSum.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 HTML_TEMPLATE = ( "</br>" "<div style='line-height:36px; color:#404142; text-align:center; font-size:20px; line-height:36px;'>" "{fetched}/{total}" "</div>" "<div class='editable-field-wrapper' style='text-...
31.625
105
0.624506
f91a762774ac491c90900eb6885b287d5401fabd
119
py
Python
Problems/Two Pointers/easy/ReversePrefixWord/reverse_prefix_word.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/ReversePrefixWord/reverse_prefix_word.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/ReversePrefixWord/reverse_prefix_word.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def reversePrefix(word: str, ch: str) -> str: idx = word.find(ch) return word[:idx + 1][::-1] + word[idx + 1:]
29.75
48
0.563025
dac4d888745f23d00cdaa58606b4414a811e4bb5
3,442
py
Python
util.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
util.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
util.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
def gethostname(mdsip): 'mdsip: the IP address of MDS' import socket s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect((mdsip, 12345)) hostname=s.getsockname()[0] s.close() return hostname class Object: def __init__(self, d=None): if isinstance(d, dict): self.__dict__=d def message2object(mess...
25.879699
81
0.694073
974f743c891c0076047c289b7b377f9bc4737c53
5,013
py
Python
core/web/server.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/web/server.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/web/server.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ## Stdlib imports ## import random import os import atexit from threading import Thread from time import sleep from functools import partial # Want to see a ghetto database? _This_ is a ghetto database import shelve # For url quoting import urllib # For request validation import re ## Externa...
28.482955
80
0.593457
9757dcabca6b770e9991e2c8d3ab255dab4f4cb0
346
py
Python
PYTHON/Sets/symmetric_difference.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/symmetric_difference.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/symmetric_difference.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': M = int(input()) lm = input().split() N = int(input()) ln = input().split() sm = set(lm) sn = set(ln) res = set() res.update(sm.difference(sn)) res.update(sn.difference(sm)) res = sorted(list(map(int, res))) for r...
19.222222
37
0.543353
97cf97de43484c07e9eb78a5b03d74d6bcd2136b
3,427
py
Python
robot/giftxt/giftxt.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/giftxt/giftxt.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/giftxt/giftxt.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import time from PIL import Image, ImageSequence, ImageDraw, ImageFont def txtlayer(base, text="Hello World!", xy=(0, 0), color="#FFFFFF"): # make a blank image for the text, initialized to transparent text color txt = Image.new('RGBA', base.size, (255, 255, 2...
26.984252
113
0.571929
c120aad3059b4b2f35040c302337c427eae06402
657,816
py
Python
Backend/migrations/alembic/versions/f5e4ee3634b1_create_helipads_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/f5e4ee3634b1_create_helipads_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/f5e4ee3634b1_create_helipads_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create helipads table Revision ID: f5e4ee3634b1 Revises: 3d9efa9b90ca Create Date: 2020-11-25 21:48:30.217481 """ from alembic import op # revision identifiers, used by Alembic. revision = 'f5e4ee3634b1' down_revision = '3d9efa9b90ca' branch_labels = None depends_on = None def upgrade(): op.get_bind().execu...
303.981516
1,999
0.926803
a9ec87d5837e8f310cd660e41ba05a56d4530c23
1,567
py
Python
Problems/BinarySearchTree/Medium/ConstructBSTPreorder/construct_bst_preorder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/BinarySearchTree/Medium/ConstructBSTPreorder/construct_bst_preorder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/BinarySearchTree/Medium/ConstructBSTPreorder/construct_bst_preorder.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List, Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # Recursive def bstFromPreorder(self, preorder: List[int]) -> Optional[TreeNode]: if not preorder...
27.491228
71
0.577537
6ba44eb3036cab28ca29a9fd89c38df9d141acaf
2,644
py
Python
Packs/Pcysys/Scripts/PenteraOperationToIncident/PenteraOperationToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Pcysys/Scripts/PenteraOperationToIncident/PenteraOperationToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Pcysys/Scripts/PenteraOperationToIncident/PenteraOperationToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from collections import OrderedDict from PenteraOperationToIncident import pentera_operation_to_incident from CommonServerPython import argToList MOCK_AUTHENTICATION_EXP = 1579763364 MOCK_PARSED_FULL_ACTION_REPORT = [OrderedDict([('Severity', '9.8'), ('Time', '2020-04-1...
61.488372
118
0.416793
2e1dd3199cbb7bf2e97ae9b4214b41ec292916d4
382
py
Python
leetcode/014-Longest-Common-Prefix/LongComPrefix_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/014-Longest-Common-Prefix/LongComPrefix_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/014-Longest-Common-Prefix/LongComPrefix_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if not strs: return "" for i in range(len(strs[0])): for j in range(1, len(strs)): if i >= len(strs[j]) or strs[j][i] != strs[j - 1][i]: ...
29.384615
69
0.455497
d87a9f14876ec27654911a262bf94c907b137714
2,607
py
Python
PSA/ConfigLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/ConfigLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/ConfigLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
# -*- Mode:Python;indent-tabs-mode:nil; -*- # # ConfigLoader.py # # Loads a JSON configuration file and performs some sanity checks. # # Author: jju / VTT Technical Research Centre of Finland Ltd., 2016 # import json class ParseError( Exception ): def __init__( self, value ): super( ParseError, self ).__...
28.648352
79
0.603759
2b3ae08ffbaf8eed9dcfa6f8071eebcea08916f8
4,670
py
Python
main/data.py
WolfMy/Event-Driven-Backtest
2d39492589373a4639ec13cb94790537edb8d25f
[ "MIT" ]
1
2020-05-12T10:31:18.000Z
2020-05-12T10:31:18.000Z
main/data.py
WolfMy/Event-Driven-Backtest
2d39492589373a4639ec13cb94790537edb8d25f
[ "MIT" ]
null
null
null
main/data.py
WolfMy/Event-Driven-Backtest
2d39492589373a4639ec13cb94790537edb8d25f
[ "MIT" ]
null
null
null
import datetime import pandas as pd import pymysql from abc import ABCMeta, abstractmethod from event import MarketEvent class DataHandler(object): """ DataHandler is an abstract base class providing an interface for all subsequent (inherited) data handlers (both live and historic). The goal of a (d...
34.087591
126
0.602784
991a9123a47c1ff9355f92658a41eba4c584ffa4
1,782
py
Python
solutions/im2recipe/src/image2embed.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/im2recipe/src/image2embed.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/im2recipe/src/image2embed.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import time import torch import torch.nn as nn import torch.nn.parallel # import torch.optim # import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as datasets import torchvision.models as models import torch.backends.cudnn as cudnn # from data_loader import ImagerLo...
30.724138
93
0.656004
5ad019037e68fc9540672753cbcf2c8478a8c463
1,272
py
Python
Week 7/prob1.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Week 7/prob1.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Week 7/prob1.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
import math import random import matplotlib.pyplot as plt import numpy from matplotlib import pyplot from keras.layers import Dense from keras.models import Sequential from keras.optimizers import SGD r = Sequential() numpy.array def setup_nn(): r.add(Dense(1, activation='sigmoid', input_dim=1, init='uniform'))...
19.272727
79
0.619497
a40b848a9626228f258eb67194cb21fbd15c2b17
3,444
py
Python
Hackergame_2019/red_pocket/ai.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2019/red_pocket/ai.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2019/red_pocket/ai.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from queue import Queue import json wc = {} class Node(): def __init__(self, word, u, v): self.word = word self.u = u self.v = v self.next = [] self.sg = None def push_front(self, word): self.pre.append(word) def push_back(self, word): self.next.a...
25.511111
89
0.448316
24da4b1aebf3059a69554ea5a458233b772316e6
821
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_conversion_factor_in_supplier_quotation_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_conversion_factor_in_supplier_quotation_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_conversion_factor_in_supplier_quotation_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc('buying', 'doctype', 'supplier_quotation_item') frappe.db.sql("""update `tabSupplier Quotation Item` as sqi_t, (select sqi.item_code as item_code, sqi.uom as uom, ucd.conversion_factor as conversion_factor from `tabS...
43.210526
99
0.752741
3b8fcd27ab319ab20f7d9d1feaa88f9f72f74f5b
359
py
Python
tspdb/src/tslb/test.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
43
2019-12-10T00:05:51.000Z
2022-03-31T21:21:20.000Z
tspdb/src/tslb/test.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
5
2021-05-09T01:12:31.000Z
2022-03-29T17:34:15.000Z
tspdb/src/tslb/test.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
14
2020-01-13T21:20:07.000Z
2022-03-31T02:11:26.000Z
from tslb import * def import_data(string): train = pd.read_csv("data/tspdb_data/{}_train.csv".format(string)) test = pd.read_csv("data/tspdb_data/{}_test.csv".format(string)) return train, test train, test = import_data('electricity') print(train['y_train']) print(run_test(test['y'].iloc[:], samples=300...
32.636364
84
0.713092
ba585b4d7bafbba98060a9fbf6f1444b7c499e62
135
py
Python
FX1N/exceptions.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
4
2019-12-11T06:43:48.000Z
2022-03-21T05:35:47.000Z
FX1N/exceptions.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
1
2020-10-30T09:38:26.000Z
2020-11-02T03:08:59.000Z
FX1N/exceptions.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
null
null
null
class NotSupportedCommand(Exception): pass class ResponseMalformed(Exception): pass class WrongChecksum(Exception): pass
15
37
0.762963
ba96c106af9cea47b01d8bae2fff121553d775b8
2,760
py
Python
oneflow/python/ops/loss_ops.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/ops/loss_ops.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/ops/loss_ops.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
31.724138
85
0.652899
035c9ea33f9a401ef9a39f5d002bea60f2471445
101
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.12-make-string-as-list-using-split-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.12-make-string-as-list-using-split-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.12-make-string-as-list-using-split-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
str = "I am a programmer" print(str) words = str.split() print(words) for i in words: print(i)
11.222222
25
0.643564
30603456dd432b0ff7d9096b9a7dbd808eecf2d0
1,282
py
Python
myscrumy/ajibadeolufemi94scrumy/models.py
Justfemi/Nameless
239a44fd571d10d55a80a787ee865714c41552fa
[ "MIT" ]
null
null
null
myscrumy/ajibadeolufemi94scrumy/models.py
Justfemi/Nameless
239a44fd571d10d55a80a787ee865714c41552fa
[ "MIT" ]
null
null
null
myscrumy/ajibadeolufemi94scrumy/models.py
Justfemi/Nameless
239a44fd571d10d55a80a787ee865714c41552fa
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils import timezone # Create your models here. class GoalStatus( models.Model ): status_name = models.CharField( max_length=20 ) def __str__( self ): return self.status_name class ScrumyGoals( models.Model ): go...
34.648649
79
0.698128
ebfe81e7d4cade6559ace8b7507f8af224354da4
216
py
Python
Hackerrank_problems/loops/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/loops/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/loops/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
if __name__ == '__main__': n = int(input()) #Enter an integer for i in range(0,n): #the loop will iterate from 0 to (n-1) print(i*i) #it will print the square of each number from 0 to (n-1)
43.2
81
0.597222
237b2f5722c029df724d251994d43b8252dd3610
1,452
py
Python
Invent Your Own Computer Games with Python/source/cipher.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/source/cipher.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/source/cipher.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# Caesar Cipher SYMBOLS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' MAX_KEY_SIZE = len(SYMBOLS) def getMode(): while True: print('Do you wish to encrypt or decrypt a message?') mode = input().lower() if mode in ['encrypt', 'e', 'decrypt', 'd']: return mode e...
27.396226
71
0.57989
88ccc550cc1791482b9f00ac8520ace7246b212b
100
py
Python
admin-tutorial/AdminDateHierarchy/simple_relate/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
admin-tutorial/AdminDateHierarchy/simple_relate/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
admin-tutorial/AdminDateHierarchy/simple_relate/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.apps import AppConfig class SimpleRelateConfig(AppConfig): name = 'simple_relate'
16.666667
36
0.78
88f0089f4222382ed2188da73b35c17f28855109
1,396
py
Python
turngen/montecarlo.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/montecarlo.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/montecarlo.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
# https://github.com/suragnair/alpha-zero-general/blob/master/MCTS.py import game as g import state as s import numpy as np import alphazero.NeuralNet import turn import math class MCTS: def __init__(self, cpuct): self.game = g.Game() self.visits = {} self.vact = {} self.actions = {} self.Q = {} self.c...
24.068966
130
0.617479
cc3b86e7a4b53524e8831559971c4c57391be115
2,237
py
Python
code/00_covariates/2-3_CALIBER_comorbidities_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-3_CALIBER_comorbidities_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-3_CALIBER_comorbidities_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC Builds a binary feature matrix of CALIBER phenotypes prior to 01/01/2020 # COMMAND ---------- # MAGIC %run /Workspaces/dars_nic_391419_j3w9t_collab/CCU013/COVID-19-SEVERITY-PHENOTYPING/CCU013_00_helper_functions # COMMAND ---------- import databricks.koalas as ks fr...
20.712963
117
0.687528
4ec4c84c8ee084b1a3ce07fc093c4b232b0d43af
171
py
Python
main.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
main.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
main.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
from extract import Extractor import os if __name__ == '__main__': print('Hello world') extractor = Extractor() data = extractor.get_data() print(data)
15.545455
31
0.672515
095be6fba977cd503e41dd6f561591c3574bb2c6
3,185
py
Python
app/mercadopago/mercadopago.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
app/mercadopago/mercadopago.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
app/mercadopago/mercadopago.py
brunomileto/gamebet_website
b315569ff5c18538cbc374d19011591edb5f8b26
[ "MIT" ]
null
null
null
import pprint from flask import url_for import mercadopago import json import os, sys from gamebet_website.app.models.models import Sale ACCESS_TOKEN = "TEST-6845351963416569-061712-44cd2b44c62a0c11170bd5a901d6f32f-585866733" mp = mercadopago.MP(ACCESS_TOKEN) def payment(req, **kwargs): product = kwargs['prod...
26.322314
88
0.611617
0146badc10aff9a239bb7fe11bd69504c63f8168
8,069
py
Python
programm/speech_detection.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/speech_detection.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/speech_detection.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Python Module for creating and loeading a dialog. Wait for speech input, speech recognition, analyse and response to user @author: wimmer, simon-justus """ import speech_recognition as sr import threading import uuid import general import logging import random import navigation_handler import sys import skype fro...
39.553922
153
0.545173
fef008ba0c0d339fbe1fff66f7e6f90e8af6c907
278
py
Python
Object Oriented Programming/Object Oriented Programming 2/1_funktion_zur_methode.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming 2/1_funktion_zur_methode.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming 2/1_funktion_zur_methode.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import roboter roboter_1 = roboter.Roboter() #roboter_1.name = "WALL-E" #roboter_1.baujahr = 2008 roboter_2 = roboter.Roboter() roboter_2.name = "HAL 9000" roboter_2.baujahr = 1997 roboter_2 = roboter.Roboter() roboter_2.sage_hallo() print(roboter_1.__dict__) print(roboter_1)
21.384615
29
0.773381
3a0473c7b32a9c18f1803c4530fbb7fdaa02b7b3
251
py
Python
OxoCard/_credentials.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
OxoCard/_credentials.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
OxoCard/_credentials.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
''' File: credentials.py This file contains access data for different services 2021-03-31 Claus Kühnel info@ckuehnel.ch ''' SSID = 'Your SSID' PASS = 'Your password' #Pushover apitoken = "Your Pushover API Token" userkey = "Your Pushover User Key"
19.307692
53
0.741036
3ac3c53fa029fa13b27b56e94ffd701e32b23a7e
351
py
Python
exercises/es/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("es_core_news_sm") # Importa la clase Doc from spacy.tokens import Doc # El texto deseado: "¡Vamos, empieza!" words = ["¡", "Vamos", ",", "empieza", "!"] spaces = [False, False, True, False, False] # Crea un Doc a partir de las palabras y los espacios doc = Doc(nlp.vocab, words=words, ...
23.4
53
0.68661
c982fe303ecde08a9de1827ca67024567322d47f
942
py
Python
mobile/tools/python/imagetools/img2nhwc.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/python/imagetools/img2nhwc.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
1
2020-03-18T15:55:50.000Z
2020-03-18T15:55:50.000Z
mobile/tools/python/imagetools/img2nhwc.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
# coding=utf-8 import cv2 from array import array import imagetools as tools def combine_bgrs_nhwc(bgrs, means_b_g_r, scale): print "scale: %f" % scale print means_b_g_r # print len(bgrs) bs = bgrs[0] gs = bgrs[1] rs = bgrs[2] assert len(bs) == len(gs) == len(rs) # print len(bs) bg...
26.914286
70
0.641189
6ebfdd2c2a2a70d8944a22282e6a7aa880c0889b
1,428
py
Python
showcase6/com/aaron/demo5.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase6/com/aaron/demo5.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase6/com/aaron/demo5.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
import os import wx class MainWindow(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, size=(200,100)) self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE) self.CreateStatusBar() # A StatusBar in the bottom of the window # Setting up the...
35.7
92
0.65056
9551632a02325e708d2d074d2a9ab706bd6335ea
7,377
py
Python
SpamMail-master/src/mail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
11
2019-01-20T17:11:11.000Z
2021-12-17T05:00:15.000Z
SpamMail-master/src/mail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SpamMail-master/src/mail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
10
2019-05-12T02:28:06.000Z
2022-03-06T14:21:43.000Z
from multiprocessing.pool import ThreadPool try: import os, time, requests, sys, random as rdm except ModuleNotFoundError: print("\nSepertinya module requests BELUM Di Install") print("$ pip install requests\n") exit() ua = ['Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Sa...
147.54
6,045
0.670191