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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50bee84349089e1aa4828f68a88a6d8a89dfdf41 | 568d7d17d09adeeffe54a1864cd896b13988960c | /month01/day07/exercise05.py | 3493424818067ec8a5a6e612d415a224bd930150 | [
"Apache-2.0"
] | permissive | Amiao-miao/all-codes | e2d1971dfd4cecaaa291ddf710999f2fc4d8995f | ec50036d42d40086cac5fddf6baf4de18ac91e55 | refs/heads/main | 2023-02-24T10:36:27.414153 | 2021-02-01T10:51:55 | 2021-02-01T10:51:55 | 334,908,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | dict_travel_info = {
"北京": {
"景区": ["长城", "故宫"],
"美食": ["烤鸭", "豆汁焦圈", "炸酱面"]
},
"四川": {
"景区": ["九寨沟", "峨眉山"],
"美食": ["火锅", "兔头"]
}
}
#1.打印北京的第一个景区
print(dict_travel_info["北京"]["景区"][0])
# 打印四川的第二个美食
print(dict_travel_info["四川"]["美食"][1])
# 2. 所有城市 (一行一个)
for key in dict_t... | [
"895854566@qq.com"
] | 895854566@qq.com |
7b6db324523ed356f5a34ab14aeb9ef09069d341 | fce91f0d47a6d13122bcaabec071229678d91676 | /qa/rpc-tests/test_framework/test_framework.py | 40902b459e19adb560a4b21a9f98e4a642ecc131 | [
"MIT"
] | permissive | animuscoin/animus | fe0c49dbdd7a2cb172f8572264535c8c7de3aed1 | 518567dfefe21be5403acaf05523b598691191c6 | refs/heads/master | 2020-03-17T05:23:06.502435 | 2018-05-14T13:53:03 | 2018-05-14T13:53:03 | 133,314,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,736 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Base class for RPC testing
# Add python-bitcoinrpc to module search path:
import os
import sys
import... | [
"peanua@gmail.com"
] | peanua@gmail.com |
e5e3ff4485186df91657842fb85114991f10a0d5 | 013941b3bbc0d5c520be0ed2df140734f3af4f15 | /voiceCommand/asgi.py | e644d3be1eb8aac3171f8d7aee94145c9f846cdd | [] | no_license | ayush380/Voice-Recognition | e313f9bc3a588254e19ff7bac16bfc0814865e78 | b2678510a59fdb9d398a81eeecc3b24725e67573 | refs/heads/main | 2023-01-09T20:15:35.418681 | 2020-11-03T16:55:02 | 2020-11-03T16:55:02 | 309,749,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for voiceCommand project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"ayush380@gmail.com"
] | ayush380@gmail.com |
f6d7fbdef5cdaedb0fe2f8536b75a1173aca58fe | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerservice/azure-mgmt-containerservice/generated_samples/maintenance_configurations_create_update.py | c0abfbc1bab5cf537fc774e2f3b60eed6869983b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,900 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d993401850d52d98db8b268955eeb445554951db | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_371/ch47_2020_10_04_13_40_50_371443.py | 3cc3cadd86d947006768c00c032c11e851f56842 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def estritamente_crescente(lista):
numero_atual = 0
numero_anterior =0
i=0
nova_lista=[]
while len(lista)>i:
numero_atual=lista[i]
if numero_atual>numero_anterior:
numero_anterior=numero_atual
nova_lista.append(numero_atual)
i+=1
else:
... | [
"you@example.com"
] | you@example.com |
f6977ac67730ba0341aac78a26f5ce302c583f94 | f15a00da546184507d5306b2623e03763d0cc37a | /article/templatetags/article_tags.py | 394478edd01931a8a011e68189d1d543725492f8 | [
"Apache-2.0"
] | permissive | glon/django_blog | c06e72c43f39c464a4d98722c7ae0d33c9523c7b | 4f9d9b93886ca5f861edfcd29b06df1bcedce1ad | refs/heads/master | 2021-07-04T16:50:17.982966 | 2017-09-27T08:24:41 | 2017-09-27T08:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from django import template
from article.models import ArticlePost
from django.db.models import Count
from django.utils.safestring import mark_safe
import markdown
register = template.Library()
@register.simple_tag
def total_articles():
return ArticlePost.objects.count()
@register.simple_tag
def author_total_art... | [
"562071793@qq.com"
] | 562071793@qq.com |
82fa75e427760add6ce2a9e6040b22dd1de0106f | 243fc53d3e3403ce805bbc1b5abf7ef8019485fe | /test/testuser.py | 05359e927648c877e8b67cf35585b0cd8697c269 | [] | no_license | Ricskal/filmmeister | 3e0b441ff88601c551d98290adc000b8baae7300 | 6cbd35bc212587f1af8d9a7a002838f876cf210e | refs/heads/master | 2023-08-22T07:26:41.666013 | 2021-10-31T18:24:38 | 2021-10-31T18:24:38 | 412,818,649 | 0 | 1 | null | 2021-11-01T08:12:10 | 2021-10-02T14:24:05 | Python | UTF-8 | Python | false | false | 834 | py | #from filmmeister import app_inst
#print(app_inst.config['SECRET_KEY'])
from app import db
from app.models import User, Movie
u = User(username='Rick', email='Rick@test.com')
u.set_password('test')
db.session.add(u)
db.session.commit()
#users = User.query.all()
#print(users)
#for u in users: print(u.id, u.username)
... | [
"rickensinkrullen@gmail.com"
] | rickensinkrullen@gmail.com |
8ccb364187cd1c5d706fd89a0cf0b59bdb696a62 | c595f403a5661ff48fbc7a0ab20ce055444b385e | /text_style_transfer/migrations/0001_initial.py | 6315759ea688ccdf5dd39d51291da9cf7acd6b53 | [] | no_license | AliaksandrKalenik/yrunner | 0570937b43be4cdc62ad94c378d59fe41d30aa05 | 83e2fd004c7524111362d9af2ed4819200717014 | refs/heads/master | 2021-05-08T10:33:42.757167 | 2018-09-25T13:46:30 | 2018-09-25T13:46:30 | 119,847,964 | 0 | 0 | null | 2018-03-28T15:26:15 | 2018-02-01T14:39:13 | Python | UTF-8 | Python | false | false | 1,210 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-02-12 15:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TrainM... | [
"a.kalenik94@gmail.com"
] | a.kalenik94@gmail.com |
7314c2d996c31dcbda1bb79a693a93b259857c44 | fbeed384e855fc90719ad8d5423f9574d1f720c3 | /programas.py | 494c3c634d9a67bdc7f4c6fb231ceb426dff45e9 | [] | no_license | lespinoza182/TTMelanomaESCOM | 4363b49d167a8ba7ee4c11f12a05e8bbcff5bacd | 0232ff8a7607e29f89097d6037138badd1ef6d4f | refs/heads/master | 2020-03-27T08:00:00.571605 | 2019-04-05T23:33:05 | 2019-04-05T23:33:05 | 146,211,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,882 | py | # -*- coding: utf-8 -*-
from PIL import Image
from matplotlib import pyplot as plt
from collections import Counter
from scipy import ndimage as ndi
from skimage import feature
import scipy.misc
import numpy as np
import statistics
import random
import scipy
import time
#import cv2
"""ABRIR UNA IMAGEN... | [
"noreply@github.com"
] | lespinoza182.noreply@github.com |
e73ea00412857d8bc51a1b6f7dd676d32b152336 | 1c6a29a7dcd62470d594d5e42dbea9ff79cc47f5 | /shade/_heat/utils.py | 24cb0b07115e1da1eb535444aa86612c446b7d0a | [
"Apache-2.0"
] | permissive | major/shade | a1691a3e3311f1b87f4a31c3a26929ddc2541b7a | 0ced9b5a7568dd8e4a33b6627f636639bcbbd8a3 | refs/heads/master | 2023-06-07T17:15:47.089102 | 2020-06-01T22:59:14 | 2020-06-01T22:59:14 | 54,499,600 | 0 | 0 | Apache-2.0 | 2023-06-01T21:26:36 | 2016-03-22T18:34:14 | Python | UTF-8 | Python | false | false | 1,842 | py | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
633f67db56b3fc27c70671b9cff7a90c51faa754 | 96538cc3eee3d73d429f3476d0e895be95d695e3 | /worker/db/redisdb.py | e7b69ffd0713371d1380120d397a1485debac7fe | [] | no_license | FashtimeDotCom/distributed-spider | d9555670216e68d4ff031e466cbf3529d080a534 | 33292f098403fa73239e0c7353e4cc5918be981b | refs/heads/master | 2020-03-22T11:43:14.796426 | 2018-07-06T10:51:48 | 2018-07-06T11:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,874 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-11-16 16:25
---------
@summary: 操作redis数据库
---------
@author: Boris
'''
import sys
sys.path.append('../')
import init
import redis
import utils.tools as tools
from utils.log import log
IP = tools.get_conf_value('config.conf', 'redis', 'ip')
PORT =... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
9792a5b3135bd29aa5e53b9ae8901a638fa9d8f1 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/quantization/multiplicative/quantizers/default_mult.py | 0385ebd178ce814eee4883e29eda75e12c0747cf | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 1,696 | py | # Copyright (C) 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This progr... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
6b02efb3ffff87a1947b446d25a44bca6402c080 | 246d6d6a40430e3597e91c0caa88232b05d289da | /gallery/migrations/0002_auto_20190215_2053.py | 93217938f61c2a3ba64bf6963a3e5b0567c5b2a4 | [] | no_license | jijiwi/portfoloi | 659e5b80906ba1654afbcd24123564294a49011d | a1924b3a7c28e0275a25508ead19449691776011 | refs/heads/master | 2020-04-23T01:32:27.747839 | 2019-02-16T09:02:00 | 2019-02-16T09:02:00 | 170,815,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # Generated by Django 2.1.5 on 2019-02-15 12:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gallery', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='gallery',
name='image',
fie... | [
"1716357925@qq.com"
] | 1716357925@qq.com |
8613969c1bf11f3f89b71cdad8ad6aeef96ee7a8 | 89be6a30d65e9074752b1fd53f1d3225bada2ed6 | /cherubplay_live/db.py | 3a635a93f38a766ad8c57c6f83e60719ab36b00c | [] | no_license | tehdragonfly/cherubplay | d9da2b5b0c1c140590927a98c4a39da92063ca3b | 2fcfd86f3fd8125aa751aee36549981e6556db73 | refs/heads/master | 2021-01-24T05:59:06.929203 | 2019-11-29T23:58:21 | 2019-11-29T23:58:21 | 16,424,472 | 4 | 2 | null | 2019-12-26T16:40:38 | 2014-01-31T23:59:20 | Python | UTF-8 | Python | false | false | 1,863 | py | import sys
from configparser import ConfigParser
from contextlib import contextmanager
from sqlalchemy import create_engine, and_
from sqlalchemy.orm import sessionmaker
from sqlalchemy.orm.exc import NoResultFound
from cherubplay.models import Chat, ChatUser, User
from cherubplay.models.enums import ChatUserStatus
... | [
"mysticdragonfly@hotmail.co.uk"
] | mysticdragonfly@hotmail.co.uk |
91c2efcb17277dc9655d1c00ba7117307c95135c | 21b4a7d4a16e9a7ef54c9e87fe6d4cc6a00f2a41 | /basic/n_1022_.py | 83a9de0ca817d84233210d11211ac01e14cfa3e5 | [] | no_license | sseraa/CodeUp | 3d3e7aecb21206179d363adcbcd5411275bfb39d | b5271076f4c852de38077922b3f8fd42001d262d | refs/heads/main | 2023-03-03T16:47:20.976461 | 2021-02-08T14:32:00 | 2021-02-08T14:32:00 | 319,667,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | #1022
string = input()
print(string)
#1023
# map(a,b)
#f,b = input().split(".") #what diff?
f,b = map(str,input().split("."))
print(f,b,sep="\n")
print(type(f))
#1024
string = input()
for i in range(len(string)):
print("'"+string[i]+"'")
| [
"noreply@github.com"
] | sseraa.noreply@github.com |
26d9cb5cae76b1197aa9fdef8f136785d5bb0d2d | a0b3945f7f2d76e531b244f0137a1f17af7ce880 | /图灵机器人/图灵机器人1.py | c00e93a592857ecd1ea55bace810481eedae63fb | [] | no_license | keyboylhq/robot_vision | 65a0226565823009a6afae0df9ea2d3122335573 | 47008a6b8b40cc92d76968b1c1fdee62124ca4e1 | refs/heads/master | 2023-02-01T00:31:48.011880 | 2020-12-14T03:30:56 | 2020-12-14T03:30:56 | 318,075,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | import requests
import json
imageUrl = ''
city = '广东'
province = '湛江'
street = '遂溪'
api_url = "http://openapi.tuling123.com/openapi/api/v2"
text_input = input('我:')
while True:
# text_input = input('我:')
# text_input = '今天天气'
req = {
"reqType":0,
"perception":
{
"inputT... | [
"1481903100@qq.com"
] | 1481903100@qq.com |
639d044c4239a0c793308a1e4284dddd61753182 | 5260c25c48ad33b5ef6fde53ac2b621a9fdc97e9 | /src/cartridge.py | 6de3d6224e8442980171d9d9d522a5686cf33497 | [
"MIT"
] | permissive | ryanskeldon/pytendo | 2919e5b2e614a14a01555d5e20893009f868e803 | f8e1eb66b2fcae3dfb69229650eafefd7b5d63d3 | refs/heads/master | 2023-01-28T08:39:05.420089 | 2019-01-06T19:07:49 | 2019-01-06T19:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | class Cartridge:
def __init__(self, filename):
self._filename = filename
# Load ROM data from file.
self._rom = open(filename, "rb").read()
# Check first 3 bytes for the letters 'NES'
if (self._rom[0:3].decode('utf-8') != "NES"):
raise RuntimeError("Not ... | [
"github@ryanskeldon.com"
] | github@ryanskeldon.com |
acf50301d0e79253163b3e8893e09378f5d033af | c4bb3c80e14b7c35d7f5dc92234f9e500d2c8628 | /Day3-Part1.py | b5cafe4cb9e5a4d0c09046dffdff963da0701169 | [] | no_license | SeanJumper/Python | 20861955a09259008ca75dcb15a47f04db733549 | e23c4a485d517c72359502f9586350cad0db7b38 | refs/heads/master | 2023-04-26T02:31:26.944131 | 2021-05-21T18:23:14 | 2021-05-21T18:23:14 | 338,410,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #Defining a function
def hint_username(username):
if len(username) < 3:
print("Invalid Username. Must be at least three characters long")
else:
print("Welcome to the team")
input_username = input("what is your username:\n")
hint_username(input_username) | [
"sean23397@gmail.com"
] | sean23397@gmail.com |
c64212fbcaa3ae1e49feb372c55e74cd6e4024a0 | 26bcead33b5ae529883f940d34c8ed6e1f1571af | /src/wordnet/__init__.py | 4e32b07df0478eabe63805e0922d9d3093bec5ff | [] | no_license | julieweeds/WordNet | a6ef1c7c757f60108c73ad02cfd43e902c2094c1 | 69c353c2cc0b6e5527f016a317e59bd43b8ceb45 | refs/heads/master | 2020-12-25T19:26:01.102329 | 2015-06-09T15:02:27 | 2015-06-09T15:02:27 | 9,606,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __author__ = 'Julie'
| [
"julie.weeds@gmail.com"
] | julie.weeds@gmail.com |
488399fdb504ae50e47833dff927ee9e6ba0f590 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/effects/JRTeleportEffect.py | 8882e9e00c07ab5214be47edb6f53d4ae176d94a | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,337 | py | # File: J (Python 2.4)
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from EffectController import EffectController
from PooledEffect import PooledEffect
import ran... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
d0133e014ff7cf5661239e7504e6191348970723 | 926c8273ad571bd353eee8b25e6041715e7811c7 | /sparqb/query_builder/examples.py | 9ba4f22cb0901db01fecc034b20b44747c9e7631 | [
"Apache-2.0"
] | permissive | sbg/sparqb | 7f40b884d23c7b4fe408cce40886403951a5f505 | 168a78a563fc8f8c93b63399966586b6802ee894 | refs/heads/master | 2021-06-18T23:22:43.918500 | 2017-06-20T16:01:01 | 2017-06-20T16:01:01 | 94,350,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | __author__ = 'Jovan Cejovic <jovan.cejovic@sbgenomics.com>'
__date__ = '02 March 2016'
__copyright__ = 'Copyright (c) 2016 Seven Bridges Genomics'
from sparqb.query_builder.blazegraph.blazegraph_query_builder import BlazegraphQueryBuilder
from sparqb.query_builder.expression import *
from uuid import uuid4
from rdfli... | [
"vladimir.mladenovic@sbgenomics.com"
] | vladimir.mladenovic@sbgenomics.com |
8e28e993c80f61da18a42c1591380ee8d5027018 | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /migrations/versions/e19ce0373a4f_made_degrees_and_personal_info_a_a_one_.py | 1cdef1768726407a573115deba478c710260bcc0 | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 2,377 | py | """made degrees and personal info a a one-to-many relationship
Revision ID: e19ce0373a4f
Revises: 7d048ab06595
Create Date: 2021-03-04 09:41:21.032186
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e19ce0373a4f'
down_revision = '7d048ab06595'
branch_labels = ... | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
dd9b0ef8e64753a4982781b6bc1b9804d96173f1 | 57d261d29b407a82107e973aa085f7b051d47de0 | /bannerapp/migrations/0001_initial.py | 8f0bc463a6117146572e39ed61d6df69600c6036 | [] | no_license | hjx-python/hjx_cmfz | 953d328bfc8bd4a219b280d86a15b522a93d1113 | 1c8cd6ce58bc20bc3a83d97a5337920e99b91082 | refs/heads/master | 2021-02-17T15:29:42.301747 | 2020-03-08T08:11:45 | 2020-03-08T08:11:45 | 245,107,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # Generated by Django 2.0.6 on 2020-03-05 09:08
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Banner',
fields=[
('id', models.AutoField(a... | [
"314379313@qq.com"
] | 314379313@qq.com |
8f31c83d2cf445f4383ccb17e555bd9604837762 | 23c7249b431c7b9cf1832631ad92816083f6b192 | /2018/src/day1.py | 870bb5f27bfdfdcd86b61359284edb6d778e4dc1 | [] | no_license | billy1kaplan/AdventofCode | 30643f6934acbcb9c7cab948c60de15561398e84 | 8783b8780504343aaed7878e2ac17fecbee48ade | refs/heads/master | 2020-04-14T09:02:57.666779 | 2018-12-25T06:41:51 | 2018-12-25T06:41:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Day 1: Coronal Calibration
def calibrate():
with open('../assets/day1_input.txt') as file:
total = 0
for line in file:
total += int(line)
print('The total frequency change is %d' % total)
def calibrate_2():
with open('../assets/day1_input.txt') as file:
deltas = []
... | [
"alex@molleroneill.com"
] | alex@molleroneill.com |
1177ab9475ae054b2b5b2dc251aafacfd30a76fc | 4db643b908cd648e7c5abf60b9e87b837b1cf953 | /django_myblog/blog/migrations/0002_article_pub_time.py | b3f6b6e888c2462e4be35701b325f3a532a717c0 | [] | no_license | ciphermagic/python-learn | 6d09207996f30afc2b9f9284f9018fea6f270d19 | 837eb6ed6bb124e4b581a285dedc423adedca55e | refs/heads/master | 2023-04-05T03:56:22.288256 | 2023-03-31T14:34:24 | 2023-03-31T14:34:24 | 98,847,622 | 3 | 1 | null | 2023-03-24T22:29:08 | 2017-07-31T04:19:12 | Python | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-02 13:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"ciphermagic@yeah.net"
] | ciphermagic@yeah.net |
73a9f7561884b3e2a1f48d82aa9dd9fd18077387 | 635e9b697a75fb7fba0dbbf3340401b75a77053a | /flask/app/forms.py | 82a216a1d45816a198bf41f05c49d89d69781ffe | [] | no_license | Watchfuls/University | 9de23ff166bcb901c17b46258e87457db2db011d | 99447d1a5ad66088c15af50a1f88f126ea1e5175 | refs/heads/master | 2022-10-10T00:27:07.615228 | 2018-01-20T18:17:18 | 2018-01-20T18:17:18 | 118,266,764 | 0 | 1 | null | 2022-10-07T19:15:41 | 2018-01-20T17:52:19 | Python | UTF-8 | Python | false | false | 417 | py | from flask_wtf import Form
from wtforms import StringField,IntegerField
from wtforms.validators import DataRequired
class todoForm(Form):
taskstring = StringField('taskstring', validators=[DataRequired()])
completedstring = StringField('completedstring', validators=[DataRequired()])
class JobsForm(Form):
j... | [
"greghs@users.noreply.github.com"
] | greghs@users.noreply.github.com |
d5de15191b5b65b8672942b474be1928172186e4 | 4806d5b15b45e30be16c857faaacaa278eba09d3 | /parse/parse_gansu_worker.py | a675f10751af6f727dfa48302b11fee243b2bc58 | [] | no_license | osenlin/gsxt_spider | 9ebc90b778ca1fe31f3339ddeccdac66808a1d96 | 6e75fe9802620284e8c19c6f23a9a90911b39016 | refs/heads/master | 2020-03-20T01:10:50.348913 | 2018-06-12T12:34:53 | 2018-06-12T12:34:53 | 137,068,844 | 5 | 9 | null | null | null | null | UTF-8 | Python | false | false | 28,729 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: youfeng
@email: youfeng243@163.com
@license: Apache Licence
@file: parse_base_worker.py
@time: 2017/2/3 17:32
"""
import traceback
from pyquery import PyQuery
from base.parse_base_worker import ParseBaseWorker
from common import util
from common.annual_field impor... | [
"694982665@qq.com"
] | 694982665@qq.com |
187668061f01ab4387a6c89213b6e685b0f87e39 | 6f9e6138b9a090f31c1b72ca0211db209cb43e05 | /django-polls/polls/models.py | 5dcfa11afa23f145e7b15f5d3c3a53f74bb2c9bb | [
"BSD-3-Clause"
] | permissive | Sammaye/py-django-tutorial | d16d8b0786dbcc7d481e72cb8db57a3b0d361b61 | a9e4bd1b75dfb3f84144d9d1c57811b1c55e72ba | refs/heads/master | 2021-01-10T15:35:23.005052 | 2016-01-02T17:13:19 | 2016-01-02T17:13:19 | 45,565,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import datetime
from django.db import models
from django.utils import timezone
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_publis... | [
"sammi@SAM-PC"
] | sammi@SAM-PC |
764c9237e3797d3e9ab48d5e9665a89d57b9c495 | d7d5af499142d9313a24ac711757a8ad7d6c2ef2 | /dataPreparation/parseReaxsysFile_v2.py | 6f74471536cdbf450ee5edee4136a3fbc4f5bce5 | [
"MIT"
] | permissive | rmrmg/SuzukiConditions | f8fa2bb07c37c4a8d148d6f1c2a1a495c635bb50 | 7ec3cbab269f2e769b4451571775d1fc6e547c45 | refs/heads/master | 2023-04-13T20:47:06.883856 | 2022-02-07T10:53:02 | 2022-02-07T10:53:02 | 352,658,712 | 4 | 2 | MIT | 2021-11-08T10:34:16 | 2021-03-29T13:45:06 | Roff | UTF-8 | Python | false | false | 48,601 | py | import itertools, re
from rdkit import Chem
from rdkit.Chem import AllChem
from collections import defaultdict
from rdkit import RDLogger
lg = RDLogger.logger()
lg.setLevel(RDLogger.CRITICAL)
def parseArgs():
import argparse
parser = argparse.ArgumentParser(description='parser of Suzuki reaction in csv from ... | [
"rmrmg@wp.pl"
] | rmrmg@wp.pl |
17f69630404fc6c1f6d2f160cddecc9d4d6b37b3 | fbcee5df0a4eb5ac9978fd9eab7eef92f7e58db5 | /results/theoreticalMagPlot.py | e3f97f827b75a9e811824021ae9a395277236cbb | [] | no_license | rogerwalt/WolffAlgorithm | ed5d0be8307a4ca7f2edb4acf6e4828b48db1b5e | 1f21145756720dd8c490cb9ce78c8df4e23a799e | refs/heads/master | 2021-01-01T18:01:59.867257 | 2013-06-26T09:05:00 | 2013-06-26T09:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import numpy
import matplotlib.pyplot as plt
x=numpy.arange(0,1,0.001)
y=numpy.power(1-x,0.326)
x=numpy.append(x,1)
y=numpy.append(y,0)
x=numpy.append(x,2)
y=numpy.append(y,0)
plt.ylim((-0.5, 1.5))
fig=plt.gcf()
fig.suptitle('Magnetization',fontsize=14)
plt.xlabel('T / Tc')
plt.plot(x,y);plt.show()
| [
"roger.walt@gmail.com"
] | roger.walt@gmail.com |
6df2056ff1d872877478b3262889069c5861363e | ed69733d37d120674fb9725e2f3e3376885fc295 | /svm.py | b0ba3a7513fbf13a52700b41c478cce3a66cc425 | [
"MIT"
] | permissive | zacateras/nn-nbirds | b0c105066ed2c2628b1946ee8ce1a925eb14132f | 3ed19982c442b8d47d284307a8a814deaef107e3 | refs/heads/master | 2020-03-12T10:11:40.664248 | 2018-06-14T23:58:42 | 2018-06-14T23:58:42 | 130,567,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | """
Utilities for evaluating svms on neural model outputs
Useful functions:
* predict_svm_vectors -- for predicting test and training vectors
* evaluate_svm
"""
import os
import sys
import keras
from keras.preprocessing.image import ImageDataGenerator
from preprocess import apply, build_ds_meta, bounding_box
from... | [
"andrzej.dawidziuk@gmail.com"
] | andrzej.dawidziuk@gmail.com |
81d8aad24aacbad9031db09fd9f0fb41b6886ab9 | 6a19ba3d871f050d486c3f8f5a7973f9707f2e26 | /python_1/study_webservice/__init__.py | b0fe3ab6929c51fb95596c8e061f220a7d751f51 | [] | no_license | KRIS123456654321/pytest | 5ea3e9eaf51d82ab904d6af06047955c5731535d | 2f425a1263e78fba36bc1094175c1e967498cafc | refs/heads/master | 2020-09-01T06:21:08.151013 | 2019-11-07T06:28:15 | 2019-11-07T06:28:15 | 218,898,234 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # _*_ coding:utf-8 _*_
# @Time :2019/7/28 17:30
# @Author :xiuhong.guo
# @Email :892336120@qq.com
# @File :__init__.py.py
| [
"892336120@qq.com"
] | 892336120@qq.com |
98881a7d9718ec10104ceb76b6f517e293aeb331 | e298cff908393cfbacf4910cfafb66b3231698ba | /Part 3 - Classification/Section 14 - Logistic Regression/classification_template.py | 03c23d0126bf052cabb080f19b8dec8a4fd52e0f | [] | no_license | efagerberg/ml_udemy | 0db9e1a9328ea14d9cd48e03c1171f4c31b13146 | a679d625f98c0f9d83cfecb9eceee35909849618 | refs/heads/master | 2021-04-26T23:36:02.676150 | 2018-06-13T04:36:34 | 2018-06-13T04:36:34 | 123,825,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | # Classification template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test se... | [
"adioevan@gmail.com"
] | adioevan@gmail.com |
7f0d01cad5f22e0769e53477e5496c0680068b8a | 4c765c87c0fd04140b168451f0a42ed378515287 | /app/api_service/core/views.py | d5b983280040fb34d2ecf362046213a6701e7303 | [
"MIT"
] | permissive | TheRayOfSeasons/worker-heavy-cicd | 807c0aaf44152cdb9ba0d35575d7c428d8213543 | fa36e89dd68ee2fd8b37bda55d6bb885f31afaa7 | refs/heads/main | 2023-03-02T01:31:25.454289 | 2021-02-13T07:41:26 | 2021-02-14T11:02:41 | 338,232,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | from django.views.generic import TemplateView
from braces.views import JSONResponseMixin
from services import Services
class JSONView(JSONResponseMixin, TemplateView):
"""
A view dedicated for responding customized json data.
Reference:
https://docs.djangoproject.com/en/3.0/topics/class-based-views... | [
"rsison@spectrumone.co"
] | rsison@spectrumone.co |
fbd5195610ae44c4f76a292e76f30c65bf358f4e | d37f6a525fc61e22d27f5dea5d57abc3b41539d6 | /main/migrations/0009_auto_20160613_1657.py | 593df6fb7ea04bca30b71e794e56dfbab6f58860 | [] | no_license | pawanaraballi/GradMaze | 40427cd415fd32c850a9bb8f498c78934aa0077f | cb4316d63a0a0e438fd16e0c34c83790e2596eb3 | refs/heads/master | 2021-01-17T06:29:20.875503 | 2016-08-14T16:34:27 | 2016-08-14T16:34:27 | 64,424,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-06-13 16:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0008_auto_20160613_1656'),
]
operations = [
migrations.AlterField(
... | [
"jknigh28@gmail.com"
] | jknigh28@gmail.com |
03c900177fa8129e8c676e40bc3519564cbe0b4d | 594cbfd9e2a37fd26f64fa63e9e7699a799ad743 | /Tag.py | 0d45aa590457c4c4640a283c3d1d2b1642c08e9c | [] | no_license | aungwaiyanhein21/virtual_lab | 7921d51a8c804ee4fc90d49e37cd12231a3d1ffe | 0cd31626af1b765525374fc8e4d3149de4b7e74b | refs/heads/main | 2023-07-16T04:51:25.504802 | 2021-08-16T13:17:38 | 2021-08-16T13:17:38 | 394,349,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from lab_db import *
from utils import *
COLUMNS = ['id', 'title']
def get_tags(conn):
rows, error = db_get_tags(conn)
objects = []
if rows is not None:
for row in rows:
objects.append(
row_to_dictionary(row, COLUMNS))
return objects, error
def ge... | [
"aungwaiyanhein@Aungs-MacBook-Pro.local"
] | aungwaiyanhein@Aungs-MacBook-Pro.local |
2cbd3471948723ca1549e4f3554303d705f8caad | 78e328628b62613c69d26c2a6ae696328307d681 | /tutorial/bluetooth/rfcomm-client.py | addd2dda0c03c612b0a05a2701271ecafcecf69b | [] | no_license | funwalla/Sandbox | 9df4ed637cf696950657ece1c36e2c907777bd5b | 32a488bcdd171afa78589fe16cd0f3aa1bae4aff | refs/heads/master | 2021-01-10T18:25:38.090148 | 2012-06-21T01:36:44 | 2012-06-21T01:36:44 | 3,556,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import bluetooth
bd_addr = "F8:DB:7F:18:E1:D5"
port = 1
sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM )
sock.connect((bd_addr, port))
sock.send("hello!!")
sock.close()
| [
"johnpaulwinchester@gmail.com"
] | johnpaulwinchester@gmail.com |
400556d084d848f2f98fbc226d21d5d1372fb006 | a97a244c1586f0f742d8ef159f86b7d8a677187f | /lunch/stores/forms.py | deb5ec107bf8df35cc5b023b14bd7d39040a1439 | [] | no_license | white1033/play_django | da9d8fe695d673b8cc0069e95482554da1b02d5e | f5e56983cd45465c2efd3ac0e3f5f4e0e7703ee1 | refs/heads/master | 2021-01-10T02:16:12.897064 | 2015-10-25T04:16:44 | 2015-10-25T04:16:44 | 44,461,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django import forms
from .models import Store
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
class StoreForm(forms.ModelForm):
class Meta:
model = Store
fields = ('name', 'notes',)
def __init__(self, *args, submit_title='Submit', **kwargs):
sup... | [
"k75715@gmail.com"
] | k75715@gmail.com |
504c14f5fabb4276e0030bac3aa60f28bd43ecd0 | 2d2f1810cadeea58d4883806a2e768f9bb989633 | /prectice/check/migrations/0011_auto_20210214_2221.py | 38744f05f6c269374ad4aeacb480162a2a2fa44c | [] | no_license | khansaUmatullah/hospital-management-system | 17c75aea46c8bdd4a27cbfa3d53b10644c53b3b5 | b7b9c237faa352053d9faae90694ef970dc43752 | refs/heads/main | 2023-03-06T19:50:35.487761 | 2021-02-21T23:04:08 | 2021-02-21T23:04:08 | 341,020,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # Generated by Django 3.1.4 on 2021-02-14 17:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('check', '0010_furniture_pharmacy_prescribed_prescription_records_staff_supplies_surgical_instruments'),
]
operations = [
migrations.AddField... | [
"2017ee154@student.uet.edu.pk"
] | 2017ee154@student.uet.edu.pk |
3cce5f338f335566330177c42858bb6eb0baddd8 | 80e6e31054fe9105d2c26be7aac53c4cd6a4a33f | /scripts/spyder/amac_company.py | a1708762c46b6687a0c4ff41381e2b7ae1bca9d9 | [] | no_license | alionishere/learn_python | 8a7f6dc7d754a357d4cb720f4bc0d5c3e6e5e895 | 832b8e0579da0b7ab37e815be10204f8de1ad22d | refs/heads/master | 2021-06-24T11:02:05.111027 | 2021-06-23T08:47:06 | 2021-06-23T08:47:06 | 223,834,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,079 | py | # -*- coding: utf-8 -*-
import requests,io,sys,time
from bs4 import BeautifulSoup
import json,urllib
import cx_Oracle
from lxml import etree
import threading
from queue import Queuea
def conndb():
username="kingstar"
userpwd="kingstar"
host="10.29.7.211"
port=1521
dbname="siddc01"
dsn=... | [
"wang_hongke@163.com"
] | wang_hongke@163.com |
e55c67e7f09dfa60555f9a33399e0aaf3724b524 | 47eb064a50b16c47c125d6cdfc63fc3ab691194c | /epidemioptim/configs/korea_dqn.py | bd1a78c376270e4b0fd181c244707b0e525f25e4 | [
"MIT"
] | permissive | hyerinshelly/RL_COVID-19_Korea | 3c0cb44e193496507173ce43fa23de4be8166f49 | da95b6713969271043a44c10b84f9407f038b71a | refs/heads/main | 2023-03-09T04:10:21.581753 | 2021-02-22T08:18:32 | 2021-02-22T08:18:32 | 334,847,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | import numpy as np
params = dict(expe_name='',
trial_id=0,
env_id='KoreaEpidemicDiscrete-v0',
seed=int(np.random.randint(1e6)),
num_train_steps=1e6,
simulation_horizon=364,
algo_id='DQN',
algo_params=dict(eval_and_log_ev... | [
"hyerin.park@kaist.ac.kr"
] | hyerin.park@kaist.ac.kr |
f5cb07d8502e20680654e1356fdb1f556e65edf0 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/ad_group_extension_setting_service/client.py | 751f45c7d71aa3e7c322a037ec62396c7f357549 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,859 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
649d07398de11e3ef5cede9ff99e0e0d1a27c6e5 | 2548c338652a3da8735e93d9fac052d2031dde73 | /wsgi.py | d5ffc72431b396f3a8328da482a80637e00c6b78 | [] | no_license | ronjohn4/poker-old | 94f17cd7deadab004138031530f698103bcdca2d | e9bbdca0e4f13bd1f6c4cac367414a0c01d655f6 | refs/heads/master | 2023-07-05T01:06:53.154780 | 2021-08-30T12:09:39 | 2021-08-30T12:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from app import app
if __name__ == "__main__":
app.run(use_debugger=False, use_reloader=False, passthrough_errors=True, port=8002)
| [
"ronjohn4@gmail"
] | ronjohn4@gmail |
6f6e48737ae09ffa6ef92e8c00509c5193658852 | 5ed444725da469bd57dc149ae463fe463120da0e | /mysite/mysite/urls.py | 0a74e3a40753f6a2b6f284eb97c8f272dcdd3b95 | [
"MIT"
] | permissive | pranjul-jani/todo-list | 45ccb923e8f4924ab2043da3f8fa26744c2ea038 | f8e0c3ccdd8bda81c8b760b7af10fd6f7e4055e7 | refs/heads/master | 2022-12-04T08:28:29.986230 | 2020-08-29T14:25:12 | 2020-08-29T14:25:12 | 290,665,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"49308187+pranjul-jani@users.noreply.github.com"
] | 49308187+pranjul-jani@users.noreply.github.com |
bd9c2429cb08c15e8eb876b779ccb1bbe80aa632 | b1bdf49b6ff747f987855ced09d504b30f012b74 | /tests/conftest.py | 0a56dbee2a9e9ef1d8d2a3b0d15b057df3b1e986 | [] | no_license | olegviv/Goal_2 | 6053b867bb1d69d122c3fe4b92cf4bde10e13dfc | 0463a1359e3f007e1ed40a9b3b5a5c12481014ae | refs/heads/master | 2022-12-24T17:18:48.099178 | 2020-10-13T16:48:13 | 2020-10-13T16:48:13 | 302,304,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | import allure
import pytest
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver import Chrome
@pytest.fixture()
def driver(request):
driver = Chrome(ChromeDriverManager().install())
request.cls.driver = driver
yield driver
driver.quit()
| [
"oleg.viviursk@gmail.com"
] | oleg.viviursk@gmail.com |
977bc6a3732170a6fb220cdaace2fb742271b850 | ae8b636b8d189090f3950a52efd8ae53dabb0cc2 | /lmi_sdp/tests/test_lm.py | 4245701f3ba6c7b80678b2fa8e62d3cd65256e3d | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fanfufei/PyLMI-SDP | 453a5d9f220596a313b2f72d34b2bf84ab11d614 | cac22772feeff1f7d3366d89c9d3d1a977e14eb1 | refs/heads/master | 2020-06-13T23:00:21.030218 | 2014-09-14T18:48:00 | 2014-09-14T18:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | from sympy import Matrix, zeros, MatAdd, MatMul
from sympy.abc import x, y, z
import numpy as np
from lmi_sdp import NonLinearExpressionError, NonLinearMatrixError, \
lin_expr_coeffs, lm_sym_to_coeffs, lm_coeffs_to_sym, lm_sym_expanded
def test_lin_expr_coeffs():
e = 1.2 + 3*x - 4.5*y + z
coeffs, const = ... | [
"crisjss@gmail.com"
] | crisjss@gmail.com |
d37c55351fcc58f0a0f56e067c8a897e7fc01e76 | e912adc644de0a3df82885ff28fc1b91120ee966 | /sfnenv_bak/bin/pilfont.py | f0cfccb02ca5dcd8e6c7c0b9d016c7577d4db9a8 | [] | no_license | aescobarr/sapfluxnet-form | fad64a4f6ebf45d4473be4ecd11ad937bd1aea32 | e4149ea30ece77995774fd87093e8967a2fcb012 | refs/heads/master | 2020-05-21T23:55:52.133865 | 2017-01-11T15:53:52 | 2017-01-11T15:53:52 | 46,056,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | #!/data/webapps/sapfluxnet-form/sfnenv/bin/python
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFontFile
from PIL import PcfF... | [
"agustiescobar@gmail.com"
] | agustiescobar@gmail.com |
5eafb0bd65c0b310e67e3a137116184bb8059d51 | a55733d3261a0a14a640616121837dd1c38e8636 | /rectangle_tracker.py | 713cc33bf746a6fdeab495f25179f551dbd4583e | [
"Apache-2.0"
] | permissive | jsdelivrbot/python-opencv-rectangle-tracker | 795e497cb59ad89220df02f1df7da751a4fd3e71 | 5b081acd9b35b16ace88b84732653cd3c42cabbb | refs/heads/master | 2020-04-10T15:07:28.474597 | 2018-12-10T00:35:52 | 2018-12-10T00:35:52 | 161,097,853 | 0 | 0 | null | 2018-12-10T01:06:03 | 2018-12-10T01:06:02 | null | UTF-8 | Python | false | false | 13,985 | py | """
Notes:
1) This is algorithm is primarily designed for a rectangular piece of
paper lying flat on a flat surface, but may work in other situations
assuming that the paper's corners are not obstructed.
2) The camera's view of the paper must be unobstructed in first frame.
"""
# Basic Depende... | [
"andyaport@gmail.com"
] | andyaport@gmail.com |
08d07137db86aa9a39796ee890744278c465c620 | 8af1e14d37b2d730aeeaf49fd2091a02708124c2 | /build.py | b8953023fe83ba4262c6158faa1e1b39734e2246 | [
"MIT"
] | permissive | gilmoreorless/double-30-overs | aebd0fc332121f2ff82ce5f003a9b09f023a79fe | 9dec986e5a2be31dec2122dd712a1c5ac8fe77ea | refs/heads/master | 2021-01-19T01:25:45.296001 | 2015-05-23T01:00:58 | 2015-05-23T01:00:58 | 33,439,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #!/usr/bin/env python
#
# Requirements: pip install markdown
import re
import codecs
import markdown
with codecs.open('src/index.md', 'r', 'utf-8') as input:
source = input.read()
html = markdown.markdown(source)
# Big callout numbers
# ++1234++
callout = re.compile('\+\+(.*?)\+\+')
html = callout.sub('<q clas... | [
"gilmoreorless@gmail.com"
] | gilmoreorless@gmail.com |
a55121c50d2cd17ca1822484ea63faff551bfcf1 | 89fc7f37c5a40c1766028d56319cb5fc6a87a6a6 | /milicien/admin.py | e99cf318863e00b1d0477066e5a88c0a2a8496aa | [] | no_license | ubltroll/lamer_py | c795e144776db6bd1aadc231ad656b44e7d73655 | 69bfadcf0902acfef73bf604659db75241bdfafa | refs/heads/master | 2021-05-11T16:55:55.292981 | 2018-04-22T13:53:59 | 2018-04-22T13:53:59 | 117,779,762 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from milicien.models import Profile,assistance,setting,shipCode
# Define an inline admin descriptor for Employee model
# which acts a bit like a singleton
class ProfileInline(a... | [
"chen1045bc@vip.qq.com"
] | chen1045bc@vip.qq.com |
2fe3c41092642fd883280b535084a8e65677a4f4 | 283928f562574f40161cbf5b93b9b3be4de55ee9 | /inference-engine/tests/test_Image_Predictor.py | 4005499296b36ba51f813b803e4969bc5ff1ebe9 | [] | no_license | kongseokhwan/smart_signage | 4ab6689efcbe11f38e62eaf36291c845ed7c641f | b0c97d71bf8c1cf754e09ec9c61c2c693bba80fc | refs/heads/master | 2022-04-05T02:08:04.636909 | 2020-02-25T05:46:12 | 2020-02-25T05:46:12 | 242,871,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import pytest
from handler.ImagePredictor import ImagePredictor
class TestImagePredictor:
def test_read_image(self, capsys):
print ("test")
self.ip = ImagePredictor()
self.ip.read_image('rtsp://admin:Kulcloud&&@10.1.100.35:554')
#self.ip.read_image(0)
print (self.ip.predict(... | [
"luzhcs@gmail.com"
] | luzhcs@gmail.com |
fbbf8f93cf2a35f516071a2bd3596f99dbb244ed | f54b186409c85df5eaedb0800f6f1175d0832dd7 | /SlidingWindow.py | c7fca4fbca12a09e5fd805ba924c5aad1d889ac2 | [] | no_license | scimone/BG_Clustering | ad92fc48482267f62c5c5e4be68505e6c6e3e6f3 | f073fc3be5c482b901d36ab3a0e5f357e9af1963 | refs/heads/master | 2023-01-22T10:32:17.894669 | 2020-12-05T13:33:01 | 2020-12-05T13:33:01 | 318,784,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | import numpy as np
class SlidingWindow():
def __init__(self, time_data, window_size=24, start_time=0, stride=1):
"""
Sliding window approach: Multiple vectors of length "window_size" are created from "time_data" vector, each shifted by "stride" time steps
:param time_data: list of time da... | [
"56034784+scimone@users.noreply.github.com"
] | 56034784+scimone@users.noreply.github.com |
8d2bdb40a597116b5b8b30dc0ea6843cf904412e | fffc0e2384d29fb34041e0bde8c50cd4b01422d8 | /core/mixins.py | 95ec4f36c493724ee34f8cf40fb82a2c4c8032f6 | [] | no_license | andrei-dev-fe/HelloWord | 7d87959e5c7e92d0c0f094d8dc7ccb6ce594b2e8 | 1c5f22623f7d51df690c2cdaa9864206cac37c0d | refs/heads/master | 2023-03-22T12:37:34.015566 | 2021-03-23T02:25:41 | 2021-03-23T02:25:41 | 350,553,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | from rest_framework import mixins, status
from rest_framework.response import Response
class BulkCreateModelMixin(mixins.CreateModelMixin):
"""
Create valid objects and return errors for invalid ones.
"""
def create(self, request, *args, **kwargs):
# The initial serializer
serializer ... | [
"andrei.webdev@hotmail.com"
] | andrei.webdev@hotmail.com |
7357b195617ca226ab46ca633dea4d8c5de65e95 | db24de31a07b254b721bb035239cd0cc03e5a364 | /backup_configs.py | 573885939af473e6e4f48ad1aaaf0f7c1c26b339 | [] | no_license | darathma/pexpect_examples | 74fe1708e7edb79a2dbc7330af9aba4db799a0b8 | 3e52fbeb801ef530d296509691fcae66db3e53ac | refs/heads/master | 2022-09-28T13:11:10.798839 | 2020-06-03T21:09:09 | 2020-06-03T21:09:09 | 269,162,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import getpass
import pexpect
import sys
from datetime import date
user = input('Enter your username: ')
password = getpass.getpass()
ssh_newkey = 'Are you sure you want to continue connecting'
today = date.today()
file = open('multi_switches.txt', mode = 'r')
for host in file:
IP = host.strip()
print('Conn... | [
"noreply@github.com"
] | darathma.noreply@github.com |
0f97f6497d711f09d33f01461d992e7caa12c186 | ed32eb1eb0a328a4ffe89e178fc4987470f333cd | /module/multi_process/multi_process_data_share_queue.py | 5a0bf787d49a21a07716851ed7ecdbf5bd202769 | [] | no_license | xiaoyaojjian/py_learn | c6f5bdf31bcebf29dd914e81e6be9305a61265cc | 95e494ea823d2074a05c1c2a49595002a1576093 | refs/heads/master | 2020-12-05T23:22:11.017066 | 2016-09-08T01:13:08 | 2016-09-08T01:13:08 | 67,654,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | """
使用 multiprocessing 中的 Queue 队列, 实现进程间数据共享
"""
from multiprocessing import Process, Queue
def fun(q, n):
q.put(['hi, ', n])
if __name__ == '__main__':
q = Queue()
q.put('Ao')
for i in range(5):
p = Process(target=fun, args=(q, i))
p.start()
while True:
print(q.get()) | [
"q2868765@qq.com"
] | q2868765@qq.com |
a811d153e337706d515599bbb07ff549b3e288e1 | b0f45a16f34ff84e217ff20cc06f1e8280459504 | /antgo/measures/matting_task.py | b4d89c343881b9e68b17ca02028d5a8540f7ccae | [] | no_license | zhaoqike/antgo | c41dd4b8bc3e969f6008a6c17f0b44d0fe4a8eae | c8a62b2567f62db15f26c75dcc2191cb69f392ab | refs/heads/master | 2021-07-18T17:37:58.652112 | 2017-09-12T01:19:15 | 2017-09-12T01:19:15 | 102,823,416 | 0 | 0 | null | 2017-09-12T08:04:20 | 2017-09-08T05:57:28 | Python | UTF-8 | Python | false | false | 3,153 | py | # encoding=utf-8
# @Time : 17-7-25
# @File : matting_task.py
# @Author :
from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
import numpy as np
from antgo.task.task import *
from antgo.measures.base import *
from antgo.dataflow.common import *
from antgo.... | [
"jian.fbehind@gmail.com"
] | jian.fbehind@gmail.com |
ee2b1a66b05d351436375671a7fe15c17c9c564d | 3da9b7208eb5c2192458da0fca9e2e55f3a75d73 | /projPandas/app.py | a071ba009e26a5832f0f5ce6bba13ed7f1ed568a | [] | no_license | adityas27/PySnips | 42348618551f58cde9aa79591c18e394c9f5413c | 285b603cafebf5039b1a5bf1ff036e65c75f4bf7 | refs/heads/main | 2023-06-17T20:52:43.262246 | 2021-07-15T11:47:01 | 2021-07-15T11:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | """
ToDos for this project ¶
1. Remove NaN values and change it to 0
2. Make Roll_number column as index
3. Sort Index
4. Make new dataframe which consists of Only [Name, Score, Std]
5. Save new dataframe as CSV
"""
import pandas as pd
subject = "geography"
df = pd.read_cs... | [
"adityasingh27072746@gmail.com"
] | adityasingh27072746@gmail.com |
410876bd63bf1ac4b7d336894b9e933c1917fd8a | 54011e314cc277d37d131d7e6a5977ab4e62a136 | /src/split.py | f4c4ec2da428481908b14cba4727ff96c03984f1 | [
"MIT"
] | permissive | DataManagementLab/fandomCorpus | 578c3854e7c2038d0321520537bac4f27d57d75b | d89f57fd1b2d868d7984c572bfba3ea6b07ec8b8 | refs/heads/master | 2023-07-20T07:11:07.243934 | 2023-07-09T10:08:12 | 2023-07-09T10:08:12 | 225,869,277 | 1 | 0 | MIT | 2023-07-09T10:08:13 | 2019-12-04T13:04:43 | Python | UTF-8 | Python | false | false | 5,018 | py | import json
import os
import sys
from os import path, listdir
import random
from math import ceil
from parse_dump import get_base_path
SPLIT_TEST = 0.1
SPLIT_VAL = 0.1
def split(wiki_name, experiment, threshold=0):
"""
Split available files into train, validation and test set
:param wiki_name: name o... | [
"benjamin.haettasch@cs.tu-darmstadt.de"
] | benjamin.haettasch@cs.tu-darmstadt.de |
2a9855d3fb56e3ed2309e33db3599a88d81e0948 | c3a91a245155e5e573dc554fdacb94858df5d36a | /Nukey/cogs/cmds.py | aa750619578a257c2ace0c0a32a626dbc45e9723 | [
"MIT"
] | permissive | lmnbot/NukeBotPython | ef549202594cad6a9a1b107c01f52a0ef8cdd963 | 036a78fb62e95d1814e0417098e61b0b7d2098ce | refs/heads/main | 2023-07-15T18:13:17.848778 | 2021-09-02T10:19:14 | 2021-09-02T10:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,613 | py | import discord, os, sys
from discord.ext import commands
def restart_program():
python = sys.executable
os.execl(python, python, * sys.argv)
class utility(commands.Cog, command_attrs=dict(hidden=True)): # Set it to False to make commands visible in the Help command
def __init__(self, client):
self.cl... | [
"noreply@github.com"
] | lmnbot.noreply@github.com |
33f8e8c7bd58dedd1a60ff330d66f61e776030ca | 17e1fef277dce4113f5d4f34107ba9f4b25d6646 | /env/bin/s3multiput | f5e975662b4c63d861ea8958d11063454b5b4f2c | [] | no_license | morenopc/botoS3-storages-test-project | 278a597d9c79b8b2c79b9e4b8bbe953e4c079270 | 4672fb00d0866e019d04ec6cd0a27bf3a049b0e1 | refs/heads/master | 2021-01-23T22:15:24.813838 | 2012-10-23T17:49:44 | 2012-10-23T17:49:44 | 6,357,058 | 0 | 1 | null | 2020-07-25T21:42:25 | 2012-10-23T17:46:06 | Python | UTF-8 | Python | false | false | 12,970 | #!/home/moreno/projects/django/botoS3-storages-test-project/env/bin/python
# Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
#
# 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 w... | [
"moreno.pinheiro@gmail.com"
] | moreno.pinheiro@gmail.com | |
fafe14b197f0c604e61c53c8e48f27d9ee291ebd | 6a29573f8e6ce14d8aaa7829935c601dd972891f | /bqgSpider_v0.py | 4f632ebab4a2e44eb11d70f3a7f6b04484f49510 | [] | no_license | qiebzps/biqugeSpider | 003d9f7bd252e234ce0e1b7541e65d86eb83a020 | 36ba6371e8f4454743ed30476ecc7fca3aa7472f | refs/heads/master | 2020-04-07T08:54:32.819298 | 2018-12-08T12:17:20 | 2018-12-08T12:17:20 | 158,232,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # 爬取网页的通用代码框架
import requests
def getHTMLText(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_status() #如果状态不是200,引发HTTPError异常
r.encoding = r.apparent_encoding
return r.text
except:
return "getHTMLText产生异常"
if __name__== "__main__":
url = "http://www.b... | [
"1033239636@qq.com"
] | 1033239636@qq.com |
aeef40161ad8a17f366260d7335f1bb1e51c30ae | dcd2dea5a0054690cb9a25ac7d55652037d09eae | /gallery/urls.py | 09f6a2f2069cf1c987cdcd9a524411daecae9523 | [] | no_license | SadLaboka/PhotoGallery | 76c1244a6206b1dcba4a39d7ed420b0d4728347b | c5723eb0eff8892b567fb5b7b8ea40d38b7eaee5 | refs/heads/main | 2023-06-11T18:43:17.482423 | 2021-07-03T11:35:10 | 2021-07-03T11:35:10 | 347,159,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | from django.urls import path
from .views import (
GalleryView,
PhotoDetailView,
PhotosByCategory,
PhotosByAlbums,
PhotoManagement,
AddPhoto,
DeletePhoto,
EditPhoto,
UserProfile,
UserAlbums,
CreateAlbum,
DeleteAlbum,
user_login,
user_logout,
register,
)
urlpa... | [
"toteshephysic@yandex.ru"
] | toteshephysic@yandex.ru |
dc0bb1fb6349725d85c52d791dfc3534d80f71ef | 67616ecf67b9d2bf40fa83f96fb322e717e0b1cc | /Python/Chap02/class.py | 6aba7e7332236539c7e7d756f90f8a942cfab7f1 | [] | no_license | rajeshaws0054/Rajesh_Final | f9c58cd83ce2d32075e24d95075d1b75119458b4 | 030c621293a251d66293893e8415f1c9a54d7eb1 | refs/heads/main | 2023-01-03T22:46:20.916792 | 2020-10-22T11:46:15 | 2020-10-22T11:46:15 | 300,840,961 | 0 | 0 | null | 2020-10-22T11:46:16 | 2020-10-03T09:15:04 | Python | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/env python3
class Duck:
def quack(self):
print('Quaaack!')
def walk(self):
print('Walks like a duck.')
def main():
donald = Duck()
donald.quack()
donald.walk()
if __name__ == '__main__': main()
| [
"rajesh.borugadda@synectiks.com"
] | rajesh.borugadda@synectiks.com |
f3629dabc9b32d63e5b11a0fc80531d319b34122 | 2a1cc7bc4e6fec0295e333d64101726e83df1317 | /python/MM-19 Turtle Game - Apple Hunter.py | 919e10df3c8e0ddbff51a50fc024e6dc3b77c9bc | [
"MIT"
] | permissive | eealeivan/tpt | 79b4c46c8a1272466f2e55074b28ac53e8dad504 | 5960d17f9ef303e851b6759a732e111ae8114458 | refs/heads/master | 2020-03-31T16:40:46.745704 | 2020-03-24T21:00:47 | 2020-03-24T21:00:47 | 152,385,646 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import turtle
import math
import random
# set up screen
screen = turtle.Screen()
screen.setup(700, 700)
# draw border
border = turtle.Turtle()
border.pensize(3)
border.penup()
border.setpos(-300, -300)
border.pendown()
border_cnt = 1
while border_cnt <= 4:
border.forward(600)
border.left(90)
border_cnt = ... | [
"noreply@github.com"
] | eealeivan.noreply@github.com |
1ddbfef718f3f76bbe9b4ec02c96d12a6471ecf9 | 150fe244b4bf651ad1134d10624e35162a3eb6ed | /api_tests/principal_role_test.py | 469dd8a3f086aea605345d18be0ea7ad94ac8b84 | [
"MIT"
] | permissive | uluru-phatnguyen/saas_rbac | 4e16ee931139d29dcc9ddcce361992521665d5f4 | 8debc56a9610f8fef1a323155eb938bfef4fa034 | refs/heads/master | 2021-05-18T19:07:06.216899 | 2019-07-10T18:10:31 | 2019-07-10T18:10:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import unittest
import base_test
import json
import urllib
class PrincipalRoleTest(base_test.BaseTest):
def setUp(self):
super(PrincipalRoleTest, self).setUp()
self._org = self.post('/api/orgs', {"name":"role_org", "url":"https://myorg.com"})
self._principal = self.post('/api/orgs/%s/princi... | [
"bhatti@plexobject.com"
] | bhatti@plexobject.com |
cb1f8328f2102a4ee9dfd5f445ed447cf7144c20 | eb8841069e36ed4894f0e93ec3ce46c8cbddc089 | /wishlist-microservice-python/index.py | 31e194849659b0998c50170d70e7aaaffe1e7195 | [] | no_license | RAJENDER-GIRISH/microservices-application | c1ac63a248e2f040e2acd1a34bcceccbed0112bd | 990030db8ef3b5922625d6fcb3f549f1a0479e26 | refs/heads/main | 2023-06-15T00:24:42.124470 | 2021-07-14T05:04:59 | 2021-07-14T05:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from flask import Flask,request
from flask_cors import CORS
import json
app = Flask(__name__)
CORS(app)
@app.route('/', methods = ['GET'])
def hello():
print('Getting List of WishList Items')
x = {
"1": "Apple Iphone",
"2": "MacBook",
"3": "Your Fav Something else"
}
y = json.dumps(x)
re... | [
"root@ip-172-31-7-211.ec2.internal"
] | root@ip-172-31-7-211.ec2.internal |
db15a162e4c6680d4242c10abdce862662440536 | 466125d21b53adce5095912a5c1c91782a9542e4 | /price_evaluator_app/urls.py | 49d5c35563bbea75e3b54e3965749e7cfd2d2274 | [] | no_license | DominikaPasek/price-evaluator | 1c7c7a0389969a7cc646c6be155fcf5a30d605ba | 837b537825df0639c33c6773f515693dfd5a1aa9 | refs/heads/master | 2023-06-19T11:16:13.117318 | 2021-07-17T09:36:50 | 2021-07-17T09:36:50 | 384,397,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | """price_evaluator_app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"76444887+DominikaPasek@users.noreply.github.com"
] | 76444887+DominikaPasek@users.noreply.github.com |
4991781b7f3e6313b0c345c9656600838ac75d30 | f63d1f49e9cce41016b7c22d880d206948f62627 | /lexicons/extract_csw.py | 452353bfa1d94ff7daadfd0ea66ea585d26e6551 | [
"MIT"
] | permissive | tblock007/boggle | 4824c236d5277c29de0b132b03df9c85c03f00e1 | 8e6f38348a3a7f9e010b54231314bf42cfd4ce36 | refs/heads/master | 2020-06-30T17:14:00.596702 | 2020-05-08T05:44:01 | 2020-05-08T05:44:01 | 200,893,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | def convertLine(l):
return (l.split()[0] + '\n')
ifstream = open('CSW19defs.txt', 'r', encoding='utf-8')
ofstream = open('csw_en.txt', 'w+')
words = [convertLine(line) for line in ifstream.readlines()[1:]]
for w in words:
ofstream.write(w)
ifstream.close()
ofstream.close()
| [
"the.t.block@gmail.com"
] | the.t.block@gmail.com |
b6e9da8a58931142ae37f79ad52061c92bc9993f | 5b0e6f520310c30b444cfafd5ee7789b599f7955 | /bb.py | 79a87809a1c65cdf18820c65b20959f4f9e5c9d7 | [] | no_license | heynoparking/code | d1e1d5494ad13bc847ee8c73bec13cc5c02daab7 | 6a2b3686d82591bdbae787e251f5402b149934aa | refs/heads/master | 2020-03-22T15:45:14.605012 | 2018-08-06T15:50:07 | 2018-08-06T15:50:07 | 140,275,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import json
import requests
url = 'https://www.metaweather.com/api/location/2306179/2018/7/18/'
r = requests.get(url)
r.encoding = 'utf-8'
data = json.loads(r.text)
print("Taipei on a 18th Jul 2018. Weather: " )
for i in range(len(data)):
print( data[i]['weather_state_name']) | [
"booboo0590@gmail.com"
] | booboo0590@gmail.com |
35e7ae1cc93316c77bb4544a66133e4b8de23b35 | 5e2ce4d3e4e0f1117a34d859b9bfd4b8ddf45dd3 | /show/views.py | 0fababbf01f9e1d72a6a88cac11ac1ccd54b9ce3 | [] | no_license | Jaspreet-singh-32/Notes | 1d231525dee02511dcf84d4b29d04494a6122ddf | 354b9d4a69cf25637e1f6624c09a10c077b864ec | refs/heads/master | 2022-12-23T19:33:10.844573 | 2020-07-17T08:33:58 | 2020-07-17T08:33:58 | 280,372,293 | 0 | 1 | null | 2020-10-01T05:53:05 | 2020-07-17T08:38:00 | Python | UTF-8 | Python | false | false | 2,599 | py | from django.shortcuts import render,HttpResponse
from show.models import Data
from django.contrib import messages
from show.models import Contact
# Create your views here.
def all_notes(request):
# first = First.objects.filter(subject=slug).values('title','any_message','id','trade','subject')
# second = Second.... | [
"jassimehra2612@gmail.com"
] | jassimehra2612@gmail.com |
4b64ead8aaa5f3622333594515050ea8272d1336 | c39e19e8fada4df5bf8999f93a470fc5db0b8ea7 | /tensorflow/python/keras/distribute/keras_stateful_lstm_model_correctness_test.py | 4802c8d07d7c1f2aa5807fb9066c48b3319404fb | [
"Apache-2.0"
] | permissive | ivomarb/tensorflow | 6bb05bc6dbaa8e59b43d00a8216bb0b8cb766080 | df2fbb89588065fca2c6e5fcfba7d8c2b4378591 | refs/heads/master | 2020-06-26T05:03:06.321649 | 2019-07-29T20:30:03 | 2019-07-29T21:40:30 | 199,530,704 | 1 | 0 | Apache-2.0 | 2019-07-29T21:45:39 | 2019-07-29T21:45:38 | null | UTF-8 | Python | false | false | 4,359 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
94e94f0a49146bdb6be636a8ec08afefab19692d | 34652a47355a8dbe9200db229a1bbc62619de364 | /Matlibplots/dataset/weighted_moving_average.py | ba1c72dd6c5721cf2c82d983bfe57dd402757fc0 | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # Created by Bogdan Trif on 05-02-2018 , 11:25 AM.
import numpy as np
import matplotlib.pyplot as plt
#first generate some datapoint for a randomly sampled noisy sinewave
x = np.random.random(1000)*10
noise = np.random.normal(scale=0.3,size=len(x))
y = np.sin(x) + noise
#plot the data
plt.plot(x,y,'ro',alpha=0.3,ms=... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
104faf0976a57398e08a2092df8011c01c40ff5a | 2e5dbb3b851a3e96d715bc50c54b2dbe84b52a7d | /dl/lecture01/furniture/download_furniture.py | bf49967dc44eb0f6705f470a5f97d465ab403096 | [] | no_license | devforfu/fastai_courses | b3116ec93cef2174e661c1d1884a33d8510f08a5 | 82ee6e299c805f10e224c6a3473ac75ffbfdada4 | refs/heads/master | 2020-04-02T07:04:23.766567 | 2018-12-21T16:49:04 | 2018-12-21T16:49:04 | 154,180,455 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,327 | py | import os
import json
import argparse
from io import BytesIO
from pathlib import Path
from dataclasses import dataclass, asdict
from functools import partial
import configparser
from multiprocessing import Pool, cpu_count
import requests
import numpy as np
import pandas as pd
from PIL import Image
from fastai.core imp... | [
"developer.z@outlook.com"
] | developer.z@outlook.com |
83614d139789b63f093ae4f54391f322b254c0ec | 6555c394e124bd9220a03dead6db570f61825474 | /blog/urls.py | f25127581696140f31182db2244b7832879ff474 | [] | no_license | ccrossla/python-django-blog | 5b6c271780b3825ea55b341eec87a5987ad6a78d | ae547ceffc95d653aa8b72bc253507ed6c006a29 | refs/heads/master | 2020-05-04T12:52:59.924842 | 2019-04-06T16:25:17 | 2019-04-06T16:25:17 | 179,139,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from django.urls import path
from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView
from . import views
urlpatterns = [
path('', PostListView.as_view(), name='blog/home'),
path('post/<int:pk>/', PostDetailView.as_view(), name='post-detail'),
path('post/<int:pk>/upda... | [
"ccrossla@trinity.edu"
] | ccrossla@trinity.edu |
f50d822ca3d5a95f8084081a47ecb41255882b1e | 75880ce9ad6885999e17efca78b1e94e613fcd29 | /ergasia8.py | de50c31e1daae70ae79973cadd3ce06c0180538e | [
"CC0-1.0"
] | permissive | nataliavorizanaki/Ergasies_Python_Prwtou_Eksamhnou | 839e519b9b0a7391779725e52ee391bc3d43fac6 | fa8346912c0b6eeee45f76eb1dbbc444e9cecc40 | refs/heads/main | 2023-03-13T03:22:20.518682 | 2021-03-02T17:08:52 | 2021-03-02T17:08:52 | 343,491,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | import requests
import json
import ast
import os
def main():
file_name = input("Please insert file name ")
file_name = file_name.strip()
if os.path.exists(file_name):
infile = open(file_name, 'r')
contents = infile.read()
else:
print("The file does not exist")
flag = True
... | [
"noreply@github.com"
] | nataliavorizanaki.noreply@github.com |
9a7ac17a45a71f1de7afea23e28e8af49840222c | 645aa520f2eff7e6001574e57c986aba129e4dd3 | /tests/test_visualize_pathways.py | 608a46c9346eadcb1ae18f44d046049486192b9e | [
"Apache-2.0"
] | permissive | google/transitfeed | 08c4ecfb6872b6c0dc409d9a35b32ef515e30253 | 104b5a5b339c62a94c1579d7209a41c7c0833e35 | refs/heads/master | 2023-09-05T03:08:17.640950 | 2022-05-23T16:23:53 | 2022-05-23T16:23:53 | 24,061,376 | 680 | 299 | Apache-2.0 | 2022-09-28T09:02:50 | 2014-09-15T15:16:32 | Python | UTF-8 | Python | false | false | 649 | py | import os.path
import unittest
import visualize_pathways
def get_file_contents(filename):
with open(filename, 'rb') as f:
return f.read()
class TestVisualizePathways(unittest.TestCase):
def test_gtfs_to_graphviz(self):
testdata_dir = os.path.join(os.path.dirname(__file__),
... | [
"noreply@github.com"
] | google.noreply@github.com |
76d741d22429a7d8c099ca771922fad8c0f5979e | 875673c9ecc38c086c77b1ecdf250e1bb595d09d | /RBC_github_API/extract_github.py | fdf825faaf1e4a8a72fbad2ab014048a84c546e3 | [] | no_license | RanajaySenapati/Datasets | 9566b17fd5406fae8f6331d2b52e07d76854b5e0 | fa38ebc763f1415983862abdd786494794e8ac07 | refs/heads/master | 2023-06-08T20:11:02.599122 | 2023-06-03T13:19:36 | 2023-06-03T13:19:36 | 166,786,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | from flask import Flask, request, jsonify
import json
import pandas as pd
import numpy as np
import requests
import urllib
app = Flask(__name__)
@app.route('/', methods = ['GET'])
def test():
while request:
return("Test successful!!!")
@app.route('/extract_git', method = ['POST'])
def route():
while ... | [
"noreply@github.com"
] | RanajaySenapati.noreply@github.com |
24e60d5e6ab4bd5e2bb4c8fbc73fed26abb5cbe7 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003815.py | 5e5bdd4608ad234dd7dc490f41749f64838b0581 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
bebae2ec181a990c00ab65e8cbacefadfb9f5f8c | afb95e647efe077122e1d774028ac7a39ffc2b88 | /mysite/decrees/urls.py | 3da1b9ea1678b08d6d160aac1f6a06d102345d49 | [] | no_license | hercules261188/unv-proj | c56b32ca41acd26528f5e1b256906315a7023cee | ed762189124ffe4e0016773461466b8506bdaf71 | refs/heads/master | 2021-12-14T23:44:00.360059 | 2017-06-24T11:49:13 | 2017-06-24T11:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from django.conf.urls import url, include
from django.views.generic import ListView, DetailView
from decrees.models import Decree
# pk — is for primary key
urlpatterns = [
url(r'^$', ListView.as_view(queryset=Decree.objects.all().order_by('-date')[:25], template_name='decrees/decrees.html')),
url(r'^(?P<pk>\d+... | [
"forjob159@gmail.com"
] | forjob159@gmail.com |
82b9d2923b901208ab629e15f0eb68ab639cb8f1 | 237cb5a6de7d58fd15826c87f44ccb96d2ba7959 | /Material2/rinex2.py | d42551d030fff9a5db40dfaeaa6f867c3573df26 | [] | no_license | walterscorpionblade/Research_JumpOccurance | d5152379715d75f915bcff15a333bcfb5d3d2054 | 691264195a1ca1c537d0456c50aea3e528c8f456 | refs/heads/master | 2020-08-14T05:25:17.085894 | 2019-10-14T17:37:45 | 2019-10-14T17:37:45 | 215,105,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,240 | py | import numpy
from numpy import array, nan, datetime64
from datetime import datetime
# RINEX 2.10 - 2.11
CONSTELLATION_IDS = {
'G': 'GPS',
'R': 'GLONASS',
'E': 'Galileo',
'S': 'SBAS',
}
# RINEX version 2 does not distinguish tracking modes (added in RINEX V3)
# As such, for GPS, simple signal names L1, ... | [
"liuzijun96@rl1-142-37-dhcp.int.colorado.edu"
] | liuzijun96@rl1-142-37-dhcp.int.colorado.edu |
bc7058a78e6e9bd0a48ef99d6ea623b099bcb7de | 81e88bb831b33cdc84dc2aeeb1b97f709f0c0802 | /main.py | 6920b5473b2e8b873b208bf71db52281d8d0cd83 | [
"MIT"
] | permissive | aroch/protobuf-dataframe | 2fed247c0200ab5a007c0e645fda532aebf96713 | bdd6a13a9ca6f77072c55a05aab79baaef4b712f | refs/heads/master | 2022-11-14T07:18:42.752410 | 2022-11-13T08:30:35 | 2022-11-13T08:30:35 | 203,235,530 | 11 | 3 | MIT | 2022-11-13T08:30:37 | 2019-08-19T19:20:53 | Python | UTF-8 | Python | false | false | 1,315 | py | from pyspark.sql import SparkSession
from pyspark.sql.functions import udf, col
from protodf import schema_for, message_to_row
def specific_message_bytes_to_row(pb_bytes):
# import your protobuf here
msg = message_type.FromString(pb_bytes)
row = message_to_row(message_type().DESCRIPTOR, msg)
return r... | [
"rafi.aroch@gmail.com"
] | rafi.aroch@gmail.com |
c8f61f66a53e7880635f138860299b85e981122f | 609c2898934910e568c6c9858f1dfc9b697a95be | /opentaf/templates/opentaf_ini.py | e16c02ea38b2de9290f5cc08c4e4a1ca6606a7f4 | [] | no_license | cijohnson/OpenTaf | c0c30fe7d2418a2b9fab4ddf37e980e94de7c80e | 43a36649189b21ef79026ec2b4707529b4aa7202 | refs/heads/master | 2021-01-10T13:42:53.332744 | 2016-03-06T07:45:09 | 2016-03-06T07:45:09 | 52,994,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import string
template = string.Template("""
[DEFAULT]
root=$__opentaf_root__
testbed=$__opentaf_testbed__
[PUBLISH]
host=$__test_result_server_ip__
port=$__test_result_server_port__
[SCHEDULER]
host=$__testbed_scheduler_ip__
port=$__testbed_scheduler__port__
""")
| [
"ijohnson@juniper.net"
] | ijohnson@juniper.net |
365ea7847009dce0a5f2ade2dbb2630f78ad335e | fcb37f2d9069e7dcb95e2c264993993aaef42528 | /room_assistance/indico_room_assistance/notifications.py | 0982ad42e75930c6509fa0ceb7bbf2b03db1eb92 | [
"MIT"
] | permissive | mic4ael/indico-plugins-cern | 56a27f5535c60765a2019a84daadd205adaeec74 | 814fdbb064d556763c90052879f9a909031e35c1 | refs/heads/master | 2021-05-07T15:07:55.673278 | 2019-06-28T07:46:19 | 2019-06-28T07:46:19 | 109,974,520 | 0 | 0 | null | 2017-11-08T12:42:27 | 2017-11-08T12:42:27 | null | UTF-8 | Python | false | false | 1,871 | py | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2019 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from __future__ import unicode_literals
import dateutil.parser
fr... | [
"michal.kolodziejski@cern.ch"
] | michal.kolodziejski@cern.ch |
4a91a67b682f1783ab47dec7b9f606dc53773550 | 0d1fa87b14e5b73f7acad0275845cf290a72b36a | /rlcycle/common/abstract/loss.py | d0aa9136116f8927434fbf189052732269e691e5 | [
"MIT"
] | permissive | RL-code-lib/RLcycle | 101ec129ea8b2b1b8e0f56e3715c65d5bebee35f | 5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569 | refs/heads/master | 2023-08-25T04:53:13.730944 | 2021-09-23T19:46:51 | 2021-09-23T19:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from abc import ABC, abstractmethod
from typing import Tuple
import numpy as np
from omegaconf import DictConfig
import torch
import torch.nn as nn
class Loss(ABC):
"""Abstract class for callable loss functions
Attributes:
hyper_params (DictConfig): algorithm hyperparameters
use_cuda (bool):... | [
"chrisyoon1729@gmail.com"
] | chrisyoon1729@gmail.com |
b6ad629804c56f1e1f28634b0658838b34e35074 | 71f96c4cd3f11ccd38c29085dcc4b7f4125ff572 | /data_structures_and_algorithms/Data_Structures/linked_list/linked_list.py | 8b54469bc2db2273aeedee05bfd423a4b1188ff3 | [] | no_license | MohmmadNada/data-structures-and-algorithms | f0c3dab0a9ccac17c2654bbc251c80657fe4967e | 0ce28a33313b427fd1100cdeaaafe17ffabcefd6 | refs/heads/main | 2023-06-20T17:23:53.489219 | 2021-08-07T14:30:33 | 2021-08-07T14:30:33 | 350,750,841 | 1 | 0 | null | 2021-04-09T13:18:58 | 2021-03-23T14:51:44 | JavaScript | UTF-8 | Python | false | false | 7,638 | py | '''
CC5:
1. Create a Node class that has properties for the value stored in the Node, and a pointer to the next Node.
2. Within your LinkedList class, include a head property. Upon instantiation, an empty Linked List should be created.
* Define a method called insert which takes any value as an argument and adds a ... | [
"mohammad.nada_97@yahoo.com"
] | mohammad.nada_97@yahoo.com |
425ae4bad5ec2bf6ae6e55096f9b329ab59d9a73 | 022b22d343e2c3d89a865c2b5d684e82c692771e | /frontend_docker/project/main/views.py | 753ec13fe01e0c17192f09af50c9bdade4d1cc2f | [
"MIT"
] | permissive | jessequinn/hbsis | f4050f5f0850001bc3284ce2c94266ccb00a4c70 | 149b8c41c75732dcbcc23e667831fdb42cab786e | refs/heads/master | 2022-12-18T01:13:27.354613 | 2019-02-08T10:27:35 | 2019-02-08T10:27:35 | 169,249,120 | 0 | 0 | MIT | 2022-12-08T01:35:31 | 2019-02-05T13:54:21 | JavaScript | UTF-8 | Python | false | false | 5,545 | py | import datetime
import json
import pytz
import urllib.request
from flask import render_template, request, flash, Blueprint, redirect, url_for
from flask_login import login_required, current_user
from project import app, db
from project.models import WeatherRegistration
from .forms import WeatherRegistrationForm
main_b... | [
"me@jessequinn.info"
] | me@jessequinn.info |
7360c2ab796b4c4587e67ecf831de16dd660d59d | e92c1b2262c9e868b714166f191077e69464c93e | /access.py | e546d3c594edcdc22a5456c1cb5757a202358124 | [] | no_license | manpages/py-ken | b5588a09bee35096f5a7d1ba700928fb68321621 | 248e73429ee51cf5b29f3146e247e125657f5c3d | refs/heads/master | 2016-09-11T03:29:45.678924 | 2015-02-08T15:18:42 | 2015-02-08T15:18:42 | 28,929,896 | 0 | 1 | null | 2015-01-18T12:19:46 | 2015-01-07T19:24:18 | Python | UTF-8 | Python | false | false | 104 | py | def getCageId(field, x, y):
for (id,c) in field['cage']:
if (x, y) in c['cells']:
return id
| [
"amarr.industrial@gmail.com"
] | amarr.industrial@gmail.com |
6509cf0f6ae61fc6658747d5fd7bef580f311729 | 33b401c13196e622b6a492f04e285972a23256df | /main.py | f46f8c2c758b554c925b908525c0e45749eb5212 | [] | no_license | bigavo/website_status_checker | 104c9501e95c52f0d5e625c8c9cdd783741b9276 | 5866cb0a95a66a253c43504507037b14d6faf326 | refs/heads/master | 2023-04-23T22:00:46.249597 | 2021-05-04T09:38:05 | 2021-05-04T09:38:05 | 341,370,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import requests
import sys
import time
from typing import Final
#Constants
URL_FILE: Final = 'websiteList.txt'
LOG_FILE: Final = 'log_file.txt'
LOG_FILE: Final = 'log_file.txt'
def update_page_status(new_status, url, request_time):
f = open(LOG_FILE, "r+")
for line in f:
split_line = line.split("---")... | [
"kieutrinh.ibc@gmail.com"
] | kieutrinh.ibc@gmail.com |
bc27b8fa61132158c9004b0c3d96302cee57c123 | c9fde4576216a22e8d5711bbe97adda1aafa2f08 | /model-optimizer/mo/front/caffe/extractor.py | 8f6115655b5973294584661bca6889d30733e4aa | [
"Apache-2.0"
] | permissive | dliang0406/dldt | c703d6a837de3f996528fc8a9543f9530b23342c | d9b10abcebafe8b10ba81e09e433de7a366c072c | refs/heads/2018 | 2020-04-03T08:24:47.723353 | 2018-10-29T07:58:05 | 2018-10-29T07:58:05 | 155,132,108 | 3 | 1 | Apache-2.0 | 2019-10-10T08:39:46 | 2018-10-29T01:03:54 | C++ | UTF-8 | Python | false | false | 5,994 | py | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
a0364d6e371684383b61216b8d9e5677beb97814 | b394bb6bd3e8848688b525f55e82962f152c1bb3 | /demos/upload/linear_systems/Complexity of Mat-Mat multiplication and LU.py | f4e79703fc521e02f24bfee84b294558fbd90ad9 | [] | no_license | lukeolson/cs450-f20-demos | 02c2431d7696348cf9ca1ab67bdd5c44a97ac38b | 040e7dfa15c68f7f426cf69655cb600926f9f626 | refs/heads/master | 2023-01-22T19:12:33.394521 | 2020-12-03T19:48:18 | 2020-12-03T19:48:18 | 288,542,898 | 5 | 10 | null | 2020-10-05T19:39:07 | 2020-08-18T19:13:52 | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
# coding: utf-8
# # Relative cost of matrix operations
# In[1]:
import numpy as np
import scipy.linalg as spla
import scipy as sp
import matplotlib.pyplot as pt
from time import time
np.alterdot()
# In[2]:
n_values = (10**np.linspace(1, 3.25, 15)).astype(np.int32)
n_values
# In[3]:
... | [
"luke.olson@gmail.com"
] | luke.olson@gmail.com |
e3c58ee32730862e029e9a35c0e4bfde4659c4af | b7e3b6133f58cb75f82652e241ad048edbcff969 | /imitation_learning/generic_training.py | 4bb862bf2996f9eff8c519b885636bf3b434e52c | [] | no_license | e-lab/GameMatch | faf9a3ab54255ac35dcfc1612c1c30ab9186f923 | fc5f751509c904f900e39c0340efd10dd5e0df02 | refs/heads/master | 2021-04-30T22:38:12.630607 | 2018-11-18T22:08:39 | 2018-11-18T22:08:39 | 70,605,678 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,118 | py | '''
Author: Ruihang Du
Description:
Functions for training and evaluating any neural network models
Inspired by the PyTorch ImageNet example https://github.com/pytorch/examples/blob/master/imagenet/main.py
'''
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim
from torch.nn.utils... | [
"du113@purdue.edu"
] | du113@purdue.edu |
90afc3a58e3e9c99e3416d2d843ca5e084f3e87a | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /medium/Rotate List.py | 8ad51c14cc944ec9af60a8ec92c7c8d4a1311263 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | # -*- coding: utf-8 -*-
# @Time : 2019/10/29 0029 10:26
# @Author : 没有蜡笔的小新
# @E-mail : sqw123az@sina.com
# @FileName: Rotate List.py
# @Software: PyCharm
# @Blog :https://blog.csdn.net/Asunqingwen
# @GitHub :https://github.com/Asunqingwen
"""
Given a linked list, rotate the list to the right by k places, wher... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
48cf0d99548b0c502a76b53d898f7255565a280b | c46a3177866d72d6230016c23db797d207f15ada | /scripts/py/all_mafft.py | 5b4eff56e181fc08c79f495ed3a4835bd96099b8 | [] | no_license | nknyazeva/course_work_5 | 4e560eb649a6506d35b1541527e29e0a4b9d2a7f | fb633557afc8685ff8c0a924a3f56b48a5134685 | refs/heads/master | 2020-07-25T11:33:27.167210 | 2019-11-06T16:52:25 | 2019-11-06T16:52:25 | 208,275,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | in_dir = '/home/nknyazeva/courseWork5/data/result/pn_ps/'
out_dir = '/home/nknyazeva/courseWork5/scripts/pn_ps_mafft/'
def getPutFileName(name):
name = name[:-6]
name = name + '_align_mafft.afa'
return name
for i in range(75):
i = str(i)
if len(i) < 2:
i = '0' + i
name_file_in = in_dir... | [
"knjasewa-nastja@yandex.ru"
] | knjasewa-nastja@yandex.ru |
f3815f70c32f2896f4449435b1bacfddcf8375c9 | 39e647e9ec8524a1cee90ef15f37a3d3bbf8ac43 | /poet/trunk/pythonLibs/Django-1.3/tests/modeltests/proxy_models/models.py | 30f14bc931b97f11cff5cbcf7a99bf9d15829bc7 | [
"BSD-3-Clause"
] | permissive | AgileAdaptiveTools/POETTools | 85158f043e73b430c1d19a172b75e028a15c2018 | 60244865dd850a3e7346f9c6c3daf74ea1b02448 | refs/heads/master | 2021-01-18T14:46:08.025574 | 2013-01-28T19:18:11 | 2013-01-28T19:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,229 | py | """
By specifying the 'proxy' Meta attribute, model subclasses can specify that
they will take data directly from the table of their base class table rather
than using a new table of their own. This allows them to act as simple proxies,
providing a modified interface to the data from the base class.
"""
from dj... | [
"ssaltzman@mitre.org"
] | ssaltzman@mitre.org |
1d97335e9b892423815671859110140fd3a0e9e0 | 015806e237bfcd85a3e4eb48bac4461413f26a62 | /website/views.py | 5c0c67478b6c12e19f3532f3baa3ac9a0d9d870d | [] | no_license | alexsteeve/escoladasnacoes | 7fc63ea4da8ab6927184bc62ce25f78534227a7b | c6c9011c146e245a9f3693361a93cd81db822b7a | refs/heads/master | 2020-03-28T04:32:37.159757 | 2018-09-06T19:21:44 | 2018-09-06T19:21:44 | 147,721,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,643 | py | from django.urls import reverse_lazy
from django.views.generic import TemplateView, ListView, UpdateView, CreateView, DeleteView, DetailView
from helloworld.models import Estudante, Curso, Materia, CursoPeriodo, CursoPeriodoEstudante
from website.forms import InsereEstudanteForm
from datetime import datetime
# PÁGINA... | [
"alexsteeve@gmail.com"
] | alexsteeve@gmail.com |
8685c85161574c016cb792309fb15c9c60c7fc1a | b5e75d3b2536b46fca649d13fbd185b926e285fc | /15.UserDefinedFunction.py | cdbcb8d40204c6ef2e2dbe727d61870733870cfd | [] | no_license | sohag2018/Python_G5_6 | 0333c640a3744cd4f0b7461f536de385d94e6d14 | 1db3eff22e5ad4dc54523dbe38d366cf85c80288 | refs/heads/master | 2022-09-08T22:44:51.672634 | 2020-05-23T22:59:06 | 2020-05-23T22:59:06 | 260,783,717 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #Why do we use function-->to reuse te code
#Syntax:--->def name(arg1,arg2,...): -->argument as per needed
#function for division
def div(x,y):#this function will returns the result for div of two given numbers
print(x/y)
#function for modulas
def div(x,y):#this function will returns the result for modulas of two ... | [
"nafasatzayan@gmail.com"
] | nafasatzayan@gmail.com |
fd8aa3ea52ca26a7bff1f7c7d6f9d22f8f4d59b7 | c038d06c31de0919d70c04f517f7490146ff80df | /train_nn.py | b8a8c4cc52d03dcfcdb4e339de6e584971a4eca1 | [] | no_license | KWAN-YWAN/gtd-analytics | 235df79f9b95b1734928cd2a9b4d54c5bf3f88e8 | 10fd7fa2965bb0efcc2396d86d3998afbc0fe7c8 | refs/heads/master | 2020-03-28T18:13:39.976015 | 2018-07-11T21:56:29 | 2018-07-11T21:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,579 | py | #!/usr/bin/env python
import numpy as np
import pandas as pd
# Plotter library
import seaborn as sns
import matplotlib.pyplot as plt
# Own libraries
import data_preparation as prep
from nn import Nn
from sklearn import preprocessing
def filter_data(df):
# Filter for only kidnapping data (1st, 2nd or 3rd attac... | [
"vinh-ngu@hotmail.com"
] | vinh-ngu@hotmail.com |
a82fc06568fcb535206a9cbd973e444dcb6fd998 | a97b2f48fc6cbfe3eaa05628b7d5fde0219bd4dd | /saba67.py | b05be9c26301266a39a11edec761e0ffb0b547fc | [] | no_license | sabapathy1234/P.saba | 715cdd4f88432f5e45f79d0d4e43d24213a3e5c6 | 25f55bda92938c7d418801715f44f89473733874 | refs/heads/master | 2020-06-11T17:27:28.997123 | 2019-08-14T10:22:12 | 2019-08-14T10:22:12 | 194,036,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | hj23=int(input())
gk=0
for u in range(1,hj23+1):
gk=gk+u
print(gk)
| [
"noreply@github.com"
] | sabapathy1234.noreply@github.com |
96a31bd87d182e38af66c9502dda52cbddd18184 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessagePageQueryByTopicRequest.py | 18afe3920e90c8d8b1f8495a693430691275ac77 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,300 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
587b7372864dc0539ed6c1cfc0f20d8d6a086cdd | 575c65f490117c12d033a235fa68e3cb4438c602 | /main.py | 0d75c45e71b74f025352fd2536ded28618121711 | [] | no_license | Crucizer/Audio-Player | a115bed97fc37660545f1b51792bfa6e47c59159 | d2617af2002ded1f7b8b88b2aacb5ccf5ae94802 | refs/heads/master | 2022-11-15T00:45:29.742484 | 2020-07-11T14:47:11 | 2020-07-11T14:47:11 | 274,173,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,467 | py | from PyQt5 import QtWidgets, QtGui
# , QLineEdit, QVBoxLayout, QHBoxLayout
from PyQt5.QtWidgets import QApplication, QMainWindow, QSlider
from PyQt5.QtGui import QColor # , QMovie
from PyQt5.QtCore import Qt
import sys
import pygame as pg
from mutagen.mp3 import MP3
import os
import threading
pg.init()
... | [
"noreply@github.com"
] | Crucizer.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.