blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3ad98569986ba7cd60f02f1aa968eddfee2e72a | e742a41f3a8f4454fd02153e71e4e0a455547249 | /selenium/implicitWait.py | e9a31496ed1775ad6bb0951f998c1874ad18fcd7 | [] | no_license | Javierggonzalvez/cursos | 25b3709351234a5734dbb92ff5b5456c65b94125 | e6fada12b3b543c70e7dabe0c3c1a2a73de52a8e | refs/heads/master | 2022-12-08T11:38:34.372208 | 2019-11-21T20:50:24 | 2019-11-21T20:50:24 | 223,262,972 | 0 | 0 | null | 2022-11-22T02:24:33 | 2019-11-21T20:48:56 | Python | UTF-8 | Python | false | false | 685 | py | import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class usando_unittest(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(
... | [
"javierggonzalvez@gmail.com"
] | javierggonzalvez@gmail.com |
6db8257a238dd3a6e98bbf555a2b2824bd7ba4f8 | d8f79f29454c406b9bfaa40a6a8a6f3786ed8f9a | /project/leads/migrations/0001_initial.py | 1044ead7c13c25581bf6044c8b19b43700a869c6 | [] | no_license | deniztetik/marshmallows | b89164d32ffacf1711713c5167fddb8821bd85d2 | 9b33912df141c0f221dd92635961435470d10b8f | refs/heads/master | 2020-03-27T20:16:16.948638 | 2018-10-09T19:43:39 | 2018-10-09T19:43:39 | 147,053,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 2.1 on 2018-08-31 01:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lead',
fields=[
('id', models.AutoField(auto_... | [
"deniz.tetik@oracle.com"
] | deniz.tetik@oracle.com |
8f8ecbbb79cad83b056e79575e51f056efcdfaf3 | 8f7f36acd739835a8d901a4be60929c7156557fb | /MyMain.py | a8c926100fa63114d34f3681f3442219c3dfe33e | [] | no_license | qingyue2014/PytorchNMT | 7013b9e8ab1f95b9f726f78d70ff5e524a1ec1fc | 5b02574693ad31a0d893b54a0c9373780baec282 | refs/heads/master | 2020-04-16T06:13:46.209884 | 2019-09-28T07:27:12 | 2019-09-28T07:27:12 | 165,337,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,647 | py | from __future__ import unicode_literals, print_function, division
from io import open
import torch
import torch.nn as nn
from torch import optim
import MyClass
import MyData, pickle
import datetime
from nltk.translate.bleu_score import sentence_bleu
device = torch.device("cuda" if torch.cuda.is_available() e... | [
"noreply@github.com"
] | qingyue2014.noreply@github.com |
854841144a32380166855fef783a5a114d60a6a8 | c3fc7fef9b80121fdc9171f243afc18f7270c7ad | /testrun.py | f450f0eecd98619d82f4649aa8eba141c26022c6 | [] | no_license | Olaitan74/Wave2-solutions | 4b5682028063746a2814dcc9e9e31345c4481e21 | ea4f73872d1948365ee2c0730daf5b28849b5c3c | refs/heads/master | 2022-11-29T13:18:41.115945 | 2020-08-03T19:15:15 | 2020-08-03T19:15:15 | 284,054,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | pac = {'A' : 1, 'B' : 2, 'C' : 3}
print(pac.keys(), sorted(pac.keys())) | [
"noreply@github.com"
] | Olaitan74.noreply@github.com |
e9529238cbc47916e001451674d12f106fbd8037 | 4dd5dbebc7b7f6dbfcbd6cc662311c91ad6d47e9 | /AtCoder/AGC030A.py | 641bf990c39cb0b7b2f7bfded4df6569c61e550e | [] | no_license | sourjp/programming_contest | aa6925b3317bd3aeb646df93a611af1199bfc7aa | 2a50e1be45441789e81eb49bfdfc0c598d2a534b | refs/heads/master | 2021-04-01T05:08:44.097226 | 2020-08-20T13:01:55 | 2020-08-20T13:01:55 | 248,158,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | a, b, c = map(int, input().split())
cnt = 0
if a + b + 1>= c:
ans = b + c
else:
ans = b + a + b + 1
print(ans) | [
"hiro0209.ki@gmail.com"
] | hiro0209.ki@gmail.com |
b349afad698bff5c9b153392fe731f23da2933db | db8d9e2be7a1c73678b1450da652939c0bcc5a70 | /manage.py | ac6853ebb230107da82e9b63d8277b4a335c9ffc | [] | no_license | KarthikRP05/Employee_read-operation | c015658e77bd72dc918d16142bf1ef5dcfb39a58 | 31b0709fa6dd7a60c01dd1744a0e3db75626c4c6 | refs/heads/master | 2023-02-17T19:02:17.361919 | 2021-01-15T10:45:52 | 2021-01-15T10:45:52 | 329,883,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'employeetable.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"karthikrprpk@gmail.com"
] | karthikrprpk@gmail.com |
7d7604b235b0937ca199f553e1f4b073945d9c89 | b10a759a2fd1b80ee810720d0f10bebe4706b84e | /ZenPacks/community/EMCIsilon/EMCIsilonQuota.py | 393cb03d3000a81f99c76aa196b23a90e259bbd2 | [
"MIT"
] | permissive | linkslice/ZenPacks.community.EMCIsilon | afbe41fb30cb08501bc3349dfa2bad99617835fe | 5f0483f3785ee6cbcb6034b3682fcb3f105df8c5 | refs/heads/master | 2021-01-17T00:45:24.505466 | 2019-10-08T16:53:49 | 2019-10-08T16:53:49 | 61,917,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | from Products.ZenModel.DeviceComponent import DeviceComponent
from Products.ZenModel.ManagedEntity import ManagedEntity
from Products.ZenModel.ZenossSecurity import ZEN_CHANGE_DEVICE
from Products.ZenRelations.RelSchema import ToManyCont, ToOne
class EMCIsilonQuota(DeviceComponent, ManagedEntity):
meta_type = por... | [
"sparctacus@gmail.com"
] | sparctacus@gmail.com |
582ffbfd29829a394d74241d4460e2a4b0b883f8 | 1a788746fc76424947a0c6d56fcea9e4ddedd259 | /Question3.py | 6e4bb66a6feff67bfffe87631565b488771cac90 | [] | no_license | Akhilgupta17/Acadview_Assignment5 | dfad17209e6cdc07630b923267506dcd2e4ce16e | 42600beb03bd7608b494bfd0799866c3bf220130 | refs/heads/master | 2020-03-19T23:54:08.227451 | 2018-06-12T07:23:48 | 2018-06-12T07:23:48 | 137,024,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | a=int(input("First:"))
b=int(input("Second:"))
c=int(input("Third:"))
if a>b and a>c:
print("first Is Older")
elif b>a and b>c:
print("Second Is Older")
elif a==b==c:
print("All Are Equal")
else:
print("Third Is Older")
if a<b and a<c:
print("first Is Younger")
elif b>a and b>c:
pri... | [
"Akhilgupta1711@gmail.com"
] | Akhilgupta1711@gmail.com |
cf9920ffe8f52a7cee208a43eb994c063c4385c1 | c31762e13ac3a5c5974b700c001b1fd789f47be8 | /dbtools.py | dcbfbdb24c0ec4b08bf89c3ab0dca55b8f3a22f0 | [] | no_license | harkdi/dbtools | 7b811e6d2357458b58201f59768428cbee15b1a9 | e5c86545f31f31d52f8333f50fa8f297b28e3a0d | refs/heads/master | 2020-12-02T16:16:56.216002 | 2017-07-10T08:57:22 | 2017-07-10T08:57:22 | 96,528,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,244 | py | #!/usr/bin/env python
# coding: utf-8
import os
import json
import string
import subprocess
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
#--------------------- Load the configuration file ---------------------------------
sys.path.append('/oma/deploy/scripts/')
with open('/oma/deploy/scripts/robotConf.json... | [
"harkdi@126.com"
] | harkdi@126.com |
64fe194f6f6f6b4fdd89e79f2467a83037405210 | 49fd63987c06bb07c016bea4e4a42b4f6209a1d2 | /hash.py | c26e3f5d5f501165283ec9c054b5b8fdf380a663 | [] | no_license | gonzalpetraglia/finger-4 | 65f885ce9ec0e8ecd70a977b865f0a10fcbd2371 | 14caffc483871a9156b54ed1d333b75862aab16d | refs/heads/master | 2020-12-26T01:12:15.231148 | 2016-09-17T15:45:28 | 2016-09-17T15:45:28 | 68,461,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def myhash(s):
h=1
for c in s:
intC=ord(c)
h=ord(c)*h
h=(h>>32)+(h<<32)
h=h^((intC)or(intC<<16)or(intC<<32)or(intC<<48)or(intC<<8)or(intC<<24)or(intC<<56)or(intC<<40))
h=h%7205759403792700000
return h
| [
"noreply@github.com"
] | gonzalpetraglia.noreply@github.com |
3918393da646b4a519205518bd050446fa00d018 | 2452a1a846ec675cc6eb8b24261e3c0c8ec0dac5 | /bin/git-try | 62ce1bdc422cd74c69e3983a9501fe3c2ad000ca | [] | no_license | michaelbernstein/homedir | e5d5709c994361e34e929a351c12de3893274052 | d91a1e203eaf20d0a20e75204622cbe35f8ef579 | refs/heads/master | 2021-01-16T20:00:27.479753 | 2012-04-19T18:59:14 | 2012-04-19T18:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,731 | #!/usr/bin/env python
import argparse
import os
import shutil
import StringIO
import subprocess
import sys
import tempfile
PLATFORMS = ('all', 'none', 'linux', 'linuxqt', 'linux64', 'macosx64', 'win32',
'linux-android', 'linux-maemo5-gtk', 'linux-maemo5-qt',
'linux-mobile', 'win32-mobile', '... | [
"hurley@todesschaf.org"
] | hurley@todesschaf.org | |
99d58cfffec18317f497271c87e04c101c9d5fbf | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/generated_samples/mysql/server_security_alerts_create_max.py | 702f9e0bb6a8a7da00508fb08c8a992824a0c71c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,227 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
72459fc22c1d18cd64c343211bbff66bc5053b8f | e5a6cdbb0c228a9ceafb4128b28ffc7e79be8e40 | /Математика и Python для анализа данных/4 Неделя 2 - Векторы, Матрицы/4.2 ПРАКТИКУМ - Сходство текстов (кошачья задача) в Python/4.2.3.py | 449e07f6e24b1a420a56cada325339f3b6892a42 | [] | no_license | SergioKulyk/Stepic | 2ef43f9dd037e43edd586d06ca24f6251152cb4d | 51070979f3ac2578244e07ae83a8d81c937be63c | refs/heads/master | 2021-04-26T23:10:30.297175 | 2018-03-15T09:30:01 | 2018-03-15T09:30:01 | 123,879,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Шаг 2.1 - проход по списку
# На вход подаётся 1 строка.
#
# Напечатайте в 1 строку все 1-е символы из каждого слова через пробел.
#
# Для разделения строки на слова можно использоваться функцию split():
#
# S = 'Some string'
# L = S.split() # ['Some', 'string']
#
# Sample Input:
#
# Hello my friends
# Sample Output:
... | [
"sergiokulyk98@gmail.com"
] | sergiokulyk98@gmail.com |
83a95913c2ac03d2345d00ae0bd4d376da222c85 | 8b83842b1f6a5594c0a3e43c3edd6b5162dde512 | /src/preprocess/convert_and_pad_data.py | d455debf12454e3b524bea3cde9887b2a734f864 | [] | no_license | petersiemen/sagemaker-deployment | 357acc0350a19a8d1c874557dafa23b5d8280ff6 | be90d605cc861d08b65ab23ef5926b9ec01bd90a | refs/heads/master | 2022-02-05T01:31:37.869645 | 2019-06-21T10:40:28 | 2019-06-21T10:40:28 | 190,742,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from serve.utils import convert_and_pad
import numpy as np
def convert_and_pad_data(word_dict, data, pad=500):
result = []
lengths = []
for sentence in data:
converted, leng = convert_and_pad(word_dict, sentence, pad)
result.append(converted)
lengths.append(leng)
return np.ar... | [
"peter.siemen@googlemail.com"
] | peter.siemen@googlemail.com |
9641f3a1d9b171033732295dad72e3d86a747a41 | d1ea082d5704cc8f16ff9ad01f5a28d9b287e7db | /run.py | 6a6dd0bb9899e3875183b54fb6a376c8ce97ec7f | [] | no_license | YaoChungLiang/CSE571_HW2 | a87d43b1fcde4ef86da024f226bae93845059aa1 | 8cddce39e535ead2753c78d3b04ab11bf7c57887 | refs/heads/master | 2020-04-26T06:24:41.786754 | 2020-01-08T15:48:38 | 2020-01-08T15:48:38 | 173,363,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | #!/usr/bin/env python
import argparse, numpy, time
from MapEnvironment import MapEnvironment
from RRTPlanner import RRTPlanner
from RRTStarPlanner import RRTStarPlanner
from AStarPlanner import AStarPlanner
from IPython import embed
def main(planning_env, planner, start, goal):
# Notify.
#raw_input('Press ... | [
"noreply@github.com"
] | YaoChungLiang.noreply@github.com |
6f5f64793115b2302e947c9f8ce5be419d5740e1 | 7f4da36c8a5a8f771de4ca51a9a8ba1c64574d69 | /Homework-4/Homework_4_12.7.py | 9bff18588c648c7c462ef7bbf36703c7bfb414ff | [] | no_license | johnrick10234/hello-world | 37576d80636294f3c60db1989649757b1743cdde | 90d090645ddb2e605f89319eec5089a4e5dc7d3b | refs/heads/main | 2023-04-21T03:57:44.943841 | 2021-05-07T02:23:28 | 2021-05-07T02:23:28 | 331,312,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #John Rick Santillan #1910045
def get_age():
age=int(input())
if age<18 or age>75:
raise ValueError('Invalid age.')
return age
def fat_burning_heart_rate(age):
h_rate=(220-age)*.70
return h_rate
if __name__=='__main__':
try:
age=get_age()
print('Fat burning heart rate ... | [
"jcsantil@cougarnet.uh.edu"
] | jcsantil@cougarnet.uh.edu |
7c60e64a4ec9b2e945c59909b072566c91cf039a | 608ff019d76ed0cc3cb6e6c19e94d65fd33e5273 | /bin/epylint | 647663eaf5ef526902bf8740db548876e61463a6 | [] | no_license | nwoodr94/4runner | 2975a0cf4fda416b634739d459bf51bb693a4666 | 0ad33beffedd5560c4a50edfad76732a249272b4 | refs/heads/master | 2021-05-22T02:26:10.405300 | 2020-08-11T18:59:33 | 2020-08-11T18:59:33 | 252,927,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/nwoodr94/code/4runner/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"nwoodr94@gmail.com"
] | nwoodr94@gmail.com | |
ae0dbc246333dba25047afcdcb3eaac9c9418de1 | ade4a86d59f06f9fb9defa0d91ef31ca331e00bc | /ANGELICA/asgi.py | 8481ae10bf7a401465e6fe244385737d8b351d05 | [] | no_license | norma22/practica | 67e4d86b88ed451e9ac04ed0898714165a02e187 | b58ba4d639e7d12a0ad684871b19d176b235b4ac | refs/heads/master | 2023-04-01T05:39:12.153231 | 2021-04-08T01:51:01 | 2021-04-08T01:51:01 | 355,734,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for ANGELICA project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"masayadelcielo@gmail.com"
] | masayadelcielo@gmail.com |
db123b88102b476b1f7aa06f89b3742fe4ef29c6 | 805a795ea81ca8b5cee1dec638585011da3aa12f | /MAIN/2.79/python/lib/test/test_asyncio/test_events.py | 28d92a9f4e3eac21e2aed7993f0e60dbd7ff1e89 | [
"Apache-2.0"
] | permissive | josipamrsa/Interactive3DAnimation | 5b3837382eb0cc2ebdee9ee69adcee632054c00a | a4b7be78514b38fb096ced5601f25486d2a1d3a4 | refs/heads/master | 2022-10-12T05:48:20.572061 | 2019-09-26T09:50:49 | 2019-09-26T09:50:49 | 210,919,746 | 0 | 1 | Apache-2.0 | 2022-10-11T01:53:36 | 2019-09-25T19:03:51 | Python | UTF-8 | Python | false | false | 102,515 | py | """Tests for events.py."""
import collections.abc
import functools
import gc
import io
import os
import platform
import re
import signal
import socket
try:
import ssl
except ImportError:
ssl = None
import subprocess
import sys
import threading
import time
import errno
import unittest
from unittest import mock
... | [
"jmrsa21@gmail.com"
] | jmrsa21@gmail.com |
a182ec951bb86beb1378570c2541409aaf661687 | 7ded0e91c75f9b93ce3cc6df01aa336dc09002c9 | /erg3/erg3.py | b414c01e344537aff7afd12e2b4c9b92b45e5680 | [] | no_license | ArmandoDomi/Machine-Learning-Python | 650a9a7e04752d019fdee735d53e1d867458796c | 6edbd582852b1e9ddd39323623f04ca089f44d00 | refs/heads/master | 2022-02-10T17:11:29.660579 | 2019-06-30T17:05:28 | 2019-06-30T17:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import perceptron as pr
def evaluate(t,predict,criterion):
tn=fn=tp=fp=float(0)
'''
tn = sum(predict[predict== False] & (t[t==0]))
tp = sum(predict[predict==True] & (t[t... | [
"noreply@github.com"
] | ArmandoDomi.noreply@github.com |
6fa69e13fb0b3ab5027f35b52980589e1d1dd5eb | 6a6a6e5ce10726a51a82e4dc4ee6c327cfd9dfea | /home/urls.py | 23afcb73dca61c2ae3446ae75b750f9fbf235112 | [] | no_license | Artemka-dev/authsys | dbdd36d621065f5d6e33f538efc8a0f0ffbc23d9 | f45639f331ac29b859d4c338ed963403a824418d | refs/heads/master | 2022-04-10T10:38:42.482916 | 2020-03-23T14:08:01 | 2020-03-23T14:08:01 | 238,509,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.urls import path, include
from .views import HomePage, redirect_view, PostsView, DetailPage, CreatePost, ChangePost
urlpatterns = [
path("home/", HomePage.as_view(), name="home_page"),
path("", redirect_view, name="redirect"),
path("posts/", PostsView.as_view(), name="posts_page"),
path("de... | [
"artem@MacBook-Pro-Artem.local"
] | artem@MacBook-Pro-Artem.local |
f1dfe353f054cafbfba858bdbd4445953f5aa987 | 315e14423cc1ef8167ce3727eeead0baa7687e7c | /courseDesignProject/miniLibrary/admin.py | 2688b6cb5e830956ae3eccf67a1641b1a7762d56 | [] | no_license | tombsmrliu/django | 61d26ae19ee079555d112c5898ea5eb29ffa5884 | 255e0ea1071d418c72887c51e5b9b855c4783d73 | refs/heads/master | 2021-01-20T04:09:04.231350 | 2017-04-27T14:56:09 | 2017-04-27T14:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from django.contrib import admin
from .models import Category, Topic, TopicProfile, Comment
# Register your models here.
@admin.register(TopicProfile)
class TopicProfileAdmin(admin.ModelAdmin):
pass
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
pass
@admin.register(Category)
class Catego... | [
"c2720043432@gmail.com"
] | c2720043432@gmail.com |
c56d89a5521271887607380dcd98129d793d979f | 3708c3ae5aee629b0ca563e7796e77b9ada61c12 | /Lib/site-packages/pygments/lexers/dotnet.py | dda0230893a23b9b5ec9ab190cf4a0e830d9ee4d | [] | no_license | Lilyonegithub/venv | 5cec8ef4e62056137cbf8f9fa727a73321c10e43 | ae8ba5e0f224d5990d53b7203ec6cae7e7462faf | refs/heads/master | 2020-04-19T16:27:20.329731 | 2019-01-30T08:19:14 | 2019-01-30T08:19:14 | 168,305,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,694 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.dotnet
~~~~~~~~~~~~~~~~~~~~~~
Lexers for .net languages.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, DelegatingLexer, bygroups, include, ... | [
"2362143268@qq.com"
] | 2362143268@qq.com |
9b69e612ce1735e3297a37f0e864bb92f94d2547 | 84cc47b288292a890f115ed93e3ad1437f803ed8 | /TAL2.py | 7bfd3479b4e930425e2d2779ef7e161c1a777413 | [] | no_license | ClaireLozano/TAL_TD2 | effb6a828f2610c8eb245924cd18c9cf66286e18 | c88a26e19737eb3a2e0bff836cdc52794ecbf1be | refs/heads/master | 2021-05-10T13:34:15.318794 | 2018-01-22T15:43:16 | 2018-01-22T15:43:16 | 118,477,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | import os
import sys
import matplotlib.pyplot as plt
import json
def getDataFromTextFile(folder):
dictionnary = {}
for f in folder:
pathSplit = f.split('/')
language = pathSplit[1]
data = []
with open(f) as inp:
for line in inp:
words = splitByWord(line)
for w in words:
data.append(w)
if di... | [
"claire.lozano@live.fr"
] | claire.lozano@live.fr |
248fd13fb4eaab0035922b523cc263c22c4e30dd | cc0b10f5037f38fbb12d47a55fbab1bcbf90996d | /main/migrations/0006_auto_20191022_1428.py | 54ece5ca3ae4e37808e80bca58fda17fbf349f5a | [] | no_license | sreebhargava143/researchtoolproject | fe92fdfa7533110e2bdf4f7f9fa661e2fb528d96 | 3a19fa423d19053fa8baa395c5b9753948e3eecb | refs/heads/master | 2022-12-22T19:47:29.202845 | 2019-10-22T21:47:54 | 2019-10-22T21:47:54 | 215,212,305 | 0 | 0 | null | 2022-07-06T20:18:58 | 2019-10-15T05:15:06 | CSS | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.6 on 2019-10-22 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0005_auto_20191021_1130'),
]
operations = [
migrations.AlterField(
model_name='storycard',
name='card_data',... | [
"sreebhargava143@gmail.com"
] | sreebhargava143@gmail.com |
f7a2225fb76bf9459f66776aa69b4cf0239c4723 | 64d4e61c73d158a81300b4c43767971a512f66e9 | /KingPhisherServer | bfe4504a4c49194e930b70de7a8939fcf7654b47 | [
"BSD-3-Clause"
] | permissive | nebooben/king-phisher | 82f384da8686149f270d0a117a5536fc56bc949a | 23ea1f2749cd7af031025802557e9b84d5c74ece | refs/heads/master | 2021-01-18T12:17:15.088018 | 2015-09-22T20:37:42 | 2015-09-22T20:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,103 | #!/usr/bin/python -B
# -*- coding: utf-8 -*-
#
# KingPhisherServer
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of co... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com | |
5374279c48d6c2393d43f2cabec46806407affec | c6ba762b22bf2b6c700bdec991cef5fa75bf7bad | /config.py | 28fc04c83eecc352bc7657925b87ed26d1f5a342 | [] | no_license | jcarlos20/00_appbuilder | 9974cfcd2508206aca4613773e1da2bc16da237e | 2cddefa01e04757664eeed1c3bd4636e9fbfae13 | refs/heads/master | 2023-08-18T13:09:04.045068 | 2021-09-22T23:27:07 | 2021-09-22T23:27:07 | 409,384,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
CSRF_ENABLED = True
SECRET_KEY = "\2\1thisismyscretkey\1\2\e\y\y\h"
OPENID_PROVIDERS = [
{"name": "Google", "url": "https://www.google.com/accounts/o8/id"},
{"name": "Yahoo", "url": "https://me.yahoo.com"},
{"name": "AOL", "url": "http://open... | [
"jtorres@noven.io"
] | jtorres@noven.io |
9edd138ebcf348533c62d8526ba75efddf77b4bc | 2876fa06e8bf1812526ec888367d626029a9f0f9 | /anatomy/migrations/0001_initial.py | c95642771e10e52abe90a3b3a8505e15f11b0e12 | [] | no_license | Ashwary-Jharbade/anatomy | af9e2c33e60c397b8cab63cfcc4d900e7789d531 | ea4534bac582b044c00c8592e3b8f7057177e165 | refs/heads/main | 2023-07-17T15:32:47.503613 | 2021-08-29T17:39:45 | 2021-08-29T17:39:45 | 382,641,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # Generated by Django 3.0.4 on 2021-06-20 15:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"ashwary.jharbade999@gmail.com"
] | ashwary.jharbade999@gmail.com |
2a0eb33ad087fd4330fbe9400b31fb58715ae5dd | 6581783e94c0474ace8a945ce6c11dac1c4d60f8 | /bozor/apps/shop/migrations/0001_initial.py | a38712f8ba1322f8b44db839b8708fa9a79d3955 | [
"BSD-3-Clause"
] | permissive | mirjalolbahodirov/bozor | 22367c89c746eeab12334bb3901a0d1b9884f9ff | c76b7b7dee4b6a80957602a10a900f7548347642 | refs/heads/master | 2021-08-23T20:09:04.971753 | 2017-12-06T10:25:33 | 2017-12-06T10:25:33 | 113,212,879 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # Generated by Django 2.0 on 2017-12-05 16:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"mirjalol.bahodirov@gmail.com"
] | mirjalol.bahodirov@gmail.com |
03617b3129dcf8a670eaf2276f34c38807321a83 | 0dc2b8f5b553f72f72a41f61e63b633dca4f9923 | /HICO-DET_Benchmark/Generate_HICO_detection_nis.py | 4bf265cae449fdd5292591073dc10436ae47c90e | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | DirtyHarryLYL/Transferable-Interactiveness-Network | 84e877352bdf5f0654294a6522e6ab0a0e16346e | 3ab905bb95817cbc52b5306323fa9a9ddc3cd86d | refs/heads/master | 2023-04-06T14:08:55.494243 | 2023-02-22T17:47:11 | 2023-02-22T17:47:11 | 177,267,363 | 247 | 51 | MIT | 2023-03-24T22:42:31 | 2019-03-23T09:05:23 | Python | UTF-8 | Python | false | false | 24,084 | py | # --------------------------------------------------------
# Tensorflow TIN
# Licensed under The MIT License [see LICENSE for details]
# --------------------------------------------------------
"""
Change the HICO-DET detection results to the right format.
input arg: python Generate_HICO_detection_nis.py (1:pkl_path) ... | [
"790327070@qq.com"
] | 790327070@qq.com |
199e2c73709ba89644fe25f22ee2a014ca03fcca | d3410127c2fb05a2312c8861214e789fccaba615 | /doctor/admin.py | 0198981b371281c242794bfdc1411d22af6128f1 | [] | no_license | Vitalio44/Dol_plastic | 8f8ef222badc9aaf5807da78c644396209752f93 | 21c6e62e51ecb3343d288c4a1c75bb01388fcf8a | refs/heads/master | 2021-01-19T02:46:09.838145 | 2017-05-29T10:18:35 | 2017-05-29T10:18:35 | 87,291,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.contrib import admin
from .models import Doctor, Specialization
class DoctorAdmin(admin.ModelAdmin):
list_display = ["title", "timestamp"]
list_display_links = ["title"]
list_filter = ["timestamp"]
search_fields = ["title"]
prepopulated_fields = {'slug': ('title',)}
class Meta:
... | [
"Vitalii"
] | Vitalii |
8d533a2e1e17a9542fe1eeacefeee17b3e6fde53 | c25785eefec6a6aadeb215902d672345ffdf8873 | /EDA/check.py | 080b2913fa5f886a091ded500c71a2c0fdecb02b | [] | no_license | ayush237/Phising-Detector | 77e29ed996a1d9a5da0a75d27dd282c6561fe117 | 9c5cf887fe1b2cb5e9578968aed01bfff3af0e40 | refs/heads/master | 2023-01-06T08:44:56.151058 | 2020-11-04T18:25:19 | 2020-11-04T18:25:19 | 296,503,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py |
import re
def URLBreakdown(url):
regex = '''^(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)\.(
25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?)$'''
phoneNumRegex = re.compile(r'''\b(25[0-5]|... | [
"50947002+dhruvstan@users.noreply.github.com"
] | 50947002+dhruvstan@users.noreply.github.com |
98d4b751487188eba562b6871a2298cb5ea68deb | 34d5ebe9e6de9d6742c234dabfa9b38f0adb7774 | /carriage_return/ui.py | 6b4e0f2958482b03ef044f9c62842f0bd045a463 | [] | no_license | campagnola/return-to-carriage | f37acaf8e41ccf04e7089018574732a1fdcd2a64 | eeb7f31b16e2c236c875c867a0295173fa6f4b0a | refs/heads/master | 2021-08-05T14:02:49.988526 | 2021-07-31T08:38:17 | 2021-07-31T08:38:17 | 84,014,684 | 0 | 2 | null | 2021-07-30T02:48:13 | 2017-03-06T00:55:55 | Python | UTF-8 | Python | false | false | 4,518 | py | import numpy as np
import vispy.scene, vispy.app
import vispy.util.ptime as ptime
from .input import InputDispatcher, CommandInputHandler
from .graphics import TextBox
from .console import CommandInterpreter
class MainWindow:
"""Implements user interface: graphical panels, key input handling
"""
def __in... | [
"luke.campagnola@gmail.com"
] | luke.campagnola@gmail.com |
fb8cdf8a313e492be527551aa492bf665d7a5c79 | 11c2e1b6fada746b71e0bd9575f5936a352f14df | /Box.py | 534a08beada9fdc035eded1c97ca9c76bcb8ef29 | [] | no_license | Eglopez/Python-GUI | 6e3e49f25ebb9f60b41d1981c46d6852f5a5eb51 | 05d7c71206d293aea2e8a32a21809f06d9fdcb2c | refs/heads/master | 2020-07-05T08:34:26.338755 | 2019-08-20T00:55:45 | 2019-08-20T00:55:45 | 202,592,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(400, 104)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(20, 40, 371, ... | [
"eduardolopezlainez2001@gmail.com"
] | eduardolopezlainez2001@gmail.com |
65eb9b374f06fae0a98bf2b502ad7a15ff4d00ee | 212266251f6fad18d293dcd752240f90867319a0 | /fibanocci.py | 85014ec7c389ea2e93cb1366cb0fbb2acee92592 | [] | no_license | manojkumarmc/python-examples | b5e41a2c621ad1b2e54002f1c4b96c6b833eb455 | 2eb474f998d6212586a8a2a3723d7471ab565c08 | refs/heads/master | 2021-01-19T00:58:56.397735 | 2019-06-10T17:03:29 | 2019-06-10T17:03:29 | 38,770,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from itertools import islice
def fib():
a = 1
b = 1
yield a
yield b
while True:
a,b = b, a+b
yield b
output = islice(fib(), 0, 100)
for o in output:
print o
| [
"manoj.kumar.myaliputhenpurayi@oracle.com"
] | manoj.kumar.myaliputhenpurayi@oracle.com |
629f28a4b56dfbfcff989d4212e45fd579c89c74 | dc36e9910af16b86657e052dd5335878d734d2f8 | /Part2/venv/Scripts/pip3.6-script.py | daa7481da3e56188b556e6e2fe49748aaa4ea869 | [] | no_license | JLevy97/redhorse2020_interview | e68f785bb115fd4cf0b0bb8983dbff39dd179c9b | 411fccaf02de29bd5d80acf29a2314bccad34dcb | refs/heads/master | 2021-05-18T07:08:33.629580 | 2020-03-30T01:32:08 | 2020-03-30T01:32:08 | 251,172,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!"D:\Documents\Job Applications\RedHorse 2019\Part2\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"39770656+JLevy97@users.noreply.github.com"
] | 39770656+JLevy97@users.noreply.github.com |
0c3188d7fce7c05801cd688411919a2258081394 | a4a9ceccc22c47b1bdeb4903665f926893c11b1f | /parties.py | 37b4cef22d99fb6746fbccb1847df3114d0378c0 | [] | no_license | dominiquetheodore/projet_parlement | 21229ef25d9013f728480a9179f8e8038880c5c3 | ff7465254e68cc1804d36a7e80c0acf3f9e2cbb4 | refs/heads/master | 2021-01-19T22:15:17.254437 | 2017-08-05T14:12:29 | 2017-08-05T14:12:29 | 88,780,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import csv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import PQ, Deputy, Base, Party
from os import remove, listdir
from os.path import isfile, join, exists
from datetime import datetime, timedelta
engine = create_engine('sqlite:///PQs.db')
# Bind the engine to t... | [
"dominique.theodore86@gmail.com"
] | dominique.theodore86@gmail.com |
e2df404f234ab3d108cbda675d9190679f716fdd | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/services/services/feed_mapping_service/client.py | 47bde342b33c5b65eb11046e4f5b390987d25d06 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 20,872 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
99bd11439e2e2f52ed637262e97a8b95926c9cdb | 83043d89093004fb87b133e1affe17a713ace225 | /greatNumberGame/server.py | 8f6f220757e84a40082293baa111e6c457aee612 | [] | no_license | tsicroxe/flaskprojects | f3afa4fd0c3486c59209ae402ac19076a9547e54 | f4955ec4b977460f44562ed3181b5dcdc24c283c | refs/heads/master | 2021-01-12T12:36:20.107323 | 2016-10-15T01:34:34 | 2016-10-15T01:34:34 | 69,612,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | from flask import Flask, session, render_template, redirect, request
import random
app = Flask(__name__)
app.secret_key = "asdf1234"
#Routes to index.html
@app.route('/')
def index():
data = {}
try:
print 'session number is already set: ' + str(session['number'])
except:
session['number... | [
"tsicroxes@gmail.com"
] | tsicroxes@gmail.com |
89dbf6c60e02fa4811b4747ec6b0e32ad8f7d785 | b505e15a2d697f50081eb1d9e01be81213fee51d | /MotionControl.py | 317798a5075de6faf96fba9c36537c8d6cd30652 | [] | no_license | adamanderson/he10_fridge_control | 0dd2af8e9c19752d91901eb3b9adddf83715f537 | 9cb6c0747760b79dc2feef750062798b70d81736 | refs/heads/master | 2021-01-17T00:33:36.053486 | 2020-12-05T21:24:40 | 2020-12-05T21:24:40 | 41,942,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | # -*- coding: utf-8 -*-
"""
Last version of 7/24/17
@author: Antony Simonoff
for SPT-3G
This file prints position, velocity, and time to a text file or spreadsheet
"""
from __future__ import print_function
import time
import serial
import sys
#from datetime import datetime
#from Tkinter import *
#import xlsxwri... | [
"noreply@github.com"
] | adamanderson.noreply@github.com |
c99ad622603cbf9f4ff8ce3a42ef74bed108324b | 1d6c3055cbbd6bf23d272353a3187409b5d0ed78 | /Grafo.py | dd4dacc5e8352013c7503fe37d03e841d82e22f5 | [] | no_license | BASDiniz/GrafoPython | 158c4af2a0e519b44a6b33e7dbc13ebf6f3bbea3 | 5823e4042f05c9a3a9a7c37f7b459d5786fc9edc | refs/heads/master | 2020-08-08T05:24:09.856506 | 2019-10-07T15:20:48 | 2019-10-07T15:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,505 | py | from Vertice import *
from Aresta import *
class Grafo:
def __init__(self, direcionado=True):
self.lista_Vertices = []
self.lista_Arestas = []
self.direcionado = direcionado
self.tempo = 0
def novo_Vertice(self, identificador):
# string = input(str("Identificad... | [
"noreply@github.com"
] | BASDiniz.noreply@github.com |
82d2fa47943004945d86fbcb57953c0a89b36722 | 6326fa61ea28764a430a3910a162ef9861977db3 | /src/spec/genvk.py | 7fb67200e0cb76a26cca2f9636ba3699c76024f9 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"CC-BY-4.0"
] | permissive | hanaa-mohamed/Vulkan-Docs | ec4426a9ed837322337e2d18191dcf4369d49ff8 | 64fa8ef4df3bff37214e717abe490f7ea7ea44b0 | refs/heads/1.0 | 2021-03-22T04:49:46.239044 | 2017-11-27T09:07:06 | 2017-11-27T09:07:06 | 112,636,243 | 1 | 0 | null | 2017-11-30T16:48:47 | 2017-11-30T16:48:47 | null | UTF-8 | Python | false | false | 13,612 | py | #!/usr/bin/python3
#
# Copyright (c) 2013-2017 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"oddhack@sonic.net"
] | oddhack@sonic.net |
1f1e521ed713f698e4e1be29a5625ab970c1060f | a270c429e0228936e3fcf9879c5db4586de086f4 | /testpy.py | 304e245571c84bf59d6692d171f06287e725e405 | [] | no_license | MorijyobiNogyo/cameratest | 0e0fb711ae8616ddeb49ebf481ff2d7583cbcbac | 13b0318afb968b6ae40db67c60f352896c112d79 | refs/heads/master | 2016-09-05T14:10:31.459854 | 2014-04-07T00:52:33 | 2014-04-07T00:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | import test
test.test1()
| [
"kamatuka3@gmail.com"
] | kamatuka3@gmail.com |
ee82711c75670f7d87554edba44e7e7b2e7f4bb1 | 7c0cb3fd9bb95df51470271446f917c3b92f1d07 | /Ch12_Window-Program/12-06-img_button.py | 54e06368940c3b13032506c2d71c533fa8e1eeac | [] | no_license | ShinHyoHaeng/Learn-Python | daf5b9e761427abe328faa651d179dceaa5291fe | 52c1cf4df4be66321b9c977743f75a75f6d675f5 | refs/heads/master | 2023-08-28T10:57:11.790102 | 2021-10-18T01:22:17 | 2021-10-18T01:22:17 | 403,936,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py |
## 윈도우 프로그램의 기본 위젯: 버튼 - 이미지 버튼
from tkinter import *
# 버튼 클릭 시 에러(NameError: name 'messagebox' is not defined)
from tkinter import messagebox # 파이썬 3.6. 이후 버전에서 messagebox 오류 해결 방법
# 함수 정의 부분
def myFunc() :
messagebox.showinfo("강아지 버튼", "강아지는 언제나 옳다")
# 메인 코드 부분
window = Tk()
window.title("이미지 버튼 연습") # 윈도우 창... | [
"hyohaeng.shin@gmail.com"
] | hyohaeng.shin@gmail.com |
89a83059cc975cbb899bcbf35c4ce9000b7da5e0 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_watermill_api.py | 9b7b62efa75df5f6b212c5921dfa2cb31da4fd6a | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.watermill_api import WatermillApi ... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
ce66f81dd62ef4c454b93bada3202dfdabc764a2 | adbb2b958296815f9485bab60c0d38827befeeeb | /build/lib.linux-i686-2.7/gdrivefs/change.py | 394f5bedbdc47e5902688e014679cddbd2e96977 | [
"MIT"
] | permissive | gryphius/GDriveFS | 4b4619e1eefceb562ded6ae13dcc9a2c5b4c0a1b | fadfbdea019cfa4c2a821f4636380edbc8be32bc | refs/heads/master | 2021-01-18T14:14:32.028542 | 2013-04-24T06:17:03 | 2013-04-24T06:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | import logging
from threading import Lock, Timer
from gdrivefs.gdtool import AccountInfo, drive_proxy
from gdrivefs.conf import Conf
from gdrivefs.cache import PathRelations, EntryCache
from gdrivefs.timer import Timers
def _sched_check_changes():
logging.debug("Doing scheduled check for changes.")
get... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
f58dcee5cb758e78ff6bf7dcf3b58455a48bf188 | 88dfd5f8ff788378305b832813f44ac6c3939065 | /MxOnline/urls.py | 314156940afc1209329e74b256b420371714b839 | [] | no_license | jixiaoxin666/MxOnline | 27ebb0041a038c95158baa3e97dd812a13f9f8a0 | 22b88a8a35899fedec19e64eeb15eb809b038772 | refs/heads/master | 2021-04-03T08:16:04.363410 | 2018-04-14T06:53:37 | 2018-04-14T06:53:37 | 124,881,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # _*_encoding:utf-8_*_
"""MxOnline URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home... | [
"jihuixin@xjgreat.com"
] | jihuixin@xjgreat.com |
f8917466e4a192e6642d00bf1a4285c37b838b7f | 52725f5e0b5cd1c258c22a8b14979c32b010463f | /setup.py | 3719dcbde5fc902b4035eec5da685152fa4e077b | [
"MIT"
] | permissive | ehershey/penn-sdk-python | 0fd902cc88ac7f722ce3440ae3192f01a94250ed | 30f7c975e76db85c5c365ba0aff81ff0fe2ce58a | refs/heads/master | 2021-01-21T08:38:19.898861 | 2013-10-30T20:55:45 | 2013-10-30T20:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from distutils.core import setup
import penn
setup(
name='PennSDK',
description='Python tools for building Penn-related applications',
url='https://github.com/pennappslabs/penn-sdk-python',
author='PennApps Labs',
author_email='pennappslabs@gmail.com',
version=penn.__version__,
packages=['p... | [
"kyle@kylehardgrave.com"
] | kyle@kylehardgrave.com |
13b3e86381b9d83ab0f7bc356fcac495f9962c13 | 2cf698dab041796369c137404bc01da055ccfe33 | /P1即时标记/markup.py | d308e100e690b4ddd8e2f497099756507f094142 | [] | no_license | DFEViA/Python2.7Project | f698d8bcd1b175b75b939597b885ceb267da18ef | 2608eb6257c8183e4dec948d7d9b35b3a4469ba9 | refs/heads/master | 2020-04-05T14:33:08.941046 | 2017-07-06T06:04:18 | 2017-07-06T06:04:18 | 94,674,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-06-18 21:34:54
# @Author : Your Name (you@example.org)
# @Link : http://example.org
# @Version : $Id$
import sys, re
from handlers import *
from util import *
from rules import *
class Parser:
"""
语法分析器读取文本文件、应用规则并且控制处理程序
"""
def __init__(self, ... | [
"2653239255@qq.com"
] | 2653239255@qq.com |
180d7e63bd9cdeaa048ef5fceb023abdcaffe85e | 07120adf02a2fc58a9d3ee85ecc7f6abb2a0a4c7 | /UdPject/Original_bot.py | 7d20218c56a92073d8066ac86013869fc36f0fdf | [
"MIT"
] | permissive | Mbonea-Mjema/Telegram | 53d22896cbd462df355dde75b36abd4c050e032c | b6c6910e646816a2985e29f6b9dfd514e02e14c8 | refs/heads/master | 2021-06-24T12:57:46.095595 | 2017-09-12T15:45:32 | 2017-09-12T15:45:32 | 103,290,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,929 | py |
from run import getData #gets data from the zigbee(xbee) connected in the raspberry pi
#stikers
Stiker ={"Thinking": "CAADAgADNwADyIsGAAFOgk-EJUfH-gI","Albert_Einstein":"CAADAgADIQADyIsGAAHaCFln7THl9QI" ,"Goodnight":"CAADAgADxgUAAvoLtgjbqjaBr05-YgI","Waiting":"CAADAgADxQUAAvoLtgipmNsAAd08atYC"}
#emoji
Emojies={"SMIL... | [
"noreply@github.com"
] | Mbonea-Mjema.noreply@github.com |
f181b10e9cc80527a418bb758860d3196cdc888e | 013d9f5ae8f5c35e31fae89520813e61450e9b94 | /webdevops/settings.py | 0ad36c3ca90004f0d7e09fb62b123bcf57a22cec | [] | no_license | daysunshine/webdevops | f83ae6aa2feec10ee02cdff339d8c71cc0c4e9ce | 3787bd65e54250e11eb02918df6ceb389010ecfa | refs/heads/master | 2022-03-20T21:22:29.246769 | 2019-12-23T08:16:17 | 2019-12-23T08:16:17 | 226,041,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | """
Django settings for webdevops project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"1558526652@qq.com"
] | 1558526652@qq.com |
11416eba932d3ceb66c0fb690e4d5d2c5b45fb53 | 37430b0cdf24f602e16a81b344f32a05bd6e2251 | /monitoring/trademark_monitor.py | e8e6a9f90202ddddbcdf7294667219a354094e68 | [
"MIT"
] | permissive | evelyn9191/trademark_monitor | 626be61f4823384d09358008ccf40d896925d77c | c82a70532e0e92a29e8f0f4a35c8ce71b2b76859 | refs/heads/master | 2023-03-29T20:40:05.758313 | 2018-12-19T21:56:18 | 2020-02-29T08:41:29 | 165,064,717 | 0 | 1 | MIT | 2021-03-20T20:03:19 | 2019-01-10T13:28:52 | Python | UTF-8 | Python | false | false | 9,451 | py | # Trademark monitor fills out search form at www.tmnd.org with provided data,
# and sends the results as html text within an email to receiver's email address.
# Script is then run once a month via Cron.
#
# There has to be module :email_data with the variable named 'receiver'.
# The variable contains email address of ... | [
"ockova.michaela@gmail.com"
] | ockova.michaela@gmail.com |
c291253d61fc94df4cada29e2ffdbd049b83476f | 39e8c9a4e0639fc73291e27457a7701bfeb32b16 | /api.py | 73406cc2bb4b64cb01003fd5ae4c138af9d0164d | [] | no_license | pkolios/ding | 967fcad7a02aee89d9a406b255a030d89d0c9ebd | 158a94be014b6d9e3938c2e127faa546336da7cc | refs/heads/master | 2021-01-10T06:21:01.229862 | 2014-04-25T09:45:57 | 2014-04-25T09:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import json
import pika
from flask import Flask, Response, abort, render_template, request, url_for
app = Flask(__name__)
# Rabbitmq
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='din... | [
"paris.k@gmail.com"
] | paris.k@gmail.com |
638342b991b3abab3fc9f44d4cec5456f14da836 | fc3546dae25e362728d6c832d20387b2888b9c98 | /aes.py | 4c5b46de2e8566b36ff81cda1bf146fc96f103f3 | [] | no_license | clefru/mypyaes | bbd3a9804941a700e4e4c6be6832d5acf441ef92 | dfbee6061bd76709db223df30cd99ab22d56b87c | refs/heads/master | 2020-04-15T02:14:05.388155 | 2019-01-29T09:50:09 | 2019-01-29T09:50:09 | 164,307,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,309 | py | #!/usr/bin/python
# Copyright 2004, 2019, Clemens Fruhwirth <clemens@endorphin.org>
# My pedagogicial Rijndael implementation in Python.
# It uses a minimal amount of magic values (no predefined lookup
# tables) and if so, they are marked with MAGIC
# DO NOT USE IN PRODUCTION OR WITH ANY PRODUCTION SECRETS. THIS IS M... | [
"clemens@endorphin.org"
] | clemens@endorphin.org |
8596ef3beed2acbd192211891b7e6ff558450fe7 | ce3e499774c45b9cce4c7b9b1b7ea762a1a7c0c1 | /src/foodify/settings.py | 7b69f33b4b45e62938a070cf4b80c8f508fd8790 | [] | no_license | aminaloui/Foodify-Praktijk-2- | 6d6776a09f9ecaaebf54cedaf7431f7af5071951 | 3184beb38804cdc6def4ec2a3c20d868f6320a42 | refs/heads/master | 2020-08-08T06:55:04.770012 | 2019-11-01T18:02:02 | 2019-11-01T18:02:02 | 213,767,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | """
Django settings for foodify project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"amin@Amins-MacBook-Pro-2.local"
] | amin@Amins-MacBook-Pro-2.local |
f2f17f58ba386a695c6117de316226c5144ad71d | 4d47afc8d51fb5c4b6f02039e809c110c9c6178c | /PrimeNumbers.py | c032b674d6fbb61758282bee6ac3578fda2f4d1c | [] | no_license | SVovk2012/Python | 4bbd93720f14ee1341dae1a4e20a133a462b2508 | 691d3481db3ed0fbc37f47ac701add84e3918532 | refs/heads/master | 2020-03-19T10:23:01.034505 | 2018-11-04T19:29:51 | 2018-11-04T19:29:51 | 136,365,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #function returns the list of prime numbers up to the 'num' and including 'num'
def count_primes(num):
#initialize a list with first 2 known prime numbers:
primenumberslist = [1,2]
#iterate two times through all numbers up to the 'num'
for a in range(3, num+1, 2):
# change isprime to False if we... | [
"noreply@github.com"
] | SVovk2012.noreply@github.com |
5260e5f6e9e62dff2851c2a69b0d9942a5673c04 | ccbb7fb8fda4d936e765263f05a435058b397bd9 | /src/guiltytargets/ppi_network_annotation/pipeline.py | 4556892fb1e8316cdaac58aa4319506234f86649 | [
"MIT"
] | permissive | GuiltyTargets/guiltytargets | 5a5d3ba9e45867a64c81a91529ae6689f8be447f | c20a5cae6c9cc71c2ca73080a862abe986bc34c0 | refs/heads/master | 2022-02-13T03:30:49.705239 | 2021-12-22T12:51:20 | 2021-12-22T12:51:20 | 154,318,881 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # -*- coding: utf-8 -*-
"""Functions to easily set up the network."""
import logging
from typing import List, Optional
from .model.gene import Gene
from .model.network import Network
from .parsers import parse_csv, parse_disease_associations, parse_disease_ids, parse_excel, parse_ppi_graph
__all__ = [
'generate... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
f32df982f5733226b7805e1b39d44e5cdad86efa | d4da2760dd011facd24ecbb6955cbedf04dd1a1d | /src/bfvae1/solver_test.py | 216d4953f3163c0a52ea2bd31501fee2d35e8eba | [] | no_license | entn-at/bfvae | 658f59bfbdb8223a1dbe335a5605394328f3045d | 6308734b195d1d937f5b72ed7f8535f0bcca96b7 | refs/heads/master | 2023-01-06T21:48:42.905720 | 2020-11-06T16:51:25 | 2020-11-06T16:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,652 | py | import os
import numpy as np
import torch
import torch.optim as optim
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torchvision.utils import save_image
#-----------------------------------------------------------------------------#
from utils import DataGather, mkdirs, grid2gif
from mo... | [
"ps851@scarletmail.rutgers.edu"
] | ps851@scarletmail.rutgers.edu |
818075f2fa2059a4e76ac9ab6fcfe1a45bbed4fa | c6a97e9c3d37897547d599d907b91ee123c312e8 | /hetmc_run.py | ec033f9f74b2e7143bd247a9017c9d9c4f1ce514 | [
"MIT"
] | permissive | neuztb/HET-MC | 7a14f0524ef7ef4cb1c00bb7a791c8c896b3ab4c | 18d611ef0722c549a263b12be2d70cd85a150200 | refs/heads/main | 2023-06-13T01:54:44.438262 | 2021-07-04T04:14:36 | 2021-07-04T04:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,734 | py | from __future__ import absolute_import, division, print_function
import argparse
import json
import logging
import os
import random
import numpy as np
import torch
from sklearn.metrics import precision_recall_fscore_support
from pytorch_pretrained_bert.optimization import BertAdam, WarmupLinearSchedule
from tqdm imp... | [
"yhtian@uw.edu"
] | yhtian@uw.edu |
2e557a9d2e7e6a2d371e64ee7999559e8bea6d75 | d62caf4015dbb6017c1078d59b36b9d5c90a13f0 | /education_system_a/manage.py | 0e9ed335cb8aae5777ae24b6bda1137560ff384a | [] | no_license | WuChuYi/education | 3e007932daae212a36923a04b0fc79550cf3ab05 | 5a9f431e22f61b27b730fafba521e78b045eec81 | refs/heads/master | 2020-03-19T03:11:04.516257 | 2018-06-01T11:19:24 | 2018-06-01T11:19:24 | 135,702,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "education_system_a.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import D... | [
"chuyiwu@foxmail.com"
] | chuyiwu@foxmail.com |
6f3448d29f55f76cbc5b23cf246a84cbabe6592b | 148b6d9b43f1096960effc0bb4264686914f3c21 | /new_folder/deyisiklik.py | 1e6b0dfe99f5fdbb214ed48500cb333364f36fcc | [] | no_license | farxad91/GitDersleri | cada4a9a5e2283fbeb29be83f5d786295bc3e9d6 | f7a1c4209e96a56e26e022ebeb7d986490156528 | refs/heads/master | 2021-05-18T02:20:58.007757 | 2020-03-29T14:30:27 | 2020-03-29T14:30:27 | 251,063,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def ustegel(x + y);
return x + y
def salam ();
print("hello")
| [
"farxadgambarov91.fg@gmail.com"
] | farxadgambarov91.fg@gmail.com |
8f15048573ae6cf53c784fe29bb50ef7345fb154 | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/Dstruct/Basic/inter2.py | 200364cc5828b3f08ae4bba0989169e3e39861b8 | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | def intersect(*args):
res = []
for x in args[0]: # scan the first list
for other in args[1:]: # for all other arguments
if x not in other: break # this item in each one?
else:
res.append(x) # add common items to the end
return ... | [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
b187b3dd4ec4a595ec4a5689b6746f1d8a35d782 | ed520426baa0cb046ed1d5b59fc5b387cae966ee | /plotData.py | 0131b14f8aac05139cc117ddb861e1de162183b5 | [] | no_license | juanfvallejo125/MiniSegway_Data_Collection | 983eb73e66bcaa28a38f4c284dee0c6dcbbb9e33 | f5de229ddd4169156b5d46e0749d67b1bcbf6dcf | refs/heads/master | 2023-02-21T15:21:40.668386 | 2021-01-22T21:26:32 | 2021-01-22T21:26:32 | 323,231,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,760 | py | import numpy as np
import matplotlib.pyplot as plt
def main():
file = open('test_1_1_21_21_5.txt')
all_arguments = []
all_values = np.array([], dtype = float)
line = file.readline()
while(line): # Parse through the entire file
if(line[0] == '$'): # Data lines are marked with a dollar sign at the start
line =... | [
"juanfvallejo125@gmail.com"
] | juanfvallejo125@gmail.com |
a68a0d4543824377684445082a309e04204bc1e7 | 7e9b04b9e4212b58cd57ecc6e1f3c8dc06bf83ef | /OLD_BAK/data_structure2/practice/hotpotato.py | 6c8d515b882fca2c17f8a088b88adf633a663ed9 | [] | no_license | onionzhou/Note | 1766cf8ac45e9fd39b7eb79816c01e8ab709a52d | ed008913a2ce51b6c26718d09461e126b71fc0e1 | refs/heads/master | 2022-11-14T18:34:42.166244 | 2022-10-18T13:38:50 | 2022-10-18T13:38:50 | 132,616,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author:onion
# datetime:2019/10/6 13:28
# software: PyCharm
from data_structure2.basic.my_queue import Queue
from random import randint
'''
传土豆游戏
接收一个名字列表 和一个用于计数的常亮num
程序将这个孩子的名字移出队列,然后立即将他插入队列得尾部,
随后该孩子会一直等待,直到再次达到队列得头部,在出队列和入队列num次后,
位于队列头部的孩子出局,如此反复,直到队列只剩下一个名字(队列大小... | [
"dkonion@foxmail.com"
] | dkonion@foxmail.com |
61e32bfd56df75f25d13318c5a7a8e3483ac5f47 | afc3dc5769fbd3803d4ea126acea927fd784a706 | /student.py | 1fe2def62713c281db224fe7834bb554b9728299 | [
"MIT"
] | permissive | seanmacb/COMP-115-Exercises | 1a33cddb6cb7a66efb4aa85914f65dfe1991cec9 | fbe7e5b158f2db785b886b6c600f1a8beb19ab1f | refs/heads/master | 2022-12-05T09:16:31.205481 | 2020-08-31T01:09:00 | 2020-08-31T01:09:00 | 287,665,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # student.py
#
# Class to store info for one student; similar to program on p. 327
class Student:
def __init__ (self, lastName, firstName, idNum, grades):
self.firstName = firstName
self.lastName = lastName
self.id = idNum
# make a list for all the HW grades
self.hwGrade =... | [
"seanmacbride@icloud.com"
] | seanmacbride@icloud.com |
0c924d1161b97dbe606ec60a4a52647ccc876ffd | 74e5a5b47a479b92c4e8f69a2a1c5018cd02e4de | /ex29_What_if.py | dc4f560c49c05465e95c2c22341c739c21f0c7ff | [] | no_license | heron2014/Learning_Python_The_Hard_Way | 3fc80ee4b0a8a4be26a2b40c7b66c1cc333d4bb2 | 7300ba821a76556a39d2de32be18aa61fe50c9b1 | refs/heads/master | 2020-05-17T00:00:23.732103 | 2015-01-30T15:58:24 | 2015-01-30T15:58:24 | 29,782,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | people = 20
cats = 30
dogs = 15
#if boolean expression evaluates to True , run code under it otherwise skip it
if people < cats:
print "Too many cats! The world is doomed!"
if people < cats:
print 'Not many cats. The world is save!'
if people < dogs:
print "The world is drooled on!"
if people > dogs:
... | [
"a.nita@hotmail.co.uk"
] | a.nita@hotmail.co.uk |
c3270fdaccc023a16cea14d71a33d0ce8194251a | 3c3d978649517493745d9ce9bb44362a0fb53dbb | /get_pairs_chinese/get_text_pair_lcqmc.py | bb3c6f672230313c6e12e068fe0113ac2e4f2fff | [
"Apache-2.0"
] | permissive | fighting41love/text_data_enhancement_with_LaserTagger | 4679b37a416758521f732438bd91b9269217973e | 64b7b2a136820a52b40646bd71495c8e865a9827 | refs/heads/master | 2022-10-13T12:25:42.641144 | 2020-06-08T10:07:19 | 2020-06-08T10:07:19 | 271,198,161 | 2 | 0 | Apache-2.0 | 2020-06-10T06:34:53 | 2020-06-10T06:34:53 | null | UTF-8 | Python | false | false | 2,417 | py | # coding=utf-8
# 利用文本匹配的语料,从正例中采样得到句子对(A,B),然后训练模型把A改写成B
# 当前是针对LCQMC 改了几条语料的标注
import random
import os
import sys
sys.path.append("..")
from compute_lcs import _compute_lcs
from curLine_file import curLine
def process(corpus_folder, raw_file_name, save_folder):
corpus_list = []
for name in raw_file_name:
raw... | [
"785092099@qq.com"
] | 785092099@qq.com |
5582e0c04ffcb5fecce6af3812ec4c05c1be9fb2 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thnhatrangvn.py | 220429db599deaabf7822d301bccd557a783a259 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='home-center']/div[@class='product-info']/div[@class='product-name']/h1",
'price' : "//div[@class='product-right']/div[@c... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
9cbdd8a6c6170a9d1d5a9ca37e428a2e16bc6c22 | 309d17b81cea038713ba67bee72a41d2df4d6869 | /Python/Python_basic/Python_OOP/OOP21_composition2.py | 86f25cef9fcfcf5256d11e83738ff6e7e74ed70b | [] | no_license | Bongkot-Kladklaen/Programming_tutorial_code | ac07e39da2bce396e670611884436b360536cdc5 | cda7508c15c3e3d179c64b9aac163b6173ef3519 | refs/heads/master | 2023-06-20T13:14:17.077809 | 2021-07-18T04:41:04 | 2021-07-18T04:41:04 | 387,081,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Printer:
def print_page(self, data):
print("printing {}".format(data))
class Scanner:
def scan_page(self):
print("scanning...")
class Fax:
def fax_page(self,number):
print("faxing to {}".format(number))
class Aio: # All in one printer
def __init__(self, p, s,f):
se... | [
"bongkot.klad@gmail.com"
] | bongkot.klad@gmail.com |
7bd764e443bcc2a8bebbfbb11b929320013f5a61 | de0824b62a51d44e5031dbc9f2cd45d9e8de45ed | /tests/test_manager_implemented.py | bbbca642c1ad3de56ad36b28baacfe6f3cb524a1 | [
"MIT"
] | permissive | SecuPlus/tomcatmanager | 6447e51882a54cf7b75d50c62fdce399cad54044 | 597f3e37a520b66fc6c05984c69ec22111ef1f11 | refs/heads/main | 2023-07-15T09:58:06.387805 | 2021-08-26T18:50:34 | 2021-08-26T18:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,816 | py | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007 Jared Crapo
#
# 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, mod... | [
"kotfu@kotfu.net"
] | kotfu@kotfu.net |
c507865b007f982465904baf2c3b60f92f089965 | d15b12580c59ad3c742ebd7cc8994d61ec54bdd7 | /application/app/migrations/0002_auto_20180327_2104.py | 2dd7bc73c0bfd98e17a9a10885c07a4eacddde8d | [] | no_license | Nick1994209/wordknow | 6443f6a50858d367bcb86d8657bcf3cdcf7aef8e | 56d10e32125b9875c95acfbbca07d082493472be | refs/heads/master | 2023-01-18T15:14:11.299101 | 2020-09-18T07:18:36 | 2020-09-18T07:18:36 | 126,932,851 | 0 | 0 | null | 2022-12-08T05:45:35 | 2018-03-27T05:20:56 | Python | UTF-8 | Python | false | false | 434 | py | # Generated by Django 2.0.3 on 2018-03-27 21:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='chat_id',
field=... | [
"NVKorolkov@domclick.ru"
] | NVKorolkov@domclick.ru |
fb28b34d5e92d85a2bb4c9bb7c813b765175571d | 98a6a4f99a170cb96f6d2a620029bbcfc6775c6c | /blogengine/settings.py | 67706dd834e09268201ed0080747ecda00dab64b | [] | no_license | OttoSteel/blogengine | f367dc4003fd3c229c0f3a2562790c597973156e | 09f5e90a907471918b9a8b31f74bd70a04730a1d | refs/heads/master | 2023-01-05T10:38:36.440501 | 2020-11-02T21:01:00 | 2020-11-02T21:01:00 | 309,198,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | """
Django settings for blogengine project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"polshinski@gmail.com"
] | polshinski@gmail.com |
7bd0879f9babbc70ad3e7b46acda567a0352685e | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/chunk/util.py | 0027fab667b850ac00ae34418c66c68f13313f1e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 21,251 | py | # Natural Language Toolkit: Chunk format conversions
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com> (minor additions)
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import print_function, unic... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
ea8ca2060f2262c3ecaf0c88506fad93bb81a001 | eb54d732b5f14f03d9bf2988c6157605c80bbdd5 | /bubble_sort.py | e599bb7065016d2e01b3e67d5e93e3dc4947d828 | [] | no_license | tngo0508/practice_coding | 2e60519fed83a9b3c28b52c2d5ec1ee1d2a609ed | 453c9a7b9a8aa80f37b245f9df447525a9b0a2d1 | refs/heads/master | 2022-03-27T01:44:56.589650 | 2020-01-05T18:58:31 | 2020-01-05T18:58:31 | 225,294,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def bubble_sort(nums):
for i in range(len(nums) - 1, 0, -1):
for j in range(i):
if nums[j] > nums[j + 1]:
nums[j], nums[j+1] = nums[j+1], nums[j]
print(nums)
return nums
print(bubble_sort([4, 1, 0, 3, 5, 1, 2, 6]))
| [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
eb79ae9da300d2daa7953889856eb0652be4ea4c | d08c8bcbe0f67cb3ff2a01afc9fad390dafc4f0a | /test/Search.py | 160ad7cdc68be1100fd06521f140ffba64b3240b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | Dibyadarshan/mezzanine | 6e6a1cafdba03660a18df29238b271a83357a9b0 | 6bc046f086c70c1f6bda3458eafbbe2da54df0c8 | refs/heads/master | 2020-07-22T07:29:35.759238 | 2019-11-06T17:14:04 | 2019-11-06T17:14:04 | 207,116,582 | 0 | 0 | BSD-2-Clause | 2019-09-08T13:27:44 | 2019-09-08T13:27:44 | null | UTF-8 | Python | false | false | 2,564 | py | import unittest
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select... | [
"hanmol123@outlook.com"
] | hanmol123@outlook.com |
71ae82df16f921dba43e0a9720d746745210aa0c | dcb2700636da30ca8e2a86e8a76fb5e796650922 | /app/geocode.py | 64843a6543b1d571817e8df242917048df3b7cd4 | [] | no_license | Tepau/GrandPyBot | 17820200595d1f7de4da4eb920b7a56cd7eeb62b | 63bbc85b6fa9e945819ecc45fd318b842ebdfd89 | refs/heads/master | 2022-12-13T16:06:11.440161 | 2020-05-04T13:21:23 | 2020-05-04T13:21:23 | 201,489,329 | 0 | 0 | null | 2022-12-08T06:10:18 | 2019-08-09T15:02:07 | Python | UTF-8 | Python | false | false | 1,486 | py | import googlemaps
import os
class GoogleMap:
"""class who recovers informations about
a place through the api "googlemap\""""
def __init__(self):
self.gmaps = googlemaps.Client(key=os.environ.get('KEY'))
def find_adress(self, search):
# Get the full adress of a place
geocod... | [
"malaury.lemaitresalmon@gmail.com"
] | malaury.lemaitresalmon@gmail.com |
86a2d304179a0d4d021966bafce213f4365d57c2 | 84290c584128de3e872e66dc99b5b407a7a4612f | /Statistical Thinking in Python (Part 2)/Bootstrap confidence intervals/Visualizing bootstrap samples.py | 325418de26f528e09ecafe5c6554c241dae959c8 | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | for _ in range(50):
# Generate bootstrap sample: bs_sample
bs_sample = np.random.choice(rainfall, size=len(rainfall))
# Compute and plot ECDF from bootstrap sample
x, y = ecdf(bs_sample)
_ = plt.plot(x, y, marker='.', linestyle='none',
color='gray', alpha=0.1)
# Compute and plot E... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
e8e6486efd70d55478ed082df7d817b27d8eed70 | 5c0ca1a0c9c057a3ffc328a45e66b5a0bcbadd5a | /a.py | 5350b1468de4ae0e15c59023c556f6b57932215d | [] | no_license | 190330126/Project0202 | 516d75c4256704130bf6238afc6ff1e736bdb512 | e0b6b7629fc2e4eb9267ea01bc5bac9ac16b2293 | refs/heads/master | 2023-02-26T11:18:10.367685 | 2021-02-02T05:02:03 | 2021-02-02T05:02:03 | 335,174,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | def do():
print("I can not do")
def play():
print("I play cricket")
| [
"190330126@klh.edu.in"
] | 190330126@klh.edu.in |
381cbb9843c8e8a7b93fece9104cde8dc161688a | af373596f14347bb7a3483a14ead3004efd45aa1 | /particle.py | 5a99e874dc274413c9daecaac20f208b440ea466 | [] | no_license | bharath-r/2D-SLAM | 7ed1b519aa38b92bf99fdfcea53a29cd3f20ff41 | f1116f16cbaaaea6c08962c91843e7eade23c989 | refs/heads/master | 2020-05-03T00:34:05.574200 | 2019-03-29T01:56:21 | 2019-03-29T01:56:21 | 178,312,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,353 | py | import numpy as np
import math as m
import cv2
class particle(object):
# Particle has weight w and the current state x
def __init__(self, w,x):
self.w = w
self.x = x
# Update the map by finding hit coordinates in the world frame using the head/neck angles, local frame
# coordi... | [
"noreply@github.com"
] | bharath-r.noreply@github.com |
15800cdc98e5923c97a8260ad85c32ff54666a97 | d07a6b31a74b50da39b77f79c084ddc4a8c4a23d | /jia_django/jia/jia/settings.py | 8b4fee60668da7981781ff7f9bdb3764f172ccec | [] | no_license | fribble186/jia | 5d3224c83c6beddd422d08136bd9b73db467a603 | e93a064fb43404f38a017546366bb9ae59efcfca | refs/heads/master | 2023-01-02T00:46:48.834861 | 2020-10-26T09:20:33 | 2020-10-26T09:20:33 | 305,665,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | """
Django settings for jia project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bui... | [
"psj124@qq.com"
] | psj124@qq.com |
c0339fb350d2f4299dcc7b234f1dd422618bc1ba | 6218864c9b51d9f8abd8c1478660fdadf9e41911 | /mms-basket-optimizer/optimizer/MKMAPI.py | 3fb63abaed841f6799b067f0761a8e94a71cdf2c | [] | no_license | wynautt/mms | f152c482e5b6d51c99af1248bc0c54c557168aca | 879663b0ac13f4ccd1a605aaceb328f9fa6c902e | refs/heads/master | 2021-05-11T09:06:27.492564 | 2018-01-21T20:14:23 | 2018-01-21T20:14:23 | 118,061,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | import sys
sys.path.insert(0, "libs")
import requests
import logging
import httplib
import pickle
import json
import hashlib
import os
httplib.HTTPConnection.debuglevel = 0
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.CRITICAL)
requests_log.propagate = True
stream_hand... | [
"wynautt@undefined.com"
] | wynautt@undefined.com |
93059852d29c8eae57585fb1868438b234082be1 | 18aedf3de6badbdab79c7c1de632f7cc75b6540a | /livedata/forms.py | b7c03b74d8cc499c0b7a81f4ce97467071619d0e | [] | no_license | nrjadkry/covid19 | e4fada0ba1fa12088a8aa4a6594298d774174617 | 1f165a0820af9b3fa584aa2cbfade582801401c9 | refs/heads/master | 2022-09-05T12:03:53.675421 | 2020-05-27T11:00:06 | 2020-05-27T11:00:06 | 266,482,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django import forms
class CovidForm(forms.Form):
country=forms.CharField(required=True)
| [
"nrjadkry@gmail.com"
] | nrjadkry@gmail.com |
991cbc95070acdf5c80c693df59fb131362feff3 | b7c538adde4712a5be459b3c7cf39c574fdb30c8 | /macro1/matlab/Sugarkhuu_Macroeconomics_PS2/compute_medians.py | 984cfa199dedb74cd41427a2981ca5347c23fdb9 | [] | no_license | Sugarkhuu/bonn_phd | b3f9351628270a55d01204e8210c94cdba1bcde4 | 3b45b1c8462ab1e8c09ba3df9a90d57a74bc70cf | refs/heads/main | 2023-09-02T17:27:39.681537 | 2021-11-12T09:15:28 | 2021-11-12T09:15:28 | 420,656,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py | ### Code to compute income and networth medians from SCF data
# =============================================================================
# IMPORT PACKAGES
# =============================================================================
import pandas as pd
import numpy as np
import os
# ========================... | [
"py4econ@gmail.com"
] | py4econ@gmail.com |
95c11fc532001a60bcf89f67ab4b82459082e79d | 21bb5da0c2bbb840edd893539acffa35b04c614c | /tvshow_folder.py | e8039b06f46f6c8ecb4597c79343e1055c48a636 | [] | no_license | guiszk/tvshow | adef03e7859cb4efc46f028d2a6041797de8464d | 85f4b4ecfcb06bf8ff77043589e91f277dacdd05 | refs/heads/master | 2023-03-04T23:11:07.523762 | 2021-02-07T02:40:29 | 2021-02-07T02:40:29 | 337,578,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | #!/usr/bin/env python3.7
import os, sys, re, requests
from bs4 import BeautifulSoup as bs
if(len(sys.argv) != 4):
sys.stderr.write("{0} <name> <path> <*name>\n".format(sys.argv[0]))
sys.exit(1)
if not (os.path.isdir(sys.argv[2])):
sys.stderr.write("<path> must be a directory\n")
sys.exit(1)
allowed = ... | [
"guiszk@protonmail.com"
] | guiszk@protonmail.com |
c8cb7b527e6e5bd43755eaa0f580c076ec82f12e | f3bbfe35555030afce1fd6d430f0b90e02e96ced | /Directory Scan/dirScan.py | 9e448afcc1b3304e844393c5d35a9cc94477b88a | [] | no_license | git618/py-scripts | cb42e871fa2e085c81172d8678292bb6798a315b | b24404b393c2e7d8480435b70cbee1c3114b51a3 | refs/heads/master | 2022-01-09T16:49:40.129004 | 2018-09-13T03:19:36 | 2018-09-13T03:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding:utf-8 -*-
import requests
from threading import Thread, activeCount
import queue
def dir_scan(url):
"""
扫描url
"""
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.... | [
"1162248131@qq.com"
] | 1162248131@qq.com |
5c97cdd91470bad1c6f42403f56fa17b169b7aa4 | e50a4820db6f5230c852ba3ef1b7fd12bbce9aac | /file/favority_number.py | 34448be22d245de0db738ce9497cfbca4f9d10a2 | [] | no_license | LeoSilvaGomes/pythonPlayground | 078773b6a3cf67e0e87d68c8c008733e40a29261 | bfb65f5cf4d60a3c1240be028a1d7ece3f127d77 | refs/heads/master | 2022-04-24T02:32:36.311181 | 2020-04-29T02:32:13 | 2020-04-29T02:32:13 | 259,804,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import json
def write_number():
'''Write on file the favority number'''
number = input("Tell me your favority number: ")
filename = 'favority_number.json'
with open(filename, 'w') as f_obj:
json.dump(number, f_obj) | [
"leonardodasigomes@gmail.com"
] | leonardodasigomes@gmail.com |
c084b8ef3203190d108bbb035c3c5f0dd2efccc3 | 48bccafbc774f82a7598ec514ccadf8962ec06d0 | /10/jacksyntax.py | 8415ac34c62438730f1d73e67bce9216533a304b | [] | no_license | waddlepon/nand2tetris | 9378be45b05205b94169b47aa5efa1c84846668d | 963fc5be3c1192f189b55db63a8a5466aca8dd5e | refs/heads/master | 2020-03-30T11:47:17.884896 | 2018-10-02T03:01:16 | 2018-10-02T03:01:16 | 151,192,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,427 | py | import argparse
import tempfile
import os
from enum import Enum
def isInt(s):
try:
int(s)
return True
except ValueError:
return False
class TokenType(Enum):
KEYWORD = 0
SYMBOL = 1
IDENTIFIER = 2
INT_CONST = 3
STRING_CONST = 4
class JackTokenizer:
SYMBOLS = ['{'... | [
"tylpoon@bigcity.local"
] | tylpoon@bigcity.local |
55ebb1748fdf42a82be27411918d1825e97a3dba | 3a88c807b9343d7e609edf6c5c77386ff258af8c | /day24/day24.py | 8fd81017776ae4f24962663b96e1f9a56adfebda | [] | no_license | cdmaher/adv_of_code_2019 | 0e9d66fd852207744d5da1ce8c6d6a9e81af71dd | 4051daeda28d64be771bce312355b3a92bffa962 | refs/heads/master | 2022-12-17T06:39:37.570316 | 2020-09-18T18:47:02 | 2020-09-18T18:47:02 | 296,703,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | import sys
import copy
import math
from functools import reduce
from sets import Set
file = open(sys.argv[1], 'r')
lines = file.readlines()
erisArea = [[['.' for i in range(5)] for j in range(5)]
for depth in range(300)]
lineN = 0
firstArea = erisArea[150]
for line in lines:
splitL = list(line.rstrip(... | [
"cdmaher@fb.com"
] | cdmaher@fb.com |
391a306f78fe5c96c880603c95534afa317eb828 | 874f8db726d5ce5da971dbd54aac58f0b3176d78 | /aa通用的工具类或方法/一个通用的mongodb类.py | 688e8d6c4c304fd0c6613395dc49c4fed7d13fcf | [] | no_license | Social-Engineering-OrigData/python | a8442ab5b3a772ddfc568eb5e386b11074c5bf93 | 6dde78f75e2a3306bccdc0085a44751cf2b901ca | refs/heads/master | 2021-09-09T12:56:09.781127 | 2018-03-16T09:34:17 | 2018-03-16T09:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@contact: wersonliugmail.com
@File : 一个通用的mongodb类.py
'''
from pymongo import MongoClient
"""
在爬虫存数据时使用,不需要事先建立数据库,直接存字典
"""
class MyMongo:
def __init__(self, dbname, colname):
"""
:param dbname: 初始化 命名自己的库
:param colname: 初始化 命名自己的表(集合)... | [
"wersonliu@gmail.com"
] | wersonliu@gmail.com |
a7f70dfb73aff910024e9703786cfdab163c284e | 9231d5ab3c99f328f6134df4982e7910e1db69b2 | /gui/wx/panel.py | 06cef3a5ef40d3c28afdfa79c6d64478a1a7b114 | [] | no_license | liviaerxin/python-tutorials | 6a908a93b894b29022bba15bac345e6594665454 | 5cb84861d9d616973637312711e23c5eb44f4fb5 | refs/heads/master | 2021-02-21T11:50:18.418465 | 2020-03-06T07:55:08 | 2020-03-06T07:55:08 | 245,357,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | import wx
class ExamplePanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
# create some sizers
mainSizer = wx.BoxSizer(wx.VERTICAL)
grid = wx.GridBagSizer(hgap=5, vgap=5)
hSizer = wx.BoxSizer(wx.HORIZONTAL)
self.quote = wx.StaticText(self,... | [
"1yue8haogaoqi@gmail.com"
] | 1yue8haogaoqi@gmail.com |
b663d23bffb53cf3aed33855ca26ce68dc91cab8 | e9b513db9bfcd9cbc8e59b3bc18498d03fbc9a3c | /preprocessing.py | 9cfa7ba7e590b24951a769d5e694f9684e250c8a | [] | no_license | ruirae123/appliedML-group_project | 97398107bda83604560b562b598a320079c5ca1d | 9c56c31403854a67229f8fe8711d22addc657776 | refs/heads/main | 2023-04-21T14:05:41.315758 | 2021-05-10T23:24:42 | 2021-05-10T23:24:42 | 352,131,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | import ast
import os
import csv
import argparse
import constant
import pickle
import numpy as np
def _commandline_parser():
"""Commandline parser."""
parser = argparse.ArgumentParser()
parser.add_argument('--input_filename', type=str, default='framingham.csv')
parser.add_argument('--num_evals', type=int, defau... | [
"tianqi.kiko.zhou@gmail.com"
] | tianqi.kiko.zhou@gmail.com |
35380b0997d3dc37aa77773fe400ca9768d179f3 | 9c05ec071dda2aa98ea1b12d9703dd91df19c87d | /quantum/hooks.py | 2c6a587a6d593503d2bbf9fee3977197c254c5db | [
"Apache-2.0"
] | permissive | DestinyOneSystems/quantum | af6ff44dd5e8cff944e53946f60adb11efb47bd5 | d7eafd8ffa719d91108b230221ecf27531a3530d | refs/heads/master | 2020-04-05T18:59:00.584768 | 2013-10-21T02:41:15 | 2013-10-21T02:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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://... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
13200077a023a7b18121b8ac2256a596ef327e45 | 03dc722fea38f25844a45cd9606db2ccdc92dbaf | /projekt.py | 39428f9dbb1d7cf4b0ee6302f8e234309e614b66 | [] | no_license | Marcin8899/Grafika | 1c0a5fa5d911db215349ca6e7eb38ba2245398be | cce118609bd502da1f50945fe8691d4613de083b | refs/heads/master | 2023-04-21T09:05:42.527155 | 2021-04-20T09:15:59 | 2021-04-20T09:15:59 | 359,212,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,341 | py | import pygame
from pygame.locals import *
import keyboard
import numpy as np
from math import *
import sys
width = 800
height = 500
screen=pygame.display.set_mode((width,height))
screen.fill((0,0,0))
camera = 1000
zoom = 1
step = 20
angle = 0.02
#wczytanine pliku z danymi
f = open("bryly.txt", "r")
tekst = f.read(... | [
"marcinbaranowski8899@gmail.com"
] | marcinbaranowski8899@gmail.com |
30f7edb35eef5cce6d855b50be7fff21042a064c | 39257f596d4ec7840e39c8267b3444443e89ebba | /src/pyff/pipes.py | b76c3853b4c2b50602eb6f904f16bc38eee2d586 | [
"BSD-2-Clause"
] | permissive | lhoekenga/pyFF | ff6921410d46687528d84e416cbdafa6af46b164 | a0413d34744ddbf95904d0d933524589a039c025 | refs/heads/master | 2021-08-22T09:49:56.160558 | 2017-11-27T09:58:08 | 2017-11-27T09:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,028 | py | """
Pipes and plumbing. Plumbing instances are sequences of pipes. Each pipe is called in order to load, select,
transform, sign or output SAML metadata.
"""
import traceback
try:
from cStringIO import StringIO
except ImportError: # pragma: no cover
print(" *** install cStringIO for better performance")
f... | [
"leifj@sunet.se"
] | leifj@sunet.se |
73c381a2286a4c3eea64c1b22a9c5b3837ec8992 | deb6f0cb8f18c57de1bb6d31bdee293db7273796 | /DIABETES/urls.py | 2be7a8b7bae42caaeb584d2577d17639a65ff03c | [] | no_license | pratikrj1601/Health-Monitoring-using-Machine-learning | abf722fe1185560fd53e95ff2368f683a807e569 | 046b2e4863d0d64614278870be04727287e6f916 | refs/heads/master | 2023-09-02T03:00:09.308417 | 2021-11-12T12:09:15 | 2021-11-12T12:09:15 | 427,341,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.diabetes, name="diabetes"),
path('/prediction', views.predict, name="predict"),
]
| [
"noreply@github.com"
] | pratikrj1601.noreply@github.com |
01dbe7ced71ab19257a6164a20f22849cf0e5720 | 20cf7f9fdc5a9fa32a7332017a46dcf3d15dd3ad | /Lesson_10 (Classes)/Task3.py | 7777218dea95f3a1efdde46abd8f6ea895656f8f | [] | no_license | AlexSmolko/bitroot_repo | ee426e266946b5495f390817f305ead1901f6d0d | f8e767167f7a5dfe71d3e84ceba54fda54ba48cd | refs/heads/master | 2022-11-21T18:12:33.207560 | 2020-07-01T10:10:16 | 2020-07-01T10:10:16 | 254,702,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # TV controller
Channels = ["Discovery", "A1", "EuroSport", "MTV"]
class TVController:
def __init__(self, channels):
self.channels = channels
self.num_of_channel = 1
def first_channel(self):
print(self.channels[0])
def last_channel(self):
print(self.channels[-1])
d... | [
"34611935+Aresnadro@users.noreply.github.com"
] | 34611935+Aresnadro@users.noreply.github.com |
bbbfb80122a53747480b05910a3ddbde0647a7ed | 0ad2bcd3881c691ffdc8ba83d9af7611e7827220 | /pad2drums.py | 587c3b5c2e75052f1b5107f7daff50ccc664b1f7 | [] | no_license | SimmaLimma/pad2drums | e028691e4fd9562d935576d4d0941637aac2ad25 | f7d6b95681f65c94337c28e012fcfeadab9170a3 | refs/heads/master | 2020-04-10T04:42:46.297097 | 2018-12-25T21:24:30 | 2018-12-25T21:24:30 | 160,806,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from DrumGenerator import DrumGenerator
from detection import detect_sound
from utils import load_wav, save_wav
def pad2drums(read_from_fname, save_to_fname):
"""
Reads .wav-file in folder "raw_audio" from a drum pad (with mic about 10 cm away)
and converts it to an .wav-file with drum sounds in place of... | [
"simonmaartensson@gmail.com"
] | simonmaartensson@gmail.com |
fb43ed68a6f884a2cf5bfcfb9b67d3a2702633cb | 3f27c94566dc5ef905fb8a13a84f8a4801d2dc78 | /dataStructures/arrays/find_summing_numbers/find_summing_numbers.py | 1cb124da676efb54dba96fe58ecbc7762fa7fd90 | [] | no_license | trotrem/algo-rythmes | 26a9ac2735e94d8bd9b33ee56c9f536f9f8ec24a | fc9a183225be889d2aa0220cce6d12637ade3e93 | refs/heads/master | 2020-03-17T22:19:48.121377 | 2018-07-27T17:05:35 | 2018-07-27T17:05:35 | 133,999,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | #!/usr/bin/env python
#Given an array of integers, return indices of the two numbers such that they add up to a specific target.
#You may assume that each input would have exactly one solution, and you may not use the same element twice.
class Solution:
# set O(n) O(n)
def twoSum_set(self, nums, target):
... | [
"jeanchristophe.buteau@gmail.com"
] | jeanchristophe.buteau@gmail.com |
2c940a23b570ef8251077537155455093097c2d3 | d1d366fe205dd8bb0469df4c9f80df488bccfa22 | /script/model/type.py | 8fc98bc7607cc6d5bd86dbab07e1c7e377b98f35 | [
"MIT"
] | permissive | kjobanputra/noisepage | 0403ed062350ad657178e943635ed2092c67a432 | e675b0befb55fcfaa78c23628e32800374a10a24 | refs/heads/master | 2023-04-01T07:49:09.715971 | 2020-10-30T00:56:01 | 2020-10-30T00:56:01 | 294,547,389 | 0 | 0 | MIT | 2020-12-01T04:50:46 | 2020-09-10T23:45:03 | C++ | UTF-8 | Python | false | false | 2,379 | py | """All the types (defined using Enum).
This should be the only module that you directly import classes, instead of the higher-level module.
"""
import enum
class Target(enum.IntEnum):
"""The output targets for the operating units
"""
START_TIME = 0
CPU_ID = 1,
CPU_CYCLES = 2,
INSTRUCTIONS = 3,... | [
"noreply@github.com"
] | kjobanputra.noreply@github.com |
233285c17f75cb0cf8903cbacdeb74bbe001281d | 8fcdcec1bf0f194d23bba4acd664166a04dc128f | /packages/gcTool.py | bd22a08d82b189ff60330613fa6b6795e709fd48 | [] | no_license | grid-control/grid-control | e51337dd7e5d158644a8da35923443fb0d232bfb | 1f5295cd6114f3f18958be0e0618ff6b35aa16d7 | refs/heads/master | 2022-11-13T13:29:13.226512 | 2021-10-01T14:37:59 | 2021-10-01T14:37:59 | 13,805,261 | 32 | 30 | null | 2023-02-19T16:22:47 | 2013-10-23T14:39:28 | Python | UTF-8 | Python | false | false | 19 | py | grid_control_api.py | [
"stober@cern.ch"
] | stober@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.