blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65ac8f89ebae6060700a99c9045854f6270f1016 | 669f7a51a4f44f8b116cb6e0ef67eb1bd3f2e213 | /profile/migrations/0004_auto_20150516_0404.py | 2e9100839bbc85e1bcdf27e5483c1ae766b3854a | [] | no_license | lijianmin/PortalProject | 19581aa232569f15780e0710ab142198762e9fd3 | ac419c5a6cda0a4b70c558412f43332de8a63dbd | refs/heads/master | 2020-05-18T04:45:54.654445 | 2015-09-11T02:12:01 | 2015-09-11T02:12:01 | 27,471,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('profile', '0003_auto_20150516_0343'),
]
operations = [
migrations.AddField(
model_name='clinicianprofile',
... | [
"li.jianmin@outlook.com"
] | li.jianmin@outlook.com |
e155c56c8ce10e75791d2759b9b55b3147c39156 | b01d41cd9f3de55ffa2cfe15150e14eb923ebe9d | /aluguel_functions.py | c7ac28707ba2b44d40b8e3de9409a35a00075a30 | [] | no_license | dem19/cod1 | 5b9e9d9c9cb61e4edd43800e1e0c20a50f7b8fd3 | 59cdb83800d0741a2eebef57c9aef354cdba7e65 | refs/heads/master | 2020-08-05T20:43:24.544351 | 2019-10-03T23:56:22 | 2019-10-03T23:56:22 | 212,703,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | # Lista de carros disponíveis para locação
carros = [['Ferrari', 1220.00], ['Hilux', 150.00], ['Golf', 80.00], ['Amarok', 150.00], ['Cobalt', 60.00],
['Punto', 60.00], ['New Fiesta', 60.00], ['Focus', 100.00], ['S10', 150.00], ['Corolla', 100.00]]
# Lista de carros disponíveis
carros_disponiveis = carros
# L... | [
"dem19vieira@gmail.com"
] | dem19vieira@gmail.com |
d6312b5a597df9bc5ff3924b57d6b30e9061caea | cd73b6a44c2b891f24be427d9b0abe6ebf4221b3 | /ingestion/4.ingest_drivers_file.py | 4937b9fb06bc589e5c1d6472150016bb2fe60ca6 | [] | no_license | shabilmuhammed/formula1 | d56241e5c907b1519093e4965d77882cd54ebba4 | 5266a153384e08fcacf9a16426e5108e7fd659e8 | refs/heads/main | 2023-08-03T23:01:13.637484 | 2021-09-25T08:19:51 | 2021-09-25T08:19:51 | 405,344,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | # Databricks notebook source
# MAGIC %md
# MAGIC ### Ingest Drivers File
# COMMAND ----------
# MAGIC %md
# MAGIC ### Step 1 Read
# COMMAND ----------
dbutils.widgets.text('p_data_source','')
v_data_source = dbutils.widgets.get('p_data_source')
# COMMAND ----------
dbutils.widgets.text('p_file_date','2021-03-21')... | [
"noreply@github.com"
] | noreply@github.com |
7b2ae6979df18c1e5d9c6f4544cb5b8e95eb7e4a | 6d50225574554cf651b7693f22115f6e0a2f3c58 | /upyutils/SD_AM.py | 59562cc33a81736240fbd8568190cf173f43efb0 | [
"MIT"
] | permissive | tovam/upydev | abc8f9af5667821bb4644bafcead5f847a4114a1 | 0f9b73cb55750c291d2d016a3fd29d2feb71b8fc | refs/heads/master | 2022-10-03T12:43:38.699244 | 2020-06-07T12:58:19 | 2020-06-07T12:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | #!/usr/bin/env python
# @Author: carlosgilgonzalez
# @Date: 2019-07-05T20:19:56+01:00
# @Last modified by: carlosgilgonzalez
# @Last modified time: 2019-07-10T00:55:01+01:00
from machine import SPI, Pin
import sdcard
import os
import time
# sd detect pin (15)
sd_detect = Pin(15, Pin.IN, pull=None)
sd_detect.value... | [
"carlosgilglez@gmail.com"
] | carlosgilglez@gmail.com |
3d3825f888aec7cd056ba5190bb0a6127a5432f8 | 19f96fdd86f1a29f4eec3d18d9e513865f1f512f | /webWork_backup/webflask/test_py3/lib/python3.5/sre_parse.py | 15237a5119fe22a7d3f6e358267c5f4a2c5922c9 | [] | no_license | Cattmonkey/openWork | e133376eeea3bbf5279f9199b18aa8cf44f21637 | 3e1f21f0c6bce7ec114cc8d6311746c4a2cc426b | refs/heads/master | 2020-03-14T00:58:41.610424 | 2018-05-04T09:59:03 | 2018-05-04T09:59:03 | 131,368,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /root/anaconda3/lib/python3.5/sre_parse.py | [
"yyxdyx01@163.com"
] | yyxdyx01@163.com |
a8f81f661bea3a7f30495e1a4166983529aed21b | b6cee1025bd4b2e394b5560279001dc6d932317f | /Configurations/VBS_OS/Full2017_v6/FitDir/samples.py | 2aa774049ae8ec465776ce75509f8acb44bcf463 | [] | no_license | sebsiebert/PlotsConfigurations | cbf84c371907089247064a0aa20f33d2d2c33ace | c9d00f37480a949da481481786c4d54ee0cb546f | refs/heads/master | 2021-07-02T00:23:34.867049 | 2020-05-25T11:38:10 | 2020-05-25T11:38:10 | 216,592,710 | 0 | 0 | null | 2019-10-21T14:44:56 | 2019-10-21T14:44:55 | null | UTF-8 | Python | false | false | 14,166 | py | import os
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # Full2017_v6
configurations = os.path.dirname(configurations) # ggH
configurations = os.path.dirname(configurations) # Configurations
from LatinoAnalysis.T... | [
"mattia.lizzo@cern.ch"
] | mattia.lizzo@cern.ch |
7fd6cc206cbf849679c3093579e88856a844bacd | 8a219d787acbda085908a3257a71325a859f86ae | /project2_1.py | 1f2aa45e4644c20acd6201861dfdb960fc27edd6 | [] | no_license | noey26/codeit_python | defe06f600e77cb5b3c86e44c3e669196e6fbc47 | 413107456ced46ca4a592cba12e6c975d1d9b1c0 | refs/heads/main | 2023-06-10T03:30:00.683670 | 2021-07-03T02:00:13 | 2021-07-03T02:00:13 | 380,436,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from random import randint
def generate_numbers():
numbers = []
while len(numbers) < 3:
num = randint(0, 9)
if num not in numbers:
numbers.append(num)
print("0과 9 사이의 서로 다른 숫자 3개를 랜덤한 순서로 뽑았습니다.\n")
return numbers | [
"noreply@github.com"
] | noreply@github.com |
5f7170cabbe1221af79c1612f5794ea230d81a04 | 261891baf843fb0a75508529c93e0c797b962256 | /ordered_to_do_list/wsgi.py | fac3a6d989dff63be7f83e5e2e703a7c1049f16e | [] | no_license | skomer/ordered_to_do_list | 178d4e1d13fd6363e6a786978523cea002e5cea8 | f50061474d7f03bf9f27e8fd1924937c57b6a993 | refs/heads/master | 2021-01-10T03:21:39.530822 | 2015-11-23T11:58:41 | 2015-11-23T11:58:41 | 46,717,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for ordered_to_do_list project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("D... | [
"jo@isthebest.com"
] | jo@isthebest.com |
af1c43bc34c97ef127669166263c2789a325f744 | fcc0352bd54837b4cb99fcfea4adf0329898335c | /config.py | 87f725f73870534fee32cd8680688f5040c58316 | [] | no_license | ginapaal/new_askmate | 002fa734581da2b94f20d52179cc97c52c7880bf | a7fd3108b49eb81c3117a9ad86817355069ace25 | refs/heads/master | 2021-01-01T16:36:58.566445 | 2017-07-24T14:27:29 | 2017-07-24T14:27:29 | 97,871,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | global db_name
db_name = "askmate"
global user
user = "gina"
global password
password = "thebest"
| [
"paalginaa@gmail.com"
] | paalginaa@gmail.com |
cce1f9877bc6de0375b15a85c3651dd7a8f027de | d1df1a4f1d2e3adf3c18651da6424a36f1879b55 | /train.py | 963f4e3d55601c7e379c150256a118a28776072f | [] | no_license | China-ChallengeHub/astronomy-TOP3 | 17e5531cb860a52d4fbf42b70062ae0adcb9a90b | f7a78577d2a27b38b43a4c10be1641a5ab1714c5 | refs/heads/master | 2022-12-23T13:44:51.774158 | 2020-05-15T14:48:44 | 2020-05-15T14:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,852 | py | import os
import time
import numpy as np
import pandas as pd
from tqdm import tqdm
import random
import warnings
from sklearn.model_selection import StratifiedKFold
from sklearn.preprocessing import LabelEncoder
import keras
from keras_radam import RAdam
from keras import backend as K
from keras.cal... | [
"noreply@github.com"
] | noreply@github.com |
fad4abccc68ce712fe65536359e5615c148ae203 | 68fe96ed82637b898d240ce68c232da9422933df | /eden_cats_blog/apps/message/migrations/0002_auto_20180915_0122.py | a8b80fffe87711368fc4ba411d2d7cdaddd5e636 | [] | no_license | imquanquan/Project-01-DjangoBlog | 696c75168009118ce70a66bd836aa3ed1432032e | 6d72326e428c70cdc859852a00de2302aac91bf0 | refs/heads/master | 2020-03-29T13:23:20.114686 | 2018-09-23T07:22:25 | 2018-09-23T07:22:25 | 149,956,056 | 0 | 0 | null | 2018-09-23T07:04:43 | 2018-09-23T07:04:43 | null | UTF-8 | Python | false | false | 456 | py | # Generated by Django 2.0.5 on 2018-09-14 17:22
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('message', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='message',
nam... | [
"625310581@qq.com"
] | 625310581@qq.com |
f634288f413b4e857362ca44e08fa34dbfd9a73e | 9045885cbfeaf52c32f9ae73fc7f00848532e3c0 | /tests/test_create_new_data_product.py | 87e2319dd3a6dc99245492e0f7360cb9555151d0 | [] | no_license | gkourupes/ion-ux | 30cc35f97e40e89a0dd37212868a70c8acb4cf55 | 45e6669425f98b2ef002c184f03afef66f662245 | refs/heads/master | 2021-01-15T08:10:53.643315 | 2014-04-15T23:10:13 | 2014-04-15T23:10:13 | 17,454,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | __author__ = 'Seman'
import sys
sys.path.append('.')
import unittest
import flask
from nose.plugins.attrib import attr
import main
from service_api import ServiceApi
import random
from common import *
@attr('UNIT')
class DataProductIntTest(unittest.TestCase):
def setUp(self):
self.org_name = "CI Bench T... | [
"sseman@gmail.com"
] | sseman@gmail.com |
f765d4f0f9fee8a3e3efee2a41a5265bbd2c1370 | b99bc3f3e6da10aca6fffa7b4f4abd614514440e | /test/otlad.py | 0b7024148ded216487838fcc63c5f96ec0ad95fa | [] | no_license | petayyyy/IOR2020 | 5b36d42b57b3f17eb79f7c2922175dda156bb637 | debdd8cb0ef05e69d2919f3e3a563d41e2534063 | refs/heads/master | 2022-11-02T14:22:57.602858 | 2020-06-21T13:54:28 | 2020-06-21T13:54:28 | 268,279,030 | 0 | 3 | null | 2020-06-21T09:28:06 | 2020-05-31T12:49:49 | Python | UTF-8 | Python | false | false | 1,403 | py | import cv2
import numpy as np
import time
if __name__ == '__main__':
def nothing(*arg):
pass
cv2.namedWindow( "result" )
cv2.namedWindow( "settings" )
cv2.createTrackbar('h1', 'settings', 0, 255, nothing)
cv2.createTrackbar('s1', 'settings', 0, 255, nothing)
cv2.createTrackbar('v1', ... | [
"noreply@github.com"
] | noreply@github.com |
a89274a540eccad2f64b0f01e06449ec329ce901 | 66052f5ba08ddac0a56ee140af17cf78b1ff1174 | /PLURALSIGHT_BEGINNERS/lib/python3.9/site-packages/anyio/_core/_compat.py | 8a0cfd088eadb36ec9786f05ab4ea9ab959ecd8e | [] | no_license | enriquefariasrdz/Python | 34704ceed001bbe8a23471eebefbe536b00031a5 | b9191f7ad87b709a1b83c5cb3797a866b56aaa0d | refs/heads/master | 2022-12-26T03:06:26.481456 | 2022-04-20T14:09:57 | 2022-04-20T14:09:57 | 27,020,899 | 1 | 1 | null | 2022-12-18T21:02:43 | 2014-11-23T03:33:52 | Python | UTF-8 | Python | false | false | 5,668 | py | from abc import ABCMeta, abstractmethod
from contextlib import AbstractContextManager
from types import TracebackType
from typing import (
TYPE_CHECKING, Any, AsyncContextManager, Callable, ContextManager, Generator, Generic,
Iterable, List, Optional, Tuple, Type, TypeVar, Union, overload)
from warnings import ... | [
"enriquefariasrdz@gmail.com"
] | enriquefariasrdz@gmail.com |
ed65d8cabf8d7f04c1951349663419deb2979c50 | 0d9b5c2842721c2246d4b58890511d154fa6df1b | /myadmin/migrations/0018_auto_20180311_1219.py | b7424714cb179baa93c9eeaf22cf4097a6e17e01 | [] | no_license | bhavingandha9/senseshop | 862c13056cd4f53b265d040fc05337e6e46841e9 | b2982399bc8223c5eeeb25ce9e1edbd4449d6e93 | refs/heads/master | 2021-04-30T08:10:23.039521 | 2018-06-06T16:21:53 | 2018-06-06T16:21:53 | 121,368,692 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2018-03-11 06:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myadmin', '0017_auto_20180311_1212'),
]
operations = [
migrations.AlterField... | [
"="
] | = |
a801bf0d64265cc7658aad4473cabf19d4a34b01 | 3a1369119642b8bd566f24f10ddc83e4f9cbaebc | /richmatt/settings.py | a258cfa1ac8929380b43cfeb3dadafa11823da22 | [] | no_license | devvspaces/richmatt | 0367851648998decbaa403b4f7993ad06b9265c3 | d87861f5860d221bd2d0a0258f9425a0a8f776be | refs/heads/master | 2023-05-03T16:40:13.408390 | 2021-05-24T01:17:34 | 2021-05-24T01:17:34 | 370,189,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"devvspaces@gmail.com"
] | devvspaces@gmail.com |
1c9d6d1b19a780047de3250d3cfd2da9a63db53c | 3ad3c58bc289fa1a556db153b55ae2bbdcec893f | /src/allocation/domain/commands.py | 95e4dfc10b375fc15e183f6bc96f0812df8d37cc | [] | no_license | vic3r/python-AP | 7f25b9dc2523d561f53e8f03e1d8ac5820edce86 | 5c56c7a3e93e9ee0a56564efbbff449cb4dafc95 | refs/heads/master | 2023-02-10T10:43:31.728232 | 2021-01-02T01:22:35 | 2021-01-02T01:22:35 | 288,585,808 | 0 | 0 | null | 2021-01-02T01:22:36 | 2020-08-18T23:29:05 | Python | UTF-8 | Python | false | false | 357 | py | from datetime import date
from dataclasses import dataclass
from typing import Optional
class Command:
pass
@dataclass
class Allocate(Command):
orderid: str
sku: str
qty: int
@dataclass
class CreateBatch(Command):
ref: str
sku: str
qty: int
eta: Optional[date] = None
@dataclass
class ChangeBatchQuan... | [
"victor.g64r@gmail.com"
] | victor.g64r@gmail.com |
2401bcbfd8e0d6468d2d63b5be24459926d9e483 | 2b79c8fb6540407dedb72133df1c921342d7cf2e | /api/views.py | c69f1c05fe956d70da1b6e43df0659b799282a47 | [] | no_license | prakhariitbhu/process_manager | de526aec10fb8c74549fed5699ea8901d2975969 | dc4e7c797f91e07a95602615954f12013cb71428 | refs/heads/master | 2023-08-23T08:32:48.760967 | 2020-09-24T10:42:14 | 2020-09-24T10:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | from rest_framework import permissions
from rest_framework import generics
from rest_framework import status
from rest_framework.response import Response
from .serializers import *
from .models import *
class NewTaskView(generics.GenericAPIView):
"""
Creates a new task (i.e. the sample_process.py).
"""
... | [
"mittalnishant14@outlook.com"
] | mittalnishant14@outlook.com |
8d4aec3e05712c58f8371298b8e14eac7762533b | 4621b15ae0d6f8a86d6eb34f00577f4d1d777271 | /bubble_sort.py | 3214dbe15f4e7945d1589555c297cc99fc87759f | [] | no_license | catVSdog/algorithm_python | 91eeac632fc5ee0da9028173375d6318079af74b | b51d91232c547769ae0683ce9c3d1ed97bde4e47 | refs/heads/master | 2021-07-08T16:17:58.859817 | 2021-03-23T06:29:25 | 2021-03-23T06:29:25 | 231,876,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | """
冒泡排序
"""
import random
class BubbleSort:
@staticmethod
def process(array):
array_length = len(array)
for i in range(array_length - 1, -1, -1):
for j in range(i):
if array[j] > array[j + 1]:
array[j], array[j + 1] = array[j + 1], array[j]
... | [
"windorbird@gmail.com"
] | windorbird@gmail.com |
7641c594700e0e0ee757a5c8b3413260b0cea11d | f50df195f44371fb4948a4b1109c4b383768a9f7 | /src/old/distanciatrie.py | f5bcd6c6ab7a76de8a664ced3b5ceddd991ea345 | [] | no_license | comp4a/alt | e885a0a74440a8b1f4d3376e0384097ef7844946 | 3188dc8e40be58418c5e14a405aca858af8453cc | refs/heads/master | 2020-07-29T22:41:52.347792 | 2020-01-10T21:26:37 | 2020-01-10T21:26:37 | 209,988,103 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import numpy as np
def levenshtein_distance2(x, y):
current_row = np.zeros((1+len(x)))
previous_row = np.zeros((1+len(x)))
current_row[0] = 0
for i in range(1, len(x)+1):
current_row[i] = current_row[i-1] + 1
for j in range(1, len(y)+1):
previous_row, current_row = current_row,... | [
"luis.serranohernandez.1415@gmail.com"
] | luis.serranohernandez.1415@gmail.com |
ddc8177b8bdbdb0209448592a21c02dc8c281600 | e9a6a6f60677d876272fd56eb37a47faaba47562 | /util/visualizer.py | e526630d8425c1d62b64fdf1d09fd74baf632970 | [] | no_license | Meimeiainaonao/SPGNet | b94725d360d7e6f0ac50a2ee3896b353704c26ef | e0c114ddb31100de2c0c9aa7d58812ec85521758 | refs/heads/main | 2023-04-10T02:13:56.287913 | 2021-04-26T02:11:22 | 2021-04-26T02:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | from __future__ import division, print_function
import torch
import torchvision
import os
import time
import util.io as io
import numpy as np
from util import pose_util, flow_util
def seg_to_rgb(seg_map, with_face=False):
if isinstance(seg_map, np.ndarray):
if seg_map.ndim == 3:
seg_map = se... | [
"943470791@qq.com"
] | 943470791@qq.com |
290707c62b48bcf3b1ac4f5299f0750b0444809f | 9a2f32b98577ecd019cbf7380b6491660daed968 | /GMATE/main.py | 79873cad31764c91fa06871fea8e031e4b47fd9a | [
"MIT"
] | permissive | lexrupy/gmate-editor | 4b2151015dc7fa1ee5aa92b3e8cb32bd4e7d5738 | 7036d58a083ad6c05c1eb4cf7cb92405b369adb7 | refs/heads/master | 2016-09-06T07:01:38.561724 | 2009-04-17T13:18:28 | 2009-04-17T13:18:28 | 177,728 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
# GMate - Plugin Based Programmer's Text Editor
# Copyright © 2008-2009 Alexandre da Silva
#
# This file is part of Gmate.
#
# See LICENTE.TXT for licence information
import gtk
import editor
class Gmate(object):
def __init__(self):
self.editor = editor.GmateEditor()
self... | [
"lexrupy@gmail.com"
] | lexrupy@gmail.com |
4483cfc690cadb80db163d482895ba32ba6d0f6e | 00d2a7104f5ef42b67c4a0f356a2bc85058ebca4 | /easter_eggs.py | 70e84c4932be483b77eeb2c53762b5730f665a40 | [] | no_license | Gabzcr/NinjaBot | db61a176f25bd90657beb9ee77c9fa34d4f9b5de | acf2083cf656594c0647beab25131de322e2ce19 | refs/heads/master | 2022-12-11T18:02:50.231728 | 2022-12-04T11:23:06 | 2022-12-04T11:23:06 | 168,880,334 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import random
import re
def easter_eggs(content):
res = None
if ":Ninja:" in content:
res = "Rejoins-moi, camarade <:Ninja:541390402104852485> !"
elif content.lower() == "easter egg":
res = "il n'y a aucun easter egg ici :innocent:."
elif content.lower() == "uranie puffin" or content.lo... | [
"noreply@github.com"
] | noreply@github.com |
8a588419d1faefe481fdb4c509263a550fb95dd1 | 4fc973c1614ce860762842060cd873c05cd2e8cc | /f2d.py | c63dfa904c824a85d33e849f8b4f7ea8c5ea2058 | [] | no_license | CarlosPena00/ObjectDetectionV2 | 44a987277049ee9861a1a73a7959d01385ee44c1 | 928a4a1dc1220eeea829264985e1d6ed6a459a5b | refs/heads/master | 2021-01-23T15:58:57.125982 | 2017-06-11T20:34:00 | 2017-06-11T20:34:00 | 93,279,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | # -*- coding: utf-8 -*-
import cv2
import pandas as pd
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt
import sys
sys.path.insert(0, 'Descriptors/hog')
sys.path.insert(0, 'Descriptors/lbp')
sys.path.insert(0, 'utils')
from lbp import LBP
from hog import HOG
from utils import Utils
import time
... | [
"chcp@cin.ufpe.br"
] | chcp@cin.ufpe.br |
b9a09539940e2d33d6a8d05ef2b9f880a83c5b2d | 5a93ed7313da594b5f925f7c32826e3b518ab6a7 | /datasets/__init__.py | b32ea5ffa784c6ca842c26b97a78edbc68515df8 | [
"MIT"
] | permissive | Yajha/deep-functional-dictionaries | 3e96828d517b1eda441dde55f8cbfe70965b856f | deecf8c6c85e253cfa52be7c6b3c308d5e5aaf81 | refs/heads/master | 2020-04-03T14:51:39.008685 | 2018-10-24T22:25:50 | 2018-10-24T22:25:50 | 155,338,959 | 1 | 0 | MIT | 2018-10-30T06:58:55 | 2018-10-30T06:58:54 | null | UTF-8 | Python | false | false | 262 | py | # Minhyuk Sung (mhsung@cs.stanford.edu)
# May 2018
from os.path import dirname, basename, isfile
import glob
modules = glob.glob(dirname(__file__)+"/*.py")
__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and \
not f.endswith('__init__.py')]
| [
"smh0816@gmail.com"
] | smh0816@gmail.com |
08b0dad81e5e71b3cae78ec016032fb429f273de | 36693d993ffc64c47610a8d947f3d692dfefdacb | /yelp/queries.py | d056c3c885cb502af87981a29400ae736f21edb6 | [] | no_license | Marques-30/Travel_Assistant | 61ff58eefcbdc3d4e080428de2d1a6ca73c9297f | 36647bfaa60cb8c7351132d4699d2b4423b84c38 | refs/heads/main | 2023-01-13T15:51:33.226204 | 2020-11-18T06:20:07 | 2020-11-18T06:20:07 | 303,597,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | search_query = '''
query GetResults($amount: Int, $term: String, $location: String, $price: String)
{
search(term: $term,
location: $location,
limit: $amount
price: $price
sort_by: "distance") {
total
business {
name
price
... | [
"gallegosjorge403@gmail.com"
] | gallegosjorge403@gmail.com |
9514de01d4409c032e185b1b737f384da6209452 | 67817340c5e06c0e66c3307c7f5b7f0c3c7bb658 | /235680/src/model/multiple_output/rnn.py | b8d5519d2bcb5e0338888b99aa9d16b487e175af | [] | no_license | parkjuida/dacon | 110f836dd407e5eb704ca6c412afc6a1eb7c5c9e | 5730871a7a89676d0ce95a784fbd287591e149b6 | refs/heads/master | 2023-03-25T21:23:25.033117 | 2021-03-14T12:27:20 | 2021-03-14T12:27:20 | 324,297,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import tensorflow as tf
class Lstm(tf.keras.Model):
def call(self, inputs, training=None, mask=None):
return self._model(inputs)
def get_config(self):
pass
def __init__(self, output_steps, num_features):
super().__init__()
self._model = tf.keras.Sequential([
t... | [
"bees1114@naver.com"
] | bees1114@naver.com |
90d23475f6fc52836c2fd16713ae807c4f1b7aab | 96eeee9aff9584ca58be9e1c877bb565d6e994de | /Fuel.py | 39e553e0553f9c851aecf8365922e5946255a63f | [] | no_license | anisha1095/2021_Challenge_Hack_my_Fleet | ece911da6fef24dd777f536a988d2f0e9d146eb3 | 18629fc31dbb71236cbc61395a82d959ec2842bc | refs/heads/main | 2023-03-31T12:05:06.937242 | 2021-04-11T22:20:38 | 2021-04-11T22:20:38 | 356,477,487 | 0 | 2 | null | 2021-04-11T21:25:53 | 2021-04-10T05:11:16 | Python | UTF-8 | Python | false | false | 2,797 | py | import pandas as pd
import datetime
from bokeh.plotting import figure, show, output_file
from bokeh.models import DatetimeTickFormatter
from math import pi
import statistics
from bokeh.models.widgets import Div
from bokeh.layouts import column
def getFuelInsights (dataset):
print("Loading fuel insights")
grou... | [
"anishajauhari10@gmail.com"
] | anishajauhari10@gmail.com |
d99f160d8ad572b13e39fa68ab9d1c9ebaeb17c3 | 493c7d9678a0724736fb9dd7c69580a94099d2b4 | /apps/organization/models.py | 81669bc929ff0415215ac5e9aca33cf0d6ca3b2d | [] | no_license | cuixiaozhao/MxOnline | e253c8c5f5fa81747d8e1ca064ce032e9bd42566 | c96ae16cea9ad966df36e9fcacc902c2303e765c | refs/heads/master | 2020-03-29T18:47:11.158275 | 2018-10-22T14:06:50 | 2018-10-22T14:06:50 | 150,231,387 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
from django.db import models
# Create your models here.
class CityDict(models.Model):
name = models.CharField(max_length=20, verbose_name=u"城市")
desc = models.CharField(max_length=200, verbose_name=u"描述")
add_ti... | [
"19930911cXS"
] | 19930911cXS |
eff3356ac3f99b2fc9ed8694843cb006b0ae49f2 | 434b0d5e2021dd849f417ecdbf21211c68222431 | /experiments/QuickSort.py | 2be2ea2f64cc097a10e7b8748fd26a76aa521edd | [
"MIT"
] | permissive | johnpaulguzman/Algorithm-Analyzer | a4bef4b358c41d509ebe6112adc082956752f538 | e93abfb51f2f67b6df1af8d95cc6855ad7de69f2 | refs/heads/master | 2021-01-22T21:38:02.376402 | 2017-08-09T02:04:48 | 2017-08-09T02:04:48 | 85,454,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | def quick_sort(items):
if len(items) > 1:
pivot_index = 0
smaller_items = []
larger_items = []
for i, val in enumerate(items):
if i != pivot_index:
if val < items[pivot_index]:
smaller_items.append(val)
else:
... | [
"john_paul_guzman@dlsu.edu.ph"
] | john_paul_guzman@dlsu.edu.ph |
a8850c43ea34d791480a5a1dfaec3ef2d6f2f7b3 | 102687dc2cf18270f18c10ccde58b8a2c25c7316 | /wer.py | d460d18b621c0ec4e727299a677093198d0d86b6 | [] | no_license | hammondm/g2p2021 | 18a74021c3198afbf537747751214d28dc57c672 | d0fb7f944ec278222b8203f4ff1a9426b85b4ba1 | refs/heads/main | 2023-05-11T23:54:10.924703 | 2021-06-01T21:36:01 | 2021-06-01T21:36:01 | 372,967,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | #calculate WER from CER
#average number of chars in training transcripotions
#calculated with avg.py
languages = {
'ady':5.9925,
'gre':6.73125,
'ice':5.72,
'ita':6.625,
'khm':5.5125,
'lav':5.94375,
'mlt_latn':5.1675,
'rum':6.1475,
'slv':5.7475,
'wel_sw':5.18375
}
import sys
import numpy as np
#cer
val = fl... | [
"hammond@u.arizona.edu"
] | hammond@u.arizona.edu |
b96d3a781c03d215c27f636478125a1b32347736 | ba3d8969e5f52c6287aad879b969a148a1b1df7c | /controllers/vcms_upd_company_branch.py | dd85cae13a263d55abf2b456fef159e7b9449bb6 | [] | no_license | clubfly/python_flask | 0848e04fa9de9e219d4e7025c4d4c70ff291b532 | f1e93d6ce6516cbd3afd6ccbffea9909f8ee4aa3 | refs/heads/master | 2022-07-09T15:28:10.347699 | 2020-04-08T02:00:21 | 2020-04-08T02:00:21 | 253,957,066 | 1 | 0 | null | 2022-06-22T01:39:27 | 2020-04-08T01:44:54 | Python | UTF-8 | Python | false | false | 500 | py | from flask import jsonify,render_template,session,escape,request
from utils.htmlbuilder import HtmlBuilder
from utils.vcmsengineerfunction import VcmsEngineerFunction
from utils.vcmsadminfunction import VcmsAdminFunction
def vcms_upd_company_branch(self,functions,actions,html_template,page_settings,parameter_dict):
... | [
"henry.wang@viscovery.com"
] | henry.wang@viscovery.com |
c79587653a00006ecde791bc38617cb404e4a559 | 9ed18ddd8fa3f8dab53d2d3af43b5ecc03a5bfe9 | /training_utils/dump_rnn_mod.py | 1223abf8d1e16b4c60a8cc6f35beacc4510a4c36 | [
"Apache-2.0"
] | permissive | OscarLiau/RNNoise_Wrapper | 371c2ef7b48258a8ed69f1f5724126ccdc1c9e96 | 10647eba5c1dc678dc3fd443d111400792fefef6 | refs/heads/master | 2023-04-22T16:21:23.308409 | 2020-11-25T15:14:52 | 2020-11-25T15:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | #!/usr/bin/python
from __future__ import print_function
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import GRU
from keras.models import load_model
from keras.constraints import Constraint
from keras import backend as K
import sys
import re
impor... | [
"vladsklim@gmail.com"
] | vladsklim@gmail.com |
f16c16345110a69ede186dddce47a6a807b85e47 | c5697952039d0056145aa5c6df32f571cc27bbdd | /app/salesmanager/forms.py | fe499fe9271bd7e53069d893b9827a053867079c | [] | no_license | unutulmaz/flask-restaurant-demo | 562794ba083ca2f2fdb3f3cdf7f9aeb6e2130cba | 9f0851e83c4691da038ef0ef3bbbec39ac736026 | refs/heads/master | 2020-05-19T18:55:39.050404 | 2015-03-09T14:27:23 | 2015-03-09T14:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from flask.ext.wtf import Form
from wtforms import StringField, TextAreaField, SubmitField, FileField, FloatField
from wtforms.validators import Required, Length, Email, Regexp, EqualTo
from wtforms import ValidationError
from ..models import User, Role, Restaurant, FoodItem
class RestaurantForm(Form):
name = Strin... | [
"donsol53@gmail.com"
] | donsol53@gmail.com |
4ab8bc83cb1ffc30313f0d61577d05d77710a241 | 019161650422d0901ffb925eb7a7fa93d18f5b76 | /3D点云/00.配套资料(代码、讲义、作业、参考文献)/00.配套资料(代码、讲义、作业、参考文献)/03.3D数据表示和转换/HW/octree_pcl.py | 9c7a1e0d0f6d0c938fda59cf6586c393b2c17e74 | [] | no_license | seaside2mm/SLAM_3D_Study | a5e62d363d29e4091fa479e045d7b1d6be929053 | 5b33730220e7ca5b6ae47500e42ee747eb72e0c4 | refs/heads/master | 2023-02-13T22:09:07.767953 | 2021-01-06T12:20:21 | 2021-01-06T12:20:21 | 312,931,959 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import pcl
import numpy as np
np.random.seed(1234)
cloud = pcl.PointCloud()
cloud.from_array(np.random.rand(100,3).astype(np.float32))
octree = cloud.make_octreeSearch(0.2)
octree.add_point_from_input_cloud()
searchPoint = pcl.PointCloud()
searchPoint.from_array(np.random.rand(5,3).astype(np.float32))
K = 10
print(... | [
"seasidezhang@gmail.com"
] | seasidezhang@gmail.com |
fda61ebeedcfdbf6898f42867f02806644a0d0df | 613eaf8503a1864727fab47acdacbcf24f4baadc | /scripts/fetch.py | f3d9466d37dbc03fc8cf527e58081e0c2fd09c79 | [
"MIT"
] | permissive | karthikb351/thumbsdb | 4d23ffce01d70ba507fd03a8fe87695ae1df5f4d | 99d010303d7196cf2a787b1276870cefa82b0ae6 | refs/heads/master | 2021-01-23T07:02:43.731247 | 2017-11-22T00:19:19 | 2017-11-22T00:19:19 | 30,406,396 | 3 | 2 | null | 2015-07-27T10:52:13 | 2015-02-06T10:06:09 | JavaScript | UTF-8 | Python | false | false | 1,623 | py | """ Pull All Youtube Videos from a Playlist """
import json
from apiclient.discovery import build
DEVELOPER_KEY = "AIzaSyDLMAhvP1smHaSJ_iwjLEEgXqqNhhQkVok"
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
def fetch_all_youtube_videos(playlistId):
"""
Fetches a playlist of videos from youtube... | [
"karthikb351@gmail.com"
] | karthikb351@gmail.com |
041f93f380cb1c8e295a74f2957684446e8341f5 | eadea2403ff0ddc6fa89899937cfec337993ee67 | /db_repository/versions/040_migration.py | 009fa7322b88067859c017fba89a7691ca7c6d8f | [] | no_license | rpp114/sbt_notes | f724e90b7e50b294dd16515ce898774a2219d534 | 2d5bf9a431caa2f7b6123e5242dc46be2a818599 | refs/heads/master | 2023-07-07T12:45:46.691008 | 2023-06-27T02:19:28 | 2023-06-27T02:19:28 | 97,987,457 | 0 | 0 | null | 2022-10-12T03:49:52 | 2017-07-21T21:21:23 | Python | UTF-8 | Python | false | false | 1,319 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
regional_center = Table('regional_center', post_meta,
Column('id', INTEGER, primary_key=True, nullable=False),
Column('rc_id', INTEGER),
Column('company_id', INTEGER),... | [
"ray@home-pc.socal.rr.com"
] | ray@home-pc.socal.rr.com |
6d29c5ec586425f53f6a28cfef8c986200a49985 | 1b16ae7be2f97bfc287ff5778213a463f04bcb84 | /crawl/ProducerConsumer.py | 13ed8913f400eb16a3188515dd20437860eb11b5 | [] | no_license | minisin/pytools | fddb69b5deac52cedb1ae193f91ff63550c625c6 | f7f979707695c1ad4d74c82954545dcd6ea46307 | refs/heads/master | 2021-01-15T22:38:20.211148 | 2015-01-17T10:46:34 | 2015-01-17T10:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #! /usr/bin/python
# encoding:utf-8
import os
import sys
import logging
import re
import urllib2
from datetime import datetime
import time
from multiprocessing import Pool, Process, Manager
import threading
from Queue import Queue
import signal
import logging
MAX_THD_NUM = 1000
class TProducer(threading.Thread):
... | [
"weiguozheng466@jk.cn"
] | weiguozheng466@jk.cn |
b6f092ec717c1826e99b02587701066605c34069 | 5f20633536ae7f74933be34c7495370306a7278f | /main.py | f944d71ca28f52c2288f8a43e97379dc189a04fc | [] | no_license | ShonTitor/-proyecto-3-ci5437 | 0817b8f694ae4a4115a51078123170060968a4ae | 46ee73d9ffac1795d8eaa2aa039a8a53bb5681fa | refs/heads/main | 2023-06-23T13:17:18.746747 | 2021-07-24T03:03:51 | 2021-07-24T03:03:51 | 385,099,695 | 0 | 0 | null | 2021-07-12T02:12:04 | 2021-07-12T02:12:04 | null | UTF-8 | Python | false | false | 5,783 | py | import os
import sys
import datetime
import json
from icalendar import Calendar, Event
with open(sys.argv[1], "r") as f:
s = f.read()
data = json.loads(s)
print(data)
participants = data["participants"]
start_date = datetime.date.fromisoformat(data['start_date'])
end_date = datetime.date.fromisoformat(data['end_d... | [
"14-10576@usb.ve"
] | 14-10576@usb.ve |
c9ce9b181da48ad6ce843987d89628b88aa22eea | c3c1b799e3b6b7bf17382c59fec3ad476da13bac | /Python3/project_euler/001_050/031.py | 16ad69d8d8e92b03375906153b58cf313665b61e | [
"MIT"
] | permissive | gaddeprasanna/general | cb53684dc5b03ef804867f7a23e1ae1d4bf3ea18 | 1843cefc15e4b4b2be5a72e4c48fb6720d2bf4e1 | refs/heads/master | 2021-01-18T02:13:12.387978 | 2014-06-26T18:35:21 | 2014-06-26T18:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | __author__ = 'Aseem'
def prob_031():
#TODO Needs to be refactored
ways = 1
for i in range(3):
sum_a = i * 100
for j in range(5):
sum_b = sum_a + j*50
if sum_b > 200:
break
for k in range(11):
sum_c = sum_b + k*20
... | [
"aseembansal@live.com"
] | aseembansal@live.com |
3a7ec7608fdf44cc95166937882742abb6bbd003 | 51bc5977a0c8461f9dd84d3bc0f41604c79544dd | /mpl_plotter_mock_data.py | 47cfddaa667c4e633fd0c4cdb3a001d179f163ec | [] | no_license | diegoslm/Data_Analysis | 1edb853697bfc45c45f8eb3a43886a9762d8f828 | 3e3668e3ed7d26f216546ce39c3cc8b5a072fba9 | refs/heads/master | 2022-10-26T12:47:23.012995 | 2020-06-09T23:42:43 | 2020-06-09T23:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | import numpy as np
import pandas as pd
from numpy import sin, cos
from matplotlib import cbook
class MockData:
def filled_julia(self, xyz_2d=False, xyz_3d=False, df=False):
w, h, zoom = 1920, 1920, 1
cX, cY = -0.7, 0.27015
moveX, moveY = 0.0, 0.0
maxIter = 255
z = np.zer... | [
"antonlopezr99@gmail.com"
] | antonlopezr99@gmail.com |
801122e3e9e4fe26fb5476460ac4012f5554371e | 59150007a9a3ee68ddfb26a170e3647545c214bb | /test/test_new_or_updated_record.py | 1a81f21190d52c2d2705f1dc58997360a789d3bd | [
"Apache-2.0"
] | permissive | nwton/fork_mdsina_selectel-dns-api | 4bc98c6784017163676f494147d0ac773ffaab46 | 30b02260a3bf86e0fbbafad372292aafb13206ee | refs/heads/master | 2020-08-29T02:11:02.664804 | 2018-04-22T10:06:37 | 2018-04-22T10:06:37 | 217,890,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | # coding: utf-8
"""
Selectel DNS API
Simple Selectel DNS API.
OpenAPI spec version: 1.0.0
Contact: info@mdsina.ru
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complianc... | [
"dmikhailov@plesk.com"
] | dmikhailov@plesk.com |
7ef676003fc406424f41ca8edfb9128e95122731 | a68648f0d55fd249507f9b96f15a5626c7d7beb6 | /raterprojectapi/apps.py | 22594ac496c1a5c0d165e9bc3078c6a619d5be01 | [] | no_license | devinmgarcia/raterproject-api | c15d361d5829fdcffbde571a01a8f10443e14ee6 | 01eb238cd05886845708ca0067dbe718784f08e1 | refs/heads/main | 2023-07-01T22:35:14.059354 | 2021-08-12T15:18:02 | 2021-08-12T15:18:02 | 392,051,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.apps import AppConfig
class RaterprojectapiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'raterprojectapi'
| [
"devinmgarcia@gmail.com"
] | devinmgarcia@gmail.com |
f76aa429deacb462b453c1aa6ca3b11698465f27 | 716935ca840b972067b9cda0e5462af8fc68f804 | /Preprocess/Preprocess.py | a3321fd594d03d4e2fb5dbc57789c17cef91546d | [] | no_license | zch997974853/Graduation-Project | afbda94165c2592e3ffdcd7f2403ad4f305a97fc | 4fec90248c4ad7f948b60ce495866f67d23a7c95 | refs/heads/master | 2021-03-25T23:25:55.516395 | 2020-03-16T09:16:06 | 2020-03-16T09:16:06 | 247,654,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,169 | py | # 主函数Preprocess.py
# 功能:将逻辑分析仪采集得到的.csv数据转化为图像
# 涉及到的子函数:
# 1、GetSpiData:提取出.csv文件中的SPI总线数据
# 2、GetFlashData:提取出SPI总线数据中写入Flash芯片的数据
# 3、GetRawData:将Flash芯片中的数据按节点提取出来
# 4、Transpic:将节点补长度并转化为图像
# 使用到的变量:
# 路径变量:
# Data_dir:逻辑分析仪导出的.csv文件地址
# Raw_dir:预处理后所有类型节点图像输出地址
# InodeData_dir:预处理后inode类型节点图像输出地... | [
"noreply@github.com"
] | noreply@github.com |
3b24a7fea645a70407a8d0ad9eb7f57491b4f6bf | 5fe6541cba14f8d8e9ce484e50d334641ceb0455 | /server/__init__.py | cd56829e5fa1e12a903e47e0b8da44aa56ca89f6 | [] | no_license | allan869/my_platform | d8b7b6649e9698a95c6ea84779f05c2c2ac2b2c4 | b100a4a7201cd6e4f660ee8634db08b16e71cbbc | refs/heads/master | 2021-09-01T06:19:42.222721 | 2017-12-25T09:16:36 | 2017-12-25T09:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,520 | py | # coding:utf-8
data = [
{
"Name": "Tiger Nixon",
"Position": "System Architect",
"Office": "Edinburgh",
"Extn": "5421",
"Start": "2011/04/25",
"Salary": "$320,800"
},
{
"Name": "Garrett Winters",
"Position": "Accountant",
"Office": "Tok... | [
"zhangkai@xiaoneng.cn"
] | zhangkai@xiaoneng.cn |
aa9594d992223ef130256bf660885e67ee952849 | 5a66d961d5d0542be0fcb3f83961d2f07bab2401 | /TestBeam/code/OnlineMonitor.py | 4a11f624b167a20c232b38943ae7e8bb036d636b | [] | no_license | PADME-Experiment/padme-fw | 1f2b56899e311b958945d0b1c4f934dfeeba761a | bec2a83e3a32b8db38977c404d78f4f36a384f30 | refs/heads/develop | 2023-08-06T11:27:10.402467 | 2023-07-18T10:15:50 | 2023-07-18T10:15:50 | 44,676,186 | 11 | 6 | null | 2023-07-18T10:15:52 | 2015-10-21T12:57:21 | C++ | UTF-8 | Python | false | false | 3,412 | py | #!/usr/bin/python
import sys
import signal
import getopt
import os
import time
import subprocess
from MergerClass import MergerClass
# Define global variables used in the signal_handler
gui_process = 0
gui_log_handle = 0
def main():
# This will use the $PADME environment variable if set
PADME = os.getenv('... | [
"emanuele.leonardi@roma1.infn.it"
] | emanuele.leonardi@roma1.infn.it |
3ef2f9b1a315cb330f5f3eaf5e432de24dbfa906 | 5e20392dc4487c75e1e3061c1416a895317ca7c2 | /navmenu/deserializer.py | 4b44a7a7ef7a6f991eed691cd1c8a35cbeeeef7d | [
"MIT"
] | permissive | rashidsh/navmenu | 7072f3cee55469ccbe7f79eb5ce81c86a3aab4bb | ec67b820462cc102417e214cd74eb7b1b97ad1f1 | refs/heads/master | 2023-08-18T02:20:26.021801 | 2021-10-03T16:56:54 | 2021-10-03T16:56:54 | 366,816,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,269 | py | from types import ModuleType
from typing import Optional, Sequence
from . import actions
from . import contents
from . import item_contents
from . import items
from . import menus
from . import responses
def filter_kwargs(data: dict, extra_excludes: Optional[Sequence] = None) -> dict:
if extra_excludes is None:
... | [
"42511322+rashidsh@users.noreply.github.com"
] | 42511322+rashidsh@users.noreply.github.com |
0c523cd7eb4c4c58a325908b8590b74af2335528 | 8a99a91f7e83c347f6cc2e8d2d2b9100c6e2fd3c | /Netmiko_Examples/netmiko_imported_functions.py | 0dc8da64c5570b0fd79a16ec0241a11ea69dce33 | [] | no_license | gnasses/DevNetStudyGroup | ba69ca6f2bc8f2892c0bb7293f4a868df2060a6f | 882fc5f24fb1d17d436f3a62ae2a26870fe8b269 | refs/heads/main | 2023-07-15T06:54:39.869010 | 2021-08-25T20:38:00 | 2021-08-25T20:38:00 | 381,394,468 | 2 | 1 | null | 2021-07-01T15:48:21 | 2021-06-29T14:29:45 | null | UTF-8 | Python | false | false | 1,708 | py | from netmiko import Netmiko
import time
import util
mydevice = '192.168.1.57'
mycommand = 'show mac address-table'
results = util.cisco_command(mydevice, mycommand)
for dic in results:
for sub in dic:
#print ("MAC Address: " + dic['destination_address'] + " Port: " + dic['destination_port'])
mac... | [
"noreply@github.com"
] | noreply@github.com |
7e7469802b3c5b924e652ee98673659d9cfede94 | 6a5477e9bfae8110b2203182ad1db0517d09b2f2 | /Realestate4/Tagent4/models.py | 132aff2e669b0c6bb3868eae0e56314f45160235 | [] | no_license | Jagadishbommareddy/multiadress | b90f46ef80b50ddae8d8499e3e8c2d56d10796a9 | a8fa8f5fe2803f66bd7e5a8668e82b589df846b5 | refs/heads/master | 2021-01-23T10:04:07.921653 | 2017-09-06T12:16:31 | 2017-09-06T12:16:31 | 102,604,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from django.core.urlresolvers import reverse
from django.db import models
from .validations import *
class Agent(models.Model):
agent_id= models.AutoField(primary_key=True)
first_name= models.CharField(max_length=20,validators=[validate_first_name])
last_name= models.CharField(max_length=20,validators... | [
"noreply@github.com"
] | noreply@github.com |
23ce5ed6bff83c3d562926676dce10e0e8fbb16b | e9480213b444129c4a3a0fb66a5e686a9f17c6da | /app03/views.py | 7c0ba022981562e7b5f3e7289c457be631b6b576 | [] | no_license | IronDukeLinux/CRM_project | 293c0ef0a8e0161d0d8c8495edf211f81b3bfe0b | 65ef7675df16cf846dbffe9408ce040d40e0edb9 | refs/heads/master | 2020-03-27T23:44:08.082325 | 2018-09-04T12:22:16 | 2018-09-04T12:22:16 | 147,341,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from django.shortcuts import render
from app03.models import Book
from app03.page import MyPage
# Create your views here.
def index(request):
# 创建数据
# li = [Book(title='python_%s' % i, price=i*i) for i in range(1, 101)]
# Book.objects.bulk_create(li)
page_num = request.GET.get('page', 1)
data_lis... | [
"1211515452@qq.com"
] | 1211515452@qq.com |
2483ff0fde5338d50146941302debdfaf00f2b29 | 27aaadf435779c29012233cb1dacf27bd9dd0d0f | /adp-20210720/alibabacloud_adp20210720/client.py | 0742f891433504b77026d9a6761b748bb785d24a | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-python-sdk | afadedb09db5ba6c2bc6b046732b2a6dc215f004 | e02f34e07a7f05e898a492c212598a348d903739 | refs/heads/master | 2023-08-22T20:26:44.695288 | 2023-08-22T12:27:39 | 2023-08-22T12:27:39 | 288,972,087 | 43 | 29 | null | 2022-09-26T09:21:19 | 2020-08-20T10:08:11 | Python | UTF-8 | Python | false | false | 309,365 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilCl... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
68231ea1fdfc7c7ce7e6f4d578d950648ba1ba6d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-4579.py | 8c13f6cc0c32208121d23fd4704cad007abaacf3 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
eb26144c87b439f5f0f8059de871a2b706ed56c0 | d33cd94fb483f6694f6f1f0848f83d5cc2143faf | /removingelements.py | 832d30578686c0b9ebe77d9bdbf4ce9efbfa9f8c | [] | no_license | kajetan-mazur/isdivide2 | 4bb00f136f5724c05617e806419c192d1ffa0b5e | 170b14cb645fa09d52622d81f801718a6d35d54c | refs/heads/master | 2021-01-19T11:26:17.102939 | 2017-04-25T12:10:04 | 2017-04-25T12:10:04 | 87,967,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | list_string = ['flower', 'water', 'earth', 'pot']
# el_to_remove = 'flower'
list_string.remove('flower')
print(list_string) | [
"kajetan@webownia.pl"
] | kajetan@webownia.pl |
81d2d55ca5222f29b7e74ce786cc2e7d5e1986fd | c7fa4d256b39a9254c0ac86199bbd60bce64e948 | /Code/Elasticsearch/ExtractFingerprints.py | 22f1d192942ba6bc9bccc2abbd90648223584238 | [] | no_license | myersjo/Final-Year-Project | 3fd576598e5c448c8c331fe13be97c94adc9d974 | 5c3e1df6decefb337a6eb50792ee4ea59d0db470 | refs/heads/master | 2021-10-28T07:07:02.095025 | 2019-04-22T16:20:36 | 2019-04-22T16:20:36 | 153,266,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,005 | py | #!/usr/bin/python
# Elasticsearch version of SameKeys.py
# from https://github.com/sftcd/surveys
import os, sys, argparse, tempfile, gc
import json
import jsonpickle # install via "$ sudo pip install -U jsonpickle"
import time, datetime
from dateutil import parser as dparser # for parsing time from comand line and ... | [
"myersjo@tcd.ie"
] | myersjo@tcd.ie |
ef3f10ffb9fb82da880e30592f7c192f58c36a89 | 2fc65c833223d282bd9867729ad3ed054c0832c2 | /timetable/Section/router.py | 308f412c58640aa5d05ae79329afb640054f1a26 | [] | no_license | libbyandhelen/DB_timetable | 72b744ec332e5c1c3e242df1df6b4373493472ba | 17936821b7064bed2ebb51289e5a9b0e131929d1 | refs/heads/master | 2020-09-21T20:43:55.008545 | 2019-12-12T01:18:48 | 2019-12-12T01:18:48 | 224,921,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from Section.views import get_selected_sections_by_user, create_select_section, delete_select_section, \
create_select_section_by_section_id
from base.error import Error
from base.response import error_response
def router_selectsection(request):
"""
/api/usersections
GET: get_selected_sections_by_user... | [
"libbyandhelen@163.com"
] | libbyandhelen@163.com |
65a5e8f29a0c78bacf860b606ec5e621f0688bcd | 2599d93919a1cfd9a030e862d10e40e52d287655 | /project_management_portal/models/.~c9_invoke_f9xkC7.py | 3892df0d6bfd9a2ae01d12345fdf22f8a22f7292 | [] | no_license | chandramoulidupam/my_projects | a6730c44ed2ba7a055d13415067b28ca74f0134b | 111d7753e2cf867d51681ed41a7ea917deb9aecd | refs/heads/master | 2023-09-02T03:38:59.753682 | 2020-06-01T06:20:48 | 2020-06-01T06:20:48 | 267,607,764 | 0 | 0 | null | 2021-11-15T17:51:30 | 2020-05-28T14:11:11 | Python | UTF-8 | Python | false | false | 1,504 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
from project_management_portal.constants.enums import ProjectType
class User(AbstractUser):
name = models.CharField(max_length=50)
profile_pic = models.CharField(max_length=50)
is_admin = models.BooleanField(default=False)
... | [
"chandramoulidupam@gmail.com"
] | chandramoulidupam@gmail.com |
049c2446d87522af0e88d1b5c128a57f8d91ca95 | 2dde628fbadfe41efdca089239b601067b177270 | /ispectrum/colorpy_wrapper.py | 5b78f41dc8377f6682746de069a6d8054361f64a | [] | no_license | jlustigy/jakely | 7b2e88c39a5bb9b7a6f3c9e16350cdf2a722bbba | 7ddcef774baf98dfc912c379fa869b44e951b167 | refs/heads/master | 2021-06-29T03:06:04.702905 | 2019-11-18T20:49:27 | 2019-11-18T20:49:27 | 53,112,063 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | from colorpy import colormodels, ciexyz
from ..plot import set_figure_colors
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import gridspec
import os
def irgb_string_from_spectrum(wl, spectrum):
"""
Calculates the irgb color given a wavelengh [nm] vs intensity [W/m*... | [
"jlustigy@uw.edu"
] | jlustigy@uw.edu |
210da5e7fcf5b262b8e037957144252589cf0a1c | a632f63d1a99f73d4accd0d200b4780f7b923c4f | /proxy/proxy.py | 780fc24a1d4693ab9f7b9ebee1c6f5e774aa1065 | [] | no_license | jthemee/Hack-Python | b70502837e86b10df9e86aa3386a35e0e1980893 | 91d3d4b1c831a3c1a6da20126bb503e52cff2f45 | refs/heads/master | 2021-01-18T21:17:11.034902 | 2017-03-01T09:22:39 | 2017-03-01T09:22:39 | 39,102,234 | 5 | 8 | null | 2016-04-11T15:21:35 | 2015-07-14T21:51:59 | Python | UTF-8 | Python | false | false | 5,400 | py | import sys
import socket
import threading
# this is a pretty hex dumping function directly taken from
# http://code.activestate.com/recipes/142812-hex-dumper/
def hexdump(src, length=16):
result = []
digits = 4 if isinstance(src, unicode) else 2
for i in xrange(0, len(src), length):
s = src[i:i+l... | [
"jthemee@gmail.com"
] | jthemee@gmail.com |
665871accf3e172f656e0fa932d30ff802625161 | d52aadf33f41edd66997f04d78c9f11e6aa9c22e | /tests/imfusion/build/indexers/conftest.py | 7fcf4fd36d915d28fa45852a842f0a28447b872c | [
"MIT"
] | permissive | sofiaff/imfusion | 3ec3404715e6c9fbca749a551a384f80217d8068 | 796c546802b40ae4aa34e60c6dd308ef4a3c80b1 | refs/heads/master | 2021-07-11T21:56:16.484192 | 2017-05-11T20:50:36 | 2017-05-11T20:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import pytest
from pathlib2 import Path
@pytest.fixture
def data_path():
"""Path to build test data directory."""
return Path(__file__).parent.parent
@pytest.fixture
def refseq_path(data_path):
"""Path to test reference sequence."""
return pytest.helpers.data_path('reference.fa', relative_to=data_p... | [
"julianderuiter@gmail.com"
] | julianderuiter@gmail.com |
4fc695ac70d158a6cba3bae5ba199844e1cd2fc5 | 80dbb004883779f51733f5382040f940507e9180 | /youtube/urls.py | 5ade2eef4a72366cff05f9902e55dac1992d6caf | [] | no_license | Shayan-9248/youtube_search | 94824398f498022fb53aa5ca7f08ba6008f70396 | e07d9a2aa0dac0d76675db028c3584583151b31d | refs/heads/master | 2023-03-26T06:07:55.303627 | 2021-03-24T15:21:19 | 2021-03-24T15:21:19 | 350,349,734 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.urls import path
from . import views
app_name = 'youtube'
urlpatterns = [
path('', views.index, name='index'),
] | [
"shayan.aimoradii@gmail.com"
] | shayan.aimoradii@gmail.com |
2dc861a7f683325aeac69c4dacf18f63fa19f428 | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/VTK-7.0.0/Examples/Infovis/Python/streaming_statistics_pyqt.py | 6f778bc6de891077741ee6e337ac42522a554388 | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | #!/usr/bin/env python
from __future__ import print_function
from vtk import *
import os.path
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
data_dir = VTK_DATA_ROOT + "/Data/Infovis/SQLite/"
if not os.path.exists(da... | [
"shentianweipku@gmail.com"
] | shentianweipku@gmail.com |
9cb36d473a25803272db513f6a0b7e03992d2d38 | 77bed681e9d4327c13e716694b7f3d2fb4009364 | /app/main/__init__.py | 4bf1ffb337d157d241fd5a6b1b6d366d07fdf200 | [] | no_license | nemanja-curcic-dev/online-training-app | 5a30762563485192ec0eae620a90296931215e01 | eb57d9f1acd3b1a16071f23c7400576e14819a2f | refs/heads/master | 2021-10-25T22:57:52.070601 | 2019-04-08T04:02:53 | 2019-04-08T04:02:53 | 105,525,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from flask.blueprints import Blueprint
main_blueprint = Blueprint('main_blueprint', __name__)
from . import views | [
"curesr@gmail.com"
] | curesr@gmail.com |
bdaba5660d252a2a76b44267cb85a97ce59aabbf | 081a3c5be292bea814e68ac7072915b22a0a1ebd | /webgl/settings.py | 28476e807deeb5cc480a1a06d19958f055e3159f | [] | no_license | abinabraham/shipweb | 9cb233a8591af70f817852adf5e20f950e6c8040 | f5d376d96292eacab502023ffa1d8197bc506c94 | refs/heads/master | 2021-01-21T22:48:26.272415 | 2017-09-02T05:02:33 | 2017-09-02T05:02:33 | 102,173,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | """
Django settings for webgl project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"abinabrahamcs@gmail.com"
] | abinabrahamcs@gmail.com |
96e010cc6ade90717181601cda9a36024ee05906 | 3c10511acadf8c651c433d6fd03ced9498d5d479 | /21/21.py | c310af95b8a2884d9ade42dad5ff82625e6456aa | [] | no_license | DarkC35/AdventOfCode2020 | d75707c918cd6cf551cbcee2c3b607da2f27c1a6 | 2b0079694917e367b9e8f5271fb5973bb55175a3 | refs/heads/master | 2023-01-23T22:42:08.664703 | 2020-12-12T18:03:17 | 2020-12-12T18:03:17 | 318,242,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | from timeit import default_timer as timer
def next_board(board):
new_board = [row[:] for row in board]
for row in range(0, len(board)):
for col in range(0, len(board[0])):
if board[row][col] == "L" and count_adjacent_seats(board, row, col) == 0:
new_board[row][col] = "#"
... | [
"khaunschmied.mmt-m2019@fh-salzburg.ac.at"
] | khaunschmied.mmt-m2019@fh-salzburg.ac.at |
64f97ce5baf232b01e2d738eb174d09a69cc3bcc | 78b3d574423e2b76ab9ca5511cabbccd3a5c4def | /app/tests/a.py | 1ece0d068be8e0f20e4ff5f174b992cb288ff0ba | [] | no_license | zhangmengdream/fisher | 697872bf227f83e33e96242e682a96ef34bb8119 | 7120eb76c959f0b1cd4fb2893531b9f4d954d467 | refs/heads/master | 2022-12-13T17:06:51.794679 | 2019-12-02T08:22:25 | 2019-12-02T08:22:25 | 225,308,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # from contextlib import contextmanager
#
# # contextmanager 装饰器
#
#
# def mank_myresource():
# pass
#
#
#
#
kwargs = {1:'a',2:'b',3:'c'}
clauses = [key == value for key, value in kwargs.items()]
print(clauses) | [
"m18715529161@163.com"
] | m18715529161@163.com |
2f217ccdcd79a8d5bb7e6c3d2f7d2ab5c1838d56 | 742f15ee3880306a946df7efee0020e42684b109 | /out/string/python-flask/openapi_server/models/variable_collection.py | 9cfe8be729a4ce32a9dd09c941f50f540d31840e | [] | no_license | potiuk/airflow-api-clients | d0196f80caf6e6f4ecfa6b7c9657f241218168ad | 325ba127f1e9aa808091916d348102844e0aa6c5 | refs/heads/master | 2022-09-14T00:40:28.592508 | 2020-05-31T10:05:42 | 2020-05-31T10:15:55 | 268,128,082 | 0 | 0 | null | 2020-05-30T17:28:04 | 2020-05-30T17:28:03 | null | UTF-8 | Python | false | false | 1,941 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.variable_collection_item import VariableCollectionItem
from openapi_server import util
f... | [
"kamil.bregula@polidea.com"
] | kamil.bregula@polidea.com |
23f42d702d1da5df927ca90ae08f9306f8083b65 | 8206a8bb162f9ffbe36b87d28bb4bc974de68f48 | /format_print.py | bceca69abb7209f6f0ce7802c3d41c932f6f8ebd | [] | no_license | KaimingWan/Python_Learning | 61e0f260f0061946610198fcf0187d5b7b882078 | 144757d16d92ab76f8a5b64e07beebc4305a454c | refs/heads/master | 2021-01-17T03:50:15.109625 | 2016-01-12T10:46:37 | 2016-01-12T10:46:37 | 39,371,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | #使用str.format()函数
#使用'{}'占位符
print('I\'m {},{}'.format('Hongten','Welcome to my space!'))
print('#' * 40)
#也可以使用'{0}','{1}'形式的占位符
print('{0},I\'m {1},my E-mail is {2}'.format('Hello','Hongten','hongtenzone@foxmail.com'))
#可以改变占位符的位置
print('{1},I\'m {0},my E-mail is {2}'.format('Hongten','Hello','hongtenzone@foxmail.... | [
"344277934@qq.com"
] | 344277934@qq.com |
bc8a787cb384083441ada6219c740bc2df9db940 | aa91abd10252adb014bf031d1d568b5d83872057 | /BCI_framework/library/src/data_analysis/models.py | b67d7a659815c3d89647ecbf7cf3906f1770ca76 | [] | no_license | Alexander-Jing/code_for_UIST | 6a3b288de6c59308727e00cebb39afdb5950517f | dec31229f43149dd2c9d4be2115c6ead7c8a68b3 | refs/heads/main | 2023-05-28T08:29:24.198911 | 2021-06-09T16:40:40 | 2021-06-09T16:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class LogisticRegression(nn.Module):
def __init__(self, input_dim, num_classes):
super(LogisticRegression, self).__init__()
self.linear = torch.nn.Linear(input_dim, num_classes)
def ... | [
"lwang89@usfca.edu"
] | lwang89@usfca.edu |
29437d33920a0e4eafe897c90482d47aaf488dff | 8e6fff60ed05128beb208e9e529762061cf4aee3 | /GUIapp/tkraise.py | 06d799f633b9880c913f9eb3eb6af8ec46332e76 | [] | no_license | syu-kwsk/python-study | df7f3a9da766bbd675212810b8ddc154bd1fe5f5 | b822820d4b37f58d886afc450f9384f6f69f871f | refs/heads/master | 2020-05-19T11:18:46.137637 | 2019-06-27T13:29:12 | 2019-06-27T13:29:12 | 184,988,355 | 0 | 0 | null | 2019-06-27T16:36:33 | 2019-05-05T06:20:57 | Python | UTF-8 | Python | false | false | 711 | py | from tkinter import *
root = Tk()
def changepage(frame):
frame.tkraise()
root.title("try tkraise()")
root.geometry("1000x600")
top = Frame(root)
label1 = Label(top, text="this is top")
button1 = Button(top, text="change page", command=lambda : changepage(game))
exit1 = Button(top, text="exit", command=lambda:... | [
"kawasaki.wataru688@mail.kyutech.jp"
] | kawasaki.wataru688@mail.kyutech.jp |
af9e7f873e6f854ab8cec919c976476e7281f61f | e7fb13ed9d22141ed880215911fac2b1342889d4 | /python基础知识/面试题.py | 259e19321040fd1074d075eb1201fa7a1e443b3f | [] | no_license | chenhongwen16/python | 87ca44e20fc40eef836891aed7471a948c21c5ca | dc67e961068ec2895643a4ac4cf5d4066aefa92e | refs/heads/master | 2020-03-24T05:09:56.468989 | 2018-07-28T09:53:57 | 2018-07-28T09:53:57 | 142,477,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | '''
5.CPython,在命令行下运行Python,就是启动CPython解释器
IPython,IPython是基于CPython之上的一个交互式解释器,也就是说,IPython只是在交互方式上有所增强,但是执行Python代码的功能和CPyhton是完全一样的
PyPy,PyPy是另一个Python解释器,它的目标是执行速度,PyPy采用JIT技术,对Python代码进行动态编译,所以可以显著提高Python代码的执行速度。
Jython,Jython是运行在Java平台上的Python解释器,可以直接把Python代码编译成Java字节码执行。
IronPython,IronPython和Jython类似,... | [
"309861722@qq.com"
] | 309861722@qq.com |
bde2d17546e4aff0de68b15ffb0c5f017dea7c68 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/django/conf/locale/zh_CN/formats.py | 00fa8f4a3fd541170626603a495a7c857d6c9a15 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/django/conf/locale/zh_CN/formats.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
03f14698166026a44a40de67f3f7eae6f6997195 | 380bd0b36a7735fc04ae51e8cf5a94ccfe909b94 | /data_consol/parse_reviews_xml.py | 4fb48b96f9589a1f53ebd48c06a807f9d23ffbbc | [] | no_license | hwright-ucsb/293s-HolyGrail | 17ff389a929f9b3474a01d59d32d233d7bea36dc | c527d5ce947762c8a6e16cc898193f86a802a51f | refs/heads/master | 2021-01-19T21:16:00.565232 | 2017-03-21T22:07:47 | 2017-03-21T22:07:47 | 82,478,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | import json, re
def removeUnicode(s):
#a mismatch of unicode in hex and usyntax
noUni = s.encode('utf-8')\
.replace("\\x92", "'")\
.replace("\\", '')\
.replace("\xe2\x80\x99", "'")\
.replace("\xc2\xa0", ' ')\
.replace("x93", '"')\
.replace("x94", '"')\
.replace("u2019", "'")\
.replace("u201c", '"')\
.replac... | [
"wright@umail.ucsb.edu"
] | wright@umail.ucsb.edu |
a13b993cdc1c27518a585c900f9a698d84ad827c | 9f8779f415719cd77bb119cbfc5ff88d2402d8c0 | /mysite/settings.py | 9c27c4027160161ee262e1d9087d9485123f27ec | [] | no_license | Eluska/djangogirls-workshop | ed433b4bd0fe7fd72c381e2a674737eb2094b97a | 9473535d93f0d273e3274df7ed8126871ff4778e | refs/heads/master | 2021-05-10T21:50:58.283612 | 2018-01-20T16:52:11 | 2018-01-20T16:52:11 | 118,241,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"elena.suranova@seiteq.com"
] | elena.suranova@seiteq.com |
a61b37b10118e7ae82be6f1101c3b31bb4ae21ff | 6bedc9b6041525679bb3605df94c7e7d726ab220 | /priv/jun_seaborn.py | de2a3f8ca0303d316f0f94d175a961b11d5d4e25 | [
"MIT"
] | permissive | zgbjgg/jun | ff2f189763c541eec9db208e45128ff3db22dcb5 | 8a877d4a9c56efb6c9a2e13d25109e9da8dde5de | refs/heads/master | 2021-06-21T22:05:30.692476 | 2020-10-01T03:51:08 | 2020-10-01T03:51:08 | 97,057,283 | 24 | 5 | MIT | 2020-10-01T03:51:09 | 2017-07-12T22:32:04 | Erlang | UTF-8 | Python | false | false | 1,387 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import scipy as sp
import numpy as np
import matplotlib as mpl
import pandas as pd
import sklearn as skl
mpl.use('Agg')
import seaborn as sns
# common helper for dataframe plot using seaborn,
# trying to return a file instead a raw opaque item
def jun_dataframe... | [
"zgbjgg@gmail.com"
] | zgbjgg@gmail.com |
a813132444070bf970045b1deee760663a10e810 | 6a0b53a3845bb97e76e9f7cd508d78b600654b95 | /gps.py | 9ea62f840b943d4d917b89ea2eb36a998a3b83e9 | [] | no_license | KTTS18/Hardware_code_TAN | b71199d6553b940b97679f63e51bd9144e087975 | 271f9cf3a067d27bd882bb42c096527bb426f691 | refs/heads/master | 2023-04-16T16:01:28.488859 | 2021-05-04T11:15:58 | 2021-05-04T11:15:58 | 362,198,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import serial
import time
import string
import pynmea2
import datetime
import pymongo
MONGO_DETAILS = 'mongodb+srv://TANdb:Tan180704@cluster0.vw9z5.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'
client = pymongo.MongoClient(MONGO_DETAILS)
db = client.myFirstDatabase
try :
while True:
port = "/dev/ttyAMA0... | [
"Tuksina.007@gmail.com"
] | Tuksina.007@gmail.com |
b37cfcddd38791a19341f6848a7830f447197564 | 09d324aee2522611fc474762d97b734367fa6faa | /kick_start/right.py | 824fb0419f6a0088225d686904f9e85b5699a921 | [] | no_license | garyCC227/python_practice | 96c50d2dc92588793382e71bc81f0f9da15853ec | d1753e2243bd84179ef2e1fefe0ca0b2259c4281 | refs/heads/master | 2022-12-08T22:46:59.622857 | 2019-09-05T08:14:48 | 2019-09-05T08:14:48 | 172,495,990 | 0 | 1 | null | 2022-12-08T06:07:20 | 2019-02-25T11:47:50 | Jupyter Notebook | UTF-8 | Python | false | false | 944 | py | import re
t = int(input())
def has_odd(t):
for i in range(1, t+1):
num = int(input())
if is_existed(num) == False:
print ("Case #{}: {}".format(i, 0))
else:
plus_couter = 0
minus_couter = 0
plus_num = num
minus_num = num
... | [
"z5163479@ad.unsw.edu.au"
] | z5163479@ad.unsw.edu.au |
f3bcde6ae30cfb731230794841388499d4d42f42 | 4403600c57fd170aad6bb505e4f14c4b70e63356 | /sensor.py | 3d90ccfcb357c6b8161da75db9832f89fceda02f | [] | no_license | moonclearner/sensor | de4ef554cbc3dadb5fe5e801c55627d9f9340d19 | 0c3ad14375267b135940e8254262b0d054bd472c | refs/heads/master | 2021-01-12T05:11:52.667742 | 2017-01-03T06:38:59 | 2017-01-03T06:38:59 | 77,886,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # sensor collection system
from __future__ import unicode_literals
# starting time: 30, December,2016
# author: moonclearner
# -*- coding: utf-8 -*-
from socket import *
from time import ctime
Host = '127.0.0.1'
Port = 21010
BufferSize = 1024
ADDR = (Host,Port)
def server_init():
tcpserversock = socket(AF_INET,S... | [
"718857460@qq.com"
] | 718857460@qq.com |
5c3cadcea6b674950e9bd4d54fc622ab03f72053 | b4e22e0dc6d5360534b862792defc59eb8fc436e | /boggleGame.py | 7cb752f5f0afd868e3862359dd13646fd353c2bb | [] | no_license | possibleit/LintCode-Algorithm-question | e4170ef02fbda84f39a0d358cc1b414c682acd38 | d200e8e9a2fde865b9efcf9329abe62eb8d00905 | refs/heads/master | 2020-05-03T02:50:03.218575 | 2019-06-05T14:49:13 | 2019-06-05T14:49:13 | 178,381,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import collections
class TrieNode(object):
def __init__(self,value=0):
self.value = value
self.isword = False
#OrderDict是Dict的子类,可以记录元素添加的顺序,具体见https://docs.python.org/3.6/library/collections.html?highlight=collections#collections.OrderedDict
... | [
"2358979326@qq.com"
] | 2358979326@qq.com |
a1920eb17ae8a5d110eec79ba4698965d734274d | fd70357aadb41859afb2d42cc726d597423e6d90 | /aaulan/views/sponsorship.py | 7455b4f8b7bf30c0807dd8116c39eead86d8d6b5 | [
"MIT"
] | permissive | AAULAN/aaulan2.0 | a3f556476e5a33abb4441c4d3dd0491c9bfd7fbb | f0400914fe9e126a2dbf94cbce78cc34f976f3b8 | refs/heads/master | 2020-03-31T01:45:42.485820 | 2019-01-17T20:21:53 | 2019-01-17T20:21:53 | 151,793,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from django.shortcuts import get_object_or_404
from rest_framework import viewsets
from rest_framework.response import Response
from ..models.sponsorship import Sponsorship, SponsorshipSerializer
class SponsorshipViewSet(viewsets.ViewSet):
def list(self, request, event_pk=None):
queryset = Sponsorship.ob... | [
"jacob@jener.dk"
] | jacob@jener.dk |
20ddaf5492fb4c5ccf30b264b6cf8cca8bbfa6ee | 8cd3160bfe2beaf7647cdfc5229cac39ac0c255c | /Prueba2/grafo.py | fba15ac6191b43474f1351ab4807c65e3187b544 | [] | no_license | Lozamded/Paralela | 9168a337cc071f85ab805dd0d2b96a2b5e7caf9b | b0d973cfa1a1ef291671fbccdfee25f21307068b | refs/heads/master | 2021-01-20T14:58:31.769333 | 2017-07-17T22:41:53 | 2017-07-17T22:41:53 | 90,696,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | def file_len(fname):
with open(fname) as f:
for i, l in enumerate(f):
pass
return i + 1
texto = "grafo_ejemplo.txt"
archivo = open(texto, "r")
num_lineas = file_len(texto)
i = int(0)
cant_triangulos = int(0);
print "Lista de adyasencia: "
recorrido = ["0","0","0","0"]
lookup = int(0)
co... | [
"dhiguerafernandez@gmail.com"
] | dhiguerafernandez@gmail.com |
a831ccd07847fedc4a2a421d53e6d36e4d5ff562 | d3dcb6fdb4c78fdb080a94b3d2790716c8ac5104 | /dq/qm.py | 0fc4f3b72e1d2572a6477269ae98e84ad3ab1b06 | [
"MIT"
] | permissive | shuaigroup/dummy_qm | 7e13c1cb3b1510bd954571f27b72c960202fe4b1 | ddf0a580487e88da584ebb723e9bf920fbc2397e | refs/heads/master | 2020-07-12T03:17:39.516761 | 2019-11-05T05:32:53 | 2019-11-05T05:52:17 | 204,703,197 | 0 | 0 | MIT | 2019-08-30T11:57:25 | 2019-08-27T12:55:40 | Python | UTF-8 | Python | false | false | 120 | py | # -*- coding: utf-8 -*-
def scf(mol_name):
return len(mol_name)
def dft(mol_name):
return len(mol_name) - 2
| [
"liwt31@163.com"
] | liwt31@163.com |
ad2d33429d0c99627e9c18caa875ca3926d8864f | f028c7ca2e4c42505011ac0543cde4a111ee5c74 | /eggs/django_lfs-0.10.2-py2.7.egg/lfs/order/settings.py | deea3ffc34011276d45e862026eca7c9462fbb11 | [] | no_license | yunmengyanjin/website | d625544330c28f072707dcbbc5eb7308a3f4bd9f | 77e9c70687b35fd8b65a7f2d879e0261ae69c00e | refs/heads/master | 2021-04-22T13:10:09.584559 | 2017-05-15T07:39:32 | 2017-05-15T07:39:32 | 56,428,389 | 2 | 16 | null | 2020-10-02T07:41:08 | 2016-04-17T09:18:33 | Python | UTF-8 | Python | false | false | 755 | py | # django imports
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
SUBMITTED = 0
PAID = 1
SENT = 2
CLOSED = 3
CANCELED = 4
PAYMENT_FAILED = 5
PAYMENT_FLAGGED = 6
PREPARED = 7
ORDER_STATES = [
(SUBMITTED, _(u"Submitted")),
(PAID, _(u"Paid")),
(PREPARED, _(u"Prepared")... | [
"daniel48@126.com"
] | daniel48@126.com |
fcafb028491856193e3d5ea38edae23be404ff2b | b1599af8f1db3b571a826429a7b93f0c398f6551 | /MinPerimeterRectangel.py | 5c837e8891edc71c9a85c742aab4c8ec40ff5d39 | [] | no_license | jmasramon/codility | 5fe21a6333276792d25a9f4920f94962aa70d837 | f3ce8ccde9da3b139d783daf10f529e5e2bac116 | refs/heads/master | 2020-04-16T17:44:36.340492 | 2017-01-21T19:23:51 | 2017-01-21T19:23:51 | 41,438,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | __author__ = 'jmasramon'
# N area = a*b
# per = 2(a+b)
# find min perim if area = N
def solution(N):
min_per = (N+1)*2
i=1
while(i*i<N):
if (N%i == 0):
min_per = min(min_per, 2*(i+N/i))
i += 1
if (i*i == N):
min_per = min(min_per, 2*(i+N/i))
return min_per
de... | [
"jordi.masramon@gmail.com"
] | jordi.masramon@gmail.com |
64327930a5d8ae9700917472a50c8c1dda60a734 | 5cc4e5a7b0de09f23b9614e3fc48fba9437b5186 | /base.py | 9ec5468085fa2dbeaf16e659ddafe08c3c419b4a | [] | no_license | jaybhagat/rentalsApp | 650926589a74a4bbfc8032a537c37d5ca2ec200a | 29a1123299fd1148565bc81408b343b9ccdbc596 | refs/heads/master | 2022-09-24T18:11:38.003358 | 2020-05-31T00:55:13 | 2020-05-31T00:55:13 | 262,192,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Rentals(db.Model):
id = db.Column(db.Integer, primary_key=True)
address = db.Column(db.String(100), unique=False, nullable=False)
price = db.Column(db.Integer, unique=False, nullable=False)
bed = db.Column(db.Integer, unique=False, nu... | [
"jay@Jays-MacBook-Pro.local"
] | jay@Jays-MacBook-Pro.local |
a960eef699c4388f843ebc3b90a4abff27eeb1a8 | a6feaaf07b780e5d6277f7fe649c6d88e04a32ac | /project2.py | 3bd53dbb73dffe72f68acf10fa2bdb2daa76c037 | [] | no_license | CN120/Movie_Recomender_WIM | a9a231f71590033fad628bcf24448819a0b87496 | 30365c1d12dcd253235683f318b0f2b906c292b2 | refs/heads/main | 2023-01-03T14:25:25.692042 | 2020-10-29T21:46:27 | 2020-10-29T21:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,831 | py | import numpy as np
from math import log
trained = np.loadtxt("./train.txt", dtype=int, delimiter='\t')
print(trained)
test5 = np.loadtxt("test5.txt", dtype=int, delimiter=' ')
test10 = np.loadtxt("test10.txt", dtype=int, delimiter=' ')
test20 = np.loadtxt("test20.txt", dtype=int, delimiter=' ')
testing = None
d... | [
"noreply@github.com"
] | noreply@github.com |
f5106688a14c435c9b722292e4efbf2a86450d65 | 7ca3e3e7cc768524dce8715ac511dededca0548d | /flask/bin/python-config | fcd925df8367b95316b70c08aefbe23f4a79f35d | [] | no_license | Sushantgakhar/microblog | dcd32072a2598cd3d1fbefa6facf31ebf751e333 | cd1c02434a92c8f4f8134ee8b128bcced760a0d7 | refs/heads/master | 2021-01-24T09:18:36.275579 | 2016-11-18T11:27:26 | 2016-11-18T11:27:26 | 69,888,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/Users/ishaan/Documents/microblog/flask/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"gakharsushant@gmail.com"
] | gakharsushant@gmail.com | |
3ea4d53a79484f18a2f537cce2b80ff6fb76d9d5 | 2e9f3f35cd239ce59f528c7b3b5e9714f7e5d5a3 | /furnace/kernels/lib_tree_filter/functions/bfs.py | 0c42bda0aebff2c10db5ec40a4cd5d48df3bdd46 | [
"MIT"
] | permissive | CV-IP/TreeFilter-Torch | 8e2bd831060d0fa4e589a56353c2d91a7d4ac87b | 46f36024f4522056fb9a3edf90c94f0a86a1352b | refs/heads/master | 2023-02-04T19:09:32.790909 | 2020-12-16T07:14:41 | 2020-12-16T07:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import torch
from torch import nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair
import tree_filter_cuda as _C
class _BFS(Function):
@staticmethod
def forward(ctx, edge_index, max_adj_per_vertex):
sorted_index, sorte... | [
"stevengrove@stu.xjtu.edu.cn"
] | stevengrove@stu.xjtu.edu.cn |
3305807a13f174ff87ead377d7acd503806033be | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/netapp/v20190601/_inputs.py | 6ac3e38e0fdff20cacdaccca6e8025b52fcd1b8f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,825 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | noreply@github.com |
d416b840d8b75b0bc1afde2953bdda6171b7660d | 745bd131051e8876f725171c7585442afc92d166 | /SenseHat_Letters.py | c9803e5539600d28caec70a28e5dbc62cdcfb0b1 | [] | no_license | toxarisswe/rpi | 5b7027d2cb2fe49243e6130cf3d849bbe8a56644 | 062f4f046521745ddd676ad54ee01ee9f11108b9 | refs/heads/master | 2020-03-27T11:44:46.589470 | 2018-08-29T08:13:34 | 2018-08-29T08:13:34 | 146,505,634 | 0 | 0 | null | 2018-08-28T21:02:06 | 2018-08-28T20:53:23 | null | UTF-8 | Python | false | false | 347 | py | #! /usr/bin/env python
from sense_hat import SenseHat
from time import sleep
sense = SenseHat()
red = (255, 0, 0)
blue = (0, 0, 255)
green = (0, 255, 0)
yellow = (255, 255, 0)
sense.show_letter("T", red)
sleep(1)
sense.show_letter("O", blue)
sleep(1)
sense.show_letter("V", green)
sleep(1)
sense.show_letter("E", yell... | [
"toxaris@hotmail.com"
] | toxaris@hotmail.com |
eb3aaf828529badea89198548156e0978fba4e27 | e825b2f0fde4e24809b224b7eb000ed406065eb3 | /previous/02_main.py | d4210dfbbba78db7861c4c6780ddf5f4cbf47333 | [] | no_license | EricNeid/CodingGame | 0bc2b08324a03f22f8078e0650106bf9d098b80b | 5e4d73582844dec457ac9b375bb2ecde501a0653 | refs/heads/master | 2021-09-20T05:45:56.655900 | 2018-08-04T19:43:31 | 2018-08-04T19:43:31 | 78,210,993 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import sys
import math
# The while loop represents the game.
# Each iteration represents a turn of the game
# where you are given inputs (the heights of the mountains)
# and where you have to print an output (the index of the mountain to fire on)
# The inputs you are given are automatically updated according to your l... | [
"eric.neidhardt@sevenval.com"
] | eric.neidhardt@sevenval.com |
e54795bb281bdf8f85f066736ab758402ee247bb | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/formula1.py | fe89d221c6f687c2412b0273b350ca3685ae8f59 | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 1,020 | py | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class Formula1IE(InfoExtractor):
_VALID_URL = (
r"https?://(?:www\.)?formula1\.com/en/latest/video\.[^.]+\.(?P<id>\d+)\.html"
)
_TEST = {
"url": "https://www.formula1.com/en/latest/video.race-highlig... | [
"noreply@github.com"
] | noreply@github.com |
cf3574e7f1b07fdaf295f9b85a87e7e6aa4fa6a1 | 34bb6071725fb31f50ef7ff147fce5a06a5bb534 | /code/router/handler.py | 131eb17758636f15b29d37e503a366f93725e8eb | [] | no_license | joshmarshall/intro-to-wsgi-presentation-2013 | 6f28612da4fc7225e8ed2081f725ae940821c0d3 | 19bf30410f435a0bb9a101bb2800cac294096931 | refs/heads/master | 2023-08-14T09:39:08.858311 | 2019-01-09T11:45:25 | 2019-01-09T11:45:25 | 164,854,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | class Handler(object):
def __init__(self, environ, start_response):
self._environ = environ
self._start_response = start_response
self._response_started = False
self._code = 200
self._message = "OK"
self.headers = {}
def start_response(self, code, status="OK"):
... | [
"catchjosh@gmail.com"
] | catchjosh@gmail.com |
c44a5644d0add67217483c07fda48d223fa18621 | 8c2908b098bd49bf423cb904098773b33229b494 | /MedApp/admin.py | eb656cb96bb956758b596a1a1accc15abadd74d8 | [] | no_license | rasmim/MedApp | d325668866cdd36c748d4ddf61e5d107f8bdc3aa | b1b9330efa104c58eb68636b5cbc48aa4f35f326 | refs/heads/master | 2020-04-05T14:09:10.975174 | 2017-10-20T12:09:49 | 2017-10-20T12:09:49 | 94,787,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from MedApp.models import CustomUser, Appointment, Patient, Specialization, Diagnostic, Consultation, ConsultationResult
# Register your models here.
class DoctorFilter(admin.SimpleListFilter):
title = 'Do... | [
"mrasmivlad@gmail.com"
] | mrasmivlad@gmail.com |
08c134f6f876b56b29c1de913786e6806a67d98e | 74b12c96a73d464e3ca3241ae83a0b6fe984b913 | /python/tvm/runtime/__init__.py | e0da680a24fc3e555e5824caa81dc414f22c6abf | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | masahi/tvm | cf765bb892655f02135e1ce3afde88698f026483 | c400f7e871214451b75f20f4879992becfe5e3a4 | refs/heads/master | 2023-08-22T20:46:25.795382 | 2022-04-13T08:47:10 | 2022-04-13T08:47:10 | 138,661,036 | 4 | 2 | Apache-2.0 | 2021-09-03T20:35:19 | 2018-06-25T23:39:51 | Python | UTF-8 | Python | false | false | 1,454 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
08112369a05666d5f6b11eaf2d0a158f09c0c2f8 | 2a8de1712fb2ae6b3f222b1fa1ced448ee7d95a3 | /dj_anonymizer/utils.py | 86beadeb6c58c9fbc046f8a94b4f894a61eaf7b7 | [
"MIT"
] | permissive | chinskiy/dj_anonymizer | 6e8367a8476d623faa3d49177e011cd0ece4efbf | 0957e34d0d67ca2537bc466d139ea139a8898e7c | refs/heads/master | 2020-03-23T20:34:09.849807 | 2018-10-22T15:14:03 | 2018-10-22T15:14:03 | 142,048,851 | 0 | 0 | MIT | 2018-07-23T17:47:08 | 2018-07-23T17:47:08 | null | UTF-8 | Python | false | false | 424 | py | import os
from dj_anonymizer.conf import settings
def import_if_exist(filename):
"""
Check if file exist in appropriate path and import it
"""
path_to_base_file = os.path.join(
settings.ANONYMIZER_MODEL_DEFINITION_DIR, filename + '.py')
if os.path.isfile(os.path.abspath(path_to_base_file... | [
"chinskiy93@gmail.com"
] | chinskiy93@gmail.com |
4c651e654d7a4629ae37b0c69f86348993078c0b | 8d753bb8f19b5b1f526b0688d3cb199b396ed843 | /osp_sai_2.1.8/system/third_party/precompiled/arm64/python/usr/bin/smtpd.py | 88dc01c9dee2f9d29f28fcd5b376d6d926094198 | [] | no_license | bonald/vim_cfg | f166e5ff650db9fa40b564d05dc5103552184db8 | 2fee6115caec25fd040188dda0cb922bfca1a55f | refs/heads/master | 2023-01-23T05:33:00.416311 | 2020-11-19T02:09:18 | 2020-11-19T02:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,654 | py | #!/data01/users/sw/shil/my_tmp/osp_sai/arm64/Python-2.7.13_dir/python2_7_13_for_aarch64/../python2_7_13_for_aarch64_out/bin/python2.7
"""An RFC 2821 smtp proxy.
Usage: %(program)s [options] [localhost:localport [remotehost:remoteport]]
Options:
--nosetuid
-n
This program generally tries to setuid `no... | [
"zhwwan@gmail.com"
] | zhwwan@gmail.com |
9ae792dadad9708bebb2a5b638f454ccdb0d368b | ab658edbc4f57631185e902bd6cfb68ff10ee020 | /test/server.py | 67aa7b051ce46a191ef718a69d1759ed72546a66 | [
"Apache-2.0"
] | permissive | bigfix/make-prefetch | 4813b8b3db2eb7317440605f4e2932011a8335b4 | 92bfc41a211867508100701f9147b1c1316a669a | refs/heads/master | 2021-01-17T07:05:11.654121 | 2015-11-21T23:25:42 | 2015-11-21T23:25:42 | 17,999,741 | 16 | 11 | Apache-2.0 | 2020-04-11T03:38:33 | 2014-03-22T01:53:36 | Python | UTF-8 | Python | false | false | 664 | py | # This is an HTTP server to respond with 'hodor' to every request. It exists so
# that we can test make-prefetch with different URLs.
import SocketServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class HodorHandler(SimpleHTTPRequestHandler):
def do_GET(self):
hodor = 'hodor'
self.send_response(2... | [
"briangreenery@gmail.com"
] | briangreenery@gmail.com |
9ff92f262acd0a724cada0eb5e89d9586c474c8d | 394980dffca738f90056550109a4985272430d4d | /app/apis/dbchatter.py | ad2aa20828ea8beceba887d9a040f4f93006e21c | [] | no_license | themailman05/PlaytRate | a068c20444b2baf2269539c9f5f1521f8e89d5e5 | f13d8a9e5e58fa3f1685964f38c7123bca04b7dd | refs/heads/master | 2021-01-21T00:45:32.811105 | 2015-02-23T19:20:59 | 2015-02-23T19:20:59 | 30,440,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | __author__ = 'liam'
from app import db, models
from sqlalchemy import func
from random import randint
def getTwitterBall(yelpid):
res = models.TwitterBall.query.filter_by(yelpid=yelpid).first()
return res
def getTwitterBallById(id):
res = models.TwitterBall.query.filter_by(id=id).first()
return res
... | [
"themailman05@gmail.com"
] | themailman05@gmail.com |
849420b2a6a39d99fe4c4183abad7cd79874b754 | bc989cab92b0c2edea23f01a123928c897ed1e8c | /AutoML_Web/_app/migrations/0002_customize_auto_search_result.py | f1501dee406dbcc40d07d09f7d7baf7a43970c20 | [] | no_license | dercaft/PCL_AutoML_System | 8a529d434679eabe18fb429d46bdf676c4f23d5b | 39c96bd22947b82a1cbb8a1d13c9e3770ca60fc7 | refs/heads/master | 2023-06-25T02:01:37.921267 | 2021-07-30T13:39:11 | 2021-07-30T13:39:11 | 301,154,625 | 1 | 0 | null | 2020-11-10T03:00:28 | 2020-10-04T14:54:51 | JavaScript | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1.2 on 2021-07-22 15:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('_app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customize_auto_search',
name='result',
... | [
"wuyuhang2073@gmail.com"
] | wuyuhang2073@gmail.com |
98ce853f8b3869397a10ff8b9bf030bba94d59b7 | 45a3e1f7c069945cfa0ecf8b36569de27d8d9599 | /auctions/migrations/0013_auto_20210309_1115.py | 597280645a49ea5dc69c4ab4533ecedb091fca20 | [] | no_license | Parker-Sullins/commerce | 8d53a3ac82cd88826186d39b31f3648ae53546b7 | 72c6f3a8fee052cab3323e2b2e26bd4980cc469a | refs/heads/master | 2023-03-20T07:05:43.181011 | 2021-03-10T03:23:56 | 2021-03-10T03:23:56 | 342,736,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # Generated by Django 3.1.7 on 2021-03-09 17:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0012_auto_20210309_1102'),
]
operations = [
migrations.RemoveField(
model_name='com... | [
"parker.rsullins@gmail.com"
] | parker.rsullins@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.