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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f7dc4bf523e6f673b501ed09ca49010f9c20a8a | b8acea93fc53b9c6e457959dd4b5446c520af272 | /2017-01-13/workshop_10.py | 600c94bc93b46a1d81f6ac1764e88c6500886593 | [] | no_license | MarcoFaretra93/ggpl | c35fbd5a07ee70fc6073626325d17eef84faa9e6 | 15066fc26c3af67d52b6670e265f9ec0e7113c42 | refs/heads/master | 2021-01-10T22:50:11.618623 | 2017-01-28T10:09:56 | 2017-01-28T10:09:56 | 70,344,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,523 | py | from pyplasm import *
import csv
import src.workshop_08 as build_floor
import src.workshop_07 as windowsDoors
import src.workshop_03 as quarterTurnStairs
import src.workshop_09 as roof_builder
XWindow = [2,3,2,3,2]
YWindow = [2,3,2,3,2]
occurrencyWindow = [[True, True, True, True, True],
[True, False, True, False... | [
"mar.faretra@stud.uniroma3.it"
] | mar.faretra@stud.uniroma3.it |
1f33da26cd31882e2a4cbb24cd7ec3852e4adaa7 | eadcdcdbe46a5208f163ef22e668e42d6fff94a6 | /src/sfctl/helps/deployment.py | a4108bb340bce66fecd2aa5a036e470330ad3be3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | yu-supersonic/service-fabric-cli | beed8c4b4d8a17a5fbcb5d0578a8e6c166dd9695 | cc2838597e7d236852c6d95e1b5c54980e0fac96 | refs/heads/master | 2023-04-11T15:04:25.213876 | 2021-02-25T19:39:23 | 2021-02-25T19:39:23 | 348,077,179 | 0 | 0 | NOASSERTION | 2021-04-07T11:33:05 | 2021-03-15T18:16:11 | null | UTF-8 | Python | false | false | 1,820 | py | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------... | [
"Christina-Kang@users.noreply.github.com"
] | Christina-Kang@users.noreply.github.com |
57c8c4f7a53557e403719802170a2e4a7bd660c6 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/hubei/enshi_zhongbiao.py | aa1eb42ebd5cbeb6d019ac1072c18bf552fa29cc | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Request
from scrapy.selector import Selector
try:
from scrapy.spiders import Spider
except:
from scrapy.spiders import BaseSpider as Spider
import datetime
from items.biding import biding_gov
from utils.toDB import *
# 湖北恩施招投标网站
# 中标信息
class hz_gov_Spi... | [
"18723163167@163.com"
] | 18723163167@163.com |
b847e5e8b658046c0bc3299f6804066cdcf0f731 | 3701627e94b237d3402254ca8c752ceef4a766c5 | /tools/megavii/get_list_init.py | 6943564966f4334e6170d0e006e8f553e37fa888 | [] | no_license | shenmayufei/faceAlignment | 358f5ddd3f9f4a487b3d6d4d7323a1f8b56bb876 | 5e7a6b01e36969d1112c5920beda8c29d70dc458 | refs/heads/master | 2022-09-08T18:12:48.839249 | 2020-06-02T11:43:04 | 2020-06-02T11:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import os
import glob
path_data = '/ssd/cxzhao/data/quality_badcase/hf_sq/imgs'
path_json = '/ssd/cxzhao/data/quality_badcase/hf_sq/json_530'
os.makedirs(path_json, exist_ok=True)
path_txt = '/ssd/cxzhao/data/quality_badcase/hf_sq/test_list_json_pairs.txt'
def process():
IMAGES = glob.glob(os.path.join(path_data... | [
"1028377876@qq.com"
] | 1028377876@qq.com |
a077a0210a9ead65fa1545bd027f14dc8f564d61 | 20eac8f94ef0a59ef65670545e2f1b8fb719425f | /eventos/migrations/0002_auto_20210522_0314.py | 78766c13cfa331ea9b1aefb40689a4801f28a1f3 | [] | no_license | edgardo28081/gomez | fcc1c3fd9d9ce76a8a892d16c78d162556f067dc | b51f3af15d413789298488736365011acd77ee43 | refs/heads/main | 2023-05-31T17:39:06.234220 | 2021-06-10T19:54:46 | 2021-06-10T19:54:46 | 375,813,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # Generated by Django 3.2 on 2021-05-22 07:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('eventos', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='recuerdos',
name='foto4',
),
m... | [
"edgardomarcano04@gmail.com"
] | edgardomarcano04@gmail.com |
18c073c6bc7f6d571b0b80d928dd78cb157909bf | 96796658623856b13bd32d0c22ded0a2fc4647f6 | /src/scheduler.py | 27f8a0fc090b7f7cbebf4323857dd559c93513d4 | [] | no_license | mifkoff/tgstarter_template | a0624ada0503815155c8af78efaacbac4ba7a015 | 9eba9d9802d7823f814c958a3ba0639bc86a62e1 | refs/heads/master | 2023-05-27T03:06:03.787996 | 2020-07-17T08:11:52 | 2020-07-17T08:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import asyncio
import calendar
from datetime import datetime
import logging
from apscheduler.triggers.cron import CronTrigger
from apscheduler.triggers.date import DateTrigger
from apscheduler.triggers.interval import IntervalTrigger
from src.preparation import scheduler, config
timezone = config.bot.timezone
def... | [
"t.lila@list.ru"
] | t.lila@list.ru |
a78ef1ec62d22b6a0115f1683a16eea2032e2160 | bf834e52d25af1f59651ee5c3e0c6e5539ec3c19 | /BizViz/urls.py | c435b7c213cd37d5a7be835ca2a473e13a21007b | [] | no_license | bin7665/BizViz | fe7781d80fedba027eb5a1bc4a319ca588e108e8 | 99a7deb1bf19ff1f7f6ee30800355e4b56d4a077 | refs/heads/master | 2023-08-06T07:06:41.973326 | 2020-08-19T05:40:25 | 2020-08-19T05:40:25 | 281,556,175 | 0 | 0 | null | 2021-09-22T19:28:58 | 2020-07-22T02:40:15 | JavaScript | UTF-8 | Python | false | false | 318 | py | from . import views
from django.urls import path
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('statistics/', views.statistics, name='statistics'),
path('statistics/<str:pk>/', views.department, name='department'),
path('support/<int:pk>/', views.content, name='content'),
]
| [
"bin7665@naver.com"
] | bin7665@naver.com |
e61d248ab9d60f7194933ccc8cf31c297f485cc2 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/dimenet/modules/envelope.py | b9d89620f674a562a255f52694e36235733374cc | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 610 | py | import torch.nn as nn
class Envelope(nn.Module):
"""
Envelope function that ensures a smooth cutoff
"""
def __init__(self, exponent):
super(Envelope, self).__init__()
self.p = exponent + 1
self.a = -(self.p + 1) * (self.p + 2) / 2
self.b = self.p * (self.p + 2)
... | [
"noreply@github.com"
] | dmlc.noreply@github.com |
71dca6cc57779157bdded3ae3d5cc0d48ce59ab8 | 9c0cd6dfc174167a416055ccd3d19d536d37f139 | /gym-task/gym_task/envs/InhibitoryControl.py | 59f811bf9d544305bf852c5e95ceadcb2be62020 | [] | no_license | emirakdere/tangled_program_graphs_research | 5b0a7738cc5dfd2642a8f1e6539d7650efe0c69a | fb82247714c79156ee59f97f50171d0de178fec5 | refs/heads/master | 2023-02-02T05:25:12.940302 | 2020-12-18T14:26:28 | 2020-12-18T14:26:28 | 299,354,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | import numpy as np
import cv2
import gym
from gym import error, spaces, utils
from gym.utils import seeding
from gym_task.envs.task_env import TaskEnv
# Task 6: Monkey fixate on center fixation, Monkey see stimulus in target location,
# Monkey see color cue (fixation's color changes),
# Monkey move t... | [
"emirakdere@gmail.com"
] | emirakdere@gmail.com |
e1dbbafc9e69b86598c57f49842afb0bfbde867f | 629d3eaaaf4c83cb9d4cb863460e17d59a0bcb1c | /Skills/train_Magery.py | 9695975ba533e428db506279886282f7468ab1e0 | [] | no_license | Maupishon/Razor-Enhanced | a8a514ddae5e03f8ad8b795e880750afc157c2f1 | f686c8bd456728311757db22a13e25551bbfc9e1 | refs/heads/master | 2023-03-07T22:27:58.484194 | 2021-02-26T03:09:33 | 2021-02-26T03:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | # Trains Magery to GM
# Change resistTrain to True if you are training resist and/or
# don't want to take damage
# False will make it cast dmg spells on yourself, which use less regs.
# but require someone healing you, or you to have healing.
# By MatsaMilla
resistTrain = True
# --------------------------... | [
"noreply@github.com"
] | Maupishon.noreply@github.com |
23f09a5d1433dd1e6722e51b9796bd93fe04c67d | 8b74027c56dfc7870787796bcf07816a868e427a | /MAE6263_CFD/HW3/Modular/poisson_solvers/trial/hybrid_poisson_solver_v2.py | 9da30a260c871142375d48e414d56559da6d7292 | [] | no_license | surajp92/Random_Codes | f5195a428f1aee6b6922d1170266664edc4b29d5 | e928e322c88bc0b43fc3fee3d31ba3452585fdd2 | refs/heads/master | 2021-06-09T07:47:09.201359 | 2021-05-03T10:07:55 | 2021-05-03T10:07:55 | 177,000,685 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 12 18:23:30 2021
@author: suraj
"""
import numpy as np
from numpy.random import seed
seed(1)
import pyfftw
from scipy import integrate
from scipy import linalg
import matplotlib.pyplot as plt
import time as tm
import matplotlib.ticker as ticker
i... | [
"pawarsuraj92@gmail.com"
] | pawarsuraj92@gmail.com |
a4f2c36e4c3b0cede51f060454ace8927faf42d4 | 1fd180ffcaf78a8ef5029a753e8b7ebd6aa7cdc6 | /todolistapp/wsgi.py | a0714e3a7cfcb7f303b675f6ec51b5eec97c91a5 | [] | no_license | Ayush900/todo-list-app | 05033615e7c521c16b4f840bd5401eb4c8bb7fd7 | 1f9c30dedab0ef1da9d08361a097bf31eec5c3f8 | refs/heads/master | 2022-12-25T19:53:06.353732 | 2020-10-01T07:04:22 | 2020-10-01T07:04:22 | 269,395,956 | 0 | 2 | null | 2020-10-01T07:04:23 | 2020-06-04T15:26:49 | JavaScript | UTF-8 | Python | false | false | 399 | py | """
WSGI config for todolistapp 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ayush.mehrotra900@gmail.com"
] | ayush.mehrotra900@gmail.com |
a743f62797f79b84b388a7e62f55f385a17d8748 | 583fd6b6c826e2c4d23dfcff9d51fd7105b58289 | /apps/user/migrations/0002_userprofile_employee_type.py | 641740c4552f2045f12688a8a3e9449ecd99246b | [] | no_license | mjoyshuvo/RestaurantApp | eb47344804c8aa6caa2d3417ec174523f09b3496 | b1fdc1b5c38fcb7f7239871d5e3bc80179f86f38 | refs/heads/master | 2023-05-18T17:05:09.048594 | 2021-06-12T06:24:07 | 2021-06-12T06:24:07 | 373,832,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.0.7 on 2021-06-05 10:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='employee_type',
... | [
"mrityunjoy.das@adndiginet.com"
] | mrityunjoy.das@adndiginet.com |
b5cb0f2a23fb3dc6094dfc2ed5c8ae6a36b4cacd | c23349b824849b066c6a2d68958206055b021177 | /PP9.py | 7900d26506b4796819faecdb3b66013383849e46 | [] | no_license | veera-sivarajan/LearningPython | 5f84fe0b98b6649768881fa7ff7d2d07ec75b21d | 0a08c1e5f0dfe79b48ac1b4bbde7e13a0356472e | refs/heads/master | 2020-05-05T04:27:17.794941 | 2019-07-03T04:33:43 | 2019-07-03T04:33:43 | 179,712,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import random
random = random.randint(1,9)
guess = int(input("Enter a number:"))
if random == guess:
print("Your guess is right!")
elif random > guess:
print("Your guess is too low")
elif random < guess:
print("Your guess is too high")
| [
"sveera.2001@gmail.com"
] | sveera.2001@gmail.com |
8bf02c256d73472a61e065933f71d8e075957de5 | a3d1e8a67ed43e1bea59180cc51c49f25a961a49 | /scripts/dg2dotty | 1aee7a8c68572dcdabdf99da9567433445ae7d8b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | WladimirSidorenko/TextNormalization | 38b076d88a2de40dae72dc8b4096e354b774f2f4 | ac645fb41260b86491b17fbc50e5ea3300dc28b7 | refs/heads/master | 2020-04-14T16:48:42.541883 | 2019-09-29T23:38:28 | 2019-09-29T23:38:28 | 163,962,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | #!/usr/bin/env python2.7
# -*- coding: utf-8; -*-
"""
Utility for representing DG trees in DOTTY format.
Read a DG tree in CONLL-2009 format and output the read tree in GRAPHVIZ
format.
Input format (meaning of columns):
ID FORM LEMMA PLEMMA POS PPOS FEAT PFEAT HEAD PHEAD DEPREL PDEPREL FILLPRED PRED APREDs
0 1 ... | [
"wlsidorenko@gmail.com"
] | wlsidorenko@gmail.com | |
de8358d209f0dbfcb2af469c09f0adecc9434180 | 8aa1203e1a1c350da16921787133014831097391 | /luminardjangopgm/PythonCollection/ListDemi/listworkout2.py | 3c265d38f3861a8f435cfbcd15806d5de7e7f4df | [] | no_license | ashilz/luminarpython | 98fa4a87c60529d0c819e13bc5145e6f7d4ef01f | 9eb834448012bd60952cbc539409768cabd66325 | refs/heads/master | 2022-12-03T03:36:14.229723 | 2020-08-25T05:07:26 | 2020-08-25T05:07:26 | 290,109,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | lst=[10,12,13,14,15]
cnt=len(lst)
p=1
for i in range(0,cnt):
res=lst[i]**p
p+=1
print(res)
| [
"ashilantony333@gmail.com"
] | ashilantony333@gmail.com |
6329a5eb0abe1699d0eb3af5a0cf08d72dda2bdb | 69c2e1b106710d0018cae36fc63f56c61c859411 | /test-search.py | 026e1139ff18e186b63bd74e4004a72568ca44a1 | [] | no_license | willmurnane/store | a8636ccad2e220942e0d0699f4176323d326db55 | 065453987c492faeac07e3e2cd7fd574b0776d15 | refs/heads/master | 2021-01-01T15:35:14.775696 | 2013-11-10T14:42:03 | 2013-11-10T14:42:03 | 13,876,601 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #! /usr/bin/python
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
import sys
sys.path.append("..")
import store.models
from whoosh.index import *
from whoosh.query import *
from whoosh.qparser import QueryParser
index_path = "index"
ix = open_dir(index_path)
query = sys.argv[1]
print sys.argv[1... | [
"will.murnane@gmail.com"
] | will.murnane@gmail.com |
09f7ff38257927f817ca76e38b02d8f4f94da9fd | 730707fdefc2934929e1309cfbb0484d62b4bc34 | /backend/home/migrations/0001_load_initial_data.py | bc0ac08ee26bc6af244f1c1862878b762c7d3a2e | [] | no_license | crowdbotics-apps/tpl-account-securty-27301 | 885f78b6256e3da6733c534cb85b89f797476e5f | 44a580b64f14f7598b9e0c7a513976795992b15d | refs/heads/master | 2023-04-26T15:38:35.791087 | 2021-05-23T22:55:42 | 2021-05-23T22:55:42 | 370,173,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "tpl-account-securty-27301.botics.co"
site_params = {
"name": "tpl account securty page",
}
if custom_domain:
site_params["domain"] = custom_domain
Si... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1314ef75281011fc68f901e3661700823f076402 | 2d2a513e0bde6a9f814c49f36c480af46edfadd5 | /tests/__init__.py | 0354f67715a51889ce4a1d3c12fb29af2070109e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | stjordanis/rubicon-objc | 591aa6960e1d8b5ba58b403ab1b8ad8aec8f9ce4 | abe4f243487ab6305b12b9798ff330337f616dd7 | refs/heads/master | 2020-11-27T23:42:38.138686 | 2019-05-25T05:03:07 | 2019-05-25T05:03:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import faulthandler
from rubicon.objc.runtime import load_library
try:
import platform
OSX_VERSION = tuple(int(v) for v in platform.mac_ver()[0].split('.')[:2])
except Exception:
OSX_VERSION = None
try:
rubiconharness = load_library('rubiconharness')
except ValueError:
raise ValueError("Couldn't ... | [
"dgelessus@users.noreply.github.com"
] | dgelessus@users.noreply.github.com |
7d55e4f9b235c47896495ee39627711325cc23e6 | 234b14ae9bd4c8bc90b88ae84b9d0a2fd51b9fc3 | /Sid/Day1/variable.py | 7d056dd5b0a4e000a05d23512e0eeab2616cf560 | [] | no_license | Siddhant6078/Python | a7e730ef63435b8c114782158ebadc9ec5bfde89 | 1f9ad00b78fe417f3702a5e6421d8fccbb9d1c8f | refs/heads/master | 2021-07-11T20:09:49.369503 | 2017-10-14T13:40:30 | 2017-10-14T13:40:30 | 105,008,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | counter = 100 # An integer assignment
miles = 1000.0 # A floating point
name = "John" # A string
print counter
print miles
print name
a = b = c = 1
print a,b,c
a,b,c = 1,2,"john"
print a,b,c
var1 = 1
var2 = 10
print var1,var2
del var1
print var1 | [
"nishant.c@indictrans.com"
] | nishant.c@indictrans.com |
ef232dab5bc20bf3a6e6d2877ede262ab60bd9c8 | 99249dad36df26a712ae8d900041d53acf3901ea | /settings/configurations/LCLS_settings.py | 0f4d71a15a5f657650c92536b3cfb5a54b7d163c | [
"MIT"
] | permissive | bopopescu/Lauecollect | f1f79c2cc5ff106df0dedbd6939ec92630d2b305 | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | refs/heads/master | 2022-11-29T00:40:28.384831 | 2019-06-05T01:21:36 | 2019-06-05T01:21:36 | 280,989,300 | 0 | 0 | MIT | 2020-07-20T02:03:22 | 2020-07-20T02:03:22 | null | UTF-8 | Python | false | false | 1,034 | py | MicroscopeCamera.ImageWindow.Center = (679.0, 512.0)
MicroscopeCamera.Mirror = False
MicroscopeCamera.NominalPixelSize = 0.000517
MicroscopeCamera.Orientation = -90
MicroscopeCamera.camera.IP_addr = '172.21.46.202'
MicroscopeCamera.x_scale = -1.0
MicroscopeCamera.y_scale = 1.0
MicroscopeCamera.z_scale = -1.0
WideFieldC... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
5c36ae6fce8ec9601832a3503e9a4f0e716f1f1d | a35dadcdca748197bc400cebc180b58fe8f0735a | /constants.py | 06f781bd894b739f694e6c9e5ed6447e66a2aa70 | [] | no_license | RGologorsky/CS-182-final-project | ec232bb40bca4ffab935be536ca8540972be57e6 | 117b3159b879d07c1195204718dadf2e696469f7 | refs/heads/master | 2022-09-23T03:33:08.991790 | 2020-06-04T22:13:36 | 2020-06-04T22:13:36 | 112,677,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,337 | py | MULTIVAR = set(["AM21B","MATH21B", "MATH23B","MATH25A", "MATH55A"])
LINALG = set(["AM21A","MATH21A", "MATH23A","MATH25B", "MATH55B"])
STAT110 = "STAT110"
CS050 = "CS050"
CS051 = "CS051"
CS061 = "CS061"
CS020 = "CS020"
CS121 = "CS121"
CS124 = "CS124"
CS181 = "CS181"
CS182 = "CS182"
MATH23A = "MATH23A"
MATH25B = "MATH25... | [
"rgologorsky@college.harvard.edu"
] | rgologorsky@college.harvard.edu |
39b71d964b507c6bddee391d264382ee2a09e569 | aad38f959313c008af3cff6f2595c05131e0ae60 | /week4/common/cloudAMQP_client_test.py | 701364b71aaa2de82e1d3d121c82d7858c9f8899 | [] | no_license | wansuiye09/News-Scraping-and-Recommendation | 82c128e3a31df95b6d19107db969e318810695b8 | a3e9149d6952fc216dd6b5f21e8ad97fafa09168 | refs/heads/master | 2021-05-10T13:10:55.362946 | 2017-06-19T15:01:57 | 2017-06-19T15:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from cloudAMQP_client import CloudAMQPClient
CLOUDAMQP_URL = 'amqp://dfrwrfgh:57HQ4sghISj3dAGA42BQbVf9AOqzrj0c@crocodile.rmq.cloudamqp.com/dfrwrfgh'
QUEUE_NAME = 'test'
def test_basic():
client = CloudAMQPClient(CLOUDAMQP_URL, QUEUE_NAME)
sentMsg = {'test_key': 'value'}
client.sendMessage(sentMsg)
cl... | [
"ezhangmarvin@gmail.com"
] | ezhangmarvin@gmail.com |
66b303e32158b5df66849ee037cff4b3c3ee363c | 7334b65c9506f69167402fe0d473821853724250 | /build/shinobot/catkin_generated/pkg.installspace.context.pc.py | 7e33aafc4d08a69c52f401c038b137e2b9bfc9e1 | [] | no_license | hphilamore/shinobot_ws | f5d044af587959009992f090f832279f52daf94f | 153ff65f72729a2a1fd84f84305a78aae7373b73 | refs/heads/master | 2022-12-26T14:47:46.977468 | 2020-10-08T19:54:04 | 2020-10-08T19:54:04 | 267,820,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "shinobot"
PROJECT_SPACE_DIR = "/home/... | [
"hemmaphilamore@gmail.com"
] | hemmaphilamore@gmail.com |
5886518f9d4354fc2e92ba2b794837444e2ce652 | 24aa54e27ea3aa648f1c2d898f2412a4a89678e4 | /deep_glide/envs/withMap.py | 888260c9a7155b378f2aab63228f4eb0059611db | [] | no_license | afaehnrich/deep-glide | 44246dbb9534c75e353b6c71cef1fab141b6746b | d80c857ee83e674c1ad2fe8670fa7f621ae8bb7e | refs/heads/master | 2023-08-12T11:02:42.394090 | 2021-09-27T13:41:10 | 2021-09-27T13:41:10 | 314,990,517 | 0 | 0 | null | 2021-09-27T13:14:43 | 2020-11-22T08:19:27 | Python | UTF-8 | Python | false | false | 6,467 | py | from abc import abstractmethod
from enum import auto
from deep_glide.envs.withoutMap import Scenario_A
import numpy as np
from deep_glide.sim import Sim, SimState, TerrainBlockworld, TerrainClass, TerrainClass90m, TerrainOcean, TerrainSingleBlocks
from deep_glide.envs.abstractEnvironments import AbstractJSBSimEnv, Term... | [
"a.faehnrich.acc@gmail.com"
] | a.faehnrich.acc@gmail.com |
ecc631a48f59fcc28412207e3d56e26f26d614f1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/222/33411/submittedfiles/al6.py | a4e5c49916c0a47643dc35834d5f8c7cd5aca7c0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*-
a=int(input('Digite a:'))
contador=0
for i in range(2,a,1):
if n%i==0:
contador=contador+1
print(i)
for i in range(2,a,1):
if n%1==0:
contador=contador+1
print(i)
if contador==0:
print('Primo')
else:
print('Não primo')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c85c091a3229318315dafe45d892f4fe27ad63c5 | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/All_Solutions/0480.滑动窗口中位数/0480-滑动窗口中位数.py | b6a27a3906d116af6ae8695a4eafea53559a93c4 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 940 | py | import bisect
class Solution:
def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]:
"""
My solution, using sorted list
Time: O(nlog(k))
Space: O(n+k)
"""
res = []
if not nums or not k:
return res
def append_m... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
1eb38977bcd60dc2b44b88bac65269a4e1e247a7 | 5d441b10415e452113e395681e4b80e2c8f2bf8c | /commands/por_ano_melhorado.py | e3bb05ab68ee1599a532f6e45868a5c9938b80b4 | [] | no_license | diegobaron2612/copa_transparente | 5fe49fe2c1785e8cd3808fe95c305a8a18dbab3f | e74663224012249d0c4c7688704d2659771ab350 | refs/heads/master | 2021-07-11T03:24:12.861363 | 2021-03-28T19:39:51 | 2021-03-28T19:39:51 | 242,865,154 | 0 | 0 | null | 2020-02-24T23:21:09 | 2020-02-24T23:21:08 | null | UTF-8 | Python | false | false | 478 | py | def contar_execucoes(caminho):
totals = {}
with open(caminho, "r") as data:
for line in data:
info = line.strip().split(";")
year = int(info[8][-4:])
totals.setdefault(year, 0)
totals[year] += 1
sorted_totals = sorted(totals)
for year in sorted_t... | [
"viniciusdesk@icloud.com"
] | viniciusdesk@icloud.com |
35b8a0e073fe1e4ace98a7f1bbf543673ee3905f | f648b8263f130f3be7fd07e87d1b9c12a3e94ffb | /webScraper.py | 928df5de15ff32eb750e40ef671fc31069bbd81a | [] | no_license | StaaleA/FinnScraper | 43777ca9fbb16ae3b526a9fa2a8a5c2e16abaaf1 | 5c2c7d7cbeda392f92931c026b4ea265b913afb5 | refs/heads/master | 2021-01-01T04:40:23.819003 | 2016-05-08T11:21:15 | 2016-05-08T11:21:15 | 56,928,471 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | from lxml import html
from datetime import datetime
import requests
import boto3
import sys
# Gets info about two search terms; "datavarehus" and "business intelligence"
datavarehus = requests.get('http://m.finn.no/job/fulltime/search.html?q=datavarehus&industry=65&industry=8&industry=34&sort=1')
businessIntelligence ... | [
"staaleas@gmail.com"
] | staaleas@gmail.com |
1dbd941eaa595923b6c8f889ba43df856f7e2df6 | 565892be77daffe1250229fbd1a8ed94819bff56 | /src/basic_syntax_python.py | b97527ebe07af6e6ed81ea3f96a1e5fe4b807447 | [] | no_license | Romzzes/basic_python_selenium_test | 6a05b9ba578d8254faadc43ea5056cd9c6b3d26a | 4a21f06fec20b76c14c7fa7768f05dada81ebd8c | refs/heads/master | 2020-08-15T09:42:35.275398 | 2019-10-21T14:36:58 | 2019-10-21T14:36:58 | 215,319,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from selenium import webdriver
name = "Roman"
height = 180
weight = 83.5
married = False
age = 65
height = height + 6
height += 6
a = 4
b = 6.5
c = "2.5"
print (weight + height)
print (name + str(height))
print (name + " is " + str(height) + " cm and " + str(weight) + " kg")
print ("My name is " + name)
print ("nam... | [
"Romanpopov120793@gmail.com"
] | Romanpopov120793@gmail.com |
a49c16b1780e0f525fcaef9f2316c830deb44dd2 | 4cabdcc3cdf929fa7cf761a42cd3012d01494336 | /pipeline/mongodb/connector.py | 02c440be290a00f350da0205b88def477f43851c | [] | no_license | pjt3591oo/python-boilerplate | 660e3234aa45f18ed553f499674c54e3226bfaf4 | 1ea8d84cfc06c84bab934f779ead309e8e4e7c14 | refs/heads/master | 2021-01-01T06:53:18.184728 | 2017-07-19T01:06:54 | 2017-07-19T01:06:54 | 97,542,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from config.DB import CONNECTOR_INFO
CONNECTOR_INFO['mongodb'] | [
"pjt3591oo@gmail.com"
] | pjt3591oo@gmail.com |
321bd9b50369d94963a04a588e9292a874dd1c3b | d2a88f8decc3c101c3a029d1ea269dab95e3d98a | /pages/product_page.py | 308b844b0a5d8b9684dc48b7983657fb76fb4be6 | [] | no_license | arinablake/new_python-selenium-automation | 6841c6ef434671dcb9912d76a55b4c0c2c5cad0b | 771eb7579918bcbbe4605962f3c1eda03c4993ff | refs/heads/master | 2022-11-26T08:38:31.016555 | 2020-08-02T00:08:23 | 2020-08-02T00:08:23 | 267,146,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from pages.base_page import Page
from selenium.webdriver.common.by import By
from time import sleep
class Product(Page):
NEW_ARRIVALS = (By.CSS_SELECTOR, '#nav-subnav > a:nth-child(7)')
DEALS = (By.CSS_SELECTOR, '.mega-menu')
def hover_new_arvls(self):
new_arvls_btn = self.find_element(*self.NEW_... | [
"arinafilippova@gmail.com"
] | arinafilippova@gmail.com |
4476af7a141bf5d8e5169068416e88b445882d90 | e7759f8c701f7fc983c64280a21d6d0c59398e57 | /Labs/lab07_08_featherbear/src/booking.py | 700d5eec96120132d3b0c1f6b518786bf030926d | [] | no_license | featherbear/UNSW-COMP1531 | 3fbe33986065f464fa2ce4615588220b57cb55ad | 3fff3663972034e9f6ce621fb06531b06a8d488f | refs/heads/master | 2021-06-26T17:16:03.321442 | 2021-06-12T09:00:39 | 2021-06-12T09:00:39 | 170,249,325 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | class Booking(object):
def __init__(self, customer, period, car, location):
self._customer = customer
self._period = period
self._car = car
self._location = location
@property
def fee(self):
return self._car.get_fee(self._period)
@property
def lo... | [
"ian.isu.park@gmail.com"
] | ian.isu.park@gmail.com |
2e8c16e2e289f06947cb7b4b8a393ad42740713b | d08a0812d783fc72ca0d52b2c0172b846a1c0ffe | /helper_functions.py | 60662f0950000f526dbcc6f032fcdfe433f1c4cf | [] | no_license | NathanVenos/Electricity_Price_Forecasting | 7ca18ec77bbf06e865b77161f3973fa0218468de | 17495baf62bfe99d76b42dac24f76e93f11f0925 | refs/heads/master | 2020-09-11T06:19:19.102654 | 2020-01-21T17:58:44 | 2020-01-21T17:58:44 | 221,967,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,244 | py | import numpy as np
import pandas as pd
import json
import requests
from fbprophet import Prophet
from sklearn.metrics import mean_squared_error, mean_absolute_error
from datetime import date
def generate_api_call_times(start_time, interval_length, intervals):
"""
Generates a list of times for which api calls c... | [
"nathanvenos@gmail.com"
] | nathanvenos@gmail.com |
557dc77ea9e99dbf933860debf7334305d13e6aa | eff5f0a2470c7023f16f6962cfea35518ec0b89c | /Storage_Xs and Os Champion.py | 7d81e185c2aae6377e67314d2e8577330d0932e8 | [] | no_license | olegJF/Checkio | 94ea70b9ee8547e3b3991d17c4f75aed2c2bab2f | fc51a7244e16d8d0a97d3bb01218778db1d946aa | refs/heads/master | 2021-01-11T00:46:42.564688 | 2020-03-02T13:36:02 | 2020-03-02T13:36:02 | 70,490,008 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # -*- coding: utf-8 -*-
def x_and_o(grid, mark):
X_vs_O = {'X':'O', 'O':'X'}
def winner(grid, mark):
WINNER_WAYS = ((0, 1, 2), (3, 4, 5),
(6, 7, 8), (0, 3, 6),
(1, 4, 7), (2, 5, 8),
(0, 4, 8), (2, 4, 6)
)
... | [
"jf2@ua.fm"
] | jf2@ua.fm |
bd47d3f1d21fd2a4603924825d0945b67780bbf8 | 0daa4596579a40c4148b379bda3949579adc9789 | /csvimporter.py | 17ff05943f8cf291435299b2c8c7d3e7fa53c52b | [] | no_license | JustinHodge/C950 | 20c1bcbfcbf33303f2a059ba805c08dc4fdc6aee | 4c0de4aaeb4d14e1a9327771d0758ce06a2d7e42 | refs/heads/master | 2023-02-08T22:45:54.880405 | 2021-01-05T02:16:13 | 2021-01-05T02:16:13 | 314,898,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | import csv
from hash_table import HashMap
from wgupspackage import WGUPSPackage
distance_table = "WGUPS Distance Table.csv"
package_table = "WGUPS Package File.csv"
# this method will open the csv file passed in and parse it returning a usable list format
# O(1)
def csv_import(file_name):
csv_as_list = []
wi... | [
"51083905+JustinHodge@users.noreply.github.com"
] | 51083905+JustinHodge@users.noreply.github.com |
ab81ba9e96858582ad8b65f4288a0df3ba0e34f5 | f9f4b4ea4c8b51e0b5cba79f72745bce0564185b | /56tingshu/pipelines.py | e39409e084d31ce4591c80713990ff7b00ff6d03 | [] | no_license | nightBuger/ting89Catch | c01ed02ee5acb2621e10b981b04e98e6ed12c6fe | 55f2964b5ec774d48f05e3bbf14d41734b70bb0b | refs/heads/main | 2023-07-28T01:38:27.431230 | 2021-08-29T16:48:44 | 2021-08-29T16:48:44 | 387,152,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,086 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
from scrapy.pipelines.files import FilesPipeli... | [
"4788665@qq.com"
] | 4788665@qq.com |
e70fb6cd614e83147c29b14ad1473ff1362210a3 | 9fb6f860bc4050add478c92bb1110fcf5047680e | /functions/inference_fcns.py | 7cd5a19b70006010065048423f9e5ccaa34db95d | [
"Apache-2.0"
] | permissive | UCLA-StarAI/HwAwareProb | 9255202c90d67d6dcfe558e11394e27dbe95fe14 | 972e7924616f96cdbbeeec140c191e0fb5860632 | refs/heads/master | 2021-06-28T02:52:24.719997 | 2021-03-18T02:39:00 | 2021-03-18T02:39:00 | 217,924,553 | 0 | 0 | Apache-2.0 | 2021-03-18T02:39:00 | 2019-10-27T22:23:38 | null | UTF-8 | Python | false | false | 3,256 | py | import operator
def prod(factors):
return reduce(operator.mul, factors, 1)
def init_weight(content_ac,content_lmap_parsed_indeces,content_lmap_parsed_weights):
weight_ac = [None] * len(content_ac)
for i, ac in enumerate(content_ac):
if ac[0] == 'L':
index = int(ac[2:len(ac)])
... | [
"laura.galindez@esat.kuleuven.be"
] | laura.galindez@esat.kuleuven.be |
4ba8ab1fb6488c448855d281c6cf1a00684f4f3d | 3572182a76026b2ff1afcb9cb4fe1e8b138b2edc | /scripts/lightsensors2.py | 05976595bed876b6484ba2912f184798006d9486 | [] | no_license | tak-mahal/pimouse_ros | 489d8785360d5dbc688346e31d013a81e888ed44 | 234e939b1d739634db7a7efe67111190baf1efcd | refs/heads/master | 2020-04-02T03:34:59.306485 | 2019-01-01T12:44:06 | 2019-01-01T12:44:06 | 153,973,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #!/usr/bin/env python
import sys, rospy
from pimouse_ros.msg import LightSensorValues
if __name__ == '__main__':
devfile = '/dev/rtlightsensor0'
rospy.init_node('lightsensors')
pub = rospy.Publisher('lightsensors', LightSensorValues, queue_size=1)
rate = rospy.Rate(10)
while not rospy.is_shutdown(... | [
"kawakami.takuma@takenaka.co.jp"
] | kawakami.takuma@takenaka.co.jp |
38ec59fe7a2b66fa41df94fca1b20e945f6c612e | 7c7fab5672f2ca5956474908e50cae448e3b4359 | /tools/lib/template_parser.py | 0d38e7cfa4165feb196b1f469af0dec02a28f5cc | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown"
] | permissive | tobby2002/localzulip | b7656fd06e66c0817c3f9803fbafde5dcdf60d1a | bfedd3f5686b91a5e332c96b4102b16c4e1b6fa9 | refs/heads/master | 2022-12-10T18:20:42.823580 | 2016-09-30T00:28:18 | 2016-09-30T00:28:18 | 69,618,407 | 1 | 0 | Apache-2.0 | 2022-12-07T23:39:23 | 2016-09-30T00:18:26 | Python | UTF-8 | Python | false | false | 7,483 | py | from __future__ import absolute_import
from __future__ import print_function
from typing import Callable, Optional
from six.moves import range
import re
class TemplateParserException(Exception):
# TODO: Have callers pass in line numbers.
pass
class TokenizerState(object):
def __init__(self):
# typ... | [
"tobby2002@gmail.com"
] | tobby2002@gmail.com |
bc38069aef7b32c7c351685d0b2122f0d604529e | 2f5d221d5cd423f07da50ed8be9668d811e550b4 | /airtest/core/ios/fake_minitouch.py | b5eb7986af962fc31648c001e4259ad16c8af15a | [
"Apache-2.0"
] | permissive | Pactortester/Airtest | d1db25498591992dee525b2ceeb45de9239b319f | 18e57ae2bbde3f2b95c32f09e214fdf4aec41330 | refs/heads/master | 2022-06-03T22:52:54.939200 | 2020-06-29T01:01:30 | 2020-06-29T01:01:30 | 275,080,743 | 1 | 0 | Apache-2.0 | 2020-06-26T05:28:02 | 2020-06-26T05:28:02 | null | UTF-8 | Python | false | false | 1,979 | py | # coding=utf-8
import subprocess
import os
import re
import struct
import logging
from airtest.utils.logger import get_logger
from airtest.utils.nbsp import NonBlockingStreamReader
from airtest.utils.safesocket import SafeSocket
LOGGING = get_logger(__name__)
class fakeMiniTouch(object):
lastDown = {'x': None, '... | [
"lxn3032@corp.netease.com"
] | lxn3032@corp.netease.com |
7066f6fd5882ec68a145a9b5116e7c5eff2d33f2 | a854f81f3ca0d6e6d6cf60662d05bc301465e28c | /backend/booking/migrations/0001_initial.py | 4d479654287d6f6f7b495a5050811e171d37cb04 | [] | no_license | crowdbotics-apps/lavadoras-19637 | 7f99e2046a6a92cdcfaec052eb9eadfd807193fd | 577d0da2626867a8a1b27d2df386c8598e4adc6d | refs/heads/master | 2022-12-02T21:15:17.103593 | 2020-08-18T08:28:47 | 2020-08-18T08:28:47 | 288,397,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | # Generated by Django 2.2.15 on 2020-08-18 08:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('location', '0001_initial'),
('taxi_profile', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b868e52bfe4f8289a0b4ee764a4cdd78272d6019 | c0d30680d859506be19468d4d42df3f930f97bed | /django/dabiao_new/dabiao/data/views.py | cc50d4e3bb264f7b9ea78846d9c1430245ee894b | [] | no_license | glennneiger/deepdraw | bf2aca0acdc6ab6a57731e872f7287497428c280 | 52c4a50df3c1890499b0c42a3a02f6d418d31f40 | refs/heads/master | 2020-12-03T22:48:05.166524 | 2020-01-03T01:36:05 | 2020-01-03T01:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework.views import APIView
import requests
import json
from string import digits
from data.models import Tripletmark
# Create your views here.
class Test_Base(APIView):
def get(self, request):
print('ok')... | [
"laipan@deepdraw.cn"
] | laipan@deepdraw.cn |
75d146601fcfb74873d0571bc7d1e05b92491d12 | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_32/0504_softmax_regression.py | 5d1daab24d438285e89be0a81cd2092dde31f122 | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 1,389 | py | import myutil as mu
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import sys
sys.path.append("/data")
torch.manual_seed(1)
x_train = [[1, 2, 1, 1],
[2, 1, 3, 2],
[3, 1, 3, 4],
[4, 1, 5, 5],
[1, 7, 5, 5],
[1, 2, 5, ... | [
"793679547@qq.com"
] | 793679547@qq.com |
0cb54dfdd0286d6326cf13ee4b734b2e4564e0f8 | 627ac9ef7baefa817f5824c3e5a306d46304e2eb | /Lagrange Polynomial.py | 79ee5db1cd1a4f68f0b76c9d73d6f4654f0168d3 | [] | no_license | sieginglion/Numerical-Analysis | b23a1abd3498f182880de8e0378d68d8d824ea68 | 54247db2ea1180894bf8320014587c491dac9695 | refs/heads/master | 2021-06-13T07:43:49.808886 | 2017-03-20T21:44:21 | 2017-03-20T21:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # Pn(x) = Sigma[f(xk) * Lk(x)] from 0 to n
# Lk(x) = Pi[(x – xi) / (xk – xi)] from 0 to n and n != k
# f(x0) = 1, f(x1) = 2, f(x3) = 3
# P(x) = 1 * (x - 2)(x - 3) / (1 - 2)(1 - 3) + ... | [
"s103031111@outlook.com"
] | s103031111@outlook.com |
33277af45dfcc7f2343a16e2514aff499af5abea | 5869fa875a0070b49f2a5c14861b3f4a72c75ddc | /Coollibrary_tutorial/LibraryApp/models.py | a2b63d088d84706ccc8dd456e87b9701d738c15c | [] | no_license | IzhykOleh/Coollibrary-tutorial | 0c02a9cd4c7fc5d4619c431abbc43a67b432009e | ab5d588fdd78e2051e2a1aafbeec1202b3f42826 | refs/heads/master | 2020-04-29T07:39:51.474086 | 2019-03-16T11:25:37 | 2019-03-16T11:25:37 | 175,961,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | from django.db import models
class Team(models.Model):
char_field = models.CharField(max_length=40)
choices = (
('U09', 'Under 09s'),
('U10', 'Under 10s'),
('U11', 'Under 11s'),
)
charfield_choices = models.CharField(max_length=3,
ch... | [
"izhykoleh18@gmail.com"
] | izhykoleh18@gmail.com |
0259840c4fbc274cb2b4428c31cf763cbd64e996 | b74eb41b660fe49320ba9f1c8aeb0f3f260e17ff | /easy_rosetta/session.py | 42045f3f4864255f6fabb900cbe056a5373072c1 | [] | no_license | walterwu/easy_rosetta | 605abebf8940060b53f928179c54fd305e581d41 | a639c9751cb9c1cf678c0abfc2104578f4b086ce | refs/heads/master | 2020-03-30T08:23:27.579395 | 2019-02-18T07:49:34 | 2019-02-18T07:49:34 | 151,011,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,749 | py | import pickle
import sys
import os
from .utils import *
from .constants import *
from .config import EasyRosettaConfig, ProtocolConfig
class Session():
def __init__(self, session_name=None, working_dir=None, protein_name=None, progress_dict=None, protocol_configs=None):
self.session_name = session_name
... | [
"walter.wu@berkeley.edu"
] | walter.wu@berkeley.edu |
10cffa971d36c5098b5eeb3386cca4463986e19c | 1dfada4543ffe314ba0077a3446675de2ee6076b | /users/signals.py | faa82e95328912bfaa2c5249afbf185fb590a53d | [] | no_license | michaelkamande/blissfulhomes | a1c19ab23c5ba8eb5fb9e229d6867dcbebdf857d | d711de53a313ea952e80652b48260ff5d8b94c9a | refs/heads/master | 2022-11-11T15:57:03.247798 | 2020-07-06T08:20:55 | 2020-07-06T08:20:55 | 277,481,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
@receiver(post_save, sender = User)
def create_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.create(user = instance)
@receiver(po... | [
"mike@hotmail.com"
] | mike@hotmail.com |
66ee42bf083364ea3975225cfe14efbc76c1c287 | 8760f182049d4caf554c02b935684f56f6a0b39a | /boar/facebook_connect/migrations/0002_profile_onetoone_to_user.py | ed79636574a8ae85a20dfee1a85138d28e7f7b15 | [
"BSD-3-Clause"
] | permissive | boar/boar | c674bc65623ee361af31c7569dd16c6eb8da3b03 | 6772ad31ee5bb910e56e650cc201a476adf216bc | refs/heads/master | 2020-06-09T06:59:31.658154 | 2012-02-28T19:28:58 | 2012-02-28T19:28:58 | 1,734,103 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py |
from south.db import db
from django.db import models
from boar.facebook_connect.models import *
class Migration:
def forwards(self, orm):
# Changing field 'FacebookProfile.user'
# (to signature: django.db.models.fields.related.OneToOneField(to=orm['auth.User'], unique=True))
... | [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
82b29211a6b91229fbd09b657dc3d5bd09b371d1 | 15f438d029528a978383f24f85035c911e314b72 | /scripts/view.py | fb6535e75554b37be86f943e960d3f272dce0ff1 | [
"MIT"
] | permissive | rg314/autoballs | 91d11315a61d4c088b099744301b3f1b68eecc93 | 21fab5c810f18c0d50c23051928d3bb86fbc6941 | refs/heads/main | 2023-05-30T11:48:52.901933 | 2021-06-23T14:48:27 | 2021-06-23T14:48:27 | 341,683,921 | 1 | 0 | MIT | 2021-03-18T23:28:23 | 2021-02-23T20:39:55 | Python | UTF-8 | Python | false | false | 760 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import statsmodels.stats.multicomp as multi
data = pd.read_csv('results/20210226 Cam Franze_results/res.csv')
sns.set_style("white")
sns.set_style("ticks")
ax = sns.boxplot(y='Median axon', x='Gel type', data=data, palette="Blues")
... | [
"ryan.greenhalgh@hotmail.co.uk"
] | ryan.greenhalgh@hotmail.co.uk |
f5519d705ed4169137add38ab789ba5a84d47bf8 | 5684c015980cc9bb86844345c33e0d50283d617f | /test/test_replace.py | 2ab0015dce65a2d9bbc4f4bc3735084df0ba3859 | [
"MIT"
] | permissive | JIYANG-PLUS/ustjson | 5da0b3ab7c18ba0a8565ea7e91389e8f00e8cfc9 | f96fe00d0c23575c22aca8075dd544c1a460287f | refs/heads/master | 2021-07-09T01:35:46.545806 | 2020-11-25T02:59:11 | 2020-11-25T02:59:11 | 216,016,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from ustjson.Capture import Capturer
from ustjson import TreeBuilder,SpecialText,read_txt,replace_id_feature
from ustjson.read_pdf import read_pdf
import re,datetime,os,pprint
os.chdir('/Users/jiyang/Desktop/')
file_name = 'test.pdf'
flag = '0123456789$'
now_id_split_char = '.'
patt = re.compile(r'^第(.{1,5}?)条')
text, ... | [
"jiyangj@foxmail.com"
] | jiyangj@foxmail.com |
47693d0710e9c072cad944e857787701b982ce3d | 0ea12ae71b3863a8279fd7200e61f5c40dc3dcb6 | /image_bosch_detect_ssd_mobile.py | 92fd277b6022c6d929dd37d5dae50ebf4863411d | [
"MIT"
] | permissive | scrambleegg7/Traffic-Light-Classification | 7dafb32f43bf1c73d62c645105cdc414ebb0cf44 | 2a9f6b8272866f289963905b162c35058ce6a234 | refs/heads/master | 2020-04-03T02:58:44.729521 | 2018-10-28T14:57:44 | 2018-10-28T14:57:44 | 154,973,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | import tensorflow as tf
import numpy as np
import datetime
import time
import os, sys
import cv2
from PIL import Image
import yaml
from glob import glob
try:
import matplotlib
matplotlib.use('TkAgg')
finally:
from matplotlib import pyplot as plt
from object_detection.utils import visualization_utils as ... | [
"donchan@milano.local"
] | donchan@milano.local |
a6ed2f7ef8aa2918d09efb0206500abcbc374bb2 | c762d74617d816e989ce86780e414bd6fed40157 | /code/auxiliary/SupervisedModels.py | 1d77eb575776a9ca381f798378e79ac6d71a7725 | [] | no_license | sfwatergit/IO-HMM | 293f5adc7ed14780d7ce0d2d4298b0d65b1c7c24 | 13ae526e6fe289fdfb34679ffd8bd497f62e2b9c | refs/heads/master | 2021-01-11T12:16:00.619550 | 2016-09-28T23:03:00 | 2016-09-28T23:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,893 | py | from __future__ import division
import numpy as np
from scipy import linalg, special
from numpy.linalg import norm
import statsmodels.api as st
import family
from scipy.sparse import linalg as sp_linalg
from sklearn import linear_model
from sklearn.preprocessing import LabelBinarizer
from sklearn.utils.optimize impor... | [
"yinmogeng@gmail.com"
] | yinmogeng@gmail.com |
84d43864ef2048b246ffb95eeccc37cd8ec22c52 | 97c2b0a57f6bb07a0b71641dd8bb81ae4f333515 | /191217/main.py | 6edb608c58f66b011215492e297c753314597abb | [] | no_license | miyabi625/kaggle-pfs | cedbf29abde9d129d22f919605c01f60d878a305 | 72137cc8587cd00e9a8ab49648c74cb0a26cc728 | refs/heads/master | 2020-10-01T06:21:42.388085 | 2020-01-15T23:19:05 | 2020-01-15T23:19:05 | 227,477,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | ####################################################
# インポート
####################################################
import data_load
import model as model
import logger
import logging
import numpy as np
import pandas as pd
####################################################
# 定数宣言
######################################... | [
"miyabi625@gmail.com"
] | miyabi625@gmail.com |
f3342ae253a6c3ea4cdf0a8b6733c66468df32a0 | b47a907e824b52a6ee02dfb6387d24fa4d7fe88f | /config/settings.py | 711faa6f8b40f97ba26f9110ae9b2a5e620c989a | [] | no_license | hiroshi-higashiyama/DJANGO-KAKEIBO | 413a883fdef2571cacbd6c8679e63a6aecab7ae9 | 564c6047fcc6f6bb4a45b2eec121df619d158952 | refs/heads/master | 2022-12-29T19:53:15.186934 | 2020-09-21T01:04:10 | 2020-09-21T01:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"s20840011@gmail.com"
] | s20840011@gmail.com |
a3250628cfe4b7bd81a0cfd021620ea7fa5102e3 | e5dafd36bb8ceaf8d68fd38188bdf2e80136d9ab | /helloworld.py | 2e36877658e09f2cb17e264defa770af9a61f62d | [] | no_license | arsalanahmad4/github-repo | e09ceeb1f90f87c61cdf9bb9d15f4794fc3fc012 | e506f198421d8b9002fa222afdde307eb3edb68e | refs/heads/master | 2023-01-23T06:33:02.737916 | 2020-11-12T16:44:54 | 2020-11-12T16:44:54 | 312,322,775 | 0 | 0 | null | 2020-11-12T16:29:06 | 2020-11-12T15:47:10 | Python | UTF-8 | Python | false | false | 76 | py | print('hello world')
print('dev branch')
print('new change in dev branch')
| [
"arsalanahmad0407@gmail.com"
] | arsalanahmad0407@gmail.com |
271e0a82482eb25eaca4b7f12e7efeb08508fb7a | 9206e405e9be5f80a08e78b59d1cb79c519ae515 | /algorithms/codeforces/the_number_of_even_pairs/main.py | 7b7aac218751e1de472854d40e92a53218a4c619 | [] | no_license | mfbx9da4/mfbx9da4.github.io | ac4e34f0e269fb285e4fc4e727b8564b5db1ce3b | 0ea1a0d56a649de3ca7fde2d81b626aee0595b2c | refs/heads/master | 2023-04-13T22:15:19.426967 | 2023-04-12T12:14:40 | 2023-04-12T12:14:40 | 16,823,428 | 2 | 0 | null | 2022-12-12T04:36:08 | 2014-02-14T01:30:20 | SCSS | UTF-8 | Python | false | false | 738 | py | """
"""
from math import factorial
def int_as_array(num): return list(map(int, [y for y in str(num)]))
def array_as_int(arr): return int(''.join(map(str, arr)))
def read_int(): return int(input())
def read_array(): return list(map(int, input().split(' ')))
def array_to_string(arr, sep=' '): return sep.join(m... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
9a357773dc9557d0d326bc7c9bc1a1e5cdb927ce | 91c5391b6960cad5ca476bce685a73918568fcaf | /Assets/XLua/Tutorial/TODOTest/Resources/xls2lua/Lib/email/message.py | 409721e6cf3e920eee833a62f1f4a1ec018f7874 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | ljz/xLua | a6fa7cda38e609946633a99310c7d082afc116b6 | 44d484208fce409d87b3353e1441c52576b561bf | refs/heads/master | 2021-04-30T10:50:07.816281 | 2018-06-24T05:19:42 | 2018-06-24T05:19:42 | 121,334,404 | 0 | 0 | null | 2018-02-13T03:31:19 | 2018-02-13T03:31:19 | null | UTF-8 | Python | false | false | 46,510 | py | # Copyright (C) 2001-2007 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""Basic message object for the email package object model."""
__all__ = ['Message']
import re
import uu
import quopri
from io import BytesIO, StringIO
# Intrapackage imports
from email import u... | [
"964697423@qq.com"
] | 964697423@qq.com |
2874996f6c897cca1dca1e9260b196d93d55bff3 | bad1849b772933eb45775d1a3484d9b6e8354e3c | /opt/omd/versions/1.2.6p16.cre/share/check_mk/web/plugins/views/availability.py | 6fe7ce261e3273e6bd9fd67fa738565758a7b7b8 | [] | no_license | parvathikonda/My-Repos | 620cbb52321a37e47d3e83d93777570f03913ef7 | 2b748c0c75f14634a0f1efa8db53ea1b5bf2e388 | refs/heads/master | 2020-12-24T18:50:51.483479 | 2016-04-23T05:16:49 | 2016-04-23T05:16:49 | 57,040,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,399 | py | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | [
"parvathi.konda@techwave.net"
] | parvathi.konda@techwave.net |
cd50fc8b715db9544fca346be9d2f59be5483792 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/FrogRiver_20200723134656.py | b53537eb14ce4472bd411f219e101697e4edb59b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def Frog(X,A):
# given x where the frog wants to go
# find earliest time
# once you get the second that has that position
# return the second
pos = set()
print(Frog(5,[1,3,1,4,2,3,5,4]))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6e5b22d94e41c54bed477e9c213add68291fd728 | d85cc746428e787254455c80b66a7309aa715e24 | /demo_odoo_tutorial/models/models.py | fc9e8beafbb712f17fd48d60021152bfda775a67 | [
"MIT"
] | permissive | AllenHuang101/odoo-demo-addons-tutorial | 2ef7d47432a2530f1e704f86cba78e3e975ca0f3 | e719594bc42e3a9b273f5b37980ac61773702ab9 | refs/heads/master | 2023-03-28T03:37:46.338483 | 2021-03-29T08:44:22 | 2021-03-29T08:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
class DemoOdooTutorial(models.Model):
_name = 'demo.odoo.tutorial'
_description = 'Demo Odoo Tutorial'
_inherit = ['mail.thread', 'mail.activity.mixin'] # track_visibility
name = fields.Char('Description', requ... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
897039da602122f80f994a6b5a9d5a718d8d68df | d42ea0626b3322be8962857ff16621a40811186a | /payment/migrations/0001_initial.py | eb5dc095f9af8dd025347c28634ab01bbd11a7b1 | [] | no_license | manalap/django-ToDo | f7fe270939b1aec7b1cbe14e78c9370f18864657 | 9d94df60d87f72797e40a4feb7f86d2e594aeb96 | refs/heads/master | 2023-08-17T07:00:03.654741 | 2023-08-13T06:26:57 | 2023-08-13T06:26:57 | 372,252,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.2.3 on 2021-05-30 13:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='List',
fields=[
('id', models.BigAutoField(... | [
"manuchian@yahoo.com"
] | manuchian@yahoo.com |
6d32ff9bf7835bf603fe781dc5c449adaf154377 | 356892df7a0b3a8afbe19e1a9ef8c1e01bf65ac6 | /03. Lists.py | fc091435203e2450f2320cf5b4441a82ad29d847 | [
"MIT"
] | permissive | LPIX-11/quick-python-for-developers | 71d5ca22391d86b82d4b5fec47fe46402e510aa2 | 6c52d54a51cd7a1ba6915b77d9efd919ce98b4bc | refs/heads/master | 2020-06-28T14:02:29.687633 | 2019-08-02T13:31:47 | 2019-08-02T14:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # Dealing with lists in python since we use them a lot
x = [1, 2, 3, 4, 5, 6]
# Print list length
print(x, ' contains: ', len(x), ' items')
# len returns the number of items in contained an object
# ###
# If you need to slice list to extract values in a given range you can do
first = x[:3]
last = x[3:]
tLast = x[-... | [
"mohamedjohnson31@gmail.com"
] | mohamedjohnson31@gmail.com |
9950d363a6587e6d6ea4a143ceb4bdb58679db28 | d690e866697b87a3eacc4d52d37461806f7dbc23 | /wapi/wapi-0.1/SConstruct | 84c7ca43ceed7e724215f5bd4e5dfe8d69b3eedb | [
"BSD-2-Clause"
] | permissive | bbrancke/tempNL | 01e39f445dddc80d5b58177094a4a3a701f9b6e2 | 716c4c9e0c9da361e548b17d6847e1e4aa9788ec | refs/heads/master | 2021-05-08T12:51:28.767516 | 2018-02-27T12:09:06 | 2018-02-27T12:09:06 | 119,975,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,887 | from os.path import join as opj
from os import getenv
from sys import stderr, stdout
### Common Variables ###########################################################
INCDIR = 'include'
LIBDIR = 'lib'
SRCDIR = 'src'
EXADIR = 'examples'
### Common Utilities ###########################################################... | [
"bbrancke@gmail.com"
] | bbrancke@gmail.com | |
12f6cd8c0d13ddb5246553b8acd29a2595a7a282 | 82ca64c6a819f3e2cb41057f2df9f758cedee28a | /BlockChain/venv/bin/python-config | ae068f06249b1f99eb784109dbf07bbc241050d5 | [] | no_license | seanxxxx/coinx | 619a18f9b2d7f83076083055bfccf0c5e404f665 | eb1a7ed430c546cf02ddcc79f436200b218d5244 | refs/heads/master | 2023-01-28T03:09:10.358463 | 2018-09-07T07:49:19 | 2018-09-07T07:49:19 | 146,564,986 | 0 | 1 | null | 2022-12-20T14:20:06 | 2018-08-29T07:52:37 | Python | UTF-8 | Python | false | false | 2,363 | #!/Users/xuanxu/PycharmProjects/BlockChain/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if ... | [
"xuxuan@lanlingdai.net"
] | xuxuan@lanlingdai.net | |
a040a91675720c6d4d854fce17ba48a719e606df | 3770efe2f7ebadf6d2ec54a3771f1bdcee5c73d3 | /yandex_parser/items.py | 796bbe17a760d077b3e7affebcf2fd0b2b72125a | [] | no_license | Dantistnfs/yahoo-parser-scrapy | 84d294e59e0a29787640c4f4766483050dd73f25 | d747285272080d8969d90ef5f5f44558b62525ee | refs/heads/master | 2021-04-30T17:28:13.682794 | 2017-02-01T13:55:50 | 2017-02-01T13:55:50 | 80,216,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class YandexParserItem(scrapy.Item):
# define the fields for your item here like:
name = scrapy.Field()
current_price = scrapy.Field()
P... | [
"dantistnfs@gmail.com"
] | dantistnfs@gmail.com |
227e871bbba83b930725e44eafc4874132d87a55 | a3ea074995fd14fc6a1b3f31286a099ebd312ec1 | /src/TDDBlog/Blog/blogUrls.py | b9e78ad49b988e1266eaca797283507f207965e1 | [] | no_license | nicholaslemay/TDDBlog | e847a59be80dbd7087cc7910c3ae0cd190d98008 | ca56c9746bc58892070c8787b6aed27eb97f2f63 | refs/heads/master | 2016-09-06T10:33:17.844652 | 2010-09-19T20:36:27 | 2010-09-19T20:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.conf.urls.defaults import *
from TDDBlog.Blog.controllers.NewBlogController import BlogPostController
urlpatterns = patterns('',
url(r'^new/', BlogPostController(), name="newBlog"),
url(r'^thankyou/', "django.views.generic.simple.direct_to_template",{'template'... | [
"nlemay@pyxis-tech.co"
] | nlemay@pyxis-tech.co |
d99f3077d12c805081ea18bebf5d1bd924df3682 | 8f02939917edda1e714ffc26f305ac6778986e2d | /BOJ/2180/generator/gen.py | e0da56e963e00dd0ce89f4b06cd344b746f0aa3a | [] | no_license | queuedq/ps | fd6ee880d67484d666970e7ef85459683fa5b106 | d45bd3037a389495d9937afa47cf0f74cd3f09cf | refs/heads/master | 2023-08-18T16:45:18.970261 | 2023-08-17T17:04:19 | 2023-08-17T17:04:19 | 134,966,734 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from random import *
N = int(input())
s = input() # seed
seed(s)
mx = 40000
# Generate
A = []
for i in range(N//2):
A.append((0, 0))
for i in range(N//2, N*3//4):
A.append((randint(1, mx), randint(1, mx)))
for i in range(N*3//4, N*7//8):
A.append((0, randint(1, mx)))
for i in range(N*7//8, N):
A.append((rand... | [
"queued37@gmail.com"
] | queued37@gmail.com |
b37888fa6385baeb41115a66b55bec5886b14fbc | 387ad3775fad21d2d8ffa3c84683d9205b6e697d | /testsuite/trunk/el/el_test_036.py | cfab23e5ff03600c188c22c0c83bb31985905443 | [] | no_license | kodiyalashetty/test_iot | 916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7 | 0ae3c2ea6081778e1005c40a9a3f6d4404a08797 | refs/heads/master | 2020-03-22T11:53:21.204497 | 2018-03-09T01:43:41 | 2018-03-09T01:43:41 | 140,002,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
"""
(C) Copyright IBM Corp. 2008
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
file and program are licensed under a BSD style license. See
the Copy... | [
"suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26"
] | suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26 |
afc6a4f4facc75d71b3e22fc99b9f7be1895f171 | 021fd55be143c1520f2554a5fb5f671561e8a26a | /mysite/settings.py | 044b36b1c33ce34558b366a3f0d10f5eee72b9bd | [] | no_license | seb-seb/my-first-blog | 294ef99df1d5227104cdf0831bef98f01b423043 | 8a11f3e9bd4f179c7a269973da34c71976d13577 | refs/heads/master | 2020-03-19T04:32:57.764270 | 2018-06-03T20:42:20 | 2018-06-03T20:42:20 | 135,840,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"sebetclo@bregeon.net"
] | sebetclo@bregeon.net |
956b9766831edf51e30c5abb046640ac6e56815b | 56a821768a62e41ca7486b7ff54fed3c6aa0d827 | /lecture-artificial-intelligence/decision-tree.py | 0f621b1c400cbff4daca6dfbf76085e4b0fcc90c | [] | no_license | goFrendiAsgard/kuliah-2.0 | 512fd0bacefd66f9564b3ba6ad034b2fd381911f | 1f03d38979153bbb001e52b460f59118f11de880 | refs/heads/master | 2022-12-16T00:10:29.860433 | 2019-07-03T04:01:03 | 2019-07-03T04:01:03 | 125,147,197 | 24 | 23 | null | 2022-12-09T15:58:30 | 2018-03-14T03:02:53 | Jupyter Notebook | UTF-8 | Python | false | false | 270 | py | from sklearn.datasets import load_iris
from sklearn.tree import DecisionTreeClassifier
iris = load_iris()
clf = DecisionTreeClassifier()
# train
clf.fit(iris.data, iris.target)
print(clf.predict([[5.9, 3, 5.1, 1.8]])) # 2
print(clf.predict([[5.1, 3.5, 1.4, 0.1]])) # 0
| [
"gofrendiasgard@gmail.com"
] | gofrendiasgard@gmail.com |
38c80d4c299c6dbe85afac306b3ae78b212ec38c | 2b81ca6291eee31dc797b31ba15b088191f6a74e | /tutorial2/tutorial2/pipelines.py | 899f6e34ccb176771ca57222bb334bc97a526142 | [] | no_license | MIKEHHQ/Crawlers | f2f3a548bd75182a5e132696d4e3238be5c0a840 | 0321df0a68894c973440e81f6d2b40a07093ad19 | refs/heads/master | 2022-11-25T17:01:07.335872 | 2020-08-06T03:32:05 | 2020-08-06T03:32:05 | 284,692,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class Tutorial2Pipeline:
def process_ite... | [
"392920729@qq.com"
] | 392920729@qq.com |
f4989d258e89f5e950e3729031c78f646095c4a1 | e44de61f99836ee92f8cdfe3a8e53b60a42a7e63 | /2018/day8/solution1.py | 9bfd9604ecda288c879c607e28eaa0121fa0cfa8 | [
"Apache-2.0"
] | permissive | om-henners/advent_of_code | 471bae7d16fd7ae876f2f10f1399f85f5faa07a5 | 2c11272e05d7d1dcc5a96c9026d0f799f6443fa7 | refs/heads/master | 2021-12-15T02:00:17.590726 | 2021-12-04T01:07:17 | 2021-12-04T01:07:17 | 225,377,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | from itertools import chain
from uuid import uuid4
import networkx as nx
data = open('input.txt').read().strip()
# data = open('sample_input.txt').read().strip()
starting_numbers = [int(i) for i in data.split()]
tree = nx.DiGraph()
def build_node(numbers):
node_id = uuid4()
num_children = numbers[0]
n... | [
"henry.walshaw@gmail.com"
] | henry.walshaw@gmail.com |
93d6f00bf21e5a4d6004d45417bd2d5253c50290 | 63913055f86d625786196a880c1d8f82b1b569d5 | /makeSemiLeptonicTemplates.py | 25b2bd497d54b53a42a56d256ee2a9e53b71beab | [] | no_license | mroguljic/X_YH_4b | 328791db1449d5ddef8495df3e0ad8a30aeefba3 | 78ba7980058bd7759354182c685baf605a4e8a8d | refs/heads/master | 2022-11-10T15:09:56.836525 | 2021-09-29T14:35:46 | 2021-09-29T14:35:46 | 248,929,562 | 0 | 3 | null | 2020-12-23T08:18:44 | 2020-03-21T07:44:38 | Python | UTF-8 | Python | false | false | 15,171 | py | #To be used with trees from event selection
import ROOT as r
import time, os
from optparse import OptionParser
from collections import OrderedDict
from TIMBER.Tools.Common import *
from TIMBER.Analyzer import *
TIMBERPATH = os.environ["TIMBERPATH"]
parser = OptionParser()
parser.add_option('-i', '--input', metava... | [
"matej.roguljic@cern.ch"
] | matej.roguljic@cern.ch |
8dc0940ac14fa2137b05281882c37b63abde2bd4 | 8d24418e352793aa9c4e20338cb07375e879a2a5 | /STT.py | aa2f656b09f11be666e821b8c2c1604ef1659e4d | [] | no_license | mezeru/Internet-Speedtest | 78972db073b1c7fd9d8c526f4fcc7ec64f86200c | 4daa5b1369d9d7a18f8bf71b7e7e121329837cb2 | refs/heads/main | 2023-01-06T12:38:06.665252 | 2020-11-07T10:09:10 | 2020-11-07T10:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import speedtest
if __name__ == "__main__":
speed = speedtest.Speedtest()
print("Choose the units to be Displayed \n1)Mbps 2)MBps\n")
choice = int(input())
print("\n\nPlease Wait......\n\n")
if(choice == 1 or choice == 2):
print("The source is : ",)
Ds = spee... | [
"noreply@github.com"
] | mezeru.noreply@github.com |
6ccffde61a2ac1b34e249255ef314491f213a582 | 06685b319ecbabaf87a77ba06fb9ff7072581e1d | /timelapse/Photo.py | 739be2cc5a20fe9727072a9aa046aa414e4ad242 | [
"MIT"
] | permissive | tomhotch/timelapse | 64b4ea35ad003ff834204ba1b717598b5a9cacf3 | c4baf52b2ccce0978ab6281bc1b67731f8815b9a | refs/heads/master | 2021-01-22T09:50:54.004645 | 2017-05-07T13:27:08 | 2017-05-07T13:27:08 | 55,226,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | import time
import picamera
def take_and_save_photo(camera_settings, file_path_name):
# Take a photo and save it in the given file path name
# file_path_name includes a relative or absolute path to the file
with picamera.PiCamera() as camera:
camera.resolution = (camera_settings.horizontal_resolut... | [
"tomhotch@yahoo.com"
] | tomhotch@yahoo.com |
fb1d2f0d7ff511dafd8ee3da0267549af618152f | 1d544794930ae2da3d4eb87e969ce04215ab87d9 | /kpibrainstorm0.py | 9365cb9057134dac6a815b83b13ab644b6842682 | [] | no_license | samhung19/kpi-brainstorm | 7bba8dfc242fdd7b0e03f8dff5f7c0922a763433 | 41e2de50c7b032f3eb454e9a1a35192674e10357 | refs/heads/master | 2021-03-27T20:37:57.090205 | 2017-07-20T00:26:38 | 2017-07-20T00:26:38 | 95,706,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import cv2
import numpy as np
cap = cv2.VideoCapture('lalalala.mp4')
framecount = 0
while True:
framecount += 1
ret, frame = cap.read()
roi = frame[65:75, 985:995]
cv2.rectangle(frame, (982,62), (998,78), (0, 255, 0), 2) #highlight region of interest
cv2.namedWindow('frame', cv2.WINDO... | [
"noreply@github.com"
] | samhung19.noreply@github.com |
28253f6b96351295cc00cef6d1448e446c31f212 | 672b57ee6ad36cab8eff4802c423d5f836ebcab0 | /scraper/management/commands/scrape.py | e865b940702992b8b4392daebe620187f6ad9c2f | [] | no_license | stanislavn/thrustfeed | a6b76dd485c80c1a16156930d078eb67267ec30d | b6a79d11b777048ff4f93629eea70c161f612d33 | refs/heads/master | 2023-02-18T19:22:25.228888 | 2021-01-24T13:08:26 | 2021-01-24T13:08:26 | 332,446,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,185 | py | # importing the required modules
import numpy as np
import requests
import xml.etree.ElementTree as ET
import time
import urllib.request
import extruct
from w3lib.html import get_base_url
from scraper.models import Product
from django.db import IntegrityError
from fake_useragent import UserAgent
import sys
from bs4 imp... | [
"29331439+stanislavn@users.noreply.github.com"
] | 29331439+stanislavn@users.noreply.github.com |
8b3f32f97c1f1d0f6fb4c91406e974436d1e30ea | 44b9c654ba58adeb7213d80dfcf22dd4794f08dc | /util/RiskParityPortfolio.py | 6f423b7c42564c8fc98efcb9dff1447304f7f2de | [] | no_license | handrew/all-weather-for-noobs | 437be02f7677e96dbceeb16f815a4a8cd19f72bb | 5f2b57acea381ed110e6ec157cd50af1b8872d94 | refs/heads/master | 2023-07-15T04:58:42.111046 | 2023-06-21T20:52:35 | 2023-06-21T20:52:35 | 65,438,423 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 4,291 | py | """RiskParityPortfolio object. Optimizes weights to be inversely proportional
to the volatility of each asset. This approach does not not assume any
correlations – for a risk parity approach that accounts for correlation, use
EqualRiskContributionPortfolio.
"""
import pdb
from typing import List
import numpy as np
imp... | [
"handrew11@gmail.com"
] | handrew11@gmail.com |
2ce81be387ddd1049a70ef86640fe60c543417eb | cf149e692b5abcb1c8ec9e86aaf1c52e71127da5 | /particionador_de_audio.py | 91e14517beda3256d4d310b954a9666fb60589ee | [] | no_license | rafael03/Conversores | 2f0d1a4a3b33d3c93024b921cfdb22282af10419 | 093096a658e6e9db26090920203febd70d5b2cd1 | refs/heads/master | 2021-01-13T13:15:33.485048 | 2016-11-03T00:42:44 | 2016-11-03T00:42:44 | 72,692,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os import walk
import sys
# print sys.argv[1]
lista_de_arquivos = []
for (dirpath, dirnames, filenames) in walk(os.getcwd()):
lista_de_arquivos.extend(filenames)
break
for arquivo in lista_de_arquivos:
if arquivo[-4:] == ".mp3":
os.system("mp3spl... | [
"noreply@github.com"
] | rafael03.noreply@github.com |
3f9f14f0bbc5f8fa531618edc817cd13a2a7ea16 | 140bc1bb4b2a68f71d7fa7e4bbcf22da824a645c | /first_occurrence.py | f3ed1722827dbfda78cf82c3d6b6c86e1b4c3a99 | [] | no_license | rmorency40/python-projects | 3371ac7b6cbd70b722bf5c0733326d007fbf6f8e | 00ec7bade93d0f7afd71203731f18a2e99140955 | refs/heads/master | 2022-12-14T11:07:15.144179 | 2020-09-18T16:21:59 | 2020-09-18T16:21:59 | 288,572,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/python
string = input("enter your own string : ")
char = input("Enter your own character: ")
flag = 0
#if not string:
# print("this is not a string")
for i in range(len(string)):
if (string[i] == char):
flag = 1
break
if (flag == 0):
print("Sorry, we haven't found the ... | [
"30129346+rmorency40@users.noreply.github.com"
] | 30129346+rmorency40@users.noreply.github.com |
fb483adff09210c3a8dea90d203b5b070f3768fb | 84379e15e54ba79b7e63c1fceecf712b46f22977 | /apps/decks/migrations/0016_auto_20181011_1715.py | 2ac96bd86b326bc8447c68610a43fbba4554b4f0 | [] | no_license | CoderEnko007/HearthStoneStationBackend | a1d74c324233ebd617ad01df13bc609d1f1aa2f6 | 6cc92cb806f19f2a2a0596645028cfe2fa5895d6 | refs/heads/master | 2022-12-11T23:20:24.335737 | 2022-09-18T07:04:08 | 2022-09-18T07:04:08 | 144,392,864 | 0 | 0 | null | 2022-12-08T02:22:42 | 2018-08-11T14:40:48 | JavaScript | UTF-8 | Python | false | false | 831 | py | # Generated by Django 2.0.4 on 2018-10-11 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('decks', '0015_auto_20180928_1019'),
]
operations = [
migrations.AddField(
model_name='decks',
name='real_game_count'... | [
"yf381966217@163.com"
] | yf381966217@163.com |
a6e6e3dc88952cfbd159649b851d165f6ccff89b | 138cf8c6710e844541e23b8a88f42b0bf695b655 | /547. Number of Provinces.py | 7ad052955bcaccc2aaafd04922835080b85c4eb8 | [] | no_license | cherryzoe/Leetcode | 58fb1c353c57ce02a8cf3c345caeeacb1e1bdfaf | f8fd6bb130a4d55d83d9bc07caac53c7e0a26afd | refs/heads/master | 2023-01-11T10:48:53.214138 | 2022-12-29T20:20:41 | 2022-12-29T20:20:41 | 40,199,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py |
# BFS / DFS 的时间复杂度是 O(n^2), n 为城市的数量,需要遍历 n^2 的邻接矩阵
class Solution(object):
def findCircleNum(self, isConnected):
"""
:type isConnected: List[List[int]]
:rtype: int
"""
# dfs solution:
# loop through all cites, from 1 - n.
# find a city,if it is not visited... | [
"noreply@github.com"
] | cherryzoe.noreply@github.com |
d7aa8e7ee0133ca62e4816336b143153993ef60f | 107a49df30fd8b300cca888cf3a41e2cac4ba9c3 | /crawler/items.py | cec0d679422fb725c76be4b9f4042ec615922def | [
"MIT"
] | permissive | oliverdelacruz/crawler | 6c8c0dd1e4894064b1f882ea1ddc5b2125697327 | ef8688807af7722ecc882b2b62a7ba5a78e49513 | refs/heads/master | 2020-07-22T05:43:22.927185 | 2020-01-18T21:26:34 | 2020-01-18T21:26:34 | 207,090,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class CrawlerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class AmazonItem(scrapy.Item):... | [
"deoliver@student.ethz.ch"
] | deoliver@student.ethz.ch |
1b9f51303dca395e8adaa69dbf9242d4fbb2ad07 | 20da145915700a20487fb1000adbe2bfc4042e9e | /sandersfeatures/tweet_pca.py | 0659fe0f2bd6ed8fd61a6f08920256ae9153f0e6 | [] | no_license | yogeshg/Twitter-Sentiment | d362b02c895681c61f8f4ed137da5b481076eb73 | 2ade1641d7bddaa0ef3423f9d4a160edb9ae593f | refs/heads/master | 2023-03-08T17:42:53.473532 | 2022-12-01T02:21:20 | 2022-12-01T02:21:20 | 15,335,630 | 74 | 40 | null | 2023-03-01T08:48:36 | 2013-12-20T10:22:20 | Python | UTF-8 | Python | false | false | 1,379 | py | """
@package tweet_pca
PCT for dimensionality reduction.
"""
import mdp, numpy
import tweet_features
import pdb
def tweet_pca_reduce( tweets_train, tweets_test, output_dim ):
# convert dictionary feature vecs to numpy array
print '--> Converting dictionaries to NumPy arrays'
train_arr = numpy.array( [t... | [
"yogeshg91@gmail.com"
] | yogeshg91@gmail.com |
2e1932ed858673f53ed800edcdc60355be87bf3d | 7739128a2e4112317f2dfec6bb4a04033b2a0d5a | /venv/bin/pip3 | c14562829e6a306b1be02ec70927e1caf314f232 | [] | no_license | basharE/sixthLesson | e5a3d19f1abe888c4c6ccaebafe9f879f8604038 | aa50cb1d1b38733e92a27dfa7c66644eb4f0023f | refs/heads/master | 2023-03-05T10:54:10.806231 | 2021-02-14T18:48:15 | 2021-02-14T18:48:15 | 338,868,837 | 0 | 0 | null | 2021-02-14T18:42:28 | 2021-02-14T18:08:40 | Python | UTF-8 | Python | false | false | 270 | #!/Users/basharegbariya/PycharmProjects/sixthLesson/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"e.bashar.t@gmail.com"
] | e.bashar.t@gmail.com | |
f8e9c00352aa73396ea5b86fe09beb3dca7d00de | 582c42e5aa6611433e7f8cad225f5c9fd8c2c3ba | /client/__init__.py | 692f6087bc05e1b6806fb5b7228444fe8572f9b3 | [
"MIT"
] | permissive | Soulou/msc-thesis-container-balancer-client | 7b44fafb473caec787adb1c65b25d863738d8534 | 05ea1fc0005733ec2be25494bc2d0b216fd19fa5 | refs/heads/master | 2021-01-02T10:25:36.265062 | 2014-08-10T23:00:48 | 2014-08-10T23:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from .client import *
from .status import *
from .start import *
from .stop import *
from .migrate import *
from .node_status import *
from .nodes_status import *
from .container_status import *
from .balance import *
Client.start = start
Client.stop = stop
Client.stop_service = stop_service
Client.stop_all = stop_all... | [
"leo@unbekandt.eu"
] | leo@unbekandt.eu |
288c78dc9899d83b795e90be1572c02ebf22ea94 | c7517291eeb44cfb829373c6c233e408237b4af2 | /chapter_4/queue.py | 662d8cab35ba148d6e51850481436cfe8568b81e | [
"MIT"
] | permissive | elishaking/CTCi | fbec515ad26a4d11ddbb6e479ad11bd0e8a083e0 | 6a91fd67e8765e5abef72c5b247f4d5444945438 | refs/heads/master | 2022-11-17T13:18:22.589740 | 2020-07-08T16:53:42 | 2020-07-08T16:53:42 | 272,730,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | class Node:
def __init__(self, value=0, next=None):
self.value = value
self.next = next
def __str__(self):
return str(self.value)
class LinkedList:
def __init__(self, head: Node = None):
self.head = head
self.tail = self.head
def push(self, value: int, node: N... | [
"ek.chibueze@gmail.com"
] | ek.chibueze@gmail.com |
bb7dd72cb79f5b8c3c70bc802cfd22bd72c2a811 | bd149e195fbe5fa2aa0ca2dd88989e4f0b6bac5c | /pytest_1/test_fixture.py | 76500e993d5fbb935868f3b2f74a563d6e67d356 | [] | no_license | sanjidaoli/pytest1 | b0f9c59663146cdce72049598c00d68f07c05de8 | 39ef6ae2c2935c800672cbe4bf4664c2595c6c51 | refs/heads/master | 2023-07-26T19:47:01.563951 | 2021-09-12T15:35:22 | 2021-09-12T15:35:22 | 348,737,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python
#!-*- coding:utf-8 -*-
import pytest
@pytest.fixture()
def login():
print("这是个登录方法")
return ('tom;','123')
@pytest.fixture()
def operate():
print("登录后的操作")
def test_case1(login,operate):
print(login)
print("test_case1,需要登录")
def test_case2():
print("test_case2,不需要登录")
... | [
"123903159@qq.com"
] | 123903159@qq.com |
2978555e84a362cb5ed925eb7a8317d2a53cace9 | d85d078dd2eea23083c3b5e8fb7bed5b7aa96b00 | /generic/management/commands/create_proxy_permissions.py | ee4e40f74deb80c7dc97eaaf8a508c54e2fb2370 | [] | no_license | ixc/django-generic | 1ef3c27ac89d582d3b9fc3afd743d97ccda4a68a | fc17e7907162829faaf80cd2af605357b204a315 | refs/heads/master | 2022-12-04T19:52:26.700398 | 2019-02-20T13:16:07 | 2019-02-20T13:16:07 | 287,650,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from django.core.management.base import AppCommand
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import Permission
from django.contrib.auth.management import _get_all_permissions
class Command(AppCommand):
help = 'Creates permissions for proxy models; see Django #11154.... | [
"simon@simonmeers.com"
] | simon@simonmeers.com |
6f49e68819abe8b1d485500c72678faf77327817 | 146012dda21ab72badad6daa8f98e6b26fedb128 | /08day/04-练习求和.py | c539322bdecb93e196c838806f2fc360f0cb12e3 | [] | no_license | fengshuai1/1805 | 41786c3561beca580ba82d9e9d4347571e38e198 | 8dc3e6605cc1d6f91685ae45bfebfc062f0aa489 | refs/heads/master | 2020-03-19T07:41:40.608389 | 2018-06-28T01:45:43 | 2018-06-28T01:45:43 | 136,140,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | c = 0
m = 0
while c <= 100:
print("当前数字:%d"%c)
c+=1
m = c + m
print("求和是%d"%m)
| [
"1329008013@qq.com"
] | 1329008013@qq.com |
4acb6cd3c096137fa35422140bd2fb23a7a5a1ca | b16abb62b283064bd2fa4819a711578658759c7b | /zhihu.py | 901c9bd5f90425194b7b793230c9c22f6df0872f | [] | no_license | pfDou/insects-of-zhihu-hot-topics | 5bfa66f9775de98b4c6dc58abbe1620f0bbd5a95 | 0f338ec287d1832a1792ad613fb65858329982e7 | refs/heads/master | 2021-01-23T22:10:46.731370 | 2015-05-09T14:36:01 | 2015-05-09T14:36:01 | 32,391,701 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # -*- coding: utf-8 -*-
import urllib.request
from bs4 import BeautifulSoup
import re
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding="utf8")
main_page = "http://www.zhihu.com/explore#daily-hot"
urllines = urllib.request.urlopen(main_page) #<class 'http.client.HTTPResponse'>
page_... | [
"372167676@qq.com"
] | 372167676@qq.com |
d7dc7236ef3c00feb2d661cbb1f257e5ad610ec1 | 7a93b7817b343b9da49662948e922684b94d1d40 | /jstorm-client/src/main/py/storm/Nimbus-remote | 2aae8a4fa0862207f6473a1653963e9e2abfbd00 | [
"Apache-2.0"
] | permissive | caiyifeng/learn_jstorm | c2aeeb9dd6d29ddf4c7593347b537e049fa57b4a | 61d27beea51a5c37e00193ad4c464b58ded156c1 | refs/heads/master | 2020-12-26T21:49:50.380442 | 2015-05-03T14:43:19 | 2015-05-03T14:43:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,717 | #!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.7.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
import sys
import pprint
from urlparse import urlparse
from thrift.transport import TTransport
from thrift.transport import TSocket
from thrift.transport import THttpCli... | [
"songtk@msn.com"
] | songtk@msn.com | |
cec42bc5df865c7e99d23024fa4c71a6f7db99d8 | 32fb6fd06b496b4c9ceabe578dceed265950cc37 | /homework/core/models/meta/base.py | b45e9d7de1fe1813e6d37480dcef6702e9545bf9 | [] | no_license | rach/homework | 8167d3930d4313818e306fb0965ffbd6402bf12b | aca450753445caa188675d637300ead443d15525 | refs/heads/master | 2021-01-10T04:50:53.857108 | 2016-01-11T21:13:38 | 2016-01-11T21:13:38 | 49,445,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy import event
from sqlalchemy import (
Column,
Integer
)
import re
_underscorer1 = re.compile(r'(.)([A-Z][a-z]+)')
_underscorer2 =... | [
"rachid.belaid@gmail.com"
] | rachid.belaid@gmail.com |
4b5be1fb84187f4d83d1e07885657d02b7a120f5 | 30d1b89b67d48efdacce5bceeee2c734bee2b509 | /manual_translation/devel/lib/python2.7/dist-packages/mavros_msgs/msg/_Mavlink.py | 2d4e562e868c5dec2e71bd13bbbde54c744bcc04 | [] | no_license | ParthGaneriwala/uppaal2ros | db4a6b20c78e423511e565477a2461942c2adceb | f88b2b860b0b970b61110a323d0397352785c9e2 | refs/heads/main | 2023-02-20T19:36:22.406515 | 2021-01-28T18:58:44 | 2021-01-28T18:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | /home/adi/ardu_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_Mavlink.py | [
"adithyatp@yahoo.com"
] | adithyatp@yahoo.com |
268f77595526ce94d83bcd97375dc506662f676b | 309da681f1ce8d119f2e44580ba196094d03bd92 | /project.py | 1dbaa8cec2329e4e1555049d01b2d79a0b6f0710 | [] | no_license | aditya6116/catalog | bd9da4c8f8ec2c95728b66a8914d04e759c7ddb0 | e8247118cde31d92327a8df82f766bb0f218999f | refs/heads/master | 2021-01-21T21:32:36.111228 | 2017-06-20T07:01:09 | 2017-06-20T07:01:09 | 94,858,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,369 | py | from flask import Flask, render_template
from flask import request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem, User
from flask import session as login_session
import random
import string
f... | [
"gurusharan2@gmail.com"
] | gurusharan2@gmail.com |
7ed8f7fb8b672c0b572c9f73874b66a87b146d20 | ff55f48130e88f678a9a7896a746579a24fe02d2 | /app/app.py | aaaba555e077b465e1007feed77119eb3c932c7c | [] | no_license | 201504481/Tarea8 | 5c91d0b95feb0542d6cd195e6b4d65cde89de352 | 794190ff15efe775a9ef090883f0582e139f3542 | refs/heads/master | 2020-08-09T12:30:57.291552 | 2019-10-10T06:00:41 | 2019-10-10T06:00:41 | 214,088,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from typing import List, Dict
from flask import Flask
import mysql.connector
import json
app = Flask(__name__)
def Materia() -> List[Dict]:
config = {
'user': 'root',
'password': 'root',
'host': 'db',
'port': '3306',
'database': 'knights'
}
connection = mysql.conne... | [
"eljulio.arango97@gmail.com"
] | eljulio.arango97@gmail.com |
f6c327232f55a5253a539568cc9c8d10d656384d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02686/s642611525.py | 914bb9607791cee5d353d156d9afb343faf395b3 | [] | 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 | 981 | py | def main():
N = int(input())
up_lines = []
down_lines = []
for i in range(N):
s = input()
height = 0
bottom = 0
for c in s:
if c == "(":
height += 1
else:
height -= 1
bottom = min(bottom, height)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d41a42e653d1d0c41e86f0a5e096ce3bb000a5ee | a0398f983a3eec052780b13953e8d43162bc9787 | /LogProducer/main.py | e3698fe863387a65d68ebd21c15b30ae5fbf2179 | [] | no_license | nguyenvanhuybk99/ForexSpark | 1795ad295f18753a7ec685282b3fe7e7b7210991 | 4008213223fae7cca63695015c33c59f17754f16 | refs/heads/main | 2023-02-06T05:46:03.942904 | 2020-12-22T04:33:36 | 2020-12-22T04:33:36 | 323,226,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from log_manager import LogManager
from connector import KafkaConnector
from config import LoggerConfig, ConnectorConfig
i... | [
"huynv1@kaopiz.com"
] | huynv1@kaopiz.com |
5d00e7dd24ff76d035474abbf3f113bf88deb4cc | cb82718999848e7ab557b6877d40c079916d065a | /gen_trips.py | b17191fbed4c9fd60f31a3d9421639b2a40469c9 | [
"Apache-2.0"
] | permissive | divergent63/simple_shortest_routing | e84d1b6659a7f19436f3d9125534075b39a274e1 | f6719ad1fb0a0fdd5916bece62edbed82a0ef899 | refs/heads/master | 2020-05-20T22:29:29.099605 | 2019-05-15T12:26:26 | 2019-05-15T12:26:26 | 185,783,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | #!/usr/bin/env python
# coding=utf-8
"""
input: OD information(vehicle information)
output: SUMO Trips
"""
from lxml import etree
from pathlib import Path
import os
import pandas as pd
def gen_trips(od):
start_time = od['start_time'].values
root = etree.Element("routes")
for i in range(len(od.values)):
... | [
"634184805@qq.com"
] | 634184805@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.