blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a1a2b5c39644226f3151bea35c55800e3d74fde | eafd177a43d08eb4b09c94af5b8073916598013b | /Conjugate Gradient.py | e83170f7ca716f7b9c4475acb4213d0632f4f345 | [] | no_license | lechuandafo/Simple-optimization-problem | acb16772a3e0f9c0036ada1a13288a6159ca6f9a | c93906a5c792a75880f80f6f44cbab81af30d0a6 | refs/heads/master | 2020-06-13T22:36:03.605662 | 2019-07-02T07:22:30 | 2019-07-02T07:22:30 | 194,810,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 17 13:39:12 2018
@author: YLC
"""
import numpy as np
x = np.array([0,0,0,0]).T #.T表示转置,下同
H = np.array([[158,20,90,101],[20,36,46,61],[90,46,306,156],[101,61,156,245]])
g = np.array([8,-5,1,6]).T
def grad(H,x,g): #梯度计算公式,由原方程求导得到
return np.dot(H,x)-g
eta =... | [
"noreply@github.com"
] | lechuandafo.noreply@github.com |
e8271a5bf72bda3ddf07e62fa50173e847af9541 | abf857dfc50a3a0a109d00cc24ce88cf0df79a97 | /daphnia/main.py | 5d294e41baa6b73f3125a64a03dd4ef62f8720e1 | [] | no_license | awedwards/daphnia-bergland | 7a4542e5f48dbf2bb442632738626cbf602dd31f | 9d29edb7a1df84062e0368d3f918a1cace09815b | refs/heads/master | 2021-09-13T09:27:50.329160 | 2018-04-27T19:56:16 | 2018-04-27T19:56:16 | 95,588,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,195 | py | from __future__ import division
import utils
import pandas as pd
from clone import Clone
import os
import cv2
DATADIR = "/mnt/spicy_4/daphnia/data"
ANALYSISDIR = "/mnt/spicy_4/daphnia/analysis/"
INDUCTIONMETADATADIR = "/mnt/spicy_4/daphnia/analysis/MetadataFiles/induction"
PONDSEASONFILEPATH = "/mnt/spicy_4/daphnia/an... | [
"edwardsa@janelia.hhmi.org"
] | edwardsa@janelia.hhmi.org |
1acc3b8f6a2e1c850b698629893c7c179aceb189 | c23e10f2a67ac37d2aa39d193b518251a2a2e03a | /boardproject/boardapp/migrations/0003_auto_20210524_0642.py | 0fe47a03f9ace8075fb09f409ac0262cd54d386e | [] | no_license | pecop/udemy-django-3apps | cd2bf976ae3db28bcae0b8a1b23f4bd55881cabd | fc214bcc04ca439873d55265e4d2aade4b5701c0 | refs/heads/master | 2023-05-02T01:31:50.951907 | 2021-05-24T08:06:04 | 2021-05-24T08:06:04 | 370,271,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 3.2.3 on 2021-05-24 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boardapp', '0002_rename_auther_boardmodel_author'),
]
operations = [
migrations.AlterField(
model_name='boardmodel',
... | [
"back.to.the.future52@gmail.com"
] | back.to.the.future52@gmail.com |
3179b52f9eae9dc675a92b6b50fc961d0a7fb9f0 | 3881c6471d5017589f5203016b886549c2cdacc5 | /datasets/superb/superb.py | abbb7bf765b7ba3e3dd43245c66fd9a5174b6137 | [
"Apache-2.0"
] | permissive | SebastinSanty/datasets | 73f0dc9981d2ce68ce233ba732d48d6637d0d6ae | 99403fc639665497219ad1b74b7a93ff97e3f5aa | refs/heads/master | 2023-08-30T01:11:43.355033 | 2021-11-15T14:45:22 | 2021-11-15T14:45:22 | 428,611,292 | 0 | 0 | Apache-2.0 | 2021-11-16T10:31:07 | 2021-11-16T10:31:05 | null | UTF-8 | Python | false | false | 30,236 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
#
# 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/LI... | [
"noreply@github.com"
] | SebastinSanty.noreply@github.com |
73b01d6e83f15e3b8998e48fde1d8e9a8e9c8657 | 5b7a0d2c364e40581eeff6c592067c954b96aa5b | /test_circle_ellipse.py | d03fd6ea80484a28a8acc42dbf20a692f6fa80ae | [] | no_license | skconan/dice_detection | a0f5afbfd1d5e38cf6f5d72872103280690e5ffc | da5b065398c0976b90833a10e6dfcde162ce1540 | refs/heads/master | 2020-03-18T16:42:32.272709 | 2018-07-05T04:26:47 | 2018-07-05T04:28:03 | 134,981,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | import cv2 as cv
from lib import *
import numpy as np
from dice_detection import *
if __name__=='__main__':
cap = cv.VideoCapture(CONST.VDO_PATH + 'dice_01.mp4')
while True:
ret, image = cap.read()
if image is None:
continue
# image = cv.resize(image,(0,0),fx=0.5,fy=0.5)
... | [
"supakit.kr@gmail.com"
] | supakit.kr@gmail.com |
9742c90e0453936c31dfa9a52658cbe850b93beb | 0e1eec1b43b0eea7af05dec1c377046a91ab7616 | /setup.py | df4613e535249989b8f0d81ffc2637861b9fd499 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zgababa/puke | b54ebcafd0f7c9f13f3e22dacb6eab2b0ef374e8 | 9428f08332035dac61fefe4866e8d50421c04bfd | refs/heads/master | 2021-01-17T21:29:21.926824 | 2013-05-21T00:11:51 | 2013-05-21T00:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
from setuptools import setup, find_packages
import sys, os
import pkg_resources
major, minor = sys.version_info[:2]
if major < 2 and minor < 6:
raise Exception("Puke requires Python 2.6")
import logging
setup(
name = "puke",
version = "1.5.20",
packages... | [
"e.tabard@gmail.com"
] | e.tabard@gmail.com |
d7df6a4d66ed2fa92ca477942ec9176c1f23591a | f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616 | /lux/extensions/odm/mapper.py | ef04cc0a9b43586b1fb4efb156df2f1e77bd748a | [
"BSD-3-Clause"
] | permissive | SirZazu/lux | 75fe9fde4ddaee1c9c17e55c6e6d07a289ea2f5b | d647c34d11d1172d40e16b6afaba4ee67950fb5a | refs/heads/master | 2021-01-21T19:40:46.536485 | 2015-06-02T16:30:18 | 2015-06-02T16:30:18 | 36,931,033 | 0 | 3 | null | 2015-10-09T14:08:26 | 2015-06-05T12:15:21 | Python | UTF-8 | Python | false | false | 11,508 | py | import re
import os
import logging
from copy import copy
from contextlib import contextmanager
from inspect import ismodule
from importlib import import_module
from itertools import chain
from sqlalchemy import MetaData, Table, inspect, event, exc
from sqlalchemy.engine import create_engine
from sqlalchemy.ext.declara... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
c345b0531b13c7d148425261eb95e192498d8921 | 21488828191cbd9aa42791d1ab557b826f9bdb29 | /node_modules/uws/build/config.gypi | a50453f820eb5557210f87a54b3f018fca8b7f1d | [
"Zlib",
"MIT"
] | permissive | EricSong8612/menu | 26aa97234a5f6a282e487a8c2ead708134f646a8 | 8bce0babcd007ef424fef33fc59fc44c163a19ce | refs/heads/master | 2021-01-16T07:13:14.811401 | 2017-08-11T15:29:10 | 2017-08-11T15:29:10 | 99,977,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,882 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"js8612@nyu.edu"
] | js8612@nyu.edu |
0a5e3662691892d6bd7a535f5db74ef43571e670 | e9a9f795ae460dca5837facd73a854945d85e2e2 | /src/lib/count.py | edf2ec217dcabf55fab918cfae097b5204af18d0 | [
"Apache-2.0"
] | permissive | spongeb0b724/superl-url | c0dcc42857b3e82129c93987defe8cc92c591c05 | 42934e941f05eab3c7c31514157b94d70b437c8c | refs/heads/master | 2020-03-12T20:36:18.729683 | 2018-04-03T09:20:56 | 2018-04-03T09:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # -*- coding: utf-8 -*-
# Project = https://github.com/super-l/search-url.git
# Author = superl
# Blog = www.superl.org QQ:86717375
# Team = Code Security Team(C.S.T) | 铭剑创鼎
class SupCount():
all_totals = 0
all_checked_totals = 0
all_filter_totals = 0
all_delete_totals = 0
| [
"superl@0xcode.org"
] | superl@0xcode.org |
78299487affb1d72f08ac00fb8585935f8fa1a0c | 5af19625143ee8732b09541f4f84169cfa58bf0f | /10-23-19/forloop_nested.py | 9f8e2f8f234fd89328da8fdfcc958c2cd7038a75 | [] | no_license | markymauro13/CSIT104_05FA19 | 1ffef1643d0e5908128b75783ffbd7dc735cd060 | f65f5205730fc7890edb5fa7e174a4ab897f9f7f | refs/heads/master | 2020-07-28T07:05:55.293496 | 2019-12-11T15:37:19 | 2019-12-11T15:37:19 | 209,346,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | for i in range(1,5):
j = 0
while j < i:
print(j, end = '')
j += 1
| [
"noreply@github.com"
] | markymauro13.noreply@github.com |
99a04e93d0efdf9a383874eee21eb74616cb8109 | 30232fb6d21e037d73181bf89b1b938bd1bde8f5 | /BIKOD_01/line.py | 860676e8e6c383b8425ed75122c63d644dc24b86 | [] | no_license | flashgeomatics/Software_project | 3d1b58ce71fd3395a558eb593484cae51a683f5d | 7d8844845e8198d2b83452dd64dcc1ecd1f3c6bd | refs/heads/master | 2020-05-06T12:12:49.118441 | 2019-06-14T12:40:32 | 2019-06-14T12:40:32 | 180,108,923 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | #Importing the required packages
import geopandas as gpd
import pandas as pd
from bokeh.models import ColumnDataSource, LabelSet, Select
from bokeh.plotting import figure, show, output_file
from bokeh.tile_providers import get_provider, Vendors #bokeh version 1.1
#from bokeh.tile_providers import CARTODBPOSITRON ... | [
"noreply@github.com"
] | flashgeomatics.noreply@github.com |
bd0209b90473b52098a42dc9de3dc5869fe1ef18 | 7f57a990b390ddc05a9033a9414459a1a353e751 | /crawling/migrations/0007_auto_20201009_1313.py | 5c428fffacebee86c150832fe038eb4b29dd8c4c | [] | no_license | acardiav/telegram_chatbot | 18f360b3e3ccef44f2290e16fd0bab866d67f304 | 1f3e64381a0ac2803060b85ac41f9bb22bda3ca5 | refs/heads/master | 2023-01-01T20:56:55.640272 | 2020-10-22T01:35:32 | 2020-10-22T01:35:32 | 305,295,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.0.10 on 2020-10-09 04:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crawling', '0006_merge_20201009_1259'),
]
operations = [
migrations.AlterModelTable(
name='post',
table='test',
),
... | [
"acardiav@gmail.com"
] | acardiav@gmail.com |
04c328687a8499e092c28512e12f5cd8237575e3 | 4a971163f1b3ed376913825a8e85bfd7122a16e2 | /forum/migrations/0019_auto_20210416_1137.py | 97d6cf54e0941d53aa7a417a0dbb1944349210a5 | [] | no_license | kifahnaim/djangoAimarena | a314b77e95b86290274721f95af8a036025447d3 | 0961afa7f8df1a15a9af22b04f908dbde4f880c3 | refs/heads/main | 2023-04-28T04:52:33.144912 | 2021-05-15T06:48:11 | 2021-05-15T06:48:11 | 367,449,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # Generated by Django 3.0.5 on 2021-04-16 11:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0018_auto_20210416_1136'),
]
operations = [
migrations.RemoveField(
model_name='topic',
name='accepted_visi... | [
"naimkifah@gmail.com"
] | naimkifah@gmail.com |
7c7042124f67b3df6bb20cbc607c2758baf785d8 | 35db584864327388aa40a2ad0c7333ae34233446 | /esp32/micropython/uftpd.py | 289cc82c80234f486e16ff51545eab3f84ed2312 | [] | no_license | emard/ulx3s-bin | 7b7d3b61961bcf919671fa3eb7674a9410cd3f1d | 2a40f50e0142f2b2856bf0a7471a8741881ec427 | refs/heads/master | 2022-05-31T01:50:50.577033 | 2022-04-19T16:07:00 | 2022-04-19T16:07:00 | 124,758,000 | 24 | 8 | null | 2022-04-12T17:45:54 | 2018-03-11T13:14:35 | Python | UTF-8 | Python | false | false | 18,999 | py | #
# Small ftp server for ESP8266 Micropython
# Based on the work of chrisgp - Christopher Popp and pfalcon - Paul Sokolovsky
#
# The server accepts passive mode only. It runs in background.
# Start the server with:
#
# import uftpd
# uftpd.start([port = 21][, verbose = level])
#
# port is the port number (default 21)
#... | [
"vordah@gmail.com"
] | vordah@gmail.com |
75a1c7bfd7129ce55f5eba80d259be9cc3f58c32 | d4cd2476f8fa8a7d94e183a68bd0678971310c5b | /checkio/05_Alice_in_Wonderland/01_Alice_05_DigitDoublets.py | 93be0ef309f0753e3758c5c296e1049c4e7b3414 | [] | no_license | gwqw/LessonsSolution | b495579f6d5b483c30d290bfa8ef0a2e29515985 | 0b841b1ae8867890fe06a5f0dcee63db9a3319a3 | refs/heads/master | 2020-07-05T19:15:53.758725 | 2019-10-01T11:34:44 | 2019-10-01T11:34:44 | 202,744,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # check if nums differs only by one digit
def isOneDiff(n1, n2):
n1 = str(n1)
n2 = str(n2)
diffcount = 0
for i in range(len(n1)):
if n1[i] != n2[i]: diffcount += 1
if diffcount > 1: return False
return (diffcount == 1)
# find next nums in list
def findnext(numbers):
first_nu... | [
"="
] | = |
bf7d221c249a3241ed1caec79c3c80e33dfe5221 | 35fb414cc9f5c408dc5d2c8316a5b6e4de3ccf22 | /test/templates/analyze_2l_2tau_cfg.py | 569b94fbe3d5ab083963e3c54bb48fe7dbaef4c9 | [] | no_license | kartikmaurya/tth-htt | abf1abafc9335da9687938f8588550a86631f751 | 8486aa6f33085a7b2d665e9215b828970f6ee8a7 | refs/heads/master | 2020-05-05T02:09:31.876729 | 2019-04-05T06:54:50 | 2019-04-05T06:54:50 | 177,517,377 | 0 | 0 | null | 2019-03-25T05:01:21 | 2019-03-25T05:01:21 | null | UTF-8 | Python | false | false | 4,412 | py | import FWCore.ParameterSet.Config as cms
import os
from tthAnalysis.HiggsToTauTau.configs.recommendedMEtFilters_cfi import *
from tthAnalysis.HiggsToTauTau.configs.EvtYieldHistManager_cfi import *
process = cms.PSet()
process.fwliteInput = cms.PSet(
fileNames = cms.vstring(),
maxEvents = cms.int32(-1),
o... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
bb86bd392aeaae885574fab7e2cc24a1371fecd2 | b7dc9efcbc9a2bbec3020effb9236d66282d020c | /roboticarm/__init__.py | 188134e55956717996d540ae2e459a8150ff8ff3 | [] | no_license | skarkalas/roboticarm | 3abd157f36409a24311616ce92f70fbbe9203f4f | ce8884bf25541a005f582cf19da81c0494eb85ac | refs/heads/master | 2021-01-16T20:07:03.282072 | 2017-08-19T11:58:58 | 2017-08-19T11:58:58 | 100,196,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from roboarm import RoboArm
from wiimote import Wiimote
| [
"sokratis.karkalas@gmail.com"
] | sokratis.karkalas@gmail.com |
8768faa5431569743e0a31b1002db656d70a142c | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /shared-data/python/tests/errors/__init__.py | 8b858a24b392381b87b32f4c5db9f32be4fbee49 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 43 | py | """Tests for shared-data global errors."""
| [
"noreply@github.com"
] | Opentrons.noreply@github.com |
6f463313a068c75251f01e1d44480afd5b84827e | aa2533eb375d06f6b73aaff0fac6bacbdcaab458 | /src/conf.py | e3adda167afe1c0f3ab5359391d8db9b05b89d2b | [] | no_license | Rain0193/automonkey | 1f08afd6b353ec4307ed34909fd45de3debc6819 | 32168429cf771964dbcaae735611893c134a5a95 | refs/heads/master | 2021-08-11T08:38:59.214392 | 2017-11-13T12:26:19 | 2017-11-13T12:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | #!/usr/bin/evn python
# -*- coding:utf-8 -*-
# @author: zhangzhao_lenovo@126.com
# @date: 20161005
# @version: 1.0.0.1009
import yaml
import os,platform
def dictinsertdict(dicta,dictb):
for k, v in dicta.items():
x = dictb.get(k)
if not x:
dictb[k] = v
else:
if isin... | [
"zhangzhao_lenovo@126.com"
] | zhangzhao_lenovo@126.com |
93dc5c3a9db14864da78ac12366778f18d0c1263 | b289a5076e06a24064526569086644f6383587c4 | /projetofinanceiro/appfinanceiro/apps.py | 1fec721d51e98309f6b4f627541b2729ccc1f5a5 | [] | no_license | Rubensrvsc/Programacao-WEB | d2eb36d7364736fdb93981b549e139d79e048310 | e38f3a809a0aa244f32f053ed9aa45c7e8586b5e | refs/heads/master | 2020-03-29T12:59:25.098325 | 2019-01-02T19:49:42 | 2019-01-02T19:49:42 | 149,933,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class AppfinanceiroConfig(AppConfig):
name = 'appfinanceiro'
| [
"Rubensspfc100@gmail.com"
] | Rubensspfc100@gmail.com |
0c97b72236200ab4983b904865a9cc78a9c4a3bd | 295b94e0e1be3ddf1d17d5c7c8fc899bf8385d63 | /Generator/models.py | 33ea404ba75168144ff5db7eabcdfd3dc6f8377f | [] | no_license | NavenAllen/Question-Banks-Generator | 4e4b235cd451798a4401e2010d14d95939f81961 | 97841c39a1fc5ecd4e8e573eb2b9cbd909ce5a5f | refs/heads/master | 2020-03-08T03:17:41.830076 | 2018-04-11T20:38:49 | 2018-04-11T20:38:49 | 127,886,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.db import models
from django.forms import ModelForm
class Upload(models.Model):
pic = models.FileField(upload_to="images/")
upload_date=models.DateTimeField(auto_now_add =True)
# FileUpload form class.
class UploadForm(ModelForm):
class Meta:
model = Upload
fields = ('pic',... | [
"naven1999@gmail.com"
] | naven1999@gmail.com |
b697db6e2804c02c3b53e43792ba5bb8a54a21a6 | a031b08f2477dd1696ffa955ac99b869c56ad623 | /ex7/ex7.py | 11ad52d99efadfd558106c02c0d6ed009af64eba | [] | no_license | jkw224/PythonExercises | bf356f1a0ad3a0ccc2059943e4d45879d2e8b876 | 9d953b14ab6d93f81411fde41cdac6c2c0c6f84d | refs/heads/master | 2021-01-25T06:05:58.041690 | 2015-01-21T23:18:33 | 2015-01-21T23:18:33 | 28,823,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | city_temp = {
"Boston": "0 C",
"Boise": "48 F",
"Phoenix": "85 F",
"Miami": "40 C",
"Riverside": "30 C",
"Baltimore": "32 F"
}
for key, value in city_temp.items():
val = int(value[:-2])
if value[-1] == ("F" or "f"):
print("In %s it is %s degrees Fahrenheit\n\twhich is equivalent... | [
"jonathankimballwood@gmail.com"
] | jonathankimballwood@gmail.com |
62cca5b8ca0a33c7f2733ab7f0ba980c10fd57d2 | 236d6f9896d6e39ee72015d957204cc7de0f2e44 | /weather.py | 8b1463709547a5fb98ef113396a87468a6387d01 | [] | no_license | codeasylums-bootcamp/bazinga_ML_winter19 | c3b26a3e544631c42eff5eec9c3462520209680d | 6134aed1b84306292bf5239c683ac0778b6a9917 | refs/heads/master | 2020-11-24T09:32:30.133380 | 2020-01-12T04:33:29 | 2020-01-12T04:33:29 | 228,081,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/bin/python3
import subprocess
import sys
place=input("What place?\n")
place="wttr.in/"+place
subprocess.call(["curl",str(place)])
| [
"mdtngr@gmail.com"
] | mdtngr@gmail.com |
64105f427369003eb4056a2e87bd1dab94884668 | 8fea1939599995000b87f3c192244b8a00b168c9 | /python/shangwubu/shangwubu/spiders/shangwubu_news.py | 5b3fb351dddb29e25b5794097b87a4893b8f96b6 | [] | no_license | syd359/nlpwidg | 3d177dbfd61b71cb897af7d9c3e3686c64885672 | d7e8647d35b800003c10c74ab72114613baaebd0 | refs/heads/master | 2020-03-17T14:32:08.492487 | 2018-05-19T10:37:24 | 2018-05-19T10:37:24 | 133,675,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import scrapy
import re
from shangwubu.items import ShangwubuItem
from robobrowser import RoboBrowser
import jieba
class ShangwubuSpider(scrapy.Spider):
name = "shangwubu_news"
start_urls = [
'http://www.mofcom.gov.cn/article/ae/ai/?'
]
allowed_domains = [
'mofcom.gov.cn'
... | [
"siyudong359@gmail.com"
] | siyudong359@gmail.com |
b3e461cea550883ae63c8977bc70ae4e86235418 | 68f04ff1df8dc61636db7a015b752e313ca21dfa | /PythonBootCamp/selectionsort.py | 00ed457b6e9b914bf79412dade261b4d646b1fe8 | [] | no_license | himanshusoni30/PythonProjects | 5497352055aaf53b5ebda2c98651a6a5763ef496 | 239130a97d74596e3a4ca4c3566ee2b0156f7418 | refs/heads/master | 2022-12-20T00:13:17.585447 | 2020-09-18T19:11:38 | 2020-09-18T19:11:38 | 296,708,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | '''Selection Sort in arrays (list)'''
def sortAscending(arr):
for i in range(0,len(arr)-1):
for j in range(i,len(arr)):
if arr[i] > arr[j]:
arr[i] = arr[i] + arr[j]
arr[j] = arr[i] - arr[j]
arr[i] = arr[i] - arr[j]
# return arr
def sortDescending(arr):
for i in range(0,len(arr)-1):
for j in rang... | [
"eng.sonihimanshu@gmail.com"
] | eng.sonihimanshu@gmail.com |
11c43d634df186462fbdd367e52b5f01578ff910 | b3f7b53a6c0f9abb4b5947f490abc962855eedd8 | /member/migrations/0001_initial.py | 359549a906d1ec930c565b02715f9b4bff3a8519 | [] | no_license | 17611165193/shiqing | e43dfd9640451e83fa4fc0d0c056a04746720766 | e4f8949f9c8b8578d21106da647524d091827484 | refs/heads/master | 2022-12-12T18:12:26.312807 | 2018-09-18T06:44:20 | 2018-09-18T06:44:20 | 149,234,968 | 0 | 0 | null | 2022-12-08T02:48:14 | 2018-09-18T05:44:13 | Python | UTF-8 | Python | false | false | 933 | py | # Generated by Django 2.1 on 2018-09-07 06:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Member',
fields=[
('id', models.AutoField(aut... | [
"liuwei19990123@163.com"
] | liuwei19990123@163.com |
907f0883fb7e553f80b705bb6e6439ed7eea2d00 | 729a6ad8e10d70ae9c291304e6bcb291ff5ba93e | /toytree/utils.py | 4a18e59bcd86169a0ab3d6496797d913e0b698e1 | [
"BSD-3-Clause"
] | permissive | PhilippineDubertrand/toytree | 3774e2cfdd96f3bd8e6be328232fc61f2d711a98 | cdb57fae164f0035dc5f451e08289780deae927a | refs/heads/master | 2022-11-20T01:41:45.088289 | 2020-06-29T16:21:47 | 2020-06-29T16:21:47 | 274,166,890 | 0 | 0 | BSD-3-Clause | 2020-06-22T14:56:25 | 2020-06-22T14:56:25 | null | UTF-8 | Python | false | false | 10,195 | py | #!/usr/bin/env python
from __future__ import print_function, division, absolute_import
import re
from copy import deepcopy
import numpy as np
#######################################################
# Exception Classes
#######################################################
class ToytreeError(Exception):
def __... | [
"de2356@columbia.edu"
] | de2356@columbia.edu |
84819ead29e0e12b987c520793c6c80fa0b7672d | c3ac9ba8f24be1bf067a77c5bc940702e7b330b6 | /Tutorials/search/biniry_search.py | 2547db5abc528666c3ac503296ac8e476cd00b19 | [] | no_license | Cwinka/tutorials | 6a195d18ca46dd85ca7370fdf56c9670e5bf07f5 | f170d9e708b55ae4d439f208ed8d32ae0889c11b | refs/heads/main | 2023-06-01T23:58:56.975015 | 2021-06-20T15:26:24 | 2021-06-20T15:26:24 | 378,677,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | import time
def biniry_search(lys, target):
if len(lys) < 1:
return -1
mid_idx = (len(lys)-1)//2
mid_val = lys[mid_idx]
if target == mid_val:
return mid_idx
elif target < mid_val:
return biniry_search(lys[:mid_idx], target)
else:
right = biniry_search(lys[mid_idx... | [
"nikita00zorinnn@mail.ru"
] | nikita00zorinnn@mail.ru |
c47123eb1d1b70624bb34e5b9652c9cf7a8dd2ec | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN10-M-123.py | 0c1eae41abe8c8c3d571897a3c84d3a0b0442dcb | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | otroci = {
"Adam": ["Matjaž", "Cilka", "Daniel"],
"Aleksander": [],
"Alenka": [],
"Barbara": [],
"Cilka": [],
"Daniel": ["Elizabeta", "Hans"],
"Erik": [],
"Elizabeta": ["Ludvik", "Jurij", "Barbara"],
"Franc": [],
"Herman": ["Margareta"],
"Hans": ["Herman", "Erik"],... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
1822d5fc228ac04a9323438fa13bf038e43faa55 | e1ae9b76b2eb79952d822753cdd17081a64a2986 | /codefights/Arcade/Intro/commonCharacterCount.py | c5e83f5e2dded915fcf764dd694ae6a657095dbd | [] | no_license | raffyenriquez/CodingPractice | f477abf33236f6df2f1374c553aa5bb21cdc97ee | bb74987aa763e8eaf4cd32f5f988c615c03b816a | refs/heads/master | 2021-05-05T10:43:51.352249 | 2018-02-15T08:01:37 | 2018-02-15T08:01:37 | 118,079,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def commonCharacterCount(s1, s2):
"""returns number of common characters between two strings"""
return sum(min(s1.count(x),s2.count(x)) for x in set(s1))
| [
"noreply@github.com"
] | raffyenriquez.noreply@github.com |
51fe943b78b5a69eb3896de554aac6b22b32623a | 2e6b15509a4487241f5734346e8ac9173c958c99 | /apps/bibliocratie/views.py | cde73421a81a77498301244443cd413a3edf799f | [] | no_license | Bibliocratie/Bibliocratie | 9dd47ab105eb7e0dfb2566b307ad8bfd66b1aad5 | b66347ced05dc7821e721fd3d05d619791e4d543 | refs/heads/master | 2020-06-05T08:07:19.298421 | 2015-07-27T16:03:34 | 2015-07-27T16:03:34 | 39,377,060 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,820 | py | # -*- coding: utf-8 -*-
import json
from django.utils.translation import ugettext_lazy as _
from django.utils.datastructures import MultiValueDictKeyError
from django.http import Http404
from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.views import redirect_to_login
fr... | [
"B@MacBook-Air-de-B.local"
] | B@MacBook-Air-de-B.local |
6c7157b662729c66c8f8593e3a2c69535e9dae21 | c8ccd397675e038bdd2c28025b6f2c53ed0b296a | /web/apps/main/models/__init__.py | afa9e3c4b2cf34c204f4c33b941de848152d0886 | [] | no_license | gharghi/amnava | dd7dcffc589a493471daf95809d7b6b892c11b39 | df9a2cd8cdb11f6b06edb3ada5c2dfff8738af77 | refs/heads/master | 2020-06-23T01:39:56.122388 | 2019-07-23T15:54:31 | 2019-07-23T15:54:31 | 198,462,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from .asn import Asn
from .prefix import Prefix
from .route_object import RouteObject
from .dump import Dump
from .neighbors import Neighbors
from .origins import Origins
from .notifications import Notifications
from .notification_rule import NotificationRule | [
"shahin@asiatech.ir"
] | shahin@asiatech.ir |
a430b405c518f5492c4bfcf40ae484ae3432d216 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s417415114.py | ddebb487f588173570c9610c70cadb46a063199e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | from sys import exit
import copy
#import numpy as np
#from collections import deque
d, = map(int, input().split())
c= list(map(int, input().split()))
s=[list(map(int, input().split())) for _ in range(d)]
# t=[int(input()) for _ in range(d)]
sche=[0 for _ in range(d)]
s_tmp=float("inf")*(-1)
for off in range(0,13):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a8e411a0029259b2ad6f383769c868249ccc8975 | bc4a22787f5c0ab51512eee550776bb71c32eb81 | /forloop.py | 6669e5356706f9c4588f28c7942e80759fa6087f | [] | no_license | passarovertical/python | 874d6928adf0db32bde49e9892085228770a4d50 | 3b3750a02b67abe60b6c8396489ec87d33c5bbdd | refs/heads/master | 2021-09-29T00:55:34.534659 | 2018-11-22T01:15:55 | 2018-11-22T01:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | nomes = ['Jim', 'Karen', 'Kevin']
len(nomes)
for name in range(len(nomes)):
print(name)
# Pode-se usar for loops para continuar um loop sobre todo
# coleção, como str, array, por exemplo. | [
"lucas.bsilva1@gmail.com"
] | lucas.bsilva1@gmail.com |
0a445d67b18dc157da950a170a893bcfb3bb2412 | 9896b6b629642fbc8c441c9a81bc24809e2686ef | /DjangoProject/settings.py | b70569b83f3ef26f58fe95507430f0935e943380 | [] | no_license | mamthal/Peg-a-Page | dfdf9bbf516ca86e7d11db1714f585073ef71f10 | 27983da85d49a5b1ba788d61944ebd816cbaa373 | refs/heads/master | 2020-12-03T05:32:38.541497 | 2013-11-14T23:52:50 | 2013-11-14T23:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,600 | py | # Django settings for DjangoProject project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'... | [
"pallavikhandekar212@gmail.com"
] | pallavikhandekar212@gmail.com |
3bbab7120ebc507559f7d36009c79eedecf43fed | b4b796d863bcf5b9e8617dc2566bd5418c0a7737 | /py/50.Pow(x,n).py | 6f3c09f7df1574c285f5df2047963340b2c29871 | [] | no_license | NidhoggZe/LeetCode | a02e323ffdbc660f43a148fd7219ecf8dc2bff95 | 0ae2e9fac6692f76b71f929154ba72c31d2c2bfd | refs/heads/master | 2023-01-13T04:55:47.911464 | 2020-11-11T12:16:06 | 2020-11-11T12:16:06 | 311,876,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class Solution:
def myPow(self, x: float, n: int) -> float:
ans = 1.0
if n < 0:
x = 1/x
n = -n
while n != 0:
if n & 1:
ans *= x
n //= 2
x *= x
return ans | [
"397257341@qq.com"
] | 397257341@qq.com |
f69994566964aeb6a5c7f505a52d19451b40b25f | fdcf47f556e2c520ee60d05ff0acffd4826b30e0 | /mydatabase.py | 0714019eb99d3713dca7aec50cade3c9a1427f12 | [] | no_license | Carlos20040301/Cine | a1e13bf361fab62338cd11693a9dac5d33bf4aa9 | acbcb5e8cf2abbaa541d2175d4afc5fcbbd9efd6 | refs/heads/master | 2023-04-22T04:36:34.774482 | 2021-05-05T22:15:32 | 2021-05-05T22:15:32 | 364,600,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import mysql.connector
class RedSocialDb:
def open_conecction():
connection=mysql.connector.connect(host="localhost",
user="root",
password="",
database="db_red_social")
... | [
"carlosecastro04@gmail.com"
] | carlosecastro04@gmail.com |
700521073b1e9083df2d03d4121f4e79d1fc9e92 | 81d19801555ff279b42902ed61b32bf42151f5b9 | /tuio/__init__.py | 4c6f3fde078b58235be17c1c3167d8458e38a301 | [] | no_license | midorinashi/CS402-Final-Project | ed507a70c79326cbbe5e66163bd27f6621ef54db | a3961ee5325edd6518f2508eb0c084ccc1c9b3e4 | refs/heads/master | 2021-04-28T01:25:52.892988 | 2018-06-08T22:56:52 | 2018-06-08T22:56:52 | 122,277,421 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | # -*- coding: utf-8 -*-
"""A Python library that understands the TUIO protocol"""
__author__ = "Jannis Leidel"
__version__ = "0.1"
__copyright__ = "Copyright (c) 2007-2008 Jannis Leidel"
__license__ = "MIT"
__url__ = "http://code.google.com/p/pytuio/"
import os
import sys
import math
import socket
import... | [
"traceylin@dn51vc9b.sunet"
] | traceylin@dn51vc9b.sunet |
3c576dc8b9848f179717809fc14cf28926a954cf | 68ab3ac9edc686dfdbd57132c97f5d832984c803 | /faceinsight/io/pubdataloader.py | d2db19f12508f6edb8e49b462ad97d9346c8ffa1 | [] | no_license | sealhuang/FaceInsight | a838b361fce5da2707642af0b2a25f9cdbd6f1c7 | 62db5e521550c56707dcb6813cbd68481bd6a96b | refs/heads/master | 2023-08-02T12:48:20.917956 | 2021-10-09T06:41:39 | 2021-10-09T06:41:39 | 181,633,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # vi: set ft=python sts=4 ts=4 sw=4 et:
"""Dataset utils for loading public dataset."""
from __future__ import absolute_import
from __future__ import print_function
import os
import numpy as np
from PIL import Image
def get_lfw_val_pair(pair_file, img_dir):
"""Get LFW data for validation."""
pair_info = ope... | [
"huanglijie@outlook.com"
] | huanglijie@outlook.com |
54d67ca0b0275a672a8ac8402fe331de48c258e1 | f827fd7699ffa5b59ec8c472a63ee317d78ec9a5 | /gui/Panduit_GUI/Tab_Verify.py | ebcd3b368acfe9be5dd3e7dffce0005d2327e26b | [] | no_license | cissuppandi/alruba | a2e8106329ff29d220d8431ba84f88191266d28c | 2410d5e8f2328cf86d7f3c91304046b9a17ee12d | refs/heads/master | 2020-04-01T09:33:53.085099 | 2018-10-23T10:29:21 | 2018-10-23T10:29:21 | 153,080,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | import Login
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
import time
import sys
import datetime
import os
import getpass
import File_Creation
def tab_verification(ip):
#######GETTING THE TAB FROM HOME ICON######
... | [
"44084946+cissuppandi@users.noreply.github.com"
] | 44084946+cissuppandi@users.noreply.github.com |
daf0dae020d433fa831bceb033eab239d48c9455 | c7a849ccc87cd3922c930df74b3e2c693cff9eb0 | /chemvae/train_vae.py | b74184c4f9d1859f147fe174a457d15aa7c4cab7 | [
"Apache-2.0"
] | permissive | dung98pt/chemical_vae-branch | f82990df25d25bc25f35d60be248b5cabcb39a69 | a1d64ad9177902eff8903bf74f6c2cc1251ef333 | refs/heads/master | 2023-04-03T00:17:27.368193 | 2019-11-08T12:23:12 | 2019-11-08T12:23:12 | 219,891,713 | 0 | 0 | Apache-2.0 | 2023-03-24T21:55:11 | 2019-11-06T02:08:15 | Python | UTF-8 | Python | false | false | 12,431 | py | """
This version of autoencoder is able to save weights and load weights for the
encoder and decoder portions of the network
"""
# from gpu_utils import pick_gpu_lowest_memory
# gpu_free_number = str(pick_gpu_lowest_memory())
#
# import os
# os.environ['CUDA_VISIBLE_DEVICES'] = '{}'.format(gpu_free_number)
import a... | [
"dung98pt@gmail.com"
] | dung98pt@gmail.com |
369ca60c846b387a15196df4ced3a3e9b73e48bb | 683b6d8539721cc09da159226cc8d656b6655467 | /botshop/wsgi.py | 2fcf9970a21445676a4a74fad9fbeba125351ae3 | [
"MIT"
] | permissive | hiletroy/BotShop | 9afcce1b51b53fc8bc9327afb711b67f8fefb501 | 9bbc8cd2d6789a04b38984ac92e3d9d1877f430f | refs/heads/master | 2022-12-09T12:56:06.218398 | 2020-01-17T05:07:08 | 2020-01-17T05:07:08 | 86,826,281 | 0 | 0 | null | 2022-01-06T22:24:20 | 2017-03-31T14:11:12 | Python | UTF-8 | Python | false | false | 483 | py | """
WSGI config for botshop 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
from whitenoise.django import Djang... | [
"alexey.bavykin@gmail.com"
] | alexey.bavykin@gmail.com |
4aa6b906dd40411d628bb4b7b011f06c7e98e353 | 4fda3bb30e5612ba006abb31924084e4290de136 | /Conditional_DCGANs/conditional_gans.py | 0b6dda451f4fa2a6492114ba3f16ec92e2cc2f1b | [] | no_license | dbasso98/GANs | ed3901aace99a3fddbf78fe9e97ae69eb2af3d78 | 40dcafd00d2fb5510573de7d3a866dfdd0062da7 | refs/heads/main | 2023-07-30T05:33:55.876663 | 2021-10-05T08:54:06 | 2021-10-05T08:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,003 | py | import argparse
import os
import numpy as np
import math
import torchvision
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.data import DataLoader
from torchvision import datasets
import torch
import torch.nn as nn
from torch.backends import cudnn
from torch import ... | [
"noreply@github.com"
] | dbasso98.noreply@github.com |
e712ac004c472f06084a23769197fbe9c9c1722a | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/DeleteConnectionRequest.py | 9a4d962fc099ab8a8094f136d5551e069631099c | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,474 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
361c70e5469002886a8f75d036416aa07b316719 | 4e187da441d9788cab323add85d7ab8253dd3438 | /python2.7/chapter_6/test_server/addressesapp/migrations/0001_initial.py | d41244950c24e05e1950bc8b861a2bb412e7fdb9 | [] | no_license | ai2010/machine_learning_for_the_web | 7b506efcd8abb2e0a727e6d02b583ee741433042 | dcca7c3028b6b6af57cffdce9c4f916114c06f94 | refs/heads/master | 2023-07-25T12:56:47.132336 | 2022-03-31T13:42:45 | 2022-03-31T13:42:45 | 57,253,576 | 75 | 82 | null | 2023-07-06T21:40:19 | 2016-04-27T22:41:48 | Python | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(verbo... | [
"ciccibolli@gmail.com"
] | ciccibolli@gmail.com |
2aac061975d168ee79510acb3399664ff62f5e16 | ebd00c8cb67a3597e6caedb690dfac3e5599796d | /translations/italiano/0.4.3/vegastrike-data.spec | d8b29228d682bf738a707e0393f3c1bd34da595a | [] | no_license | DMJC/vsengine | aef694057df00e925cd5d54a1bd4d9e0026f31c5 | d7314c38bcf9d164b49477beffb86217dd654d34 | refs/heads/master | 2020-06-25T11:46:16.708539 | 2018-07-01T18:12:30 | 2018-07-01T18:12:30 | 74,533,112 | 2 | 0 | null | null | null | null | MacCentralEurope | Python | false | false | 2,939 | spec | Nome: vegastrike-data
Contenuto: Vegastrike - un simulatore spaziale 3d opensource(data files)
Versione: 0.4.1D
Release: 1
Copyright: GPL
Categoria: Amusements/Games
Sorgenti: vegastrike-data.tar.gz
URL: http://vegastrike.sourceforge.net
Creatore pacchetto: Krister Kjelltröm aka Starchild <k00_kjr@k.kth.se>
C... | [
"james@James-Work"
] | james@James-Work |
47d989387223d5588151d939827027b00f77b308 | 42683813d6fcb6df11d24e851d411633ab200a67 | /regression/__init__.py | 27bcac306ec8a347d6571a77521ca9c03efc5f76 | [
"MIT"
] | permissive | sahitpj/machine-learning | aa1ac76ee31615872e0a9ae1c9c41e0be59a5423 | 2ce5a337ec432daff64a216df6847ef834bcb8d7 | refs/heads/master | 2020-04-16T10:30:42.873896 | 2019-04-22T14:47:54 | 2019-04-22T14:47:54 | 165,506,786 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from .linear_np import normalEquationRegression, gradientDescentRegression, gradientDescentAutogradRegression
from .linear_torch import TorchNormalEquationRegression, TorchGradientDescentRegression, TorchGradientDescentAutogradRegression
from .cordinate import coordinateDescent
from .lasso import coordinateDescentLASSO... | [
"jayakrishna.sahit@iitgn.ac.in"
] | jayakrishna.sahit@iitgn.ac.in |
f062f548ac52051b7be211f4aa05d7693fe355a0 | 7b0e2d6061e267fd2d9d8bec0bc76b9571684265 | /programmers_kdt_II_1-week5-/programmers_kdt_II_1-week5-/Monthly_proj/Monthly_Proj1/show/show/settings.py | 05b7384c8bcace74523c6cc6d25738ee2e86d90e | [] | no_license | wkdclrms123/KDT | c214d04ee7fd49635f36c2c45923f00aba2d2a97 | 00ca956a36c13b6a0d69a7966714d8100ced305b | refs/heads/main | 2023-05-07T03:05:09.365192 | 2021-05-31T06:40:17 | 2021-05-31T06:40:17 | 372,407,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | """
Django settings for show project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from ... | [
"wkdclrms123@naver.com"
] | wkdclrms123@naver.com |
0ee4ccbc23fc537b520fdb1b1ba7646da31fa8af | aa534dd11a258dca3b0ab6c0e49355891b046d90 | /.idea/Control_Statements/if.py | 1d9d4d76a2255cf8ff7c83e4f13d0c13c5674f60 | [] | no_license | Mrpool96/Python-2020 | b0650171b6d28b1ba7769158d8875dfe9a543d12 | 122b2fc12c1fcd862d53f94f9e30e541640fdc7d | refs/heads/master | 2023-01-03T21:30:35.306675 | 2020-11-01T09:26:16 | 2020-11-01T09:26:16 | 288,363,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | num=int(input("Enter the Number:-"))
if num<200:
print(num) | [
"53513296+Mrpool96@users.noreply.github.com"
] | 53513296+Mrpool96@users.noreply.github.com |
91cd296fa5741cfcebc94e7927b78d1ff38eebc5 | 030aadc06eba914dbc9f7e774d54cafd5acc0ae6 | /docker/wsgi_docker.py | 4f4d5ae871cf9698ce31dd779b010d807bd24fde | [] | no_license | torchbox/wagtail-template | 985047e917031cf033f61c0c2480870da430aa15 | 4c0cb34d28ccbc03a96ca9f1ff0499a3554ba5e6 | refs/heads/develop | 2016-09-06T14:55:28.078233 | 2015-08-11T12:03:08 | 2015-08-11T12:03:08 | 21,358,329 | 9 | 5 | null | 2015-05-06T09:29:53 | 2014-06-30T16:42:33 | Python | UTF-8 | Python | false | false | 124 | py | from whitenoise.django import DjangoWhiteNoise
from .wsgi import application
application = DjangoWhiteNoise(application)
| [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
14865293bb7ae0c559d8e3fd11d8c8fec9889319 | 40a3b9f93cb52d478845596610861a95ed12ef36 | /db.py | 1ed97d53760ae8765c1fe4f919bb7e33a4de8026 | [] | no_license | aoifebyrne/grader | 4653d8130c607f526c5ae61327272dc7dc935484 | 005d5d8a6c1c14a3ca0a93e5fc210ffbe9157f66 | refs/heads/master | 2021-01-11T18:03:10.947848 | 2017-01-24T15:49:43 | 2017-01-24T15:49:43 | 79,478,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,469 | py | # -*- coding: utf-8 -*-
db.define_table('course_person',
Field('course_id', requires=IS_IN_SET(['A1', 'A2', 'B1', 'B2', 'B3', 'M1', 'M2', 'M3', 'M4', 'H1', 'G1', 'C1','CS1', 'R1']), unique=True),
Field('person', 'reference auth_user'),
)
db.define_table('subject',
... | [
"noreply@github.com"
] | aoifebyrne.noreply@github.com |
fbfa67e13f4e3b582c3f527ca04a052856265881 | 2ebdf9ba60785636a130151ba89dba2b140c5c34 | /demo.py | 3b55281a87e7e56c16e4f786aa4ed1470fb6c565 | [] | no_license | xq222/yuanfeng | f62c0451c6142e09af68a20bbc280a7fb4dfb95e | 6714987e26f07f221d345c767307fc5e6d47631c | refs/heads/master | 2020-09-18T11:24:51.626775 | 2019-12-18T10:47:06 | 2019-12-18T10:47:06 | 217,978,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("http://yf.a99.live/")
driver.maximize_window()
driver.find_element_by_id("username").send_keys("18055779893")
driver.find_element_by_id("pwd").send_keys("123456789")
driver.find_element_by_xpath("/html/body/div/form/input[3]").click()
... | [
"995583710@qq.com"
] | 995583710@qq.com |
a71863966023b79206fa8aa368d5716c6ab02aae | 60cc8185187b584b78377d526cde7c1bee325db3 | /backend/generate.py | 1cfd4e20ca9a68c76b07279c47782ac09aa9020f | [] | no_license | sc1f/student-elections-explorer | da5d61d4c15b9cbd71f5dbc918aeec70d00b9a57 | 39b1ac42358dbbd50f29e123e45a6f84281ef165 | refs/heads/master | 2021-01-18T03:11:01.672984 | 2015-03-13T00:27:48 | 2015-03-13T00:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from flask_frozen import Freezer
import copytext
from application import app
import settings
def generate():
app.config['FREEZER_DESTINATION'] = settings.web_app_location
app.config['FREEZER_BASE_URL'] = settings.external_url
freezer = Freezer(app)
copy = copytext.Copy(settings.copy_sheet_location)
@freezer.re... | [
"mileshutson@utexas.edu"
] | mileshutson@utexas.edu |
f1a84740d0a5c3bf1ba1441ba380dc64176cbe97 | d7ad696cd1b550bb41d20f87b83c984ec7f19aa7 | /practice/design_pattern/03_abstract_factory/abstract_factory.py | 5fa712b16a1b0fb0cd9de79237fa18d370861894 | [] | no_license | mida-hub/hobby | 2947d10da7964d945e63d57b549c1dcb90ef7305 | 6e6f381e59fc2b0429fab36474d867aa3855af77 | refs/heads/master | 2022-12-21T23:33:14.857931 | 2022-12-19T16:30:34 | 2022-12-19T16:30:34 | 147,890,434 | 0 | 0 | null | 2021-03-20T04:31:58 | 2018-09-08T01:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 1,129 | py | # Abstract Factory
# abstract_factory.py
from abc import ABC, abstractmethod
class AbcItem(ABC):
def __init__(self, caption):
self.caption = caption
@abstractmethod
def make_html(self):
pass
class PageItem(AbcItem):
def __init__(self, title, author):
self.title = title
... | [
"rusuden0106@gmail.com"
] | rusuden0106@gmail.com |
3aad9a6ae36c97d0c6944d6c0ef7981fcbd7a0ee | 5a9cad0e55708a25aa77296fba867cd06bf80a20 | /day7/handy_haversacks_part2.py | d84c36a405f6852e4c124859b3013e317d073435 | [] | no_license | PlaybackSwede/advent-of-code-2020 | d10420eff54fe390e88fdaa72764b555c36d7d4b | 3c805715e0f3677ca55424ef709d82f8139a6f09 | refs/heads/master | 2023-02-13T17:06:50.951304 | 2020-12-19T22:51:39 | 2020-12-19T22:51:39 | 320,923,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import functools
#Define global index
bag_tree_index = {}
def recursive_bags_in_bag(bag_key):
bag_nbr_pairs = bag_tree_index[bag_key].items()
if len(bag_nbr_pairs) == 0:
return 1
nbr_bags = 0
for key, nbr in bag_nbr_pairs:
if len(bag_tree_index[key]) == 0:
nbr_bags += ... | [
"pontus.ovhagen@tidal.com"
] | pontus.ovhagen@tidal.com |
272f213f76b5bb604a5b11e9b98f8b174098e41b | 4112399d77c8cd8d699d5053017a55e27250268c | /food_picker/migrations/0001_initial.py | b87e4e3413359cbd115fd7771be5cc74ba09cec2 | [] | no_license | Bencabe/food_picker | 8d76be7b32cdbe09b69e3de5cfb63d7d998d389c | 923d5c0bbcc4df791cf06dab7fe9ea0a3366a204 | refs/heads/main | 2023-03-31T01:53:28.711706 | 2021-03-31T14:49:11 | 2021-03-31T14:49:11 | 339,167,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # Generated by Django 3.1.1 on 2021-02-15 18:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ingredient',
fields=[
('id', models.AutoFie... | [
"bencabe93@gmail.com"
] | bencabe93@gmail.com |
5287b4ef9ff7aa1f39aee1ce5d077e70afdb737e | cd0d86966c57e6883e7c2e000802a67122d0192a | /src/agents/random_agent.py | 3e25f4118e3d27d785903b0cf2265a916dd801e6 | [
"MIT"
] | permissive | Mithrandir2k18/seminar-paper-learning-via-competition | ff365677846680b249270bb6e70c99fb0db54d70 | e081f6ba89b8c3c50da218060dcd1ec0107e2dc0 | refs/heads/master | 2023-04-05T14:47:09.859776 | 2021-03-31T04:47:52 | 2021-03-31T04:47:52 | 353,218,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from typing import List
from environments.environment_abc import Action, State
from agents.agent_abc import Agent
import random
class RandomAgent(Agent):
def __init__(self,
player_id: int = -1,
agent_name: str = "RandomAgent"):
self.agent_name = agent_name
self.pl... | [
"alexander.zincke@gmail.com"
] | alexander.zincke@gmail.com |
bb48285834ee29beb7a898493b7d407dafdf7dd6 | 8c7a187ebfe858ff3f840602585d166b29fce576 | /appstore/regulate_underscores.py | db0232fa39df3b96f78c3dc29fa2e15e90914bc1 | [] | no_license | ohannes/pythonScripts | b756faa2e6d5314cb04c7afc0ca07f69027f59b2 | 5249b2735d8b2a9a2c6ad8a1ae625cb47f50d0b5 | refs/heads/master | 2020-04-06T04:20:29.565042 | 2015-07-19T17:40:39 | 2015-07-19T17:40:39 | 34,119,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
sys.path.append(os.environ["ohannes"])
from ohannes import *
input_file = getStrArg(1, 1)
output_file = input_file + ".regulated"
lines = getFileLines(input_file)
ftw = open(output_file, write_mode)
for line in lines:
sharp_found = False
equal_found = False
line_regulated = False
if not "=>" in line ... | [
"yasinyildiza@gmail.com"
] | yasinyildiza@gmail.com |
37761b569d22615d0f0e51e0a0b27f66188a80ce | aff732682d12192e163e18e57c4dbc832c81ffe7 | /week0/TwentyFortyEight_test.py | 5b758d3572a59a96ddadad5c8f85dad90eb1405d | [] | no_license | EarlMatthews/principlescomputing | 4ad0d0736bb1fe4468d60a56adfa4b5ec58f1d39 | 9ebf70815b512e79fa1ef8f7aafbbfee82632196 | refs/heads/master | 2021-01-22T01:10:24.816886 | 2014-07-19T15:30:03 | 2014-07-19T15:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | '''
A simple test for twentyfortyeight
'''
import poc_simpletest
from TwentyFortyEight import TwentyFortyEight
from TwentyFortyEight import DOWN, LEFT, RIGHT, UP
def merge_test(suite):
'''
Test method merge
'''
from TwentyFortyEight import merge
suite.run_test(str(merge([2, 0, 2, 4])), str(... | [
"honestmanxin@gmail.com"
] | honestmanxin@gmail.com |
a4430652ef1ea303385485cb2b86a2b526ff541a | d4e05a65f18865b47573359ea6865fe840e09c58 | /1225133-95.py | e8dd64d29edfc278f4a1df433e7c116b1debe534 | [] | no_license | ZlatanTheGreat/HelloZlatan | c5ed4bb60f1b521f73085982d948d51e538a7123 | f139a1365cfd6d18be70a75b93678ba74cbb4a34 | refs/heads/master | 2021-05-11T17:22:06.903054 | 2018-12-19T18:04:30 | 2018-12-19T18:04:30 | 117,795,044 | 0 | 0 | null | 2018-10-07T20:46:11 | 2018-01-17T06:33:43 | null | UTF-8 | Python | false | false | 427 | py | import math
class Circle:
def __init__(self, radius):
Circle.radius = radius
@classmethod
def circumference(cls, radius):
circumference = (2*radius) * math.pi
print(f"Circumference = {round(circumference)}")
@classmethod
def area(cls, radius):
area = m... | [
"noreply@github.com"
] | ZlatanTheGreat.noreply@github.com |
592b00cfa6ac75662cbf56700da1692c4c8168b9 | 844e548c362184da0def9a0fe736c8c68b5d4893 | /venv/bin/wheel | ddbcc54161b3adc60b5a780ea889c92d702041a8 | [] | no_license | atallini/admin_facilito | 23604e0d758d6847134cb81b549234122b266ac9 | 88a1342ed4e969dc42e8e82517b8291f1280d848 | refs/heads/master | 2021-09-03T11:22:01.737512 | 2018-01-01T18:38:39 | 2018-01-01T18:38:39 | 115,933,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/anibal/admin_facilito/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anibal.tallini@gmail.com"
] | anibal.tallini@gmail.com | |
f3b7f0280900dbb82a53d5f1149b6cf9d643ef65 | 0951918d92e64464bf56a059f743d4986a2977fb | /dusk/ssm.py | fb3273c0b967d09c9c674bb315962afc1f1e65dc | [] | no_license | raids/dusk | 5150d2c5c536b1b1262fdef81200f63410cf66ff | f6ab0a17b16906a68a8021ba1b9825ff487b5095 | refs/heads/master | 2021-01-19T23:39:52.539923 | 2017-04-23T15:52:10 | 2017-04-23T15:52:10 | 89,001,389 | 1 | 0 | null | 2017-04-23T15:50:16 | 2017-04-21T16:04:18 | Python | UTF-8 | Python | false | false | 250 | py | # -*- coding: utf-8 -*-
"""
ssm run the EC2 Systems Manager on the target instance.
"""
import contextlib
def run(instance_id):
# Run SSM
pass
@contextlib.contextmanager
def ssm_doc():
# Create then delete the SSM document
pass
| [
"jroutley@gmail.com"
] | jroutley@gmail.com |
9b937c35f42ccd5bb2c64e7139a9e0d690ea887e | 232494ea6abe85c8751681ab19a6482b09baeb47 | /Scripts/dramarama/admin.py | 192408d2819fc93a2e1c6720372841b37fb6cb2f | [] | no_license | mjkcool/DramaRama-dev | 4cd9cda5767a724c7727021bbf4c641aa05b4ac9 | b9392c3401042c321b42e6865d66884992833af2 | refs/heads/master | 2023-03-24T08:24:34.374970 | 2021-03-25T00:58:17 | 2021-03-25T00:58:17 | 320,464,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from .models import Drama, Survey, R_Survey
admin.site.register(Drama)
admin.site.register(Survey)
admin.site.register(R_Survey) | [
"mjkimdelta@gmail.com"
] | mjkimdelta@gmail.com |
6b9b0d35589596bc43d6d9a17bcfb43d86e17886 | 117e2fab53a39e14d4aa1c8c60d146c942118ac6 | /dev_support/settings.py | c12140cea7a5914d4b2237f490fb55bfbd730d6d | [] | no_license | j1210030/case-portal | 6e46ae3adf9c7d0905de27c78a4aba830d8eccb3 | 257ca1bdc7760db60a4c9102e59920574ec3975d | refs/heads/master | 2020-03-27T15:14:25.504719 | 2018-08-30T06:53:10 | 2018-08-30T06:53:10 | 146,705,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,762 | py | """
Django settings for dev_support project.
Generated by 'django-admin startproject' using Django 1.11.3.
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/
... | [
"noreply@github.com"
] | j1210030.noreply@github.com |
2e77842e863422f2ffdaefdc8d6d8126892ba1d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03347/s144374882.py | 8ce3352dfe431d952e676130950485ebdc55dc2e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import sys,queue,math,copy,itertools,bisect,collections,heapq
def main():
sys.setrecursionlimit(10**7)
INF = 10**18
MOD = 10**9 + 7
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
NI = lambda : int(sys.stdin.readline())
SI = lambda : sys.stdin.readline().rstrip()
N = NI()
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdf34b26ad998c9cef7cdd3a4ce2b6e71b2497c1 | 8e466a28c04cbc682a3b5ab24918beeb09a8ee7f | /deeplearn/migrations/0002_auto_20190926_1159.py | a33d7a32ddecffe6c74fa8f026b914499b42bbd1 | [] | no_license | vaibhav1202/VehicleClassification | eefe95d939b68ba4f80cec40860f73d47a88b409 | db966edfd5ab5a5b6d3d9117aa286af375b6d2e5 | refs/heads/master | 2020-08-02T05:11:18.438230 | 2019-09-27T06:00:43 | 2019-09-27T06:00:43 | 211,244,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Generated by Django 2.2.4 on 2019-09-26 11:59
import deeplearn.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deeplearn', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='deep',
name... | [
"agrawalvaibhav12@gmail.com"
] | agrawalvaibhav12@gmail.com |
e0406bccdd58cced9e2cf9f4510da9f8da2321cb | 1cde75aa1ae01e54484fd8df596ee1975b0a7a2d | /abstract_service/models.py | 0202fd04fd2b02f2095d2ce4cedf3aeff2117d7f | [] | no_license | dkeye/qr_service | 3ede8ff98d05c0decdf77d2e37483f7e6f86b93c | b9e994a8923b262d97508bed3d1b48de7722ae0f | refs/heads/master | 2023-08-04T19:29:05.664502 | 2021-09-21T18:46:26 | 2021-09-21T18:46:26 | 400,872,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from sqlalchemy import Boolean, Column, Integer, String
from .database import Base
class Codes(Base):
__tablename__ = "codes"
id = Column(Integer, primary_key=True, index=True)
code = Column(String, unique=True, index=True)
is_activated = Column(Boolean, default=False)
| [
"ldifmo@gmail.com"
] | ldifmo@gmail.com |
7098f4dd04eee66744539b132a94f353fab0fbdd | 3373b2bbe6303dcee3ae7f7f3e715ce674878a7b | /packages/hyperk/wcsim_dev.py | 7187f72a10ce70577639daba6aa414e563e94670 | [
"MIT"
] | permissive | pgjones/nusoft | f3515a6e2fc90622638cde0b8712ba6fcea2aa8e | 442c7bca2f921892ecf9eb3ff6821e2a9da7b156 | refs/heads/master | 2020-09-12T21:44:54.453633 | 2014-10-03T20:22:09 | 2014-10-03T20:22:09 | 17,223,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/env python
#
# WCSimDev
#
# The HyperK WCSim development version
#
# Author P G Jones - 2014-06-20 <p.g.jones@qmul.ac.uk> : New file.
####################################################################################################
import nusoft.package.local as local_package
import os
import nusoft.envfi... | [
"p.g.jones@qmul.ac.uk"
] | p.g.jones@qmul.ac.uk |
7bc3b3a1834c1f657039fcff98ce912abb2f8078 | 301d74cbe63ecff72a942e04ff77c1165dd02f9f | /tests/test_crawler_process.py | 5c793a1c282985813ab0e760de8a5f64cfdaf4b0 | [
"BSD-3-Clause"
] | permissive | wusir2001/galaxy | dd10864e48c4c303fa3562b7f590d4bd45b3b52e | cb66633132a8c1affd8f103c466589d392409361 | refs/heads/master | 2020-05-24T20:04:25.090846 | 2018-06-12T13:37:59 | 2018-06-12T13:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | # -*- coding: utf-8 -*-
from mock import MagicMock
from scrapy import signals
from twisted.internet.defer import Deferred
from twisted.trial import unittest
from rest.core import CrawlManager, GalaxyCrawlerProcess
from .spiders import MetaSpider
from .utils import get_settings
class CralwerProcessTestCase(unittest.... | [
"markhuyong@gmail.com"
] | markhuyong@gmail.com |
1e9a39eb7181f21d6cbbf89028fda4374c0c2886 | 75f13a7149741707cd827ed419a10a74aec355a7 | /CS 2043 - Unix Tools & Scripting/Project 4/ereader.py | d0658b58a06b10425b01d0751bd0b663aef5989a | [] | no_license | ava9/Class-Projects | 0a7a1d4c6f4c19bc4c7112b1120124a2bfe31781 | 9be7e6d9054e0d6d2eef21794222255617db1536 | refs/heads/master | 2020-12-24T15:31:27.747939 | 2015-04-01T03:46:14 | 2015-04-01T03:46:14 | 31,793,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | #! /usr/bin/python
#display use case for user
print('Example case : python ereader.py [-n #someNumber] (n: next page, p: previous page, q: quit)')
print('User controls n: next page, p: previous page, q: quit (case sensative)')
import sys
import os
import hashlib
import re
import termios
import contextlib
#starting d... | [
"spyguy101@gmail.com"
] | spyguy101@gmail.com |
3ae2079875387f561dad5fbc4ea251ed85ed9d12 | fcef3602a044a82b75eb1bdee87a5eb347a56769 | /recolo/tests/test_coordinate_solver.py | d18af8c84528da0a59395aaf2880b71ea511ddb3 | [
"MIT"
] | permissive | PolymerGuy/recolo | 5cb9c6b01d7eeb4108710606341518aa13efc1d1 | 05b14f0834fa675579eabdf43fac046259df19bb | refs/heads/master | 2023-04-12T00:17:50.150126 | 2022-03-11T12:42:44 | 2022-03-11T12:42:44 | 343,329,602 | 4 | 1 | MIT | 2022-03-05T08:04:49 | 2021-03-01T07:39:40 | Python | UTF-8 | Python | false | false | 3,877 | py | from unittest import TestCase
from recolo.artificial_grid_deformation import find_coords_in_undef_conf, interpolated_disp_field
import numpy as np
def rms_diff(array1, array2):
return np.sqrt(np.nanmean((array1 - array2) ** 2.))
def biharmonic_disp_field(x, y, amp_scale=0.5):
return (amp_scale * 0.4 * np.co... | [
"sindre.n.olufsen@ntnu.no"
] | sindre.n.olufsen@ntnu.no |
0ece535aff6154c0f5fee45c1a1815526bd3cc9b | b8ae3ca933727784afb031938a799401ff0c545c | /etl_fact/etl_fact_draw/transform.py | 27192872698faa95654dfd77465e1ac32734df20 | [] | no_license | zhangguo7/data_warehouse | 9a772e4b3bbbecd9ffc276b8491a55e36577819b | 6af7d9d574df7f0e1fd7317cf855fd341d153988 | refs/heads/master | 2021-01-20T00:56:22.056135 | 2017-07-07T05:46:11 | 2017-07-07T05:46:11 | 89,213,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,704 | py | # -*- coding:utf-8 -*-
"""
绘图事实表的数据转换模块
定义了一个class Transform
用于完成对fact_draw表的数据转换与清理
内部构建了一个 transform_main 方法
以及其他内部调用方法:
行业提取 _filter_ind1_ind2
行业并入 _merge_ind_draw
转换经营状态 _deal_operatingState
增加日期和时间键 _trans_DT
拼接电话和手机 _concat_tel
删除多余的变量 _del_unnecessary_vars
重命名 _rename
"""
import re
import sys
sys.path.append('... | [
"zhangguo7@aliyun.com"
] | zhangguo7@aliyun.com |
fe53f6f0a9858f39c58fbbdfc21e6f2f9aa5bc41 | 546d0ce70b8f5b479a493e799846082bbe686bb5 | /symmetric-ciphers/substitution-cipher.py | a1b45f491c9f65e75d5813b729c4bd66212e4426 | [
"MIT"
] | permissive | ninobaldo/cryptographyI | f19ba27971bdd2258d65b5847cb87c7ce3c1d8e8 | 9828cab1b4c69d8ed2a42dc0867f11f4ff3bc8d6 | refs/heads/master | 2021-01-19T16:57:38.379041 | 2014-09-11T19:39:33 | 2014-09-11T19:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | def encrypt(plaintext, key):
CIPHER = list(key)
ALPHABETIC = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
ciphertext = ''
for i, l in enumerate(plaintext):
index = ALPHABETIC.index(l);
ciphertext += CIPHER[index];
print plaintext, ' ---> ', ciphertext
def decrypt(ciphertext, key):
CIPHE... | [
"ninobaldo@gmail.com"
] | ninobaldo@gmail.com |
9e1bb9384cfbb09cb003f26a31ea6e708b58fbf8 | 8f860a338ccd64d40f2e64e921fedb1951b4468f | /file_utils.py | eece77b453ed337237db6c48c7ce0849b67d170b | [] | no_license | alexyang06/zp.buildout | 1d544963d857c98123823a02db3db43d51eb7886 | e81abe5bf1c38a40445831e993bedafb2adeb125 | refs/heads/master | 2021-06-18T13:23:46.136928 | 2016-12-23T05:06:26 | 2016-12-23T05:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import os
def get_all_files(path):
#return all files' name in certain folder.
result = []
for name in os.listdir(path):
if os.path.isfile(os.path.join(path, name)):
result.append(name)
return result
| [
"noreply@github.com"
] | alexyang06.noreply@github.com |
90197241a1030e09b3e3a1801be2cd12244e42d1 | 8158e8633883139f8de93d5fdbf7a85acc6b91f3 | /Original Code/fat32Test.py | b759cb6fdc924b466dadcbf0075690ebb2b207bc | [] | no_license | kyungsook/Forensics_Visualization | cf9c647a0b7622fb76eba35e693ab4876583f9e2 | cb2d1155a70824e1ba1453819c3e2eb0b5bde23c | refs/heads/master | 2021-02-15T22:19:22.127896 | 2020-10-08T09:01:02 | 2020-10-08T09:01:02 | 244,938,004 | 1 | 0 | null | 2020-06-06T09:37:42 | 2020-03-04T15:39:11 | HTML | UTF-8 | Python | false | false | 7,183 | py | import sys
import struct
class FAT32:
END_CLUSTER = 0x0fffffff
dir_list=[]
file_list=[]
reg_list=[]
def __init__(self, filename):
self.filename = filename
self.fd = open(filename, "rb")
self.read_vbr()
def read_vbr(self): # vbr 1섹터 읽기
self.fd.seek(0)
vb... | [
"lovablekks@naver.com"
] | lovablekks@naver.com |
1a2b977db98452df079d888fe65e02cf758fd88d | 203e1581f9838c7e253befd9965ad087263d8127 | /dashboard/myutils/__init__.py | 3f0611c2e422ac50fb42140c2b12ba398e609c13 | [] | no_license | magnito2/clownbot | a52a9ffbb79831ba8e96adae52651b384aa29303 | f54d26a1714a6215a3da492853e085064d9938f4 | refs/heads/master | 2022-12-10T18:34:47.811637 | 2020-01-30T13:54:39 | 2020-01-30T13:54:39 | 233,408,628 | 3 | 4 | null | 2022-12-08T05:25:35 | 2020-01-12T14:51:54 | JavaScript | UTF-8 | Python | false | false | 3,688 | py | import requests
from flask_security.signals import password_reset, reset_password_instructions_sent
from flask_security.utils import config_value, get_token_status, hash_data, hash_password, \
url_for_security, verify_hash
from flask_security.recoverable import generate_reset_password_token, send_password_reset_not... | [
"magnusotwani@gmail.com"
] | magnusotwani@gmail.com |
303766a3257634ef8790974fe507abbdabd88b1b | 2853e675fe8e83925e6318310e5239da0bbb3f73 | /runMES/MQTT/mq_qry_lot_record_srv.py | 997d576c5db27f3059bee1c1ea8700d1f9fd7960 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | runMES/runMES_1908.2 | 60f6272ad543609fd67411f760e4712b628fd19d | acae4bb86acf62206d6e26b82144c68677a893f9 | refs/heads/master | 2020-07-26T23:56:09.393975 | 2019-10-01T09:09:16 | 2019-10-01T09:09:16 | 208,802,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import paho.mqtt.client as mqtt
import logging
import ast
import time
from runMES import trans
import threading
from MQTT import log_EAP_IF
mylog=logging.getLogger('EAP')
subscribe_topic="runMES/qry_lot_record_srv"
srv_name='mq_qry_lot_record_srv'
def synchronized(func):
func.__lock__=threading.Lock()
def synced... | [
"joshua.chin@steptech.io"
] | joshua.chin@steptech.io |
68d8c35e5fbad07bc4f7755a167a5ce85247e30e | 3ce592352627591346ea33ea0c2665ad879414e2 | /References/search/3-3.soduku.py | 8c6629c01cce7fc88632fdba5af2f6689c63a47c | [
"MIT"
] | permissive | royqh1979/python_libs_usage | 113df732ef106f4a5faae1343493756fd703c8c0 | 57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511 | refs/heads/master | 2021-04-16T18:14:43.835482 | 2021-01-11T03:55:25 | 2021-01-11T03:55:25 | 249,374,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,139 | py | """
数独求解
使用简化的启发式回溯搜索
使用递归实现
每次优先尝试填写可行数字最少的格子
"""
import numpy as np
from easygraphics import *
from dataclasses import dataclass
import copy
from typing import Set
FONT_WIDTH = 30
BOARD_TOP = 10
BOARD_LEFT = 10
SQUARE_WIDTH = 50
SPEED = 100
# 棋盘,为了方便定义为[10][10],实际只用[1][1]-[9][9]
board = np.zeros((10, 10),dtype... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
7b0b902873182939175a307b409a94677e9c5ceb | f2b18dad16af5785267cf17e907b217622383f95 | /application.py | 8345815413695aaa3cd062c4be5b1deb66b0840b | [] | no_license | dxz6160/sensetime_project | cfb8e1a5dbe9e8e896b70d4df9b9302c2968fc55 | 66e84b5c2af37c051074d8329dceef2c68b94105 | refs/heads/master | 2022-12-30T18:21:56.917165 | 2020-10-20T08:36:19 | 2020-10-20T08:36:19 | 286,803,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import tornado.web
from views import sensetime
import config
import os
class Application(tornado.web.Application):
def __init__(self):
handlers = [
(r'/home', sensetime.HomeHandler),
(r'/post_pic', sensetime.PicHandler),
(r'/post_video', sensetime.VideoHandler),
... | [
"1957769588@qq.com"
] | 1957769588@qq.com |
17ea9fd1916009532f486f0223fe33c3a6f09caa | aabed3688686d034dff01b7153b7ec8a6af42d4c | /python_fundamentals-master/01_python_fundamentals/01_01_run_it.py | 1f671f1f74435f1ac45b9cb2368a4050b85caffb | [] | no_license | jorien-witjas/python-labs | da83a69d0103e6ac7f7605173fd46b54b23cb91a | c79ff093a7ae61ad50760adae30de972a7470e47 | refs/heads/master | 2023-06-16T20:55:03.896614 | 2021-07-06T14:47:37 | 2021-07-06T14:47:37 | 363,151,987 | 0 | 0 | null | 2021-07-06T14:47:38 | 2021-04-30T13:37:33 | Python | UTF-8 | Python | false | false | 613 | py | '''
1 - Write and execute a script that prints "hello world" to the console.
2 - Using the interpreter, print "hello world!" to the console.
3 - Explore the interpreter.
- Execute lines with syntax error and see what the response is.
* What happens if you leave out a quotation or parentheses?
* How h... | [
"jorienwitjas@MacBook-Pro-van-JH.local"
] | jorienwitjas@MacBook-Pro-van-JH.local |
85a2de9a877a4f50a4bde42d98b1125658915379 | 38cbe2cb35157d0feb7fc879405eafb8622404af | /string_reverse.py | dd251421d6ef28c8d196b0b3b2e56b854ab92b4b | [] | no_license | Ankita-githubFW/python_basics_files | 0258709415b668f32bfa42d0263956febe81408a | fb4f70b9cfdebbd65f94a7ce204a891bcf67597a | refs/heads/master | 2023-08-11T16:13:39.288451 | 2021-10-07T10:00:49 | 2021-10-07T10:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | s = 'NOOR BASHA WELCOME TO CODING'
result = s[::-1]
print(f"The reversed string is {result}")
print("The reversed string is {}".format(result))
| [
"noreply@github.com"
] | Ankita-githubFW.noreply@github.com |
1df816ad8cfee83dae7e3cb566b5599ecf231cfc | c663559b30712907ccf7dd8acb078718e8579bbc | /week5/listsum.py | 480fb72e1c4b7735bbfa46187bc18fd7e30672c6 | [] | no_license | Mly-T/MOOC_Data_structure_and_algorithm | 33aaf66dc6ccf4a2c6c6578e8b5f6453f2edd2d3 | cdca8340190136f577d02fc7237e70ffd3249517 | refs/heads/master | 2021-05-23T15:51:42.779577 | 2020-04-17T03:22:16 | 2020-04-17T03:22:16 | 253,366,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def listsum(numList):
if len(numList) == 1:
return numList[0]
else:
return numList[0] + listsum(numList[1:])
print(listsum([1,2,3])) | [
"lin_he_01@163.com"
] | lin_he_01@163.com |
d23b135a21dfd7c7b0427aa7f631fddf890451ee | 191b068186efaaee07358d0721d3027e81eef914 | /util.py | 6fd3e6cd3100930b0bcae9f47b2c7403d5cff7a7 | [] | no_license | kujing/git_cilog | 60eabbe2c56452b0e1045393b31995c5f41d5933 | acb864ef47d2d7bf9c2a55c900ea1a74f5c19c72 | refs/heads/master | 2021-01-10T21:39:14.533018 | 2018-10-24T11:30:47 | 2018-10-24T11:30:47 | 34,507,302 | 0 | 1 | null | 2015-06-27T07:09:02 | 2015-04-24T08:31:37 | Python | UTF-8 | Python | false | false | 2,615 | py | #!/usr/bin/env python3
#coding: utf-8
import os
import platform
import subprocess
import sys
import time
import re
ON_LINUX = (platform.system() == 'Linux')
conf = {
'max_domains': 10,
'max_ext_length': 10,
'style': 'gitstats.css',
'max_authors': 20,
'authors_top': 5,
'... | [
"jingliangliang@foxmail.com"
] | jingliangliang@foxmail.com |
30139ce10e0c04c0fc06066ee31e202cfe7665db | 36e51e49d7b56d66ea6eeff437309623bb409bdf | /part9/if_elif_else.py | f759ee1ce2403195322b11286560276f40ce35ab | [] | no_license | dhananjayharel/mark_trego_python_beginners | 2b236e22efeabc7ad848d110081dda487c8bf21b | 2c4d046c21da8b69a643be62dbbf684489caef76 | refs/heads/master | 2020-09-09T11:20:45.609867 | 2019-12-14T14:25:58 | 2019-12-14T14:25:58 | 221,433,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | x = 3
y = 7
z = 10
if x < y and x > z:
print('something here was the case')
elif x < z:
print(x,'is less than',z)
elif y < z:
print(y,'is less than',z)
else:
print('nothing was the case')
| [
"harel.dhananjay@gmail.com"
] | harel.dhananjay@gmail.com |
138d7251e99fd5b8de87425401cfefea55cd6357 | 84065ee4fb4ebeb8cb2cf1d3f6f385d2c56d787e | /page/__init__.py | 359e38e1661042b3715145fd8b364217bb2881c4 | [] | no_license | bian-py/app_kefu_code | 59ed0bcf247e5dd7b06e0f91cdd9563faa49ce60 | 2f84a152bdc2c226f2bcb6aabc34f0a5313c094e | refs/heads/master | 2023-01-28T11:17:40.984458 | 2020-12-08T11:07:50 | 2020-12-08T11:07:50 | 319,289,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,863 | py | from selenium.webdriver.common.by import By
# 以下是服务器页面配置信息
fwq_new = By.XPATH, '//*[contains(@content-desc,"添加新的服务器")]'
fwq_hand_input = By.XPATH, '//*[contains(@content-desc,"手工输入")]'
fwq_scan_code = By.XPATH, '//*[contains(@content-desc,"扫码二维码")]'
fwq_input_name = By.XPATH, """//android.view.View[@content-desc="{{ '... | [
"334783747@qq.com"
] | 334783747@qq.com |
ee70005f6474b587eee09a190290dc11f5c5439e | 4d7b2858eb43506f822e1c3c906bee287186b2a9 | /pizza_project/lib/__init__.py | f0acbff325741a8764e1c8595c7766f74b4ceaf7 | [] | no_license | byt3-m3/da_pizza_house | c4d98b1c3246aa48256b368a69fad4046bf19691 | 01d163b511428b442e8d8f97bc4408e6060851db | refs/heads/master | 2022-12-08T03:52:02.487557 | 2020-09-01T21:06:32 | 2020-09-01T21:06:32 | 292,047,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from pizza_project.lib.inventory import *
from pizza_project.lib.store import * | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
6531ca24dc8b784514654a38e162071710663772 | 5bdaea14397df8fcb07a98f82450d81cdd5d778b | /src/service/statistics/score_statistics_service.py | 0d1929c8ce9a233e5a1ec1ee856aa7fdb882dfa5 | [] | no_license | RodrigoDeRosa/ConectarSaludServer | 5b30c90487a767de122f94e6b81934e7fd641378 | 8d2602dc22143e85fdfbfcbd883d33c18164cfb4 | refs/heads/master | 2022-11-20T13:57:42.317373 | 2020-07-12T18:41:05 | 2020-07-12T18:41:05 | 258,001,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | from datetime import datetime
from src.database.daos.consultation_dao import ConsultationDAO
class ScoreStatisticsService:
@classmethod
async def get_statistics(cls, doctor_id: str, from_date: datetime, to_date: datetime, specialty: str):
""" Retrieve scoring statistics and adapt for response. """
... | [
"rodrigo.derosa@despegar.com"
] | rodrigo.derosa@despegar.com |
4eb90f5b339b74d2768d5d7d268b6d412f8d1798 | f1330ad06f86455a6b7ae61f5617f78a4647cb18 | /dailyfresh/utils/encryption.py | 15dbce8ded86218c2b569f416821693b607c3a3b | [] | no_license | pythonchuang/dailyfresh | 0d37c2a4db53527b9e2e2b7988be1bc8427440d7 | 64720733c14d845a89624169c263e4e8902df68b | refs/heads/dev | 2021-07-03T13:34:53.967419 | 2017-09-24T10:14:39 | 2017-09-24T10:14:39 | 104,314,992 | 0 | 1 | null | 2017-09-24T10:14:40 | 2017-09-21T07:20:43 | HTML | UTF-8 | Python | false | false | 192 | py | import hashlib
class Encrytion(object):
def sha1(text):
return hashlib.sha1(text.encode('utf-8')).hexdigest()
if __name__ == '__main__':
print(Encrytion.sha1('aaskdjfh'))
| [
"786355997@qq.com"
] | 786355997@qq.com |
5224ea480b5920a91b6d02c5fb96e32077e150ff | 0342e079cfd055b1ca26ca2a9963d6daa5260720 | /dev/egocentriccoord.py | 8b75f5a19464c7640d3c78cf2eccbf06100ccef6 | [] | no_license | rltonoli/MScTonoli | 9de864f32831c96146a2f388044b9b4d25beebe9 | eab52c01c45025daa1b2ef11861a2b66ab205638 | refs/heads/master | 2023-04-19T07:33:07.025597 | 2021-05-03T20:15:33 | 2021-05-03T20:15:33 | 228,877,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95,011 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 21 21:44:27 2019
@author: Rodolfo L. Tonoli
"""
import numpy as np
import mathutils
import time
import skeletonmap
class EgocentricCoordinate:
"""
Objects of this class holds the egocentric coordinates of a joint. It contains the joint, its name,
and a list ... | [
"rltonoli@gmail.com"
] | rltonoli@gmail.com |
87442be8bbbe2a7b6035dd33438de37687bad316 | 6cd4c07bedc38cb289dd565f414d2a3baa71c8c3 | /configs/wfcos/wfcos_hrnet_coco.py | 8b9c817f48dc30bd8755c6a8b03580c2994e2a08 | [
"Apache-2.0"
] | permissive | tuggeluk/mmdetection | 4516cc0f70d8f8ff244e1eb4d8b6589d83c67c8a | 669a535c944628a3ab43330cae5c77b643e13a4b | refs/heads/master | 2021-07-01T00:51:23.272205 | 2021-06-18T08:12:55 | 2021-06-18T08:12:55 | 196,585,169 | 2 | 2 | Apache-2.0 | 2020-10-06T13:46:25 | 2019-07-12T13:35:50 | Python | UTF-8 | Python | false | false | 4,876 | py | # model settings
model = dict(
type='WFCOS',
pretrained='open-mmlab://msra/hrnetv2_w32',
backbone=dict(
type='HRNet',
extra=dict(
stage1=dict(
num_modules=1,
num_branches=1,
block='BOTTLENECK',
num_blocks=(4, ),
... | [
"y_satyawan@hotmail.com"
] | y_satyawan@hotmail.com |
216caab0b5058a6593ec79eaea114a1cd0914296 | 33334ad1f60c4a87603e7540925295592a83d936 | /devel/_setup_util.py | 0a9748349517f3448bae0a7e728ddd41ed0316f3 | [] | no_license | ChristianBachla/Mini2 | 4a1db3061252dbc8ec615c558ceba0631805709e | 8b33c7f6979595a34d5131d0a4d24cee1a01a531 | refs/heads/master | 2020-05-02T05:26:35.978532 | 2019-03-27T11:54:53 | 2019-03-27T11:54:53 | 177,771,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | /home/hellden/car_tracker_workspace/devel/.private/catkin_tools_prebuild/_setup_util.py | [
"bjarkehellden@gmail.com"
] | bjarkehellden@gmail.com |
99fc086a4b21a32651d739916b777c4fb89ede9e | aa6bfa0ded0d1df8b364938342a94215ec7b3aea | /commons/redis_server.py | 8c8de4d3139f7811cccb25ec695fe8804d413901 | [] | no_license | bobowang2017/miaosha | 48bcc3fca753d9bac7d627c5e548e0aae8e44cb9 | 80d7bbc74407de451f27033febfacfca81c79ab8 | refs/heads/master | 2020-04-13T17:42:12.625287 | 2019-01-11T03:41:20 | 2019-01-11T03:41:20 | 163,354,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | # coding: utf-8
import redis
from miaosha.settings import REDIS_CONFIG
redis_valid_time = 60 * 60
class RedisClient:
@property
def redis_client(self):
pool = redis.ConnectionPool(host=REDIS_CONFIG['host'], port=REDIS_CONFIG['port'])
client = redis.Redis(connection_pool=pool)
return c... | [
"anini456123"
] | anini456123 |
c1abf839a8e2b0961c4bf36e6da588e937b240ab | f9ef267bf703783d95b188ff29fd2a5fc686c926 | /Basik_Tutorial/__basik__/record.py | 06b3d1314b26cabd76d0744d56548b70745bfe63 | [] | no_license | dylansolms/TrafficSimulator | 34e2643ac74a235278c7aec1103fe0c3c46b0a08 | 6ef19e76aad6ff4470d864db9b35c734ded36660 | refs/heads/master | 2022-11-26T15:45:13.832385 | 2020-07-17T12:54:03 | 2020-07-17T12:54:03 | 280,400,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,549 | py |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from .node import Node
from .source import Source
from .VehicleObject.vehicle import Vehicle
import warnings
from .utils import unique_legend
try:
import cPickle as pickle
except ImportError or ModuleNotFoundError:
import pickle
#-------... | [
"afrozoolander@gmail.com"
] | afrozoolander@gmail.com |
9a0a73a49aa62ab13967f5685b520d1fdb27dd8c | 50bc7a7bc9fc742e1d5a992c785b45c9129172ee | /app/__init__.py | 02b0e68b481784669fa7d7892f5de93758728073 | [] | no_license | spark0119/silvi | 8bc1da68dcb18bd4907954ea02a16c840a149d16 | 57397bbb5232fb07e50ba74a5df7debd922d347d | refs/heads/master | 2022-12-10T13:59:56.832818 | 2019-11-20T14:31:28 | 2019-11-20T14:31:28 | 212,820,403 | 0 | 1 | null | 2022-12-08T06:54:47 | 2019-10-04T13:24:06 | Python | UTF-8 | Python | false | false | 1,597 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(ap... | [
"sean@groupraise.com"
] | sean@groupraise.com |
db860d3e1bb35d91e4c7bfda9a9b157a682e6979 | f4cab8397849c2972c76d258f81041ef650de472 | /blog/migrations/0001_initial.py | b35df6ce2593128dc315f01e4e2d0d8af358fa64 | [] | no_license | paner28/mysite | 964a8510d15347227ed53309ca0423762764b458 | 6aa58933dd4ca2821bd5ca602f29bf139997d1cd | refs/heads/main | 2023-03-27T13:20:52.620308 | 2021-03-26T06:35:37 | 2021-03-26T06:35:37 | 351,673,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | # Generated by Django 3.1.7 on 2021-03-26 05:40
from django.db import migrations, models
import mdeditor.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AnimeModel',
fields=[
... | [
"toshi23masa@gmail.com"
] | toshi23masa@gmail.com |
a78e5ff716f3fa6d77eaee943d3c3d68e344c53d | 3b6bf30cd6ef7f770faa84852515af3255e217af | /douban_spider/douban/spiders/doubancomics.py | fc1a15fc2e58abb8096312ed464f891339bdef4e | [] | no_license | lemonround1995/Douban_Spider | ae8e6a9f5e907e0bcbfc026e5f0acfe1325647eb | 162adc5af31e425a3dd091fb255b758c63c62cb1 | refs/heads/master | 2020-04-13T01:07:07.304265 | 2018-12-23T05:35:46 | 2018-12-23T05:35:46 | 162,864,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.http import Request
from ..items import DoubanItem
class DoubancomicsSpider(scrapy.Spider):
name = "doubancomics"
allowed_domains = ["douban.com"]
start_urls = ['https://book.douban.com/tag/%E6%BC%AB%E7%94%BB?start=0&type=T']
def parse(self, response)... | [
"noreply@github.com"
] | lemonround1995.noreply@github.com |
bb34326efa7e8876f71ebe51e16711253c542128 | d925859a64460fb73a065cefe4601701c4858178 | /lib/generator/providers/football.py | 5c3b5b388e47b51a89451f0c54fb519435e7a079 | [
"MIT"
] | permissive | vikkio88/pyDsManager | 6493ffe481f5ce2ffc11376cfb3c52195637f4b6 | 018e08f7db0852f4653c4da6db851551783584a1 | refs/heads/master | 2021-01-10T01:27:20.853049 | 2015-12-21T19:14:45 | 2015-12-21T19:14:45 | 47,927,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | football = {
'clubs': [
'Football Club',
'Sporting',
'FC',
'United',
'Sport',
'Soccer',
'Football'
]
}
| [
"vincenzo.ciaccio@timesofmalta.com"
] | vincenzo.ciaccio@timesofmalta.com |
35e69a6e70d95cbb060ad0ce9122bcdba0e15a07 | 36b81a830b04542383adf40b47894960f65bdec6 | /chemtools/calculators/dalton.py | 1161ca0f8e692918bca26808c0105b1448b4f261 | [
"MIT"
] | permissive | lmmentel/chemtools | c3f8f26b3e4baca89988a5f414e33364a09394bc | 6d395063a332d76a44919b6b4cf558b8178091dc | refs/heads/master | 2023-08-25T12:46:16.500358 | 2023-08-07T15:47:45 | 2023-08-07T15:47:45 | 245,623,218 | 13 | 8 | MIT | 2023-08-30T00:19:17 | 2020-03-07T11:49:57 | Python | UTF-8 | Python | false | false | 6,528 | py | # -*- coding: utf-8 -*-
#The MIT License (MIT)
#
#Copyright (c) 2014 Lukasz Mentel
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights... | [
"lmmentel@gmail.com"
] | lmmentel@gmail.com |
092ad3e710de8763f9af7ca100f888acc1cc9d24 | 5303252c8d570844d71fe374d6c78eb6f14aebb6 | /iosgames/spiders/iosgamesbot.py | 48d4b32f85b44053b2b71c180e4a2ac2db15c308 | [] | no_license | vin-say/web-scraping | 7cff35f73980cbce49a5b5d70cb35b04b350c333 | be3b529d485e1330a8189692f1bf9720ff23b4ec | refs/heads/master | 2020-08-04T15:39:13.923213 | 2020-01-04T03:40:26 | 2020-01-04T03:40:26 | 212,187,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | # -*- coding: utf-8 -*-
import scrapy
from ..items import GameItemLoader, Game
class Iosgamesbot(scrapy.Spider):
name = 'iosgamesbot'
allowed_domains = ['apps.apple.com/us/app/simcity-buildit/id913292932']
start_urls = ['http://apps.apple.com/us/app/simcity-buildit/id913292932/']
def parse(self, ... | [
"vincent.sayseng@gmail.com"
] | vincent.sayseng@gmail.com |
e3ba9166ff9f094c8ede9e3c3756bb8117241c50 | 3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf | /AOJ/ITP1/python/ITP1_1_D_Watch.py | c0a07556a3ffec6f81a94127a026e1a802c5a520 | [] | no_license | kokorinosoba/contests | 3ee14acf729eda872ebec9ec7fe3431f50ae23c2 | 6e0dcd7c8ee086650d89fc65616981361b9b20b9 | refs/heads/master | 2022-08-04T13:45:29.722075 | 2022-07-24T08:50:11 | 2022-07-24T08:50:11 | 149,092,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | s=int(input())
print(s//3600,s//60%60,s%60,sep=':')
"""
S=int(input())
m,s=divmod(S,60)
h,m=divmod(m,60)
print(h,m,s,sep=":")
"""
| [
"34607448+kokorinosoba@users.noreply.github.com"
] | 34607448+kokorinosoba@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.