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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0156816964cf6a379b4b2931c87865fc01cce196 | d437914461b775a21ced89300d39893d1bc11c53 | /apps/about/south_migrations/0002_dated_assoc.py | 5e8aedfcbbcfbab81c3345c403cb64e7a9a06e34 | [] | no_license | RumorIO/healersource | 86975107da02a18eac89bc65c72dd06f71ac2d72 | 681ef09e4044879840f7f0c8bccc836c3cffec3c | refs/heads/master | 2020-12-03T02:18:56.378837 | 2016-02-19T15:32:52 | 2016-02-19T15:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.utils import timezone
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for item in orm['oauth_access.userassociation'].objects.al... | [
"yg1008@outlook.com"
] | yg1008@outlook.com |
f18576ca2bb7da9ebb8e21e6c0c553fd5a202277 | b31444acce58c4024b440c63b33adc0c54997b5e | /Homework4.py | 7add689c521c59422f576016897e381b6176feb0 | [] | no_license | Brajam/FE595-H4 | cc29cc853475a4880ebbf9b420ebce376853b104 | f16fa5ac8c4147e5aaf68a2395885a9a14befbe2 | refs/heads/master | 2020-04-30T16:40:37.023899 | 2019-03-21T13:58:45 | 2019-03-21T13:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,417 | py | # FE 595: Python for Finance
# Homework 4
# Abraham Jimenez-Berlanga
# CWID 10444147
# Required Libraries
#Request to use GET REST API
from requests import get
#Regular Expressions for cleaning the data
import re as re
#for NLP textblob and different package within TextBlob
from textblob import TextBlob, Word, Blobber... | [
"47007305+Brajam@users.noreply.github.com"
] | 47007305+Brajam@users.noreply.github.com |
757ee3c68220ba259470fa444f19044c109520d5 | c772d432aae55b5ceebd4fa616f5f497dc2b756e | /AudioCollection.py | fe5fa8b0d19405b633bfba7200382ad3b278b80e | [] | no_license | GabitovRuslan/Home_work_OOP | 534471e3eab6228019479ed1ee866c4418eb5572 | ad1f243baebfd82d2373c23e68ddf8bad40a1763 | refs/heads/master | 2023-01-19T09:29:13.760802 | 2020-11-26T20:50:13 | 2020-11-26T20:50:13 | 315,713,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | class Track:
info_track = []
def __init__(self, name_track, duration):
self.name_track = name_track
self.duration = duration
def show(self):
return f'{self.name_track} - {self.duration} мин.'
class Album:
def __init__(self, name_album, group):
self.name_album = name_a... | [
"89655662408@bk.ru"
] | 89655662408@bk.ru |
069e3fb662be70b8084a9964335c6530bed4f56c | cd9ee99d2966a7b796ef96dd013d28ad39b8a16d | /Flask/app.py | 04ec6a9c371f4569f7b91d4beadb80edf9dc9c24 | [] | no_license | mato7927/RoCo | 7e48e0a9e253f306b2ec6ccc6c0f929c16e3097e | 076acf853a4dcf278f6885d35e85a04f7fdc8373 | refs/heads/master | 2022-12-19T15:47:50.384146 | 2020-08-17T17:11:26 | 2020-08-17T17:11:26 | 299,575,985 | 0 | 0 | null | 2020-09-29T10:01:39 | 2020-09-29T10:00:27 | JavaScript | UTF-8 | Python | false | false | 704 | py | from flask import (Flask, render_template, request, session, redirect, url_for, g, flash)
from flask import Flask, render_template, request
# from chatbot import chatbot
from ChatBot import RoCo
chatbot = RoCo()
app = Flask(__name__)
app.secret_key = 'helloworld@tiemoko'
@app.route("/app")
def chat():
return ... | [
"tiems@mail.com"
] | tiems@mail.com |
fc9487662f3fdca2d286a364988c65b7eb5c9b73 | 4887a1a84e5ae0a3f4e23c41576b53e11e56840c | /main.py | 5904e49fff56850ef1ba4f6626f0ca070fa7c113 | [] | no_license | liujwplayer/python | c39dfd9d76034e9f4f8dd053442d3cbf3b220020 | 5e270a06c6c0a13cbabb409cebd64fdc6b3150d2 | refs/heads/master | 2020-04-01T08:29:03.386841 | 2018-10-28T05:41:56 | 2018-10-28T05:41:56 | 153,032,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | #-*-coding:utf-8-*-
from driver import Driver
from car import Car
from stop import Stop
from parking_record import ParkingRecord
from order import Order
from stop_place import StopPlace
import datetime
import time
car1 = Car('辽A666','小型轿车','白色','车牌为蓝色','福特—福睿斯')
driver1 = Driver('9527','鸡小萌','1381111111',car1.car_log... | [
"liujwplayer@163.com"
] | liujwplayer@163.com |
448a6b8cbdfdcd2a285718950d9165950a94fe09 | def5327c20c644ca6b2a56140b512ea6ac075994 | /HW_5/Bodnar/Kata_5_3.py | a93a2eff8ff6b8e985d485a80e9b6b589ba4dd55 | [] | no_license | iamanobject/Lv-568.2.PythonCore | 662cdfc5d91d80e83463b5f0beee53a6e63f4062 | 939d7035f602d0f035ea8b6526c36b7153d0bd53 | refs/heads/main | 2023-03-27T18:24:13.605364 | 2021-03-11T13:36:44 | 2021-03-11T13:36:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | def are_you_playing_banjo(name):
if name[0].lower() == "r":
return name + " plays banjo"
else:
return name + " does not play banjo" | [
"v.bodnar2013@gmail.com"
] | v.bodnar2013@gmail.com |
1c76d4428e22cdee21c529dee4e0ece436c0a434 | 123e1f24d81ad9c4b48cb189c7dca3e965d708f5 | /my_code/loops5.py | 8dc30f79906f789f868b33561fdf3bf76f228bdf | [] | no_license | DouglasAllen/Python-projects | 03b71dd29b9f6cb037fd1db30ded83c7897dbd99 | a5d2da0c611973f34a1eb125926eb4ef9e23814e | refs/heads/master | 2021-01-02T22:32:16.840133 | 2014-02-04T16:55:44 | 2014-02-04T16:55:44 | 12,250,138 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | num = 100
while not False:
if num < 0:
break
print('num is: ' + str(num))
| [
"kb9agt@gmail.com"
] | kb9agt@gmail.com |
6ef14f05662ab3563f7bda897991de76c49674fb | 3235a66ef994e044252ee43aa522aff8c6d99c1c | /First Project/tution/migrations/0001_initial.py | 4fb494de000c3c381c5b72a92c9d370f9e661798 | [] | no_license | MasumTech/Tuition-Media | a6e77e1ff8b5c0a1fe195ce4d0e8d489681de73c | e50bbc2eda2a0f979741420144967263a67a0ccc | refs/heads/master | 2023-02-26T07:28:14.532322 | 2021-01-30T15:57:57 | 2021-01-30T15:57:57 | 332,982,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 3.1.5 on 2021-01-25 11:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"masumrezadiu@gmail.com"
] | masumrezadiu@gmail.com |
7bedcde6128086e2fe8237954e3e2c28bc8f00be | b619c3b5c5c33ea1d952818f808305f50e4b88d7 | /data/management/commands/import_school_breakfast_participation.py | 54510a66bbc29d6a365d9771ad2ad2714b6d0976 | [] | no_license | jroo/npp_api | 457e7c9fcc68dd12ad092bc5a5717fcd0652172d | 16164278321c6aeaeb2e9e5947c1e8f7394a8521 | refs/heads/master | 2021-01-01T17:27:25.131036 | 2011-04-29T15:07:35 | 2011-04-29T15:07:35 | 375,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | from django import db
from django.conf import settings
from django.core.management.base import NoArgsCommand
from data.models import SchoolBreakfastParticipation
import csv
# National Priorities Project Data Repository
# import_school_breakfast_participation.py
# Updated 7/27/2010, Joshua Ruihley, Sunlight Foundation
... | [
"ruihley@gmail.com"
] | ruihley@gmail.com |
ac614e6eb9825daee30e9c3e04946d44d3569ee9 | 68cf7c25bb614883c50d21e5051fbea8dbf18ccb | /ecommercejockey/premier/migrations/0009_premiermanufacturer_slug.py | 12ef97d4ae6d8570eb42baba688e544222f772ac | [
"MIT"
] | permissive | anniethiessen/ecommerce-jockey | 63bf5af6212a46742dee98d816d0bc2cdb411708 | 9268b72553845a4650cdfe7c88b398db3cf92258 | refs/heads/master | 2022-12-14T02:29:25.140796 | 2021-05-15T01:20:30 | 2021-05-15T01:20:30 | 211,400,595 | 1 | 1 | MIT | 2022-12-08T06:45:40 | 2019-09-27T20:57:19 | Python | UTF-8 | Python | false | false | 432 | py | # Generated by Django 2.2.5 on 2019-12-05 06:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('premier', '0008_relevancy_and_notes'),
]
operations = [
migrations.AddField(
model_name='premiermanufacturer',
name=... | [
"anniethiessen79@gmail.com"
] | anniethiessen79@gmail.com |
00027bc4b2d75ba9c63a911a45fe7b37e3fbfe27 | 90b31988c165366c76f935dc334161d997ce7100 | /home/migrations/0007_blogpost.py | 1ed585cedd1fe31539dd331b650754a7ade8718f | [] | no_license | Ruturaj271120/TourGuide | 77d0ab05aaeb07e20524ef1c765582052ce8b4a7 | fd78591fd0fbae99b754b10109d96fd473009a8f | refs/heads/master | 2023-06-15T21:10:39.950790 | 2021-07-13T16:18:48 | 2021-07-13T16:18:48 | 385,126,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Generated by Django 3.1.5 on 2021-01-22 09:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0006_orderupdate'),
]
operations = [
migrations.CreateModel(
name='Blogpost',
fields=[
('pos... | [
"dyawanpalli@gmail.com"
] | dyawanpalli@gmail.com |
c1c7769ff0a56f13f170b6f197ac983c46757b87 | a992a2bcea0e40a9cc3d947466a7eaafaf337280 | /python-language/files/walking.py | aac57b1257bca4c10be89ca6560685f7c9667083 | [] | no_license | rodrigoferrazazevedo/dojo-python | 6bcfb4bf27435b5e60fa1c992840e319fe2dbbb3 | b3aebfae8b0dae2c2b898431ed747dd9236706e3 | refs/heads/master | 2022-12-24T10:25:10.692833 | 2022-06-22T02:12:18 | 2022-06-22T02:12:18 | 107,460,652 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import os
for root, dirs, files in os.walk('.'):
print(os.path.abspath(root))
if dirs:
print('Directories:')
for dir_ in dirs:
print(dir_)
if files:
print('Files:')
for filename in files:
print(filename)
print() | [
"rodrigo.azevedo@sintesoft.com.br"
] | rodrigo.azevedo@sintesoft.com.br |
588a087c3218bc431f07e9c706dca62735a9b86e | 0f1d2be366fbfd07a3e6961e6c3878d93a460607 | /init_mod_wayfinder.py | bdf11aae6f90fc23fc47d9505fea57f83e0c1ffe | [
"Apache-2.0"
] | permissive | minrva/db-wayfinder | f659d0f71b9baad74bfd0071a5cdfe0cecbf4333 | 667d7e1b0ccf9cabc1755153d406ffae4762be98 | refs/heads/master | 2020-04-26T05:05:14.112447 | 2019-04-16T19:47:33 | 2019-04-16T19:47:33 | 173,322,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | # pylint: disable=invalid-name
"""Digests mod-wayfinder json data."""
import csv, json, os, uuid, dataset
# directory
DATA_DIR = 'data'
# postgres
PG_USER = 'folio_admin'
PG_PASSWORD = 'folio_admin'
PG_NETLOC = '10.0.2.15'
PG_PORT = '5432'
PG_DBNAME = 'okapi_modules'
PG_URL = ("postgresql://" + PG_USER + ":" + PG_PA... | [
"ryckman1@illinois.edu"
] | ryckman1@illinois.edu |
1d650cb249a55125346b1609aac81c061af9c1cd | 19a7cf9c822a9d21211426fca3dc7ff856cf6087 | /aiozmq/_test_util.py | a4ed41a81294fc4dd1061711b9f2f1a1593f6f47 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | pombredanne/aiozmq | 91bd19fb212b15b7a9082668ae1c1e2405067412 | 2b482511f244f7049ee9332ae283d1d47eef0d5b | refs/heads/master | 2020-12-30T22:10:18.018880 | 2014-12-28T15:25:23 | 2014-12-28T15:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,454 | py | """Private test support utulities"""
import contextlib
import functools
import logging
import platform
import socket
import sys
import time
import unittest
class Error(Exception):
"""Base class for regression test exceptions."""
class TestFailed(Error):
"""Test failed."""
def _requires_unix_version(sysna... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
988731abc2a0902f70729426b8761eec16feb508 | d60b41462ab5dd83f3e95d740cacc2d1e5051232 | /plugins/dbnd-test-scenarios/src/dbnd_test_scenarios/pipelines/pipeline_prepare_config.py | 9e85364dc78366a72d43f9befa199eca38159e11 | [
"Apache-2.0"
] | permissive | hyunjay/dbnd | 0581ca493fc2a3fa1cab74d0bb8fa620b1669f85 | ab5a8ebf5984e73d0c7129a6898fed98a239b90b | refs/heads/master | 2023-07-05T10:02:07.112720 | 2021-08-05T13:53:50 | 2021-08-05T13:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import logging
from dbnd import log_metric, pipeline, task
from targets.types import PathStr
logger = logging.getLogger(__name__)
@task
def create_model(y_input="y"):
logger.info("Running %s -> operation_y", y_input)
log_metric("a", 1)
return "{} -> operation_y".format(y_input)
@task
def prepare_cfg(... | [
"viktor.danyliuk@databand.ai"
] | viktor.danyliuk@databand.ai |
1d431aacfd20db6b9880ccd00e7e3827b2259f48 | a80d902906c902a8ebb15956f96743d2904bd5b0 | /A1/Task_b.py | 7c14964e990b59dd65f7085c1fab96541d71de0d | [] | no_license | ziquanliu/ML_PA1 | f0b2e8bb0809e5431800974ee471487200385dc0 | e507c56a1b6c98ddd68435cd6477659a148319f8 | refs/heads/master | 2021-07-09T08:54:15.935920 | 2017-10-09T11:14:05 | 2017-10-09T11:14:05 | 106,076,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | import regclass as rgr
import numpy as np
import scipy.io as scio
import pickle
data=scio.loadmat('poly_data.mat')
polyx=data['polyx']#1*100
polyy=data['polyy']#100*1
sampx=data['sampx']#1*50
sampy=data['sampy']#50*1
thtrue=data['thtrue']#6*1
#-------------------------------------------Training Part--------------... | [
"ziquanliu2-c@my.cityu.edu.hk"
] | ziquanliu2-c@my.cityu.edu.hk |
2ca91a62000f3a0a8a742b4823bc3a283b75e62c | e166d1fb52a1d8bbd3e961a85a605734b88d9eed | /web_app/rest_api/__init__.py | 19a54bb33261b2874222bb2ca6d8b46df3fd2060 | [] | no_license | sampathdechu/fullstack_docker_compose | 88a18b2a98adfcaa1639c79c157588cf12b7fde7 | 1e7156a15af5ee5a8b5d6e4164707398d21b74d2 | refs/heads/master | 2023-03-24T05:57:47.938688 | 2021-03-22T05:09:56 | 2021-03-22T05:09:56 | 292,256,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property
from flask_restplus import Api
from .namespace_pipeline import ns_1
api = Api(
title='SlackBot',
version='1.0',
description='AIOPs Slack Bot`',
)
api.add_namespace(ns_1)
| [
"sampath@Sampaths-MacBook-Pro.local"
] | sampath@Sampaths-MacBook-Pro.local |
b7dedd97ddd99fb248f382159b97035a46f7096e | 5b763e333caf91664a8b67154325826a67cc750f | /news_pipeline/tf_idf_test.py | cefc5b09875b5bcbb873e582cafdb32aa68c316d | [] | no_license | Edison201314/Final-ImageSearch- | 3ddfd28c7f2b8883c25605e07d0ebfb517717b92 | 3d2a7c9820e69a24408d06a54a22da17fb9c1714 | refs/heads/master | 2021-01-21T15:58:10.395027 | 2017-05-20T05:37:43 | 2017-05-20T05:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | rom sklearn.feature_extraction.text import TfidfVectorizer
doc1 = "I like apples. I like oranges too"
doc2 = "I love apples. I hate doctors"
doc3 = "An apple a day keeps the doctor away"
doc4 = "Never compare an apple to an orang"
documents = [doc1, doc2, doc3, doc4]
tfidf = TfidfVectorizer().fit_transform(documents... | [
"xiexin201314@gmail.com"
] | xiexin201314@gmail.com |
13db8a97123f7b644626f52cddadc7e7885f894f | 193abf43f68416cc1bcb6d52ac9e0b2d98d25831 | /src/problems/0052_permuted_multiples/v1.py | cc4fde68ba0c31fe2424d525ecd7ee43df02c1dd | [] | no_license | david-sk/projecteuler | ee8d739daa38572fd37a6a83f0be5d3b6044a341 | 7b92872ced634299d89ce378a58618dbed6c842a | refs/heads/master | 2023-04-01T06:06:02.624469 | 2021-04-03T10:54:42 | 2021-04-03T10:54:42 | 274,217,736 | 0 | 0 | null | 2021-03-14T19:10:40 | 2020-06-22T18:49:56 | Rust | UTF-8 | Python | false | false | 734 | py | #
# Permuted multiples, v1
# https://projecteuler.net/problem=52
#
# It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits,
# but in a different order.
# Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits.
#
from collections import... | [
"david.desmeurs@slagkryssaren.com"
] | david.desmeurs@slagkryssaren.com |
38c5b8bd8e89453324ed6f797ab08f8e8baef797 | bb2350513357d54a7dff3e62c394611785306e19 | /output/generate_tables.py | 20afca7ad7a5ff2b2f500e6e34e0634ded4c41be | [] | no_license | trevstanhope/python-cvme | 8cc1812cd02da71ef829991a6212707ee2c5dab6 | 0c79c08cc39dcce15bbbe5bb8f47d31eacca8a02 | refs/heads/master | 2020-12-31T07:43:47.733082 | 2017-05-01T15:17:26 | 2017-05-01T15:17:26 | 49,857,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,681 | py | import pandas as pd
import glob
import os
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import scipy.signal as sig
import scipy as sp
import time
import scipy.stats as stats
from pykalman import KalmanFilter
import matplotlib
import skle... | [
"tpstanhope@gmail.com"
] | tpstanhope@gmail.com |
fd36dc67de161b031676e44b670298e4f4402057 | fd6908925e3444b6e42ef6436a8a6d95efa4de53 | /tests/test_shapelet.py | 7a8197d38653e755a4beb45e34dd58b3de6bfa8a | [
"MIT"
] | permissive | krzjoa/sciquence | 4af82253242c103aedefb6a34bf0f5eaa549970e | 6a5f758c757200fffeb0fdc9206462f1f89e2444 | refs/heads/master | 2021-11-24T14:48:01.326025 | 2021-11-15T08:11:39 | 2021-11-15T08:11:39 | 77,182,514 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import unittest
import numpy as np
from sciquence.sequences import *
class TestShapelets(unittest.TestCase):
pass | [
"kjoa.92@gmail.com"
] | kjoa.92@gmail.com |
5cc7ccf096ca031302897a48b3eaacddf5f1e01a | ab891104ef1d067e545cc317b4cdac528c1839ca | /classify/korea_classify.py | 7c151f0d1d3a227cbb7267b5833d2a2ea5930ba2 | [
"MIT"
] | permissive | Lvious/tweet_search | 93fd7f9655ddd4186b0b12e3700d657a42260db5 | de61aa0c567e8d1857593e07cfae1eb6083731cd | refs/heads/master | 2021-09-09T23:23:05.101323 | 2018-03-20T07:58:33 | 2018-03-20T07:58:33 | 113,951,863 | 1 | 0 | null | 2017-12-12T06:24:00 | 2017-12-12T06:24:00 | null | UTF-8 | Python | false | false | 2,062 | py | import os
import re
import time
import json
from datetime import datetime
from tqdm import tqdm
import codecs
import numpy as np
import subprocess
import multiprocessing
#from multiprocessing import Pool
from multiprocessing.dummy import Pool
from pprint import pprint
import pymongo
from pymongo import InsertOne, Del... | [
"lvxq777@gmail.com"
] | lvxq777@gmail.com |
723147bf3087a5c27225f13150bea61aae4f8dd8 | 5f07ba47b8e7329431936b9300f9f0cde4f00b1f | /packager/core/repo_tools.py | 5809b796703f6168c3a55a5413c3eff659716d31 | [
"MIT"
] | permissive | csdms/packagebuilder | 426653434d9e11501f6ea22202bf327e1d44b74e | a72f1d264d9219acfb422864fbcd57dfd6cfd51b | refs/heads/master | 2021-01-25T03:48:14.837344 | 2014-12-17T17:00:11 | 2014-12-17T17:00:11 | 23,443,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | import os
import shutil
import urllib
import zipfile
import tempfile
def download(repo, dest="."):
'''
Downloads a zip archive of the given repository to the specified
(default is current) directory.
'''
url = "https://github.com/{0}/archive/master.zip".format(repo)
local_file = os.path.join(d... | [
"mark.piper@colorado.edu"
] | mark.piper@colorado.edu |
bb23db2e8bfd75b8899d1c4da704570fab3d4381 | 4cd6124d000833ef9f544fcac90b585b2ae50e16 | /map.py | 816c92469f87d12421edc4393ebae977ec54de80 | [] | no_license | zoeab12/CM1101_4 | 042f5bc79e1d932b5a5ecab472d05d4c69315fb8 | 710b1653b6a5eaa5a88004e6a41803e97b69a61d | refs/heads/master | 2020-04-01T21:17:46.839654 | 2018-10-18T15:46:11 | 2018-10-18T15:46:11 | 153,648,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | room_reception = {
"name": "Reception",
"description":
"""You are in a maze of twisty little passages, all alike.
Next to you is the School of Computer Science and
Informatics reception. The receptionist, Matt Strangis,
seems to be playing an old school text-based adventure
game on his computer. There are ... | [
"zoe.bessant@hotmail.co.uk"
] | zoe.bessant@hotmail.co.uk |
6ecd59fad77cc9037c9fe14c0cd32ff615282066 | 80f292ba120a2d3f196a46f0de5c93c277124421 | /game_play.py | c8a617d45b63034b091d6c294cda7c473d02addf | [] | no_license | ack8006/DomYon | 6debf552b4ff97287e3ff2b297e622e3815dedd9 | bcb4633cff94c20ca6ce6a0de1d9f1b800bbff0f | refs/heads/master | 2021-01-12T08:46:39.579109 | 2016-12-22T18:47:21 | 2016-12-22T18:47:21 | 76,689,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,073 | py | __author__ = 'stevenkerr'
import card_classes
from player_one_turn import take_turn
from random import shuffle
bank = card_classes.bank
trash = card_classes.trash
name_to_inst_dict = card_classes.name_to_inst_dict
class Player:
def __init__(self):
self.deck = []
self.hand = []
self.discard ... | [
"atakata@tenorcapital.com"
] | atakata@tenorcapital.com |
f1f2316f32d38aa71d153d6109b0b0c795679f82 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/ResNet101_for_TensorFlow/00-access/official/nlp/nhnet/trainer.py | e14c05eede937e73e55b2bf3b26dd737301eb2f6 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 8,717 | py | # Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
0d7c1333fa626757d72485a2fd1fadb8b98f1b62 | 0857674730d5184747109c07d92b917ff4b16f93 | /utils/__init__.py | 4866c0fb332c45cdf33d11a7545edd94f6c0ad5f | [] | no_license | adrienpillou/Pygame-Boilerplate | 5cb21b97f29724d91ccf2a234d3f44259fe37672 | a437ccc726405b2d11915fdfe47050b94d18f1eb | refs/heads/main | 2023-01-13T10:29:41.006990 | 2020-11-23T09:03:19 | 2020-11-23T09:03:19 | 314,819,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # __init__.py file
# Import your custom objects & classes here
| [
"noreply@github.com"
] | adrienpillou.noreply@github.com |
770c94cb7aaedef112034ae2eff84c43d722c6f4 | 773a696eb15a0adcd6599ce3739dd13b1bbe81c3 | /hood/forms.py | dc012e42cacda72062b54ba848341dbd9761ae86 | [] | no_license | GabrielSpear/NeighbourHoodW | 4296a2d78cb17d050ad21039881a9df5b910b924 | ac2552b0b0b918d9f0b51ba7dc7f5b9d577c4567 | refs/heads/master | 2020-03-21T07:24:14.150277 | 2018-06-28T10:33:48 | 2018-06-28T10:33:48 | 138,278,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
class UserCreateForm(UserCreationForm):
'''
A form class which inherits properties from the user UserCreationForm
'''
class Meta:
'''
This will manually set the fields needed from the ... | [
"gabrieldvjspear@gmail.com"
] | gabrieldvjspear@gmail.com |
7ee8e33a03ff992dcff44372bb1302425a589c7a | 2a57cee9055825ce4f6f1477495c17acc0c2de80 | /classification/deploy/infer.py | 1b7701c960d815d6dd536710578dbf5875681ca6 | [] | no_license | bayer-science-for-a-better-life/beehive | 60c72ad1d3098f0ea6daa582ee0a660dd6e4fa48 | 1b9a42833bd0dc1b95fe1c1c573d018659967308 | refs/heads/main | 2023-04-01T14:20:35.931453 | 2021-04-09T17:59:16 | 2021-04-09T17:59:16 | 356,354,493 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import torch
from models import MajorClasses
def get_batches(n_total, batch_size=100):
'''Get ranges for dividing a set into batches of maximum size
Returns a list of tuples with (start, stop) indexes needed to divide a
list of length n_total into parts of maximum size batch_size (=100 default)
'''
... | [
"schweringmarc01@gmail.com"
] | schweringmarc01@gmail.com |
63e865771c8094b013731d783cf2de27cbc2a391 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/network/cmd/netmap/types.py | 89224ef74f6056172fca014f1ce7e4f8069b3978 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,329 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: types.py
from types import *
NETMAP_SCOPE_ALL = 0
NETMAP_SCOPE_CONNECTED = 1
NETMAP_SCOPE_REMEMBERED = 2
MSG_KEY_P... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
f799fb08166a95706835ba35532d2109210fc65a | 168becb5071cabbaa67aaa520349ba7052aaa61f | /train.py | c9036997d7b9cc0790fb60b9c61e8608297850a1 | [] | no_license | gjtjx/ICNet-tensorflow | 49d5ac2e5dd5f6e4f9788e01e7fbbfaed4622a93 | 0e53b5aeca8c916975c865dad72bacfa6a0a8f55 | refs/heads/master | 2021-08-24T01:32:29.212257 | 2017-12-07T13:21:30 | 2017-12-07T13:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,761 | py | """
This code is based on DrSleep's framework: https://github.com/DrSleep/tensorflow-deeplab-resnet
"""
from __future__ import print_function
import argparse
import os
import sys
import time
import tensorflow as tf
import numpy as np
from model import ICNet_BN
from tools import decode_labels, prepare_label
from im... | [
"hellochick@github.com"
] | hellochick@github.com |
eae1d899edf021df1fac6a2dc7310d0971589729 | ffd1aafa2a6eb691f6772189e66b7e4c05994c38 | /test/testcaptureinteractiverun.py | a2a37f3a5ad0725ca43e9ad70a0defdfbd73c276 | [
"BSD-3-Clause"
] | permissive | lorin/umdinst | d051a34a18dcac55c3dcf604bda1926f2d1e57d8 | 5135f4766e02092d786747b7b0f8d9ea98434da6 | refs/heads/master | 2020-05-20T04:56:48.581779 | 2015-03-15T01:15:46 | 2015-03-15T01:15:46 | 32,239,305 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | import unittest
import sys
import os
import errno
from xml.dom import minidom
sys.path.append('bin')
from umdinst import wrap
from testsuccessfulcompiledata import getfield, timezonecheck, xmlifystring
from testcapturecompile import programcheck
class TestCaptureInteractiveRun(unittest.TestCase):
def setUp(self)... | [
"lorinh@57befb38-bc2d-11de-9259-dba4afbb0da9"
] | lorinh@57befb38-bc2d-11de-9259-dba4afbb0da9 |
9d9f20d6143b1771b42f5338c9a68521d7b36154 | 23a0c46a29e551c662ec91fa3c248a0f717b2688 | /020_valid_parentheses/Solution.py | 060d3d0fed2c01af0866d9d713cb28b4c92df193 | [] | no_license | zcybupt/leetcode | 429e752f6b0210af7c89afd866bb170062fe27f0 | d897b493dbc7b23d35be7400266cffcc2735efdd | refs/heads/master | 2023-01-12T20:26:39.874101 | 2020-11-15T07:51:18 | 2020-11-15T07:51:18 | 284,205,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | class Solution:
def isValid(self, s: str) -> bool:
mapping = {')': '(', ']': '[', '}': '{'}
stack = []
for ch in s:
if stack and stack[-1] == mapping.get(ch):
stack.pop()
continue
stack.append(ch)
return len(stack) == 0
if __... | [
"jp2016213431@qmul.ac.uk"
] | jp2016213431@qmul.ac.uk |
f05d6e62fb191e2e7fe1eefcf8d36813bcd5d18e | 4ddb84f7cdbe6e3cd3fce2061e5ce62322900474 | /271A_beautiful_year.py | 6d729ab610746da1d405844b9f02061d120e8ae8 | [] | no_license | nickzuck/Codeforces | 15ae65754d98e91a1bfe0f50991dca3601f04937 | a502c62d5e6fd681b44cb1f076db1252cbeac734 | refs/heads/master | 2021-05-03T15:19:35.416332 | 2021-03-02T05:02:07 | 2021-03-02T05:02:07 | 44,151,235 | 0 | 0 | null | 2017-12-02T06:37:35 | 2015-10-13T04:08:49 | C++ | UTF-8 | Python | false | false | 122 | py | n = int(raw_input())
n+= 1
while(n < 90000):
s = str(n)
if (len(set(s)) == len(s)):
break ;
else:
n += 1
print n | [
"nikhil1945.singh@gmail.com"
] | nikhil1945.singh@gmail.com |
c443cf6c5e003484bfc979dde26da44f6404272c | eb74ce2c559966d7c4775fb1f1004752b955e958 | /country.py | aee71a84179d49c36218267849247925130ee84b | [] | no_license | Gabrielle1399/Country-Information | 9c20ec7f37ee1533bb6ad0e51375e2d4fda8ba6c | e296246d0216a756bd02975c1d8f53b2fab55be1 | refs/heads/master | 2020-04-03T14:35:33.066828 | 2018-10-30T05:05:16 | 2018-10-30T05:05:16 | 155,327,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # A class Country holds the information about a single country.
class Country:
def __init__(self, name, pop, area, continent): # Constructor including four instance variables.
self._name = name
self._population = int(pop)
self._area = float(area)
self._continent = continent
... | [
"noreply@github.com"
] | Gabrielle1399.noreply@github.com |
97240c6a429bb34149dc420d426cc169f9241189 | fd9e958508a6ee288bb99b04f8ab0010968b5f26 | /bme280.py | 7a8b7cedaa49e182e718349478cc5939f7e251b8 | [] | no_license | sleepypioneer/pyladies | 8374b91c203f37a8790ebd30f9b37327b9327277 | ff0d8e4da25edc6a83256ae32748f6e2bb12b24f | refs/heads/master | 2020-05-17T20:46:49.646158 | 2019-01-22T18:27:45 | 2019-01-22T18:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | # Authors: Paul Cunnane 2016, Peter Dahlebrg 2016
#
# This module borrows from the Adafruit BME280 Python library. Original
# Copyright notices are reproduced below.
#
# Those libraries were written for the Raspberry Pi. This modification is
# intended for the MicroPython and esp8266 boards.
#
# Copyright (c) 2014 Adaf... | [
"pedrovazsa@gmail.com"
] | pedrovazsa@gmail.com |
64f5032d9149c41eebe5df6c1672f60f946ebab7 | bb0be98987c0e33bf7a094c94bfa31cdf8e2231d | /utils/action.py | e3c25bb4a03a76c5b948ceedb1921369988b91f7 | [] | permissive | whklwhkl/KCFpy | 2ed767963a3e95819c655366defc2cd4882e1501 | 308344d78415150fc16e69d23cb3432d565f23a2 | refs/heads/master | 2020-06-18T03:07:57.864286 | 2020-02-11T08:50:24 | 2020-02-11T08:50:24 | 196,146,163 | 0 | 0 | MIT | 2019-07-10T06:34:37 | 2019-07-10T06:34:37 | null | UTF-8 | Python | false | false | 1,972 | py | import torch
import cv2
import numpy as np
def cut(img, bbox):
x1, y1, w, h = map(int, bbox)
height, width, _ = img.shape
xc = x1 + w //2
yc = y1 + h // 2
xlength = ylength = min(max(w, h), width, height) // 2
if xc - xlength < 0 and xc + xlength < width - 1:
xx1 = 0
xx2 = x... | [
"phiiipwong@163.com"
] | phiiipwong@163.com |
c1271b587621587983dfe21212516541641bdf8e | 022825d92396c6d8f10b3fd253245b8a6d435151 | /ZHEKUN/4_Divide_Day_in_Person.py | fdbfa34e4af288f6c364cc2c8485f637779909e8 | [] | no_license | ZhekunXIONG/Andorra_RNC | 759e8f1ddf70954d40cdc4a008dfaeb79d38ccf8 | b38043adc64f3f01949f0cf61ce0b4616215f305 | refs/heads/master | 2021-09-10T17:56:00.532946 | 2018-01-10T19:15:25 | 2018-01-10T19:15:25 | 116,999,235 | 0 | 0 | null | 2018-01-10T19:08:00 | 2018-01-10T19:08:00 | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sep 25 2017
Go through each day's csv file, and produce of csv files of each ID,
for further calculating staypoints of each individual, see "5_Person_Staypoints.py"
@author: Zhekun Xiong
"""
import pandas as pd
import os
import time
import pyproj
import n... | [
"noreply@github.com"
] | ZhekunXIONG.noreply@github.com |
18c7196e36b04879420c799c690b3936ca305a0c | 78f30edb2c8a80d5e6ba5cfb4757b737a5b6017e | /src/assets/parseJson.py | d22617fbcb0d3d8ea226de779fafeaa2f002c20e | [] | no_license | ADFC-Hamburg/adfc-t30-paten-frontend | 416b869197156b679fcc57faa224fd2097967099 | e1a08f87c9a9d899334da1309c5ae59dfe290ed8 | refs/heads/master | 2023-05-14T09:29:22.517436 | 2021-10-30T06:54:04 | 2021-10-30T06:54:04 | 163,592,768 | 0 | 2 | null | 2023-04-30T03:54:47 | 2018-12-30T14:19:35 | TypeScript | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/python3
import json
from pprint import pprint
dateien= {
1:'trotzdem_nicht_Tempo30.json',
2:'KeinTempo30ohne.json',
3:'tempo_30_neu.json',
}
data = []
newid = 0
for key, dateiname in dateien.items():
print(key)
f=open(dateiname,"rt")
indata=json.load(f)
f.close()
for ele in in... | [
"sven@anders-hamburg.de"
] | sven@anders-hamburg.de |
edb21e9d75e0ae1423bcf30af98e52b306b20cdb | b56477c3d204306639f667d1e150f62278b09374 | /tbbi_regression/commonUtility.py | f55035feb68e9ffe365dec33c188d4790481f1de | [] | no_license | cobbxia/e2e | 5220ec72bc15a7d9e30e9fbb48e3b745a498679c | ec28b6167403e02eedd53cc42c5a45876bf08ad9 | refs/heads/master | 2021-01-15T11:43:41.915420 | 2017-01-16T03:52:21 | 2017-01-16T03:52:21 | 78,832,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,295 | py | #!coding=utf8
from gevent.subprocess import Popen, PIPE
from base64 import encodestring
from hmac import new as hmac_new
import subprocess,os,sys,socket,inspect, unittest, urllib, hashlib, time, random, re, sys,traceback
g_debug = False
def do_mysql_cmd(gc,sql):
cmd='''%s -N -e "%s" ''' % (gc.mysql,sql)
gc.log... | [
"mingchao.xiamc@alibaba-inc.com"
] | mingchao.xiamc@alibaba-inc.com |
20a0d38f554f05963b4964a72b1cb873a779711e | 002c1b2260184342d79f2e6a71344b169f876b0a | /emotion_recognition.py | 535e4cc3cd56b03683b7b9b134e9290d7a5b2276 | [] | no_license | dhirenkinha/real-time-emotion-detection- | e334140704b8e7ab01a23a8710fff5e966da8b19 | 4afdc6bf949c0961d0be13d25aacc410a28435c6 | refs/heads/main | 2023-07-19T11:56:42.191995 | 2021-08-21T13:58:46 | 2021-08-21T13:58:46 | 398,568,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | import sys, os
import pandas as pd
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D, BatchNormalization,AveragePooling2D
from keras.losses import categorical_crossentropy
from keras.optimizers import Adam
f... | [
"noreply@github.com"
] | dhirenkinha.noreply@github.com |
957ae4032fba1d6a7a8ad5bf9eda0c661b983958 | 4a62e36ef5f9cfe1de8c25f259ad8b8841b04525 | /dktools/hello.py | d3661ffebc26d95e10e3db7de4e2d33635f70e9c | [
"MIT"
] | permissive | dollarkillerx/pytools | dfc5c9c92fea47df69926f612c2d20e1de6b4b96 | 65e1dfe48c6dab6481a721405e8b4b8ca6dd72e9 | refs/heads/master | 2020-09-02T16:21:11.172172 | 2019-11-05T00:49:59 | 2019-11-05T00:49:59 | 219,258,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
# @Time : 2019-11-03 14:11
# @Author : DollarKillerx
# @Description :
def hello():
print('Hello World! DollarKillerTools')
| [
"dollarkiller@vip.qq.com"
] | dollarkiller@vip.qq.com |
c844f0a0bac6fb22f3436eb2389dc87bb63fc3c4 | c6342a8ad7ffc02806f54e3aae2e99f21df45fb4 | /ast/letstar.py | 0984e6cc82ad7f4c816741923fdfef2586325148 | [
"MIT"
] | permissive | choleraehyq/yuujins | a3c1572bc175a2cdc318798c82df772a5da31f12 | dff6f7def0081f24afac30a7c1e3ca6755a5ea3f | refs/heads/master | 2021-01-19T21:32:12.799286 | 2017-02-19T14:03:12 | 2017-02-19T14:03:12 | 82,512,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from typing import List
from ast import Node, Name
from scope import Scope
from value import Value
import binder
class LetStar(Node):
def __init__(self, patterns: List[Name], exprs: List[Node], body: Node) -> None:
self.patterns: List[Name] = patterns
self.exprs: List[Node] = exprs
self.b... | [
"choleraehyq@gmail.com"
] | choleraehyq@gmail.com |
d2503b3707e7573fa9adbaf17b49181de71d214f | cbf10f49d22fe669225b067a322a0a4ecd7733aa | /data/data_loader_multigraph.py | f93803f40d8368e9f4907fb2d2193b46b02f8f56 | [] | no_license | q3erf/GLAM | 1bc5ecf3bc075615f0e1b0664812483fffe8e576 | ecc1e7d34daeba22362e2a67844f10167c5d8bfc | refs/heads/main | 2023-08-24T13:26:14.246985 | 2021-10-20T07:06:53 | 2021-10-20T07:06:53 | 416,167,724 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,523 | py | import torch
import torch.nn.functional as F
from torch.utils.data import Dataset
from torchvision import transforms
import numpy as np
import random
from data.pascal_voc import PascalVOC
from data.willow_obj import WillowObject
from data.SPair71k import SPair71k
from utils.config import cfg
datasets = {"... | [
"1451159047@qq.com"
] | 1451159047@qq.com |
01f4b1da0157f33f4b067d4203993cd2534636c1 | 909670306b1097de1f87a49ebc03e69902c9d508 | /childcare_check_in/childcare_check_in/urls.py | 5a2b788d22a2aee7b3ab586001cbd8e06e6bb2ae | [] | no_license | buypolarbear/childcare_check_in | 16d33702a4cf11b2bbd59d29e1cade1807ac3bd8 | cb0e428d11bdb602984e7863c8c0265050d95952 | refs/heads/master | 2020-05-05T04:53:45.633028 | 2016-12-29T16:16:48 | 2016-12-29T16:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from django.conf.urls import url, include
from django.contrib import admin
from childcare_app.views import IndexView, UserCreateView, ChildCreateView, CheckCreateView, \
CheckUpdateView, ProfileListView
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('django... | [
"tommyhuynh93@gmail.com"
] | tommyhuynh93@gmail.com |
e6b3bb5dd8e86507203bcfaf1ff623d8648ffe3f | 4bfbc7e4754bfa679d64aab077952c7cdbeaf4be | /wagtailimagecaption/views/remover.py | 6dd7996b9d1e9e2ddf6e22d3a77608e06abb11d3 | [
"BSD-3-Clause"
] | permissive | springload/wagtailimagecaption | c646ac158b16d0a3e1d897fa3ebb976833e19be7 | 7a82cf8466a26c2fae186638c0d613b8c0d342d3 | refs/heads/master | 2020-12-11T04:09:37.061248 | 2018-02-27T22:55:04 | 2018-02-27T22:55:04 | 27,413,798 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import json
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.decorators import permission_required
from wagtail.wagtailadmin.modal_workflow import render_modal_workflow
from wagtail.wagtailimages.models import Image
@permission_required('wagtailadmin.access_admin')
def imagecaption_rem... | [
"jordi.joan@gmail.com"
] | jordi.joan@gmail.com |
0ad4ba0d86ec0942cf6592c46f1d38a0d104194e | f121b7aeacd41d05d9e0560571a17458f546a69b | /pandoc/helper.py | ae46c8beeeb77c2a3f34dfdf81d1d86a784b1e68 | [
"MIT"
] | permissive | G48D/mypandoc | 7ec67a9df865c7fdf70a894560e731baba062953 | c66bf2e8148f6af5e6d39d6d3ab0fa91b6385fe9 | refs/heads/master | 2020-03-15T16:27:32.818574 | 2018-05-05T06:44:12 | 2018-05-05T06:44:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- coding: utf-8 -*-
"""filters.py:
Find all available filters.
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2017-, Dilawar Singh"
__version__ = "1.0.0"
__maintainer__ = "Dilawar Singh"
__email__ = "dilawars@ncbs.res.in"
__status__ = "Develop... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
c89a2e6db796e083762ffce244b80d91e253e993 | 3d843a0d7c5473548d21543a9a1d3a2569dfa5c3 | /baidu_spider/spider_main.py | 02323df2cda5b8d70ef1b4ec03a465603d6c1883 | [] | no_license | current-liu/Spider | 0d6782818aa9a63e2d1b65c7ebcf2f2030676260 | ca41661d97791fa3b32bf1ad9693043212fbdbb5 | refs/heads/master | 2021-05-15T22:57:22.743253 | 2017-10-27T10:15:40 | 2017-10-27T10:15:40 | 106,762,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # coding:utf8
import html_downloader
import html_outputer
import html_parser
import url_manager
class SpiderMain(object):
def __init__(self):
self.urls = url_manager.UrlManager()
self.downloader = html_downloader.HtmlDownloader()
self.parser = html_parser.HtmlParser()
self.outputer... | [
"365493573@qq.com"
] | 365493573@qq.com |
31b9f0f83c0e0d3d7065477a7124f76186467669 | 3f96a58c20b30a164ae9363f7522758f0d9ed4fe | /skyscanner_makeurl.py | 173dbd481a1c010b4834497bc6f21b27b27479a0 | [
"MIT"
] | permissive | gen2127/TK_1919 | f84d16d9a8376e972c9af466dbf9407822ed3097 | 2e0ab50fe6f02d046eed27da5da1a1f45c05174a | refs/heads/master | 2020-08-28T01:01:03.290550 | 2019-11-08T18:27:40 | 2019-11-08T18:27:40 | 217,540,694 | 0 | 0 | MIT | 2019-10-25T13:33:12 | 2019-10-25T13:33:12 | null | UTF-8 | Python | false | false | 554 | py | import webbrowser
import datetime
params={
"inboundDate": "2019-09-10",
"cabinClass": "business",
"children": 0,
"infants": 0,
"country": "US", #ここから下が必須データ
"currency": "USD",
"locale": "en-US",
"originPlace": "SFO",
"destinationPlace": "LHR",
"outboundDate": str(datetime.date.t... | [
"ryoheinod@gmail.com"
] | ryoheinod@gmail.com |
a8c5343963ce4fe2c601470689de432717b1e410 | 89365087250d7babb3e846b699afbeedb71e697f | /Tester.py | 7e542e39ef12f40867a56c38265f55abfeaedacd | [] | no_license | bigbizzy001/hydrateformationcorrelations | e5f3908de30dd7dd20a3fcb9df3894f5a0f59881 | 9fa892caf9ab239b72d09249baa8572380d61051 | refs/heads/master | 2020-03-26T17:43:40.805626 | 2018-08-18T00:14:25 | 2018-08-18T00:14:25 | 145,176,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py |
from Correlations import HFCorrelations
case = HFCorrelations()
print(case.hammerschmidt(1, 50) , "\n")
print('-'*500)
print(case.bahadori_and_vuthaluru(1, 50, 0.8))
aa = case.bahadori_and_vuthaluru(1, 50, 0.8)
x, y = [], []
for i in range(len(aa)):
x.append(aa[i][0])
y.append(aa[i][1])
print(x)
print(y)
pr... | [
"marcusbourdelon@gmail.com"
] | marcusbourdelon@gmail.com |
3559180aa73350be00dff30775a3775f2003d493 | 63f39a64048a1eba18adc8336976a21d13f2e3df | /Código-fonte/object-detection/service/object_detection_service/views.py | 6ed968ec31c77f7c4de9a958b372925ef8dec997 | [] | no_license | EvoSystems-com-br/ResidenciaSW2018_MonitIntelAmbiente | 57a6870e67837c6a3909defa0aac0ce6b897d98a | 7720238af41236c9b9dc1b28d5b193cb8d7f5553 | refs/heads/master | 2020-03-26T16:48:40.717847 | 2018-10-30T21:16:04 | 2018-10-30T21:16:04 | 145,124,337 | 0 | 0 | null | 2018-10-30T19:39:02 | 2018-08-17T13:33:48 | null | UTF-8 | Python | false | false | 6,939 | py | import base64
from io import BytesIO
import cv2
import os
import sys
import json
import requests
from PIL import Image
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from service import settings
sys.path.append('{}/../../'.format(os.path.dirname(os.path.abspa... | [
"jhonata.antunes@outlook.com"
] | jhonata.antunes@outlook.com |
34a648025419b546118a509d828ac13e4800eab5 | 12f2584aa766d037731005bc1fd188fd9d78a665 | /style_transfer.py | 2278c1c6b733f9e886718dd332075d65d1aca5f6 | [] | no_license | ddiddi/AProjectADay-12-NeuralStyleTransfer | e4ea4899baadb828a61e1d32a13d0f68b0939471 | dec3f4342456dbc87dbd071d0510645bc44c02f6 | refs/heads/master | 2020-05-30T09:32:32.886449 | 2019-05-31T20:07:41 | 2019-05-31T20:07:41 | 189,648,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | # import the necessary packages
from imutils.video import VideoStream
from imutils import paths
import itertools
import argparse
import imutils
import time
import cv2
# Construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-m", "--models", required=True,
help="path to d... | [
"dhruv.diddi+1@gmail.com"
] | dhruv.diddi+1@gmail.com |
bb0727d12cf81aa36fad96edd91cc3bc7da48065 | a0d800feaeb2112e0d7c8f31a74e7637522e9a5d | /mammal_sims_2/rep_52.py | b9e9993328991fbe5bf50b4cb588818e9c0d61a0 | [] | no_license | sebastianduchene/pacemaker_clustering_methods | fc0a914bdbfd3f6f759f549c71b7fd36bed066fc | f24233f92835bbba5132d041178eeda119318d56 | refs/heads/master | 2016-09-06T11:23:25.180835 | 2015-12-02T20:41:18 | 2015-12-02T20:41:18 | 31,933,201 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import os, sys, re
import pandas as pd
import numpy as np
from sklearn.decomposition import PCA
from sklearn import mixture
import scipy.stats as sp
from scipy.spatial import distance
import scipy.stats as sc
from GMM_trees import *
import itertools
import multiprocessing
from multiprocessing import Pool
execfile('GMM... | [
"sebastian.duchene@sydney.edu.au"
] | sebastian.duchene@sydney.edu.au |
5833a0b6db548d365a87282c51f074424fb2e9db | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_61/59.py | 19256ed5af0628a119be46271105a30c91ec3097 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import sys
import operator
def solve(v):
global Current
#print v,Current
if v>Current:
for i in range(v-Current):
Calc()
return sum(Count[v])%100003
def Calc():
global Current
#print 'Calc current' + str(Current)
Current=Current+1
Count.append( [0]*Cu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
fe3d8a763da9a37ccbfd6c0ead9ee7c8bcd9d945 | 23f274f95f824d02a21b378706895c8177bcbf59 | /remenis/core/migrations/0010_auto__chg_field_user_email.py | de5cf326bbcc021c25308d695b19c68740599584 | [] | no_license | nathanwchan/remenis_fork_issue | 9a0e1d0a5f546629cc2d6199ad9996944dc41707 | 47293af33adff7c8f52e6e10454aed7816aec1a4 | refs/heads/master | 2020-06-08T16:13:49.162348 | 2013-07-17T04:20:05 | 2013-07-17T04:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'User.email'
db.alter_column('core_user', 'email', self.gf('django.db.models.fields.EmailF... | [
"aswath87@gmail.com"
] | aswath87@gmail.com |
97130ed871af6f47c43bd80f8edf3000df8bfbd7 | 73c64ca179a21df957e17099f58303df000cf1b1 | /ChatBot/ChatBot/wsgi.py | 9127753645375f29f7395528028f0d3b7f16c95d | [] | no_license | Atlrrific/SHPEUCSDChatBot | 9232af0a7dc09749028460c0365b9ae08ae910cc | de6da7f0620ee986954a0b61574567f2d7c5dcf2 | refs/heads/master | 2021-01-12T12:09:30.695805 | 2016-11-17T04:46:17 | 2016-11-17T04:46:17 | 72,327,341 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for ChatBot 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"atlsaber@gmail.com"
] | atlsaber@gmail.com |
ed4f9c3787b36cc4dcd77cb15647e30d60c6928d | 75f5132f2b2159bd0d622e1b457d82dd9f33c41d | /ghost_post/urls.py | 0d00520121021fbd83c39f280dab47bedac6c174 | [] | no_license | ethan375/ghost-post-backend | c822f3bf6a358bad0e418d38cb43deab835e5f27 | d870a6a43854a1937a4050bc90ebb6d5d45fb601 | refs/heads/master | 2021-09-24T00:46:45.539929 | 2020-01-14T18:01:46 | 2020-01-14T18:01:46 | 231,163,427 | 0 | 0 | null | 2021-09-22T18:25:11 | 2020-01-01T01:26:22 | Python | UTF-8 | Python | false | false | 305 | py | from django.contrib import admin
from django.urls import include, path
from rest_framework import routers
from ghosting import views
router = routers.DefaultRouter()
router.register(r'posts', views.PostsViewSet)
urlpatterns = [
path('', include(router.urls)),
path('admin/', admin.site.urls)
]
| [
"ethanebel1@gmail.com"
] | ethanebel1@gmail.com |
b9ebc7fed43bf7a7e20fe82964536e33dcf55029 | c4597d48b5edefc1ebb0fda3753bb61895c424b5 | /assessment/migrations/0001_initial.py | 476d0230b259ec8437198bade6fbddba7cfd356b | [
"MIT"
] | permissive | vandorjw/django-assessment | dd3786fde018f133ac4dbbea965793ec245bec97 | f5e8dbeba7084578d09483d403bd3dca49bc3181 | refs/heads/master | 2022-05-01T20:03:32.797289 | 2019-12-31T20:24:32 | 2019-12-31T20:24:32 | 18,918,043 | 10 | 3 | MIT | 2022-04-22T20:59:13 | 2014-04-18T16:09:23 | Python | UTF-8 | Python | false | false | 8,729 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-31 05:30
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import parler.models
import uuid
class Migration(migrations.Migration):
init... | [
"joostvandorp@gmail.com"
] | joostvandorp@gmail.com |
daae3d5f8367b1c58ec8dbc7798f5ba1306f06db | a1b689f05eabaa4124f43f8beb9737b4a1e312dc | /site-personalization/paid_content/articles/migrations/0004_auto_20190517_1955.py | f5afefb25db7b150d1313b39422a7588fd0ca1dd | [] | no_license | altovsky/dj-hw | 7c8f6caedd001820e4e290662052a7c1007cf141 | 4c3d94369e370b301766891e7225dae2c725158c | refs/heads/master | 2022-11-29T17:36:09.072879 | 2019-06-04T20:52:06 | 2019-06-04T20:52:06 | 177,335,756 | 0 | 0 | null | 2022-11-22T03:14:01 | 2019-03-23T20:14:41 | Python | UTF-8 | Python | false | false | 734 | py | # Generated by Django 2.2 on 2019-05-17 19:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articles', '0003_auto_2019... | [
"igor.altovsky@yandex.ru"
] | igor.altovsky@yandex.ru |
9deed92c9e96dc463dc24bf36d7fd2fa2422306a | e9734181b2fa63958b0cd65a68790ac20f595b7f | /quiz_backend/quiz/serializer.py | e7317cdee6eba86fb3d3e84684077dc18e19879f | [] | no_license | DubeySuvodeep/Quiz | ad61eba6fb9a7684c1a8bc60de3d5b5ba52dac30 | a0f58913019010c6f79df50640a223f7506ec190 | refs/heads/master | 2022-11-21T16:11:15.884510 | 2020-07-19T09:58:24 | 2020-07-19T09:58:24 | 280,828,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | from rest_framework import serializers
from quiz.models import Question, SubmitAnswer, Choices, Score, Quiz
class ChoicesSerialzer(serializers.ModelSerializer):
class Meta:
fields = '__all__'
model = Choices
class QuestionSerializer(serializers.ModelSerializer):
choices = seriali... | [
"suvodeep@talent500.co"
] | suvodeep@talent500.co |
2c3d0a1e3f4042d7b84ff97cd1baf99aa045f129 | e98a7591ab761b3ed47c6e90d5345f3088ad9f54 | /lesson6.py | 5c4c6f711d44f68674cb065e82a93d03fc925d65 | [] | no_license | pingkong/python-learning | e75372b70f1fa41c5060e1c31d3fe402ddecf011 | cb57e649bcc33724b3156bdff5883f55fd38c7a1 | refs/heads/master | 2021-01-21T13:53:01.771764 | 2014-07-01T19:29:00 | 2014-07-01T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | testrange = range(1,101)
sumrange=sum(testrange)
sumrangesquared=sumrange*sumrange
print sumrangesquared
squaresum=0
for i in testrange:
squareterm=i*i
squaresum=squaresum+squareterm
print sumrangesquared-squaresum | [
"l.austen@corp.badoo.com"
] | l.austen@corp.badoo.com |
c54ed1910b39131407d296acc215932089a83644 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/restapi/serializers/api.py | 9d8ffbdb5e0a3f11316cbb5918f09e901a8c701f | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 1,295 | py | from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from api.models import S3Upload
class S3UploadSerializer(serializers.Serializer):
id = serializers.IntegerField(label='ID', read_only=True)
bucket = serializers.CharField(max_length=63)
folder = serializers.CharF... | [
"mani@myhost.local"
] | mani@myhost.local |
727b6081c68498d38119f92166aa48666c45a0b0 | b871d542653a673f2555aa8ebcb84fb355e1462b | /CodeVita/Cadbury.py | 636f3775e0ec60dfc6cdd8661c0664a7e78830eb | [] | no_license | rajputchintan22/Algorithms | 90c3005e14e2cbe89c206425fc60b435a651f72a | c8da369251d87657cbec5d597788913a63b52faf | refs/heads/master | 2021-08-08T11:11:24.805876 | 2020-06-19T17:52:21 | 2020-06-19T17:52:21 | 193,098,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | p = int(input())
q = int(input())
r = int(input())
s = int(input())
output = 0
for i in range(p, q+1):
for j in range(r, s+1):
a = i
b = j
remainder = 1
while remainder != 0:
if a >= b:
temp = a // b
output += temp
remainder... | [
"rajputchintan22@gmail.com"
] | rajputchintan22@gmail.com |
b5683e7846bde51816adcfb0d836fea3df1175fe | ad3a6b79f19310880c9ab72ca214f5c8731723ca | /strategies/RSI_Threshold.py | c74ec20836fad2141ac55eed0f1a57d25fa67f77 | [] | no_license | yaalsn/futu_algo | b8f88900ea6ba837bf6686eb10393bd32be49675 | ecfc2c3a967eb8fb07fef428b336b6829d3b795d | refs/heads/master | 2023-02-10T16:01:48.064819 | 2021-01-07T06:22:47 | 2021-01-07T06:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,244 | py | # Copyright (c) billpwchan - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# Written by Bill Chan <billpwchan@hotmail.com>, 2021
import pandas as pd
import logger
from strategies.Strategies import Strategies
pd.options.mode.chaine... | [
"billpwchan@hotmail.com"
] | billpwchan@hotmail.com |
c2844b559fdb82914cecdcaf1d8bd3fdb7f750fb | e6ee96e6765ace0169e16e5069d7300d0ffeb286 | /stepper_motor_test.py | 132ddd642b14655c38693f427c1524336ec00593 | [] | no_license | thesiti92/douglas | b72bce08af60ee6da4a3239fd75c9a77758804bb | 85871499e8fdf7f1daa4c2a66065a8fa0f013754 | refs/heads/master | 2021-01-23T06:24:52.246917 | 2017-10-06T02:29:28 | 2017-10-06T02:29:28 | 86,361,431 | 0 | 1 | null | 2017-05-31T16:06:09 | 2017-03-27T16:57:22 | Python | UTF-8 | Python | false | false | 407 | py | from Adafruit_MotorHAT import Adafruit_MotorHAT
mh = Adafruit_MotorHAT()
throttle = mh.getStepper(200, 1)
throttle.setSpeed(40)
steps = int(raw_input("How many Steps"))
dir = raw_input("What direction? f/b")
if dir == "f":
throttle.step(steps, Adafruit_MotorHAT.FORWARD, Adafruit_MotorHAT.DOUBLE)
if dir ==... | [
"aiansiti@outlook.com"
] | aiansiti@outlook.com |
02b900c7a9f1ca012944504563a0edf18ddccc03 | 482dc3424e52668a308d9defb5e06f9f4b1c1b6f | /Final Project/Early Research/basline.py | 7e68d4661f4dc9451b8c11d3a30c4efa99fef2c9 | [] | no_license | jai-soni/Advanced-Data-Science | 5fa29f2604e42ad61ec5802527cbebd7f58e87ec | d61fa03bbb61960a3db91b69429b90d86799f8cd | refs/heads/master | 2020-05-01T01:26:47.764202 | 2019-02-15T23:37:14 | 2019-02-15T23:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import utils
# Classifies a tweet based on the number of positive and negative words in it
TRAIN_PROCESSED_FILE = 'train-processed.csv'
TEST_PROCESSED_FILE = 'test-processed.csv'
POSITIVE_WORDS_FILE = 'positive-words.txt'
NEGATIVE_WORDS_FILE = 'negative-words.txt'
TRAIN = True
def classify(processed_csv, test_file=... | [
"noreply@github.com"
] | jai-soni.noreply@github.com |
8df2a6a2a410ba1ac10b19ccedfdf5c21a2aa8f5 | 192d02957f463c404c5efbe5da5be9a78876b479 | /local/bin/rst2xml.py | ed64c43e9305feac5741667610f188cd95ae5eb0 | [] | no_license | wasuaje/nikola | d27aee5103fb192fd4bc9e0c6afd77455bb5c0c6 | aad251963f40ae94db2e89f754d2743070ed2151 | refs/heads/main | 2023-03-29T21:09:06.067991 | 2021-03-26T17:05:25 | 2021-03-26T17:05:25 | 351,855,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/home/wasuaje/Documentos/desarrollo/nikola/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import loca... | [
"wasuaje@gmail.com"
] | wasuaje@gmail.com |
8a563a31f094e637a21adffb9689c6ce5e279250 | 68003d6244ca5f81b8f04de019a0a3ed36904fba | /imagenet/opts.py | 448ed0652e81289e7bbc552d202bdd9a4b3f7e1a | [] | no_license | byungjukim/Incremental | 067132ebddc7746a9ab41e04f1e34ace77c7e7e3 | 5087075babcf05715f18c85be197277c3cdde84d | refs/heads/master | 2021-01-17T22:46:44.545155 | 2017-03-07T13:39:43 | 2017-03-07T13:39:43 | 84,203,025 | 0 | 0 | null | 2017-03-07T13:36:31 | 2017-03-07T13:36:31 | null | UTF-8 | Python | false | false | 4,102 | py |
import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
## dataset parameter
tf.app.flags.DEFINE_integer( 'num_class', 1000, "Number of classes in dataset")
tf.app.flags.DEFINE_integer( 'num_example_train', 1281167, "Number of training data (images per epoch)")
tf.app.flags.DEFINE_integer( 'num_example... | [
"noreply@github.com"
] | byungjukim.noreply@github.com |
7c7069d049517f77b6565001183f83bf93bd1b19 | 3e9ef7cda8889f1be76a095becaebbf89f433642 | /main3.py | f37430deee44235ee033eebb9d970c71b02616e4 | [] | no_license | thandosi/temp-converter | 1781714fec8d1536c857c9da6730b1df89a3c1d7 | 8722209065daaac6ce0a54c5b4500e0f0f3bd26b | refs/heads/main | 2023-05-04T14:17:59.579843 | 2021-05-24T08:05:18 | 2021-05-24T08:05:18 | 369,546,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py |
# importing tkinter
import tkinter
# creating a window
root = tkinter.Tk()
# naming the title of the window
root.title("Temperature Converter")
# setting the size of the window
root.geometry("800x600")
# bg color for the window
root.config(bg="purple")
l1 = tkinter.LabelFrame(root, text="Celsius to Fahrenheit"... | [
"siyanjomeni@gmail.com"
] | siyanjomeni@gmail.com |
6032b2592dd176bbdd07abd0ff17d4268d1b7053 | 9ef357b77a503afb11bb8b684321448d13d10f7c | /palletize.py | 8181cfa64a17e675b71cfae6c7bf2caa4a5d105d | [] | no_license | timconnorz/GradStreet-Inventory | 4dc1657155b75d3af48e1352c25fcf990744ebd7 | 977540d7322fecf4077b6d9a558b3380a5c88820 | refs/heads/master | 2020-05-05T05:30:39.617400 | 2019-04-05T21:13:48 | 2019-04-05T21:13:48 | 179,755,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | #reads in packing GUIDE
# exports the palletizing GUIDE
# must be manually entered into the palletizing guide on google sheets
import csv
IMPORTANTcsv_folder_path = "C:\\Users\\User\\Google Drive\\GradStreet\\InventoryTracker\\IMPORTANT\\csv_files\\"
CREATED_folder_path = "C:\\Users\\User\\Google Drive\\GradStreet\\In... | [
"timconnors@yahoo.com"
] | timconnors@yahoo.com |
2c7e9875c5f33b8ac533f4ae62c6e6d26bc828ec | 0fced8b2e5e14f8b4bbd58a919cfc60f24963c07 | /fmath.py | 66c833e2556ad6b2544330a14f76527e92c47e02 | [] | no_license | Giorc93/Python-Int | 060ec956bd1ad25ad4c60c1d5c2ce3e0512375be | d576681bd0b4324f1a5872849f855eda6b3ca610 | refs/heads/master | 2022-08-28T16:35:45.570104 | 2020-05-19T20:07:12 | 2020-05-19T20:07:12 | 265,352,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | def add(n1, n2):
return n1 + n2
def sust(n1, n2):
return n2-n1
| [
"example@test.com"
] | example@test.com |
4a39c69dcb39a1fc6003762acb6e802d290f0d2f | baf824f8819f90928e11480d0eae89efb60341a1 | /tests/perf_bench/viper_call1c.py | c653eb8d3ee18e376ce531e4a8e70994902bd86b | [
"MIT"
] | permissive | RockySong/micropython-rocky | 549770723ba92cb311c468880ead0ffdd4fa8fe5 | 2d728f414bf8d041ca609e00448850759aade3cd | refs/heads/omv_initial_integrate | 2021-05-12T12:20:18.404341 | 2021-01-15T01:15:48 | 2021-01-15T01:15:48 | 117,408,452 | 198 | 90 | MIT | 2020-08-25T03:31:32 | 2018-01-14T06:40:36 | C | UTF-8 | Python | false | false | 351 | py | @micropython.viper
def f1c(x:int) -> int:
return x
@micropython.native
def call(r):
f = f1c
for _ in r:
f(1)
bm_params = {
(50, 10): (15000,),
(100, 10): (30000,),
(1000, 10): (300000,),
(5000, 10): (1500000,),
}
def bm_setup(params):
return lambda: call(range(params[0])), lam... | [
"rock.song@hotmail.com"
] | rock.song@hotmail.com |
754c611cc6b2ee1d943e4363594e68673273ec58 | 7125134946e82c15f18ce6408e243b44236d7a40 | /private_ipynb/SeSu_learning.py | 6b3862d5b5df13c59949c9f4dc7129135bb24452 | [] | no_license | isthegoal/XWBank_Top2_solution | 8654cdd96ddf5c584e62f9162c0178123a41bd41 | e788bbeeb20d5f00b5e71c8e9f9f10bb5deb0071 | refs/heads/master | 2020-05-15T04:33:09.839447 | 2019-04-25T16:48:29 | 2019-04-25T16:48:29 | 182,088,709 | 3 | 0 | null | null | null | null | GB18030 | Python | false | false | 20,007 | py | # coding=gbk
import h5py
import numpy as np
from private_ipynb.lgb import lgb_model
from sklearn.model_selection import StratifiedKFold
from sklearn.metrics import roc_auc_score
import lightgbm as lgb
import time
import numpy as np
import h5py
import pandas as pd
from pandas import *
import pickle
'''
思想(一一尝试):
*使用模... | [
"1091714856@qq.com"
] | 1091714856@qq.com |
05718f79434ab530895713055604c343fd4de2a5 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/1370.increasing-decreasing-string.py | d3dea9772fc98df53aaed2ff588b6be808788a4b | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | from collections import Counter, defaultdict, OrderedDict, deque
from bisect import bisect_left, bisect_right
from functools import reduce, lru_cache
import itertools
import math
import string
true = True
false = False
MIN, MAX = -0x3f3f3f3f, 0x3f3f3f3f
#
# @lc app=leetcode id=1370 lang=python3
#
# [1370] Increasing De... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
ceb52672c70129b482b652634097fe45dca5d3e7 | 9ecafbb7df876b377ed8ed2472dbd9ab38bb41d4 | /pidealfm.py | 56f0fa31062bff04bcfb70e3fb30243ac134b302 | [] | no_license | santospat-ti/Python_ExEstruturaSequencial | 51de3573afd39b3954b5e535559fde636d74f752 | 2c2065b773676990e3f1b8cc11d06057080785d3 | refs/heads/main | 2023-02-24T07:17:49.078818 | 2021-01-29T00:21:33 | 2021-01-29T00:21:33 | 333,991,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #Tendo como dado de entrada a altura (h) de uma pessoa,
# construa um algoritmo que calcule seu peso ideal,
# utilizando as seguintes fórmulas:
#Para homens: (72.7*h) - 58
#Para mulheres: (62.1*h) - 44.7
h = float(input('Digite sua altura: '))
peso = float(input('Digite seu peso: '))
sexo = str(input('Digite... | [
"noreply@github.com"
] | santospat-ti.noreply@github.com |
10561316fb2488d5ff5655a5c0acdda48f0d47dc | 78d3d78ebded691dd6a92f357c7cc75004ff2184 | /weak_localization/L15_W0p012_highres/plot3.py | 35695e03b1649b42c24a0db891a9213d1e6e87a0 | [] | no_license | rafaelha/paper_zbcp | 0b5bb9500d997ab99cea9959998e3651be75483b | db2096eb0cb2d7bb801b4e513320adc9cef7a0d9 | refs/heads/master | 2023-02-25T01:41:24.728767 | 2019-09-06T17:24:16 | 2019-09-06T17:24:16 | 199,933,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | import matplotlib as mpl
mpl.use('Agg')
import pickle
import numpy as np
import matplotlib.pyplot as plt
import glob
files = glob.glob('*.pickle')
def get_size():
r = open(files[0], 'rb')
pickle.load(r)
pickle.load(r)
pickle.load(r)
pickle.load(r)
pickle.load(r)
pickle.load(r)
pickle.l... | [
"rafaelhaenel@phas.ubc.ca"
] | rafaelhaenel@phas.ubc.ca |
0c729b9ef4e31f3f9af216d3dfd59a80d7573afb | 2640159bbad2a4b7b16a113d04d98581766f6f02 | /Experiment-Control/runisl.py | e9a3af1db10622a7fedb258cf0c5df9e131bd042 | [] | no_license | AndroidSim/Virtual-Experiments | abe8125a9cfbb606957bd3ab7e2476f1499d8baf | 56d46b5098c8752d72fc5bd97d585777ab7a69a8 | refs/heads/master | 2022-09-14T18:52:44.344545 | 2022-08-12T20:06:59 | 2022-08-12T20:06:59 | 154,492,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | #!/usr/bin/python
import os
import javabridge
##
## without running "ant jar" to create the dist/isl.jar
##
javaclasspath = [os.path.realpath(os.path.join(os.path.dirname(__file__),'..','build','classes'))] + \
[os.path.realpath(os.path.join(os.path.dirname(__file__),'..','cfg'))] + \
... | [
"drandrewksmith@gmail.com"
] | drandrewksmith@gmail.com |
da9970c0ebef6b06081af9749578c6b7c257eb78 | c3b8b65753bbbefbe6185f6d7084c0eeda04d5f7 | /main.py | f3726a66fef40178306ad649f499b8410e0ba35d | [] | no_license | qq2568410997/QuantAnalysis | 75e2d5ef637c26cf218a6707cd58d9ad68476871 | 1912407cceee0169284e0fc6049e168905d5a54f | refs/heads/master | 2022-12-25T03:42:33.538904 | 2020-09-17T17:01:49 | 2020-09-17T17:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import GlobalData
#软件头文件先初始化全局数据
GlobalData.Init()
#软件程序逻辑
import sys
from PyQt5.QtWidgets import QApplication
from PY_MenuWidget import MenuWidget
if __name__ == '__main__':
# 测试Github
App = QApplication(sys.argv)
MainWindow = MenuWidget()
MainWindow.show()
sys.exit(App.exec_()) | [
"1045255891@qq.com"
] | 1045255891@qq.com |
a628c09bbb76148913b593b875ff6638a185cf9b | f50df187c4ff35f83cb3d2577453fffffde952c8 | /mtp_api/apps/payment/migrations/0013_billingaddress_debit_card_sender_details.py | 36aac503d3dd3a3a47fc3ac2568cba06b46c955e | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | ministryofjustice/money-to-prisoners-api | a5ecc2f5b3ebe48656712863bfc0b27bd8ffaea9 | 8b7d21e004f8bcb3ea31c764c1bf7ac7d2c4cb0c | refs/heads/main | 2023-08-19T07:10:00.256944 | 2023-08-18T13:21:29 | 2023-08-18T13:21:29 | 37,074,635 | 7 | 1 | MIT | 2023-09-05T17:06:01 | 2015-06-08T15:15:05 | Python | UTF-8 | Python | false | false | 620 | py | # Generated by Django 1.10.7 on 2017-07-13 15:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('security', '0013_auto_20170713_1604'),
('payment', '0012_auto_20170621_1445'),
]
operations = [
mig... | [
"ian.brechin@gmail.com"
] | ian.brechin@gmail.com |
08d316af05641642c96809e3a521de14d4d540d6 | 22d0e5b55a042c0f1dacfc4b200bf8e5e3498677 | /datasets/junhyung.py | 8a4990c0e7543a8f4f8b476af53b009c8d1728c6 | [
"MIT"
] | permissive | goluter/Tacotron2-Wavenet-Korean-TTS | b37a2ce15c5b124800507c17519fc2943755d481 | 1a80053b1b328124b77b105cdfa4447445e467d3 | refs/heads/master | 2023-05-04T13:27:45.059595 | 2021-05-25T08:55:06 | 2021-05-25T08:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | # -*- coding: utf-8 -*-
from concurrent.futures import ProcessPoolExecutor
from functools import partial
import numpy as np
import os, json
from utils import audio
from text import text_to_sequence
def build_from_path(hparams, in_dir, out_dir, num_workers=1, tqdm=lambda x: x):
"""
Preprocesses the speech dat... | [
"donam.kim@nerdspace.co.kr"
] | donam.kim@nerdspace.co.kr |
939ca49891418288edff41e11e8f58b62433f2b2 | 5cdbb7a9d42393a48b12911e249e1f282d8fc12d | /volume.py | c3f4b5038b3876f49b4d466af1974f090e5cbb7a | [] | no_license | tmots/Py-Serial-Volume-controller | ba47ffdb9cb048fe34993e885024c0c32a9cf729 | d5947d28338a244b5d3fcbfcc316905cfc36e438 | refs/heads/master | 2023-08-20T19:26:36.820713 | 2021-11-02T05:56:22 | 2021-11-02T05:56:22 | 423,715,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | ##serial import
import serial
import serial.tools.list_ports
import time
##volume import
from pycaw.pycaw import AudioUtilities, ISimpleAudioVolume
ports = list(serial.tools.list_ports.comports())
for p in ports:
##print (str(p)[:4])
if str(p)[7:14] == "Arduino" :
conport = str(p)[:4]
###
def vol_fn... | [
"themots@naver.com"
] | themots@naver.com |
4ae869802d356014ba532a755a4394f2dbae4aaa | ae6c2a6fa37613ac31b2bd3537b3276c9b333632 | /licenses/tests/test_admin.py | 5b04bcc99fc00431a31a5faa8858c3426cb75cac | [
"Apache-2.0"
] | permissive | salopensource/sal | 435a31904eb83048c02c9fbff02bbf832835d1b4 | 0895106c6729d5465da5e21a810e967a73ed6e24 | refs/heads/main | 2023-08-03T06:53:40.142752 | 2023-07-28T15:51:08 | 2023-07-28T15:51:08 | 35,883,375 | 227 | 94 | Apache-2.0 | 2023-07-28T15:51:10 | 2015-05-19T13:21:57 | Python | UTF-8 | Python | false | false | 254 | py | """General functional tests for the license admin endpoints."""
from sal.test_utils import AdminTestCase
class LicenseAdminTest(AdminTestCase):
"""Test the admin site is configured to have all expected views."""
admin_endpoints = {'license'}
| [
"sheagcraig@gmail.com"
] | sheagcraig@gmail.com |
1d57d5e575b3352ecc1bd8749ea2ee7314866a62 | 0e07fb803877217bd4182c3e09fb7c4573e24b86 | /Projeto/Initialization.py | ca20207b4759e0da944399c014b24722f8303303 | [] | no_license | careduardosilva/POO | 5ca748810b6e3909a4a57cd105caf4c5fa2ea180 | 85d6acf51c9b0457832398d584943644a89988c7 | refs/heads/master | 2020-04-07T15:29:29.436768 | 2019-04-02T14:14:33 | 2019-04-02T14:14:33 | 158,487,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import pygame
class Initialization():
def __init__(self,width,height):
self.__width = width
self.__height = height
self.__name = "Snake"
self.__isWorking = True
self.__window_params = pygame.display.set_mode((self.__largura,self.__altura))
def Start(self):
try:
pygame.init()
except:
pr... | [
"noreply@github.com"
] | careduardosilva.noreply@github.com |
45eda63518e9642ea90f6829601589e7488fc123 | df38f5ed0d7372201280ee2dd1a56d355725e658 | /datastructs/trie.py | d3e8f796f095377db53ab265cefecc577aaa2cc2 | [] | no_license | ritwikdixit/PythonCode | 3cf09b0078458eba49b67c4cd730bfbf0bbd1a57 | 4922cd3fedd363813a4979f36d779dde54649048 | refs/heads/master | 2021-01-10T18:24:18.889024 | 2018-08-15T03:55:42 | 2018-08-15T03:55:42 | 32,130,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from collections import deque
class Node:
def __init__(self):
self.endofWord=False
self.links={}
class Trie:
def __init__(self):
self.root=Node()
#insert a string
def insert(self, s):
node = self.root
for char in s:
if char not in node.links:
node.links[char]=Node()
node=node.links[char]
no... | [
"ritwik.dixit@gmail.com"
] | ritwik.dixit@gmail.com |
5b20f05b3a08f97b2306479e7ae2ed8e6c8c8235 | f9fd81d1dca4873db5b9638dc675cadd121c1258 | /concesionario/aplications/revisiones/apps.py | 08dbdfe2651a9fa263bb9166aeba815604953435 | [] | no_license | julian1026/taller2-credito3-c2 | 1a3f25d61a3b9d9c199dbc66cd9116cef1244580 | 06b6e1e6680423f1a9c37ef679c8d63bace90896 | refs/heads/main | 2023-01-04T13:20:51.410531 | 2020-10-31T17:46:00 | 2020-10-31T17:46:00 | 305,496,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class RevisionesConfig(AppConfig):
name = 'revisiones'
| [
"33234916+julian1026@users.noreply.github.com"
] | 33234916+julian1026@users.noreply.github.com |
341c2374a939293ad385c8220cbb821bc2ac526e | 9a4f85835786cdc3ec7ecc809f7dbf1121717cf8 | /proj2.py | d38499e90cdd4832fb9e50fecfa22415a2b005f6 | [] | no_license | hamz1q/Project-6-Connect4Game | 7c18fcaf715bc1c22733be61a9114ce4c0d6f73d | 6bdd4e704a43471bf6cab81e4b371ffcc894af18 | refs/heads/master | 2023-04-21T14:54:52.006348 | 2021-05-10T11:39:50 | 2021-05-10T11:39:50 | 366,020,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,103 | py | """
File: proj2.py
Author: Hamza Qureshi
Date: 04/23/2020
Section: 15
E-mail: hamz1@umbc.edu
Description:
Connect 4 game, with 2 players or with computer
"""
# tried to split by x and o, but did not work, so can only use grid with no x/o already entered
class AdjoinTheSpheres:
def __init__(self):
... | [
"hamz1@linux5.gl.umbc.edu"
] | hamz1@linux5.gl.umbc.edu |
910c33d7dbbc42eb2bff828efaca2c423e7434d0 | 4079cb23c582838573ccab96e91ddfac55a73ef6 | /solution.py | 78f3678f9f24cbb8d91d435d417078c2f8df7530 | [
"Apache-2.0"
] | permissive | gdmanandamohon/paytmlab-test | 90c878e76a4d0e0885bd1caec763339dd32aa5b7 | f304f30d83d6a0626f905dc35194cd92c9c7e742 | refs/heads/main | 2023-01-22T09:13:27.087790 | 2020-11-30T05:59:10 | 2020-11-30T05:59:10 | 317,124,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | import pandas as pd
import numpy as np
def read_df(url):
return pd.read_csv(url)
#load df
df_dir = 'data/2019/part-0000{0}-890686c0-c142-4c69-a744-dfdc9eca7df4-c000.csv'
dfs = []
for x in range(5):
td = read_df(df_dir.format(x))
dfs.append(td)
wt_df = pd.concat(dfs)
'''Now I have the data frames togeth... | [
"gdm.anandamohon@gmail.com"
] | gdm.anandamohon@gmail.com |
dffcbf3c4a94c007967039a87da9f55a16969b52 | 456557cf9de8ee3c184b1bf5fceafbff7e52d990 | /app.py | c24b90a5a6be34f79e48d0887e2991a7d513b2dc | [] | no_license | Konovalov-Kos/test_BWT | b9297a098c036f432afbf44f85593f1f254a57b4 | feeec1c1aac991bed0635065eb12a4048f8a5a1a | refs/heads/master | 2021-07-11T20:39:30.667547 | 2020-02-15T00:39:45 | 2020-02-15T00:39:45 | 240,622,806 | 0 | 0 | null | 2021-03-20T02:54:15 | 2020-02-15T00:38:56 | Python | UTF-8 | Python | false | false | 305 | py | from flask import Flask, render_template
from gevent.pywsgi import WSGIServer
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def home():
return 'home'
if __name__ == '__main__':
http_server = WSGIServer(('', 5000), app)
http_server.serve_forever()
# app.run(debug=True)
| [
"kosm888@mail.ru"
] | kosm888@mail.ru |
5aa3786f1bbd31722bd0f633d06b60a5c4225cfe | ed8af552d5c70478eb9e9a5aaa371ab9b96217cb | /VariantDatabase/views.py | 1eb600b6fa1a3b8f171087788961367202e00ae9 | [] | no_license | josephhalstead/VariantDatabase | 1cbadc90f7aaf0f84715880fe16f67c8a0efb7ce | 191fb09d13aded90576bf81966c201b160425549 | refs/heads/master | 2021-01-21T09:43:06.259926 | 2017-10-26T11:20:00 | 2017-10-26T11:20:00 | 82,926,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,405 | py | from django.shortcuts import render, get_object_or_404, redirect
from VariantDatabase.models import *
from django.contrib.auth.decorators import login_required
from .forms import *
from django.utils import timezone
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import Paginator, EmptyP... | [
"josephhalstead@gmail.com"
] | josephhalstead@gmail.com |
02fe70e3f0df2bf54bd7acc70a230e3ab1d39613 | ebfbc3ef1ec356ac42a2e681ce71cd4b18bfd84e | /news/preprocess/epochtimes.py | e3262450404f99d0bce5dc4801cd6437d208fe0e | [] | no_license | eric88525/Taiwan_news_dataset | e837ca61e1252bfc0138420e5f1128a611b7a1ae | 5df326b75bbbc7bc785e7358231a10dacfc7f810 | refs/heads/master | 2023-09-03T19:35:08.918173 | 2021-07-17T07:15:54 | 2021-07-17T07:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | import re
import unicodedata
import dateutil.parser
from bs4 import BeautifulSoup
from news.db.schema import News
REPORTER_PATTERN = re.compile(r'\(大紀元記者(.*?)報導\)')
URL_PATTERN = re.compile(
r'https://www.epochtimes.com/b5/(\d+)/(\d+)/(\d+)/n\d+\.htm'
)
def parse(ori_news: News) -> News:
"""Parse Epochtime... | [
"nail1021734@gmail.com"
] | nail1021734@gmail.com |
c4b3df7602aff044b0067eafd4393a20ebbd061b | 931a9df55e40558593d3e2bd32c0fb339c64fdc3 | /setup.py | 3cbef67be4115f168a40e2c3c1e09012750b2263 | [] | no_license | ch-liuzhide/geogenius-python-sdk | 23a06aad3ef42049b1743714c14e13ea6400c297 | c74665dc5e1818b2c49eccb60175b1d741ec188b | refs/heads/master | 2022-09-17T00:00:52.172414 | 2020-05-22T04:15:36 | 2020-05-22T04:15:36 | 268,464,270 | 1 | 0 | null | 2020-06-01T08:19:45 | 2020-06-01T08:19:45 | null | UTF-8 | Python | false | false | 1,011 | py | import os.path
import sys
from setuptools import setup, find_packages
open_kwds = {}
if sys.version_info > (3,):
open_kwds['encoding'] = 'utf-8'
profile = os.environ.get('GEOGENIUS_PROFILE', '')
if profile == '':
requires = []
else:
req_path = os.path.join(os.path.abspath(os.path.dirname(__fil... | [
"JIXF@jixiaofengdeMacBook-Pro.local"
] | JIXF@jixiaofengdeMacBook-Pro.local |
48f8090027d651dfdb073756c51c7555e7995946 | b406e0e126083637f2f170ef2d7f1fe379ef5048 | /jd/jd/jd/pipelines.py | 2372a058664f21e14baaa22aa5598965788b62e4 | [] | no_license | junjunjuner/jingdong | 62b879d1154d411eaefb67375fec262db1dce91d | 5da6e30414d2848fa4c16ab5d8aeb90946987dc6 | refs/heads/master | 2021-08-29T22:48:53.592375 | 2017-12-15T06:23:38 | 2017-12-15T06:23:38 | 114,190,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from jd.settings import FIELDS_TO_EXPORT
from scrapy import signals
from scrapy.exporters import CsvItemExporter
import time
c... | [
"523614801@qq.com"
] | 523614801@qq.com |
edce723627f80b36638a902c1965bc81af5c50f4 | 63eb8b194590e444b0e80e1424dfc563023518dc | /vislab/datasets/__init__.py | d4e205656c48dded044f6bb81cd0c06de9ff549a | [] | no_license | caomw/vislab | ba3e523c67662a85fb03418ce9ccd4b9f10ad484 | bc04740bb685c81c184ea0d3f3a11f4e37787f36 | refs/heads/master | 2020-12-28T23:15:29.669446 | 2014-02-24T19:01:50 | 2014-02-24T19:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import pascal
import wikipaintings
import ava
import flickr
import behance
| [
"sergeykarayev@gmail.com"
] | sergeykarayev@gmail.com |
af780707d53503cc0c6f8b741168a08be67472fb | 4f5f40a874a9ae17d25cb2fe8cac5fba327b5265 | /examples/test_zephyr_philosophers.py | fd5739590bc4aec271c1df7a635b844c0bfa47c4 | [
"Apache-2.0"
] | permissive | dickeylim/tcf | 4f580b507d381542f22c0899e4922add13f76926 | 4ecda0e1983fed2cb932242395a5be4754349534 | refs/heads/master | 2020-06-25T16:30:34.613115 | 2019-08-27T18:39:25 | 2019-08-27T18:39:25 | 199,366,410 | 0 | 0 | Apache-2.0 | 2019-07-29T02:48:55 | 2019-07-29T02:48:54 | null | UTF-8 | Python | false | false | 585 | py | #! /usr/bin/python2
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
import os
import re
import tcfl.tc
import tcfl.tl
@tcfl.tc.tags(**tcfl.tl.zephyr_tags())
# Ask for a target that defines an zephyr_board field, which indicates
# it can run the Zephyr OS
@tcfl.tc.target("zephyr_boar... | [
"inaky.perez-gonzalez@intel.com"
] | inaky.perez-gonzalez@intel.com |
469ffb9dc230b3cf294d237dbf947e5f2890f37a | 30997e4c4338a8dd5216d4bb07ea860293a33da1 | /test/test_preferences.py | b7e54236ac563a87e09a493a0d686f97ab4dd010 | [
"MIT"
] | permissive | azumafuji/ulauncher-albert-calculate-anything | 739a537ecd4921be20d01dc144be643141acc580 | ee0903174c8b87cd1f7c3b6c1acef10702547507 | refs/heads/master | 2023-07-07T12:11:08.526109 | 2021-08-12T06:39:56 | 2021-08-12T06:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,203 | py | from contextlib import contextmanager
from calculate_anything.currency.providers import (
CoinbaseCurrencyProvider,
MyCurrencyNetCurrencyProvider,
ECBCurrencyProvider,
FixerIOCurrencyProvider,
)
from calculate_anything.units import UnitsService
import pytest
from calculate_anything.currency import Curre... | [
"tilemachos.charalampous@gmail.com"
] | tilemachos.charalampous@gmail.com |
1e05cbb73c5027fc77895f2305d2b92435f132bd | d78dfc5089717fc242bbd7097f507d811abb4260 | /Australian/plugin.audio.xmanradio/default.py | 63359c01e88a80070c20c23d0240592a259e357e | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 2,570 | py | import urllib,urllib2,re
import xbmcplugin,xbmcgui
def CATEGORIES():
addLink('2GB Sydney Talk Radio','http://shoutcast.2gb.com/listen.pls?sid=1','http://www.2gb.com/sites/all/themes/two_gb/logo.png')
addLink('ABC Radio Australia','http://shoutmedia.abc.net.au:10442/','http://d1i6vahw24eb07.cloudfront.net/... | [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
0cb7b6bf8d1f2e68c82b658c9e3017c637000e3f | 760077feec25e70eff09fac5950e9e9dfb079de3 | /main.py | 987b7597855f1cf4819e20a6621d5c7aa324a759 | [] | no_license | leonidas/flask-spa-routing-example | 2f9a0980361abf6f2ea2b37b5a44d92cb5f18d9d | a41304b9c54fb12190bb090aaa81b8f546400315 | refs/heads/master | 2021-01-10T08:36:57.287257 | 2016-01-11T10:48:29 | 2016-01-11T10:48:29 | 49,418,239 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/env python
from __future__ import print_function
from functools import wraps
from flask import Flask, send_from_directory, redirect, g
app = Flask(__name__, static_folder=None) # disable default static file serving
app.debug = True
def logged_in():
return True # change this to False to emulate non-l... | [
"santtu@pajukanta.fi"
] | santtu@pajukanta.fi |
41cb367b316c5bb963352f90c9f4d50259ce82c1 | 58f57a9e6a0052cf0e9f80bd46d0b68b656f14a4 | /calplus/conf/compute.py | 0efc397471690fbbd2d18b6f869aedf3b299470c | [
"Apache-2.0"
] | permissive | HPCC-Cloud-Computing/CALplus | 43d9a73bd0d7e45c6be865eacbbf6a40cb42aa7e | 82542aa8aa083af8b09b8178a1385a9e23bc4f68 | refs/heads/master | 2020-04-09T05:23:08.196563 | 2018-12-04T06:45:46 | 2018-12-04T06:45:46 | 160,062,194 | 0 | 1 | Apache-2.0 | 2018-12-04T06:45:47 | 2018-12-02T15:37:50 | null | UTF-8 | Python | false | false | 490 | py | from oslo_config import cfg
compute_group = cfg.OptGroup('compute',
title='Compute Options')
# some config options here
driver_path = cfg.StrOpt(
'driver_path',
default='calplus.v1.compute.drivers',
help='Default path to compute drivers',
)
ALL_OPTS = ([driver_path])
def ... | [
"nghia.duontrung16@gmail.com"
] | nghia.duontrung16@gmail.com |
55a7741ede2a93c7fdb436e43848d3120a4d5851 | 4aa7a4d0525095725eb99843c83827ba4806ceb1 | /ML/m04_xor4_keras.py | 0c6c7136a58e809cea8cedab9bf03c489f5836e1 | [] | no_license | seonukim/Study | 65a70f5bdfad68f643abc3086d5c7484bb2439d4 | a5f2538f9ae8b5fc93b5149dd51704e8881f0a80 | refs/heads/master | 2022-12-04T17:04:31.489771 | 2020-08-21T00:35:15 | 2020-08-21T00:35:15 | 260,144,755 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from sklearn.svm import LinearSVC, SVC
from sklearn.metrics import accuracy_score
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
# 1. 데이터
x_data = np.array([[0, 0], [1, 0], [0, 1], [1, 1]])
y_data = np.array... | [
"92.seoonooo@gmail.com"
] | 92.seoonooo@gmail.com |
9306b9a533b5b5ec86432111a1786e7d22879193 | fcaf9c408e1ec8c1a6fd94c98126f22a05678cb1 | /Array_Sequence/largestContinuousSum.py | e529b3e88dcb49af3f8ce0d789d7b36d5087693e | [] | no_license | rishabh-in/DataStructure-Python | 65908526e6d06b76aa369c31df8a3fc3c9e06b6d | 1df607678f72de6b4b712fc6aadc5fd5e2890c9a | refs/heads/master | 2022-11-22T21:26:19.546266 | 2020-07-29T08:18:28 | 2020-07-29T08:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | def larg_cont_sum(arr):
if len(arr) == 0:
return 0
max_Sum = current_Sum = arr[0]
for num in arr[1:]:
current_Sum = max(current_Sum + num, num)
max_Sum = max(current_Sum, max_Sum)
return max_Sum
result = larg_cont_sum([1, 2, -1, 3, 4, 10, 10, -10, -1])
print(result) | [
"noreply@github.com"
] | rishabh-in.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.