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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
068afbf3135cdf15fa4be3d341293389803fa7b8 | c302d680691695ee1de91ff4c32d554b66ad39ee | /PyCommerce/migrations/0020_alter_orders_masterid.py | a81a34615311ab739cd0e494dacc1d6e361eea93 | [] | no_license | abdullah-ezzat/pycommerce | 11e6aefa026ac5c154de2ac667930103b66bcd6d | 1acbd4a94c89c1001751c031992dbca6f921e83f | refs/heads/master | 2023-08-16T12:33:04.370271 | 2023-08-14T12:02:30 | 2023-08-14T12:02:30 | 364,235,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.2.5 on 2021-08-15 11:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('PyCommerce', '0019_auto_20210803_1643'),
]
operations = [
migrations.AlterField(
model_name='or... | [
"abdullahmohamedezzat21@gmail.com"
] | abdullahmohamedezzat21@gmail.com |
3e799491be2198eeecb6afab23a3bc4df7ac236a | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg_fr_2018/ZZTo4L_ext2_cfg.py | ada0a293740e2508a83fed849b413d5fd23bc72b | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'ZZTo4L_ext2_2018'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
con... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
516a9d17099ff146518573d7cc216f94fe6fd594 | 7fa02f8480152e2656b083ef99a17741533f254c | /pyscf/ao2mo/incore.py | c8d03c4811e9e0d1db54621c40df8797c0eecceb | [
"Apache-2.0"
] | permissive | kcbhamu/pyscf | b59c66974f36578c35150afd1967d23b78dad35a | adbdcbdd426356485d9a249d7461f668d19d6f9e | refs/heads/master | 2022-10-14T07:38:56.826857 | 2020-06-12T17:13:45 | 2020-06-12T17:13:45 | 272,482,387 | 1 | 0 | Apache-2.0 | 2020-06-15T15:57:28 | 2020-06-15T15:57:27 | null | UTF-8 | Python | false | false | 9,496 | py | #!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
d802ea8b0a10d1185bc1188fd8c0b5c146c6c0dc | b90f8bff6343bf07a1ef0fa9b7b417abe494e656 | /wps/wps_invitation_tmp.py | 6335c44ce8b21c9800d198df97b7d92561d39685 | [] | no_license | worklin/my_checkin_actions | 4b72fee2a53ca79e54dfef68e71d5c525ffa23d9 | 432586ee3f47c49435b3a69e8f5a11026a282084 | refs/heads/main | 2023-05-07T15:03:42.056751 | 2021-06-03T08:53:37 | 2021-06-03T08:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,513 | py | # !/usr/bin/env python
# coding=utf-8
import requests
import time
import json
import sys
sys.path.append("my_checkin_actions/wps/")
import pytz
import datetime
import re
import os
from sendNotify import *
from io import StringIO
# Python版本 3.6, 该脚本仅供分享交流和学习, 不允许用于任何非法途径, 否则后果自负, 作者对此不承担任何责任
# 20210122更新: 添加WPS小程序会员群集结... | [
"whiteineyes@gmail.com"
] | whiteineyes@gmail.com |
a6562a85ab43a4e57d7dde5fb099722bb24ccea4 | dbdf8e7ab32ecd8b378db1b77e1130d0594e5c1c | /MLAssignment 3.py | 6b31a094bdf72608578af61caf5fedf517017d5e | [] | no_license | alyhassan15/MachineLearning-assignments | 4bcd7c2147450d3c3d89daaed96b7ffd03581ae4 | 9c9d3571eed1d91cb2f7cd25bbbe13d766a06004 | refs/heads/master | 2021-01-01T11:34:52.176124 | 2020-06-30T18:38:06 | 2020-06-30T18:38:06 | 239,261,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import os
import numpy as np
from matplotlib import pyplot
import pandas as pd
completeData = pd.read_csv(r"C:\Users\ADMIN\Desktop\house_data_complete.csv").dropna()
for i in range(3):
training, validation, testing = np.split(completeData.sample(frac=1), [int(.6*len(completeData)),int(.8*len(completeData))])
... | [
"noreply@github.com"
] | alyhassan15.noreply@github.com |
934b486ea8ef3e9ec1c9e8db0c0a68f88c4453d3 | 6435040952cc0074f4487bbfba65a57d77b623ec | /107/Euler 107.py | 714c38e9849cc8c65d0ce12f91abaabc3ce37d58 | [] | no_license | Eddolan/PrEuler | 6d636c334488149f23f0e74dcc7c8312144dafa3 | d67c5de83f67ed15ee1ed671efa35136652790e9 | refs/heads/master | 2021-01-22T02:08:32.612177 | 2015-06-04T17:48:36 | 2015-06-04T19:56:58 | 28,738,159 | 29 | 5 | null | 2015-03-28T21:11:42 | 2015-01-03T07:42:26 | Python | UTF-8 | Python | false | false | 2,633 | py | __author__ = 'Eddie'
class Node():
def __init__(self):
self.next = []
def add_node(self , next_node):
self.next.append( next_node )
def get_next(self):
if len(self.next)==0:
pass
else:
return_list=[]
for node in self.next:
... | [
"dolan.charles06@gmail.com"
] | dolan.charles06@gmail.com |
d148223f2ee630a03c7b7bf1546524a015584590 | 4dfaee0de6c7057d6eb79494e3d6ee2e7e07eb36 | /popularity_predictor.py | c33302ae9461ec20611923e183c00ed9f44ab073 | [] | no_license | RyanSequeira/PoliticalTweetAnalysis | 3465d9d7981b198f77238c1554ff40b2d2c383ca | fce295dbc71e9797729b4f2cbe48b8dea33552e2 | refs/heads/main | 2023-02-03T10:33:07.898500 | 2020-12-22T04:18:38 | 2020-12-22T04:18:38 | 320,967,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | import json
import sys
import os
import numpy as np
import spacy
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from textblob import TextBlob
import matplotlib.pyplot as plt
import seaborn as sns
import sklearn
# Will predict popularity based on features extracted from ~100 tweets per day for 7 days for a ... | [
"ryanjamessequeira@gmail.com"
] | ryanjamessequeira@gmail.com |
5f05a3951089f1baf3863c3630cf00d923676bdb | 37f1563cdacf4b37b5b927b892538218aae79c77 | /hard/array/firstMissingPositive.py | b4c1f73b2ee27e1d1e11c3720b64cf11a4bd523c | [] | no_license | unsortedtosorted/elgoog | 9dee49a20f981305910a8924d86e8f2a16fe14c2 | 5be9fab24c0c1fd9d5dc7a7bdaca105f1ca873ee | refs/heads/master | 2020-04-15T00:51:12.114249 | 2019-05-19T04:37:24 | 2019-05-19T04:37:24 | 164,254,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | """
41. First Missing Positive
Runtime : O(N)
"""
class Solution(object):
def firstMissingPositive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 1
for i, num in enumerate(nums):
whil... | [
"noreply@github.com"
] | unsortedtosorted.noreply@github.com |
77676de3af9a370920cebdf2b3bfa489ac932cb5 | c01f5d84be70abfb06fb7bb7b3a6d2b5b7f8fcbe | /0x04-python-more_data_structures/12-roman_to_int.py | a616614df3dec886e91477eec64aa3c4ba0e825b | [] | no_license | thenicopixie/holbertonschool-higher_level_programming | 2adf35ae90c3b159018ebc78cc8c4f2c1e00dbe3 | 7a75860b151e8dd0dcf987d27c13522980cf5ccb | refs/heads/master | 2021-07-11T21:01:55.564508 | 2019-02-22T09:05:13 | 2019-02-22T09:05:13 | 148,196,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python3
def roman_to_int(roman_string):
if roman_string is None:
return 0
if type(roman_string) is not str:
return 0
sum = 0
num_dict = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,
'D': 500,
'M': 1000}
new_list = []
... | [
"391@holbertonschool.com"
] | 391@holbertonschool.com |
5b9924e92ecec7477907edd90fd68d6e124ba01d | 6889d2dd2cb84e70c3018c268ea2ad68fe2fd068 | /lessons/PlottinginPythonwithMatplotlib/ricardo_harripaul_hwk2-1.py | f031fa7aab2c54094ddbbe27222aed31abb225f9 | [
"Apache-2.0"
] | permissive | ricardoharripaul/studyGroup | ec17b90ef7380038528b7eb311cf62b81cb97ba8 | 1e30604d0a179d26f7e4f54127851225dac2e933 | refs/heads/gh-pages | 2021-01-24T14:46:47.520771 | 2015-08-05T19:19:51 | 2015-08-05T19:19:51 | 37,466,098 | 0 | 0 | null | 2015-06-15T13:15:50 | 2015-06-15T13:15:50 | JavaScript | UTF-8 | Python | false | false | 577 | py | #Load in necessary packages
from scipy.stats import norm
from pylab import hist
#construct normal distribution
a=norm.rvs(size=1000000,loc=-2, scale=1.5)
h=hist(a,bins=100,normed=True)
#construct uniform distribution
from scipy.stats import uniform
b=uniform.rvs(size=1000000,loc=-1,scale=2)
i=hist(b,bins=100,normed=... | [
"ricardo.harripaul@gmail.com"
] | ricardo.harripaul@gmail.com |
696b041876f15bfd05dfef0522f05dc945f84679 | 6ca70d917d335716684f62403f95194d6aaf0320 | /rst2pdf/pygments_code_block_directive.py | 8ce2b60ac7037a5bda47630d2928c5afa09ff30d | [
"MIT"
] | permissive | ankostis/rst2pdf | fc6c68317b936650cd83237b6e5f84c5ab39986d | 9a40f91681423846282f9d1265734637ecd63b60 | refs/heads/master | 2020-12-25T15:51:48.120421 | 2015-02-11T18:07:34 | 2015-02-11T18:07:34 | 30,658,458 | 0 | 0 | null | 2015-02-11T16:50:53 | 2015-02-11T16:50:52 | null | UTF-8 | Python | false | false | 14,945 | py | # -*- coding: utf-8 -*-
# $URL$
# $Date$
# $Revision$
# :Author: a Pygments author|contributor; Felix Wiemann; Guenter Milde
# :Date: $Date$
# :Copyright: This module has been placed in the public domain.
#
# This is a merge of `Using Pygments in ReST documents`_ from the pygments_
# documentation, and a `proof of con... | [
"aquavitae69@gmail.com"
] | aquavitae69@gmail.com |
a9b4cc1b2bec97f700fc657181c2a61222202855 | 68dbc76a69e1994c38013a637f96ba8df448c255 | /competitions/Week of Code 37 (silver medal)/6_ZFunction.py | c0910f8d8dcea5b9bc60c2e7d0e08866d25510c2 | [] | no_license | mgs95/hackerrank | 61da322a93fa67557d9a2e03fab8d7c26a6fcb63 | 1a22365e21f746e2e5894728d21646edc4ada573 | refs/heads/master | 2020-05-15T04:55:32.132082 | 2019-04-21T14:04:00 | 2019-04-21T14:04:00 | 182,096,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | """
https://www.hackerrank.com/contests/w37/challenges/z-function/problem
Score: 43.18/100
Submitted: 2018
Difficulty: Expert
"""
from itertools import product
ALPHABET = 'abcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()-_=+'
def z_algo(s):
S = len(s)
Z = [0] * S
ptr_right = 0
ptr_left = 0
for ... | [
"mariano.gonzalezsalazar@telefonica.com"
] | mariano.gonzalezsalazar@telefonica.com |
daa77d92f252a83377b8c4bdb7bb7f46819f90f2 | fcbb01764eb727e47b6ef547999bce13edba1b02 | /lib/parser.py | cc276fca9a8c610f6cdfbef56086c03a1f9eb8f8 | [] | no_license | ALX99/automata-utils | eebde5c8d05efda6c691c22532df618c4670252e | 839dc94433be627b5f14ffd5d3d49100e598ed5a | refs/heads/main | 2023-03-18T16:15:55.157662 | 2021-03-07T22:41:24 | 2021-03-07T22:41:24 | 336,421,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | """This module contains logic to parsing stuff"""
import xml.etree.ElementTree as ET
from typing import Dict, List, Set, Tuple
from lib.cfg import CFG, Productions
from lib.dfa import DFA
from lib.nfa import NFA
from lib.state import State
from lib.transition import Transition
def parse_states(root: ET.Element) -> S... | [
"46844683+ALX99@users.noreply.github.com"
] | 46844683+ALX99@users.noreply.github.com |
8c492766c5f8adb62877bbbcc99d29864d40fc45 | 5a29fbaa46a71eff0ac677b42e393b449e313085 | /upsea/Ea_11_Dma_pg_01/EA/Analyzer.py | 2ce51633ca7eb8fbc4a8352f2e2861911de253d8 | [
"MIT"
] | permissive | UpSea/PyAlgoTradeMid | 548d181d5d18448f75f205214e9d19b7356a5730 | c8edcbc089d92dbfbb8bb25af92a039146f6c6da | refs/heads/master | 2021-01-20T19:57:21.406976 | 2016-07-25T17:23:00 | 2016-07-25T17:23:00 | 62,429,518 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | import numpy as np
import matplotlib.dates as mpd
import sys,os
xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,os.pardir,os.pardir,'thirdParty','pyqtgraph-0.9.10'))
sys.path.append(xpower)
import pyqtgraph as pg
xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.par... | [
"upsea@upsea.cn"
] | upsea@upsea.cn |
cbe81a3493a79fc65b094d0b27ab6eec20764273 | 638929e3a47b9ea8c0cc98336edca104c6af5e3a | /lib_catalog/catalog/migrations/0001_initial.py | 172abe90b7e0935c09374bc69fe83df2b3708d7c | [] | no_license | burbaljaka/lib_catalog | 190e944c798c8d80685c5c9a65b663fa116f5404 | 15e971b6d17dfc8f01959ba538b304969c0f51a9 | refs/heads/master | 2023-06-01T06:39:47.841908 | 2022-05-17T19:52:46 | 2022-05-17T19:52:46 | 217,097,504 | 0 | 1 | null | 2023-05-07T02:35:21 | 2019-10-23T15:57:50 | JavaScript | UTF-8 | Python | false | false | 3,038 | py | # Generated by Django 3.0.5 on 2020-05-02 10:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
... | [
"kapitonov.timur@gmail.com"
] | kapitonov.timur@gmail.com |
e379d334a61208defa4319eb5fab97d0ba4c9a1f | f80fd64f435befe583a0cbb50924a4eab0caa32f | /Agent/double_dqn.py | 87e1b1c98701c774e43de9811f84a7d703183412 | [] | no_license | jalalmzh/autotrading | 5d37a48813e156644b0c1262f28e1b564ddcf742 | 307e9169f40e0676a6211575344d1852a77d840b | refs/heads/master | 2023-03-02T08:52:15.678031 | 2021-02-08T00:26:37 | 2021-02-08T00:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | py |
import pandas as pd
import os
import random
import numpy as np
import time
from keras.layers import Dense, Lambda, Layer, Input, Flatten
from keras.models import Sequential, Model
from keras.optimizers import Adam
from keras.models import load_model
from keras.callbacks import ModelCheckpoint
from keras import backend... | [
"ndhungnguyen.go@gmail.com"
] | ndhungnguyen.go@gmail.com |
c4e9905bd883b4712ef399d33cc6ee6c5c84f343 | c04d4692492e898573c69a9a90ac071b291a3840 | /keys.py | 187fa2f831ecf6c0cd12eab3f6fe35060a85bd78 | [] | no_license | namhyun-gu/SmuLibraryAppEngine | 1c698e21561a3a3df2d2d12c360aea7375a5b33a | 36b2d8e6057b26fb96a543a4c4ff529da9d8a5e4 | refs/heads/master | 2021-01-18T02:28:52.302652 | 2016-04-04T07:09:35 | 2016-04-04T07:09:35 | 37,923,529 | 0 | 0 | null | 2020-06-06T14:54:32 | 2015-06-23T14:21:45 | Python | UTF-8 | Python | false | false | 120 | py | #!/usr/bin/env python
__author__ = 'namhyun'
# memcache key
ROOM_LIST_KEY = 'roomlist_cache'
ROOM_KEY = 'room_%d_cache' | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
f0d4aac1052a1042d81159bce6addf3d06cedd8d | 0bd6eb640918882f4d8064092279f8496769a02e | /toolshare/management/commands/ts_create_db.py | f1ab05ae6d28ea1f1130af7d0d0fb020e889f4d4 | [] | no_license | mitayshh/toolshare | e6744a5fa018428ca7996d20437da0764ecadd4a | a68ba260eb40e3ccdd9a41cb22c818cfa0a3d75b | refs/heads/master | 2021-01-10T06:42:38.342727 | 2016-01-27T02:03:23 | 2016-01-27T02:03:23 | 50,471,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import os
from django.core import management
from django.core.management.base import BaseCommand, CommandError
from toolshare.db_helper import fill_database, set_admin_pw
class Command(BaseCommand):
args = '<none>'
help = 'Creates/Fills the database with demo data (OVERWRITES db.sqlite3)'
def handle(self... | [
"mitayshh.dhaggai@gmail.com"
] | mitayshh.dhaggai@gmail.com |
967b17de316bbcd89430113c9d9b25c297b8ce61 | 86c1e977196c83b83acf399bc256cd791c775967 | /accounts/migrations/0006_remove_user_url_name.py | b186b1880e27bb140340eff8d1d52a59fa72ac3d | [] | no_license | Swifilaboroka/blog-app | 06e212d2ac89bc902ec4447471c7de1bd488b495 | 0114c12148850ab273c2287beb7982f6b903cfa5 | refs/heads/master | 2023-07-06T02:01:51.330167 | 2021-01-02T16:28:16 | 2021-01-02T16:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.0.4 on 2020-09-27 21:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20200908_2210'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='url_name',
... | [
"ayowaleakintayo@gmail.com"
] | ayowaleakintayo@gmail.com |
f74eb99bfc1bda4bca7cabb334cbd30400f2bc04 | 73e53e16fc1557447ac8b6d280d916adaa36c846 | /server | e15c737999e7404d2c732e48fad8b6e4ab1df6f6 | [] | no_license | apkallum/monadical.com | abc92cdd6ce49c7d6024df710ec67de102c787ed | 7b8fa76072ad0eeae2cb515591b345ce29a64dd6 | refs/heads/master | 2020-08-24T18:53:32.470134 | 2019-10-22T03:42:32 | 2019-10-22T03:42:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | #!/usr/bin/env python3
import sys
import json
from datetime import datetime
from flask import Flask, render_template, redirect
### Config
app = Flask(__name__)
CONFIG_FILE = 'content.json'
HOST = 'http://127.0.0.1:5000'
def load_config(fname=CONFIG_FILE):
"""read the content.json file and load it as a dictiona... | [
"git@nicksweeting.com"
] | git@nicksweeting.com | |
f73719cd734b97413d189304376ecaf0ffed91f9 | a87472236f88bddb597eef9aa0052a1a2b3e0e2d | /cnn1.py | ac2234a226ecbd3d848ce589e6f66aacebe8ffd4 | [] | no_license | aitianma/cnn | d0e2d88fec59e2378a3cb052cc8335163bf336cf | f034eb88621a2be0c652165b69ff51cd1f9f0f94 | refs/heads/master | 2020-04-01T22:48:30.437676 | 2018-10-19T04:49:54 | 2018-10-19T04:49:54 | 153,727,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import numpy as np
import tensorflow as tf
import tensorflow.examples.tutorials.mnist.input_data as input_data
mnist=input_data.read_data_sets("data/",one_hot=True)
w_cov=np.random.randn(4,4)
w_fc=np.random.randn(25,10)
b_cov=np.random.randn(16)
b_fc=np.random.randn(10)
rate=0.9
for k in range(5000):
x=mnist.train.i... | [
"mat@cnic.cn"
] | mat@cnic.cn |
9ad9a75b471f4a392b7c1ded29b0b46440293f6b | 214dd8ed655e8a6fb9f35a918e4b54ba509ff52e | /google_crawler.py | 1ae7b17fc034b1db72bdb34486de9d6ebc9a2896 | [] | no_license | Strateus/ImageCrawler | c51b5c57470b30dfd2b247caab7b85c0ea99dd9c | 7983979a6b124378d79ba55fcb11e2d01d90b4ca | refs/heads/master | 2021-01-10T14:08:54.571673 | 2015-11-26T15:44:33 | 2015-11-26T15:44:33 | 46,766,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 13 23:04:04 2015
@author: Igor A. Stankevich
USE WITH CAUTION!
Its an old and free API version and sometimes with alot of requests you may get blocked by Google
"""
import urllib2, json, os, socket
import pandas as pd
from crawler import save_images, purify
def save_g... | [
"loknar@list.ru"
] | loknar@list.ru |
4b6cdae6be3cf42c329587fdd7ae282eb4c4f718 | dadde2ee71d2ce6da5a009c273f7a4359c663529 | /api_level_2/cli/single_stream_rtsp.py | 31570a74ed4a289aadf1568876c8a03f28c05736 | [
"MIT"
] | permissive | excalamus/valkka-examples | 77ec2a1a68180bbfb2edee9a390b5b3bd8d3af5b | 7fdeca82090a45c7222ad5f8b6635490f0fe8c13 | refs/heads/master | 2023-05-05T13:43:47.828110 | 2021-05-29T16:21:37 | 2021-05-29T16:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | """
single_stream_rtsp.py : Send N copies of an rtsp stream to the screen, using level 2 api
Copyright 2017, 2018 Sampsa Riikonen
Authors: Sampsa Riikonen
This file is part of the Valkka Python3 examples library
Valkka Python3 examples library is free software: you can redistribute it and/or modify it under the ter... | [
"sampsa.riikonen@iki.fi"
] | sampsa.riikonen@iki.fi |
7e125b5f5c7032b1a6311ab010c2cd68bed0d063 | 4fdb8e90ab2bed9bc534155806314d4b6d0047ae | /database/migrations/0009_auto_20150224_1925.py | e56dc8666a88493c29a8c0aee5569d0da248cc57 | [] | no_license | gbriones1/MODB | 8ca04df5bc665d5b3dcc3a4f89fa167b21047d7d | b2aa15efe155a1e813917c720107c33cb56eef1b | refs/heads/master | 2021-01-18T23:21:16.545638 | 2016-07-28T15:42:37 | 2016-07-28T15:42:37 | 32,994,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('database', '0008_auto_20150223_1141'),
]
operations = [
migrations.RenameField(
model_name='lending_product',
... | [
"gabriel.briones.sayeg@intel.com"
] | gabriel.briones.sayeg@intel.com |
55412c60ad3960f8a8780d3ffcf2369eac11a1b9 | 98c86ee65aac21c8363f627f99b9da3acd777b35 | /Actividades en Clases/Actividad 04/Solución/botella.py | 43df3345b727c6c4c291d9e75fc5811d85f464a2 | [] | no_license | bcsaldias/syllabus | ef7e5eff0c8fc1ab5a28d12cc3f18ae998ad5c52 | ce30d74fc62861c3464301b5277ca68545209371 | refs/heads/master | 2021-01-24T01:11:22.739918 | 2015-03-20T00:24:54 | 2015-03-20T00:24:54 | 32,551,385 | 1 | 0 | null | 2015-03-19T23:20:50 | 2015-03-19T23:20:50 | null | UTF-8 | Python | false | false | 350 | py | __author__ = 'patricio_lopez'
class Botella:
def __init__(self, litros=1):
self.litros = litros
@property
def etiqueta(self):
return "DCC-Cola"
def beber(self):
print("Deliciosa bebida {}".format(self.etiqueta))
def __str__(self):
return "{} de {} litros.".forma... | [
"lopezjuripatricio@gmail.com"
] | lopezjuripatricio@gmail.com |
8e911b054e63460292c825f0a37e799f63831fa5 | 75475c33b026fe3ecfd49c56b6eebff65bec9a9f | /Aulas/Aula2/exercicio/exercicio1.py | 1b427132256fe8f0c64e82363859e4b1e2de1cea | [] | no_license | VictorSimao/TrabalhosPython | 4367565cc29c936d215231168a3ab3a62c4c7576 | ceebb3510d5f9ab4b802c9a5ab9cb7812dc789d4 | refs/heads/master | 2021-06-28T17:37:44.025809 | 2020-03-04T14:38:15 | 2020-03-04T14:38:15 | 220,218,899 | 0 | 0 | null | 2021-03-20T02:48:57 | 2019-11-07T11:16:13 | Python | UTF-8 | Python | false | false | 747 | py | #--- Exercicio 1 - Variávies e impressão com interpolacão de string
#--- Crie 5 variávies para armazenar os dados de um funcionário
#--- Funcionario: Nome, Sobrenome, Cpf, Rg, Salário
#--- Os dados devem ser impressos utilizando a funcao format()
#--- Deve ser usado apenas uma vez a função print(), porem os dados deve... | [
"victordiogosimao@gmail.com"
] | victordiogosimao@gmail.com |
e7b612245a9027319b87b56040f2c004528c3cc1 | afdcffb776c8a5970b192b5fadd67c4558e7bc81 | /Day 14/Higher-Lower-Game.py | bb7fccfe02fa1e7f4f4293f59e0edab7f049f9c1 | [] | no_license | Reid-Norman/100-Days-of-Code | 9964b0cc4bd0102a701041e4230e78d3b907a7c6 | 0c984ab956d01faaa9f04f553478cc7e956057c8 | refs/heads/main | 2023-02-10T11:08:28.141224 | 2021-01-10T03:02:53 | 2021-01-10T03:02:53 | 325,390,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #Imports
from game_data import data
import art
from random import choice
from replit import clear
#Functions
def item_selector():
'''A function which chooses a random item from the list and then removes the item from the list to prevent duplicate selections.'''
new_item = choice(data)
data.remove(new_... | [
"noreply@github.com"
] | Reid-Norman.noreply@github.com |
2946f3f879d93255451118f4f519b43becc51cf5 | 278983acd48a2d0831993d178cff17d82e490266 | /examples/horovod_unet/mlt_app/main.py | 32fa3763b82cdf248c84f7139fb9e3ec261d8053 | [
"Apache-2.0"
] | permissive | ss7pro/mlt | 197654418b7e5dbccb3171510ab9ea0ffe0d9549 | 1f842d5ec464ac9e0a4f83894ecb05fd24e34a47 | refs/heads/master | 2020-03-30T07:15:51.685924 | 2018-09-25T17:40:16 | 2018-09-25T17:40:16 | 150,927,219 | 0 | 0 | Apache-2.0 | 2018-09-30T03:36:09 | 2018-09-30T03:36:08 | null | UTF-8 | Python | false | false | 8,425 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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
#
# Un... | [
"noreply@github.com"
] | ss7pro.noreply@github.com |
6d5bb1b063f2711b907f407aeb4d1f5d4289afea | ed2db11464bce1f22afd71231a37482fd90bb734 | /App.py | 81ff44fbf0f5293bca234a1c7531ab7a1e784114 | [] | no_license | Fernandosoriano/flaskCrud | ffd726bd224c3147b8c9ddbac782f35fee53f197 | fbf557c15448ba6f1c0d0a62e96f650947ce3480 | refs/heads/master | 2023-06-14T01:19:05.750597 | 2021-07-15T17:35:15 | 2021-07-15T17:35:15 | 386,374,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | from flask import Flask, render_template, request, redirect, url_for, flash
from flask_mysqldb import MySQL
# initializations
app = Flask(__name__)
# Mysql Connection
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = 'password'
app.config['MYSQL_DB'] = 'flaskcrud... | [
"fersoriano@ciencias.unam.mx"
] | fersoriano@ciencias.unam.mx |
af5b656e84c6423f4357a75adcae5dce5371f823 | 0bb906b95352ee6a3afcb2ba0e908b8d41120f77 | /project/basic_app/urls.py | 481a29b654cc2cc9c6075137bb0d5923468d33a0 | [] | no_license | kulkarnisaumitra98/CTD | d2ef551cd2e3ad8764d3d1538fb16cad54e7cadc | afa032afc8c25af0eeee5bb44d6bf069b5b7c663 | refs/heads/master | 2020-04-23T17:17:49.943337 | 2019-02-25T09:39:32 | 2019-02-25T09:39:32 | 169,715,342 | 1 | 1 | null | 2019-02-18T17:12:02 | 2019-02-08T10:03:52 | JavaScript | UTF-8 | Python | false | false | 1,203 | py | from django.urls import path
from . import views
urlpatterns =[
path('api/submissionsList/', views.SubmissionList.as_view()),
path('api/questionsList/', views.QuestionsList.as_view()),
path('api/userList/', views.UserList.as_view()),
path('api/question/<int:pk>/', views.QuestionsDetail.as_view()),
... | [
"kulkarnisaumitra98@gmail.com"
] | kulkarnisaumitra98@gmail.com |
2d7ad84c97ebe63ee113f5978a6779ac259eb142 | 62faee8963e05f516a74e5f02ea6dde682a8f20f | /ex2/siamese_net.py | 18340032e3e915cd89b3adb04e5a999acdd4dd2d | [] | no_license | sharonapa/dl_course | b28e7b602a3e0280320840e7b5f629d95512f417 | 05a767e2ec1db54288fc9632678b8f03c7680cef | refs/heads/main | 2023-06-18T17:50:49.351886 | 2021-07-18T11:52:39 | 2021-07-18T11:52:39 | 348,134,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,843 | py | import tensorflow as tf
from tensorflow.keras import layers, models, regularizers
from tensorflow.keras.layers import Lambda
from tensorflow.keras.callbacks import ModelCheckpoint, EarlyStopping
from tensorflow.keras.layers import Dense
print('TF version installed: ', tf.__version__)
class SiameseNet:
... | [
"noreply@github.com"
] | sharonapa.noreply@github.com |
9e1b63982190937f3617f115ae54d99af4cff382 | e602b39047f9c194669cd1219d672c1591378ce0 | /src/main.py | 5104d75ed57806d1d522cecfc0122299f9a68371 | [] | no_license | yhyoscar/monopoly | 4ab1d82c53b3b476075d64a447f768a54906e110 | 6dbd148a089720845da39ce6df42c37be478ecbb | refs/heads/master | 2021-01-21T12:01:12.047113 | 2018-09-07T15:02:21 | 2018-09-07T15:02:21 | 102,041,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from namelist import *
from classes import *
#===============================================================================
nplayers = 3 # How many players?
nturn = 1000 # How many turns for each simulation?
nsimu = 10 #... | [
"yhyoscar@gmail.com"
] | yhyoscar@gmail.com |
6dc60740658b89808ba69fe241f7f9dd670cacca | 2acf2f926441eadb1c32879bfa6f0e800055b9d9 | /oblig6/gaussian_white_noise.py | 475e30a109b61bf14bcbcf5cec905bcee957d390 | [] | no_license | Linueks/fys2130 | 26b400bbf878ef56d26fdc618f85b62a44515eff | 761bef68476cb210266758ea00e17020e417a174 | refs/heads/main | 2023-02-24T10:05:33.951748 | 2021-01-23T13:23:34 | 2021-01-23T13:23:34 | 332,214,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | '''
Program that generates Gaussian white noise.
Each frequency component is generated randomly b/w 0 and
the a value assigne by Normal distribution.
Each phase component is generated randombly b/w 0 and 2pi.
The finished signal is Fourier transformed.
Sebastian G. Winther-Larsen (2017)
'''
import numpy as np
... | [
"noreply@github.com"
] | Linueks.noreply@github.com |
e5f07af098e9aaf56f199b2d816669ffb9d6b130 | 5597ca029e1ff063cc02cb2238531141eeeb4d6e | /web/apps/users/__init__.py | 2cd2ff089cb5334f325012a42f793b0d8fb2f3ae | [
"MIT"
] | permissive | EasySport/easysport | 7c174f25d38cc57476a89e709eb0c8f4293ee246 | fa32ad6cdbf1f3e861d7eecf4d4f881deee43910 | refs/heads/dev | 2021-04-06T07:31:20.790828 | 2019-03-31T04:26:46 | 2019-03-31T04:26:46 | 124,719,545 | 1 | 0 | MIT | 2018-05-29T10:40:19 | 2018-03-11T03:22:50 | HTML | UTF-8 | Python | false | false | 50 | py | default_app_config = "apps.users.apps.UsersConfig" | [
"harchenko.grape@gmail.com"
] | harchenko.grape@gmail.com |
24dec5efa0a993a6fc4215c7612aee936e395ac9 | f623b1c2d2bff3293488c734d69e0d4173d1c155 | /payments/tests/test_models.py | 4641bd5e7dea3a009543d69bc655138fa139a5b8 | [] | no_license | waruingugi/ebook | 7eaba9b13a8a490b1c8e14db6698eab864b7fdd2 | efc3e94eb5df7e3a6bb12f66d3fcc5d5ddaf1011 | refs/heads/main | 2023-03-01T22:16:40.628139 | 2021-02-05T07:56:05 | 2021-02-05T07:56:05 | 335,880,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from django.test import TestCase
from payments.models import Customers
import requests
from unittest.mock import patch
class CustomersModelTest(TestCase):
@classmethod
@patch.object(requests, 'post', return_value=200)
def setUpTestData(cls, mock_requests):
# Set up non-modified objects used by all... | [
"waruingugientp@gmail.com"
] | waruingugientp@gmail.com |
0e324c6785024b6205f1fe55d511a41511becf79 | 5dc3fba0dc275cd678653c3078a638b820823edd | /setup.py | cfdbb012b504bc372b7a8474d6d1222e85cd8419 | [] | no_license | andyoakley/mkdocs-fastsearch | b03aa4c9c313dfc5cccffbfc6d5d9306b88eb562 | 4b64cea8a773fd2be2e18c043839a125d4bcc7f5 | refs/heads/master | 2022-12-22T21:16:49.491966 | 2018-09-21T04:32:43 | 2018-09-21T04:32:43 | 149,710,232 | 3 | 1 | null | 2022-12-16T09:09:25 | 2018-09-21T04:33:18 | JavaScript | UTF-8 | Python | false | false | 449 | py |
from distutils.core import setup
setup(
name='mkdocs-fastsearch',
version='0.1.0',
author='Andy Oakley',
author_email='ao@ao.vc',
packages=['mkdocs_fastsearch'],
license='LICENSE.txt',
description='Mkdocs plugin for faster search. Based on stock search plugin.',
install_requires=[
... | [
"andy@andyoakley.com"
] | andy@andyoakley.com |
9faa3bfbaffa598e35f9d61fdffcf2ea69476498 | c0d9e2b2135956031bbad6abef22be5a205696db | /src/Inc/Import.py | af20358268dbff2b4c09395c2ae747c47d55b783 | [] | no_license | VladVons/py-relay | 22758805b796c23546c97f8f42c664a2ff1b4fba | c57c205c49b7bbb6a91c98ec326b02a36c3daaef | refs/heads/master | 2023-02-05T22:15:40.884753 | 2019-03-08T06:48:07 | 2019-03-08T06:48:07 | 127,041,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | '''
Copyright: (c) 2017, Vladimir Vons
Author: Vladimir Vons <VladVons@gmail.com>
Created: 2017.10.20
License: GNU, see LICENSE for more details
Description:
Import = TDynImport()
Import.ParseDir('Plugin/Devices')
Import.GetInstance(ClassName)
TClass = Import.GetInstance(ClassName)
Result = TClass(None)... | [
"vladvons@gmail.com"
] | vladvons@gmail.com |
0be7c083e56518fa034c4bb6827412909720008e | dc6b3a7c85994404d43e9dd33509473b52760ca2 | /import-demo.py | 7536755e38cdf23021d863fb57424200252a1a29 | [] | no_license | gitTianxy/py-basics | 23563353da27dad43688718ea7448d0df354ad53 | be320f927118c08467d4aad84b0d9e2021cf6776 | refs/heads/master | 2020-11-30T00:30:45.321637 | 2018-01-25T08:32:45 | 2018-01-25T08:32:45 | 95,840,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import classset
if __name__ == "__main__":
cls1 = classset.Cls1('class 1')
cls1.display()
cls2 = classset.Cls2()
cls2.display() | [
"kevintian@pptv.com"
] | kevintian@pptv.com |
11f918206709d9b70ba3a320e4b9924bda95cc0e | 3f8cd3bc023357ec8baec1ef86fdb76c5c9ded55 | /02-multistep.py | 2e149b7342934a5f835877240e6b772f9997e229 | [] | no_license | senac-arquitetura-bigdata/03-hadoop | a22e3684bbd65593494f79a72e7cf66fd1eccc68 | a95be555deb39ab4f6221b248f0daa4665b4c62e | refs/heads/main | 2023-01-08T21:47:10.776754 | 2020-11-12T18:29:33 | 2020-11-12T18:29:33 | 308,152,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from mrjob.job import MRJob
from mrjob.step import MRStep
class ContadorFrequencias(MRJob):
def mapper(self, _, linha):
yield "palavras-linhas", {'palavras': len(linha.split()), 'linhas': 1}
def reducer(self, chave, valores):
palavras = 0
linhas = 0
for valor in valores:
... | [
"celso.crivelaro@revelo.com.br"
] | celso.crivelaro@revelo.com.br |
795920a77f082988cd50aef7d6adf86a50fbaf6b | 070b498da2aa3344f8ef7ec12c8c3c5885236378 | /pycode/TEMAnalysis/OptiAtomDetector.py | 10a0f0338516a08e0b9022a2bde6fc667b1d754d | [] | no_license | Leucipp-us/Leucippus | f350731b30643f71bc170e0dada3c9f231ef5741 | 15156336fbe71e016340f03c86d68acdf90bfc0a | refs/heads/master | 2021-01-21T14:24:55.359661 | 2017-04-25T16:21:23 | 2017-04-25T16:21:23 | 56,801,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,261 | py | import cv2
import numpy as np
from multiprocessing import Pool
def getBondlengthError(contours):
"""
Calculates the root mean squared of the length of the 'bonds' between
contours and the average length of the 'bonds'. This value is used as the
error.
"""
from scipy.spatial.distance import cdis... | [
"nemirovsky.dm@gmail.com"
] | nemirovsky.dm@gmail.com |
54448b37275c1c6533fe3de3b724a8161ddad67e | caceb60f71165772b6d6155f619e79189e7c80a9 | /第一期/上海-棒棒糖/第二次任务-每日代码练习/2017-1/1-24/str__test.py | 92856b7febfee9c2c466704f18d9f9ea1ffca57c | [
"Apache-2.0"
] | permissive | beidou9313/deeptest | ff41999bb3eb5081cdc8d7523587d7bc11be5fea | e046cdd35bd63e9430416ea6954b1aaef4bc50d5 | refs/heads/master | 2021-04-26T23:06:08.890071 | 2019-04-03T02:18:44 | 2019-04-03T02:18:44 | 123,931,080 | 0 | 0 | Apache-2.0 | 2018-03-05T14:25:54 | 2018-03-05T14:25:53 | null | UTF-8 | Python | false | false | 186 | py | class Student(object):
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
# __repr__ = __str__
#
s=Student('Michael')
print(s)
| [
"879106261@qq.com"
] | 879106261@qq.com |
0c33b7d7c57f92b1b51f4fd05598b5aab681fbd7 | bc8ed17f37af50bd390bc1a1630159ecca574594 | /test/functional/zerocoin_valid_public_spend.py | 747726be72fbf7a816421d249fe2228031d68652 | [
"MIT"
] | permissive | proteanx/BITCORN | aaadef311428d1f07ed584983f037a64ff5a387e | 47dee72f81f89fb4b4d0c91227e9e6c768b81213 | refs/heads/master | 2020-09-07T15:26:33.140311 | 2019-11-16T18:28:08 | 2019-11-16T18:28:08 | 220,827,206 | 0 | 0 | MIT | 2019-11-10T17:49:46 | 2019-11-10T17:49:46 | null | UTF-8 | Python | false | false | 3,693 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The BITCORN developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the 'Wrapped Serials Attack' scenario
'''
import random
from time import sleep
from test_framework.aut... | [
"42760724+bitcornfarmer@users.noreply.github.com"
] | 42760724+bitcornfarmer@users.noreply.github.com |
a1db7f227e54f03fd956853a9e809dcc689c7962 | 8f327c3ac3385ec2a94dadcf3e7ebaa3fc8d3e6e | /order/migrations/0002_auto_20200912_2150.py | 2365b7b17b56ffc46c26366af73399839da78422 | [] | no_license | rana-ghub/One-Click-Meal | 116a8012826541e2e727133558864dcb6fee8b51 | 18a0f4f033ee16b7688fae9dd6ee4e18c3a54f35 | refs/heads/master | 2022-12-24T21:24:23.702744 | 2020-10-04T13:31:03 | 2020-10-04T13:31:03 | 292,094,277 | 0 | 5 | null | 2020-10-04T13:31:04 | 2020-09-01T19:54:23 | CSS | UTF-8 | Python | false | false | 541 | py | # Generated by Django 3.0.7 on 2020-09-12 16:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='image',
field... | [
"ssshashankrana001@gmail.com"
] | ssshashankrana001@gmail.com |
b97d87b1e25925919ff8d77ce12efbb81244bcac | 5aa7531c51b27516d84fb737e09ca2f9f87827f0 | /lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py | 084aa84a3da1e19aaf9c1c37a55f84fa0c156885 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | MagnetoWang/llvm-project | 624475c46f4d9dc21eab93bd00ff8205d6394b04 | e04c62bb23625a2baccb5c52d1d1f372c41ce5c7 | refs/heads/master | 2020-07-01T15:09:54.149887 | 2019-08-08T03:15:48 | 2019-08-08T03:15:48 | 201,178,099 | 1 | 0 | null | 2019-08-08T04:28:19 | 2019-08-08T04:28:18 | null | UTF-8 | Python | false | false | 37,301 | py | """Module for supporting unit testing of the lldb-server debug monitor exe.
"""
from __future__ import division, print_function
import os
import os.path
import platform
import re
import six
import socket_packet_pump
import subprocess
from lldbsuite.test.lldbtest import *
from six.moves import queue
def _get_debug... | [
"antonio.afonso@gmail.com"
] | antonio.afonso@gmail.com |
cd0ed8e34350f1a1ea533c40e5cbce15af713731 | 2f9a1e7bcd1b0925392f71b17ace80b489d24e3b | /chapter2/fig24.py | c85bb57a9cc187dc3afd39c5f5190109b4d7eee1 | [] | no_license | flyingairplane/esl | 895aaa77a501bc42fd719f4005f6324df23a1f2a | 7460065637db03284a362b569bca66fd463458aa | refs/heads/master | 2022-12-26T15:17:29.909504 | 2020-09-28T07:10:54 | 2020-09-28T07:10:54 | 275,613,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | ###fig24
###单次
###date:2020/06/26
import numpy as np
import matplotlib.pyplot as plt
mean1=[0,1]#生成第一类均值所用的均值
mean2=[1,0]#生成第二类均值所用的均值
cov=np.eye(2)#生成均值所用的协方差矩阵
meannum=10#每类的均值个数
x1=np.random.multivariate_normal(mean1,cov,meannum)
x2=np.random.multivariate_normal(mean2,cov,meannum)
covtrain=np.eye(2)/5#生成训... | [
"noreply@github.com"
] | flyingairplane.noreply@github.com |
1236b634dc1a2d71b4f154a6a96f2a43ec0635f3 | cdd6e64cb8a60156157eca1812224cb38036e0c6 | /5일차/9655 돌게임/hwan9655.py | 4076b7b60d3999d5f444390d6b078db290ff3e4e | [] | no_license | kkbwilldo/boostcamp | abb0371f28a98b78a8e254021433680cf9bfdab0 | 47090c261c0ca1e3eca503c8332640d5721e7750 | refs/heads/master | 2023-04-02T00:02:24.834732 | 2021-03-31T07:53:50 | 2021-03-31T07:53:50 | 341,049,036 | 0 | 0 | null | 2021-03-02T12:58:58 | 2021-02-22T01:45:38 | Python | UTF-8 | Python | false | false | 102 | py | from sys import stdin
N = int(stdin.readline())
if N % 2 == 1:
print("SK")
else:
print("CY") | [
"john175258@gmail.com"
] | john175258@gmail.com |
b1128e67e55a4bf39f2b5f933b18923292afc875 | 14bad9231bef3ae79ba7b0c3837b34f6c89bc49b | /128.py | d3aa82690555de9a5610c6c30e95a0f891ec5564 | [] | no_license | Nagajothikp/Nagajothi | 80dc36d167a1143c203c594d25d9dc31892bd239 | 0d80c40c47d315cbcbc2d43bb2d77887d17414d4 | refs/heads/master | 2022-01-25T18:58:24.173042 | 2019-08-07T06:36:11 | 2019-08-07T06:36:11 | 194,424,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | x=input("Enter a number")
print(x)
| [
"kpnagajothi1999@gmail.com"
] | kpnagajothi1999@gmail.com |
3eeaf491eff5482f6dc303a5da1ed9f1cc414731 | f034d03ba41148d872b5ad4a2b422697c5a5ecb0 | /backend_django/api/migrations/0011_auto_20210606_0051.py | 205bbcc2bfacd4a50c3dea7cb2d115e89b72312a | [] | no_license | daledeleo/test_chile | 749d333458e833718fe61f81166265df24f6ecb0 | 80a9e059b66299a0e5c35aac73c99a1aa249d086 | refs/heads/main | 2023-05-17T16:23:17.271580 | 2021-06-07T06:01:07 | 2021-06-07T06:01:07 | 374,226,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Generated by Django 3.2.4 on 2021-06-06 05:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0010_auto_20210606_0049'),
]
operations = [
migrations.AlterField(
model_name='comentario',
name='id',
... | [
"dalede@espol.edu.ec"
] | dalede@espol.edu.ec |
12ba1bcd0df89720b3556d4b2b41e2cd92ffbb00 | 66c74b899f703a30a92024daffc75ed8f0cc5b4c | /hivclinic/schemas/investigation_schema.py | 99366827a739752716347a8cdcecc5a8d4af73e3 | [] | no_license | LedoKun/28hiv_clinic_backend | dd74c8a9b5906e31c657a26991fa0169a9afd468 | 49fe5e4740736b2d4b34489065e29bc06cb1c0d2 | refs/heads/master | 2020-04-10T03:30:16.976132 | 2019-08-07T02:20:34 | 2019-08-07T02:20:34 | 160,771,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | from . import BaseSchema
from hivclinic.models.investigation_model import InvestigationModel
from marshmallow import fields, validates_schema, ValidationError
class InvestigationSchema(BaseSchema):
date = fields.Date(required=True)
# # hiv related tests
# viralLoad = fields.Str()
# percentCD4 = field... | [
"romamp100@gmail.com"
] | romamp100@gmail.com |
71d39b9ac7d3abeb3835873cdad8bfe34bd8808c | 355b7a8863c9b8ce8f55cfc8c4570644886468c0 | /main.py | f2d319a949be4121f553c90a5029ffb5ad67f292 | [] | no_license | seyed-sabbagh/twitter_bot | ed1008127674dbcbe5fd3eacdc3a434f954b004d | ab156111d86562410ad17cf18f0cd8f128e64a22 | refs/heads/master | 2023-06-30T00:34:57.757484 | 2021-08-07T10:45:07 | 2021-08-07T10:45:07 | 393,655,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import tweepy
import time
consumer_key = '8YiIXlTqc6daUBu2IyQ0CZbnj'
consumer_secret = 'PmZa49PQe2rETukpdelSOc3aRItDkh0O1QfwgzKrBuR1vSDAfM'
key = '1423633756980760577-Wxk4FU6WtY0UMvBhO4HUy32k7SLUQu'
secret = 'KrtEsgAeAJANB0EXPFrEFuHiYWzVhyTC5bmlGvilgZL8b'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth... | [
"mohammadjavadsabagh@gmail.com"
] | mohammadjavadsabagh@gmail.com |
5ea1ca0a92571947e69be5d709535b56f1fdf5bf | dfcb12a4f3e08029213b109ce40a3ce951d3e90b | /tcp_test/client.py | e2b67e87136bda97a9a2d56add98ea3ec461be70 | [] | no_license | LynnLinR/BootAutoMatically | ca4fcf35c59bdd12ce98585369b651db58760e2e | 94b85ed3f9a4fe0de96ed6dfb239d4ca82b2955e | refs/heads/master | 2020-04-06T14:00:09.438756 | 2018-11-15T01:53:22 | 2018-11-15T01:53:22 | 157,520,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -*- coding:utf-8 -*-
import socket
import time
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("127.0.0.1", 9999))
print(s.recv(1024))
for data in ['zhang', 'liu', 'wang']:
s.send(data.encode())
print(s.recv(1024))
s.send("exit".encode())
print(s.recv(1024))
print("ok connection will e... | [
"953969331@qq.com"
] | 953969331@qq.com |
64ac34971a4420b2371d118512fb9cd91ef116ce | 5a9464a9d1543a072adf9c0dc07cbf3d3f5e5207 | /src/examples_sensor_tests.py | 45016d5ba083c576414ced1228d1329e54f55497 | [] | no_license | moyersjm/rosebotics2 | e4f30196fd153a3ef86de4157cbfef31b6622096 | 15a008fba44b770540ea943fe495629a368af560 | refs/heads/master | 2020-04-02T13:45:37.339009 | 2018-11-14T19:43:53 | 2018-11-14T19:43:53 | 154,495,978 | 1 | 1 | null | 2018-10-24T12:20:01 | 2018-10-24T12:20:01 | null | UTF-8 | Python | false | false | 2,216 | py | """
Capstone Project. Code for testing basics.
Author: David Mutchler, based on work by Dave Fisher and others.
Fall term, 2018-2019.
"""
import rosebotics_even_newer as rb
import time
def main():
""" Runs tests. """
run_test_sensors()
def run_test_sensors():
""" Print sensor values each time t... | [
"mutchler@rose-hulman.edu"
] | mutchler@rose-hulman.edu |
df02c4c239ac4f19891ca4b5d855f7f20c72a846 | a25bae8539d8aa47a01500e55c415c05f6c840af | /Reality_Verifier_App/migrations/0003_auto_20200322_0920.py | 2fe9d2e94c9a8e0b584a69f4eaaa23e8a1f83205 | [
"MIT"
] | permissive | AishwaryaKabadi/RealityCheck-Backend- | 53cf190aa41d65f8e7e4800b23a07a4374944539 | 1cda45f828b95b3b39880bfb292918ae126f2042 | refs/heads/master | 2022-07-23T09:45:10.636329 | 2020-05-15T18:10:18 | 2020-05-15T18:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # Generated by Django 2.2.11 on 2020-03-22 09:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Reality_Verifier_App', '0002_auto_20200316_0629'),
]
operations = [
migrations.RemoveField(
model_name='picture',
n... | [
"akabadi1996@gmail.com"
] | akabadi1996@gmail.com |
7eb74afb08d34791556405398ea2105617b79d4b | f26527e24f290ae8bab758c545db3251690f4371 | /hackerRank/python/whatsyourname.py | 2d40f05924a97b40bca641f1d5bb9754ebf2581c | [] | no_license | yadielc/algorithms | 18d097cf264f2cc4366069c864be0885a8fc4db3 | 5f555d159644ac98f2f34c3183842182f89aa2ea | refs/heads/master | 2020-03-20T19:00:55.957848 | 2018-09-20T21:55:58 | 2018-09-20T21:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py |
'''
whatsyourname.py
What's Your Name: HackerRank Challenge Problem Solution
https://www.hackerrank.com/challenges/whats-your-name/problem
Instructions:
Input Format
The first line contains the first name, and the second line contains the last name.
Output Format
Print the output as mentioned above.
'''
def print... | [
"ycabr035@fiu.edu"
] | ycabr035@fiu.edu |
41ed8d53f5d386ef194bef22e8afb6801b2f6926 | ec9cd6acccf0fb0ce1342c73b1adb82324351453 | /Tests/testDeltaGalaxy.py | 6739632daf95cbb7c8953529aa505f41485e0e9a | [
"MIT"
] | permissive | CyberiaResurrection/traveller_pyroute | cba194cb1b42982efda2fe10bc521c8fd7c59300 | 60aa74d9cf00ea8ca19d806bcc4a789553e1dee7 | refs/heads/master | 2023-08-20T23:43:12.706791 | 2023-08-20T00:44:10 | 2023-08-20T00:44:10 | 97,683,439 | 0 | 0 | null | 2017-07-19T06:58:47 | 2017-07-19T06:58:47 | null | UTF-8 | Python | false | false | 1,248 | py | import unittest
from PyRoute.DeltaDebug.DeltaDictionary import SectorDictionary, DeltaDictionary
from PyRoute.DeltaDebug.DeltaGalaxy import DeltaGalaxy
class testDeltaGalaxy(unittest.TestCase):
def test_read_sectors(self):
sourcefile = 'DeltaFiles/Dagudashaag-spiked.sec'
sector = SectorDictionar... | [
"noreply@github.com"
] | CyberiaResurrection.noreply@github.com |
5714dbdd0d286db2b3c543a6e67af447e969ff56 | 7780f59da5cac72501b4f9b0bb0b96e8f3ded6e1 | /tests/test_cinema.py | 446816a08120ffe33fed7e2b9150514842fff8fb | [] | no_license | kimbugp/movie-bookings | 7286593b10897c27d936650e538e84e2cbd12791 | 63121b88c6e022fcb849ff7ab8da7be9844f391a | refs/heads/master | 2022-12-10T01:41:01.648098 | 2020-01-21T08:36:17 | 2020-01-21T08:36:17 | 199,335,252 | 0 | 2 | null | 2022-12-08T03:17:06 | 2019-07-28T20:43:15 | Python | UTF-8 | Python | false | false | 4,209 | py | import json
from .basetest import BaseTestCase
class TestCinema(BaseTestCase):
def test_create_cinema_fails_with_no_authentication(self, test_client):
data = json.dumps({})
response = test_client.post(
"/api/v1/cinema",
data=data,
headers={"Content-Type": "app... | [
"kimbsimon2@gmail.com"
] | kimbsimon2@gmail.com |
92d599b4a9dbd32ac0867af83cbc1bfa0d84a76f | 91b92b0292724fe6555b029358698eb120065207 | /lab_ex/classification/cs231n/data_utils.py | d817b749faeb8b24b014ac0155affafe96550e95 | [] | no_license | leanh153/Machine-Learning | a91a49cb02f9bc1eb9b4d33d659f9e15446d62b3 | ca68b441c752b8a889d7242df4a5b4421bb5eebe | refs/heads/master | 2022-11-22T06:45:39.358278 | 2020-07-25T10:39:49 | 2020-07-25T10:39:49 | 256,375,028 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,975 | py | from __future__ import print_function
from six.moves import cPickle as pickle
import numpy as np
import os
from imageio import imread
import platform
def load_pickle(f):
version = platform.python_version_tuple()
if version[0] == '2':
return pickle.load(f)
elif version[0] == '3':
... | [
"anhle1531994@gmail.com"
] | anhle1531994@gmail.com |
d3f3032c4627dd131772f1abe4d43e3da33a3083 | cfd4cc45dc558eba3c45797dbb5335e51a90b581 | /gopython3/core/tests/test_unit.py | 02e68291594bb6c1efdd15444a5a57d4ed507f59 | [
"MIT"
] | permissive | futurecolors/gopython3 | 8724ae4e458e156b82161d6b4083ac7c5a4f3eeb | cfff51f86edb962bba2a51c8f7691454af54809d | refs/heads/dev | 2020-05-18T21:50:11.638433 | 2014-01-21T18:28:01 | 2014-01-21T18:28:01 | 12,966,604 | 1 | 0 | null | 2014-05-17T08:38:23 | 2013-09-20T05:52:19 | Python | UTF-8 | Python | false | false | 4,991 | py | # coding: utf-8
from unittest.mock import patch
from django.utils import timezone
import warnings
from collections import namedtuple
from django.test import TestCase
from ..factories import SpecFactory, JobFactory
from ..models import Job, Package, Spec
from ..tasks import query_pypi
def fake_distributions(*distrib... | [
"baryshev@gmail.com"
] | baryshev@gmail.com |
aedc81df5a3ad58b19ff702a4906fe440765dfbd | db020c7d7c0a1be15e549d8db097ad9ea74554f7 | /mlAPI/server.py | af617604d98e4d703f8ba8c7bd790093f142bc5b | [] | no_license | mtugrulesin/Machine-Learning-API | 0a472b01d4992291988bbac91694eeed58abb15f | 9b8ebb7ec8994bcc7bb6bd732ec49537b61d9899 | refs/heads/master | 2020-08-18T18:32:32.760198 | 2019-12-16T02:07:14 | 2019-12-16T02:07:14 | 215,821,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 17 18:36:36 2019
@author: bestm
"""
import numpy as np
import pandas as pd
from flask import Flask, request, jsonify
import pickle
class predictionDefault:
def __init__(self,result):
self.result = result;
def serialie(self):
... | [
"noreply@github.com"
] | mtugrulesin.noreply@github.com |
54de617615d548ce9e728d250f3a9fc61f6bfc3f | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py | f8d3664d49bb035be6717ec0313a6e916c6735bd | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 41,803 | 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 |
629cf389cebeedb96bbf3dd17c305c1b00ffa0ce | 2d28859443f247ffd3de8b90cb868d321f1b8839 | /emailCollector.py | 91fa210a49cbff71507803133bb1e60061227d86 | [] | no_license | mayanksonty/PythonProgram | c9459c458b45d8ab5127b465c912a1df4fe38b21 | eecc3e308afc59e006763f645cea83045e291762 | refs/heads/main | 2023-04-16T06:31:39.077646 | 2021-04-30T16:31:46 | 2021-04-30T16:31:46 | 362,348,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | import re
mystr ='''Todaywearegoingto learn how we can make command-line
utility in python and the benefits and uses of making a
command-line utility. Let us get a brief overview of the command-line utility.
What Is a Command Line Utility?
A command-line utility is a way
of giving operating system instructions
u... | [
"mayanksonty@gmail.com"
] | mayanksonty@gmail.com |
4c9ff62fe6d770bdee61fcc6e362c1f90aff8db5 | 57b72ecd190a276dfd7bb9822ce8a47fd05d967c | /Python Helpers/translateBinaryToDNA.py | aa03800f01bdc958e70832aeead68e40e934060c | [
"MIT"
] | permissive | PeterJFerrarotto/senior-design-project | c1f2e3519145f0c14180d5910027424c8befd53a | 7913c30f97c2f430ab485c4a91abf04c9b724fe6 | refs/heads/master | 2020-09-10T20:35:24.182779 | 2019-11-16T17:34:12 | 2019-11-16T17:34:12 | 221,824,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | def translateToBasePair(binary):
basePair = ''
if binary == '0000':
basePair = 'U'
elif binary == '0001':
basePair = 'A'
elif binary == '0010':
basePair = 'G'
elif binary == '0100':
basePair = 'C'
elif binary == '1000':
basePair = 'T'
return basePair
... | [
"peterjferrarotto@gmail.com"
] | peterjferrarotto@gmail.com |
b3b0f9e662f65e09d8aae750a859c059a09e7cb8 | 0ea22107790ef695ad80ddba9d6a6c1ae95e7c6e | /kalibr-cde/cde-root/opt/ros/hydro/lib/python2.7/dist-packages/geometry_msgs/msg/_PointStamped.py | b28032463564931641d9984243a9a26ef4912b22 | [] | no_license | wangrui996/camera_imu_calibration | 0f9bc0cf737641b352fa71ae9710c735da69a732 | 4296aeac1001f21502355d8ca98d4ae214e30ffc | refs/heads/main | 2023-06-19T15:19:42.618423 | 2021-07-15T06:52:20 | 2021-07-15T06:52:20 | 386,193,412 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,270 | py | """autogenerated by genpy from geometry_msgs/PointStamped.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class PointStamped(genpy.Message):
_md5sum = "c63aecb41bfdfd6b7e1fac37c7cbe7bf"
_type = "geomet... | [
"wangrui957@163.com"
] | wangrui957@163.com |
04b7735bc6bb18b430cdbf2e455ee1c1d2e0e8a0 | 9323dc58584304baa77a3146bcb4eb2090432212 | /xml_to_csv.py | b8be5269887090a3f9ab91fccaa7fb256f6a0f01 | [
"MIT"
] | permissive | wywiwyb/object_detection_custom | 2c0bc857b4cea161b9c167788795fe28ec7bafcc | 9f72c82713c95e6c2057a51e77eb7eb2cd153f07 | refs/heads/master | 2020-05-25T20:13:53.725983 | 2019-05-22T16:51:01 | 2019-05-22T16:51:01 | 187,959,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | py | """
Usage:
# Create train data:
python xml_to_csv.py -i [PATH_TO_IMAGES_FOLDER]/train -o [PATH_TO_ANNOTATIONS_FOLDER]/train_labels.csv
# Create test data:
python xml_to_csv.py -i [PATH_TO_IMAGES_FOLDER]/test -o [PATH_TO_ANNOTATIONS_FOLDER]/test_labels.csv
"""
import os
import glob
import pandas as pd
import argparse
... | [
"wywiwyb@gmail.com"
] | wywiwyb@gmail.com |
e90956ae509e5e7af6e027f1c009597fb4efa4bb | f9d132c527ac598ae76779b008e3f880a80948cc | /django_project/settings.py | 3ac8a4f845af21547f3e6a350fa6035acadc813d | [] | no_license | alasgar88/Django-Project | 543ad976cb146e9edc5c167d421df6616a901df4 | 8261fe9408b52c7a9a634cfa14f2a192db15cb81 | refs/heads/main | 2023-08-21T03:21:52.773743 | 2021-10-15T23:03:24 | 2021-10-15T23:03:24 | 417,654,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,576 | py | """
Django settings for django_project project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from ... | [
"mahmudov.alasgar@gmail.com"
] | mahmudov.alasgar@gmail.com |
4b3de4a296317c782e7799ec7aaaef60c355d2df | 0e340ea35999f2da69448e7afad31a53cb4ab367 | /Page/mis/pageElements.py | eeffb8d5752544884a663a2e4a416c2c2c76ff73 | [] | no_license | a953732125/ui_test_HMTT | cd5ca40ea397f814f8c020925df856410c5a9d9e | 039a8d4fb54fd275ea4e501765916b19fb1d5d4a | refs/heads/master | 2023-01-19T04:58:22.567304 | 2020-11-24T12:55:07 | 2020-11-24T12:55:07 | 315,631,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from selenium.webdriver.common.by import By
class PageElements:
"""登录页面"""
# 账号
login_account_name = (By.NAME, 'username')
# 密码
login_password_name = (By.NAME, 'password')
# 登录按钮
login_btn_id = (By.ID, 'inp1')
"""首页"""
# 信息管理
main_info_manage_link_text = (By.LINK_TEXT, "信息管理")
... | [
"953732125@qq.com"
] | 953732125@qq.com |
e00113b5ab6665b0baaf79f61127c76d49f2813b | eb002a9a92bd8dc8feebf012c9972b81924a5376 | /datasearcher.py | bc1e3d971cea72ada1e0446c028000c778e12899 | [] | no_license | AlliBusa/DIY-Search | 5940e4ace24cad5b3b6923fac7b40354fe574593 | b0027289a0ce94b583a5f300b5abb97c49dfd5c1 | refs/heads/master | 2021-09-13T17:40:08.599246 | 2018-05-02T01:25:21 | 2018-05-02T01:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import code
from bs4 import BeautifulSoup as Soup
data = pd.read_csv("/home/allison/dream5/DataBase.csv", encoding="utf-8")
df = pd.DataFrame(data)
def join_materials(*materials):
"""Joins the keywords to make one search term"""... | [
"allison.busa@students.olin.edu"
] | allison.busa@students.olin.edu |
94f5e01f1ba430c8762871cb0992de770c66df98 | ced9c87c3b6cebc0927703afd278b9b416a2c6a9 | /euler9.py | aa2a823b5d9c7f2cee33cc0ca9dcdd97040a2bd9 | [] | no_license | rohitsuv/Project-Euler | 9ec252461e96ff1e572d8fb137c8cb335e93908d | cf3beb7d6d50faa99c9d08ad7914edd72aa38c5e | refs/heads/master | 2021-01-20T00:01:23.893717 | 2018-08-01T19:03:00 | 2018-08-01T19:03:00 | 89,069,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def is_square(x):
for i in xrange(0,x+1):
if i*i == x:
return True
return False
def return_triplet(x):
list = []
for k in xrange(1,x+1):
for i in xrange(1,x):
for j in xrange(1,x):
if i*i + j*j == k*k:
print i,j,k
list.append((i,j,k))
return list
y = return_triplet(1000)
for i in y:
... | [
"noreply@github.com"
] | rohitsuv.noreply@github.com |
9cda8941b45354ddaf555552c2684c7c0f004aa8 | 3c54312358aa3ccff481ebe28c2d93b22a22b739 | /setup.py | ff190cf19e36d83538c47a9c13ac7cfe1383e92b | [
"MIT"
] | permissive | ShihaoCui/deepwave | 0a1bafc2c20b55815fd5a2e309b76375278631aa | 032bb06328673f4f824fbca20f09ba7bb277c8d1 | refs/heads/master | 2023-08-28T16:28:25.813606 | 2021-10-25T20:38:00 | 2021-10-26T09:59:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import os
import setuptools
from torch.utils.cpp_extension import (BuildExtension, CppExtension,
CUDAExtension)
from torch import cuda
with open("README.md", "r") as fh:
long_description = fh.read()
scalar_dir = os.path.join('deepwave', 'scalar')
scalar_cpp_file = os.path.jo... | [
"arichar@tcd.ie"
] | arichar@tcd.ie |
8456fc140f395dcb0b9979f675580c001a6a408b | a291db0ebaae1aae0bf07f1e6add194f5c7f7e6b | /interfaces_graficas_tkinter_en_python.py | 2905265f4d5971f8cd395709cb73076eda389e5f | [
"MIT"
] | permissive | osmandi/programarcadegames | ca8ca4aa45a9a064f6aadf36e885fd52a395892f | 314b2a958baf23ff4a393a624338ea22e70ad7d5 | refs/heads/master | 2021-09-05T13:54:13.179125 | 2018-01-28T12:20:24 | 2018-01-28T12:20:24 | 119,255,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from Tkinter import *
root = Tk()
frame = Frame(root)
frame.pack()
label = Label(frame, text="Hola mundo")
c1 = Checkbutton(frame, text="Uno")
c2 = Checkbutton(frame, text="Dos")
entry = Entry(frame)
button = Button(frame, text="Aceptar")
label.pack()
c1.pack()
c2.pack()
entry.pack()
button.pack()
root.mainloop()
... | [
"osmandi.github@gmail.com"
] | osmandi.github@gmail.com |
4cf2892ee1fab084836e66d85db735bbc3f15c76 | 029c5700fe6d210fb3593865a53f32da002e7635 | /blog/templatetags/blog_tags.py | 2a56188b3c6e4aefdef751fd34539a5b2558b112 | [] | no_license | HumanObserver/mysite | 3b72b4a9fc5ce75c135ffde6bc836dbbfff8f22c | e7b35baf057a9b0307886caaf5a190441793bf38 | refs/heads/master | 2020-04-04T16:11:03.898965 | 2018-11-10T05:47:29 | 2018-11-10T05:47:29 | 156,067,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py |
# -*- coding: utf-8 -*-
from django import template
from django.db.models.aggregates import Count
from ..models import Post, Category, Tag
register = template.Library()
@register.simple_tag
def get_recent_posts(num=5):
return Post.objects.all()[:num]
@register.simple_tag
def archives():
return Post.objec... | [
"1226552826@qq.com"
] | 1226552826@qq.com |
a8646807329b9ce7d0491220ed7084db9cad863c | 9d2ea8516f8a97c6f9e0824dce6976fbbdba39ae | /modulo1/segmento3/apunte7Funciones/ejercicio4.py | 26eb8b3622dcb2d464cac4ae5824c56b9754390c | [] | no_license | sebanazarian/itedes | da416990e3e05dafa025c5af0911c06ec7d411b2 | 549d5fd08d2455909495feaad268f49301a5b99f | refs/heads/master | 2020-03-30T14:58:32.805925 | 2019-04-05T14:27:46 | 2019-04-05T14:27:46 | 151,342,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def par(num1):
if num1%2 == 0:
respuesta= True
else:
respuesta= False
return respuesta
num1=int(input("Ingrese un numero: " ))
respuesta= par(num1)
if respuesta:
print("El numero ingresado es par")
else:
print("El numero ingresado es impar")
| [
"alumno@itedes.BFACONSULTORA"
] | alumno@itedes.BFACONSULTORA |
f04ac21bb9f9d6f347cff76e20436f138ce7a2b8 | d117c9441ed8cc17e506026199fb810963c34995 | /lib/custom_whatlies/helpers.py | 7d35d1aeed7d61e678a70e0d4f529ce0e8c1efde | [
"MIT"
] | permissive | artefactory/bulk-labelling | 45dc12eca311243f7c87577ac6e03433783aae70 | 3117cb194005f089fcc0a448dfc7be7327e336fe | refs/heads/master | 2023-06-14T22:38:44.563619 | 2021-07-05T09:03:46 | 2021-07-05T09:03:46 | 347,915,252 | 1 | 0 | MIT | 2021-06-08T09:01:16 | 2021-03-15T09:52:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,501 | py | from lib.custom_whatlies import Embedding, EmbeddingSet
def reverse_strings(embset):
"""
This helper will reverse the strings in the embeddingset. This can be useful
for making matplotlib plots with Arabic texts.
This helper is meant to be used via `EmbeddingSet.pipe()`.
Arguments:
embse... | [
"45630763+Pliploop@users.noreply.github.com"
] | 45630763+Pliploop@users.noreply.github.com |
9fb1b2820e595de7d35630b709b9417006ff18af | 431c7b40b9bb283dde761b4748fe742a70941762 | /textress/account/tests/test_views.py | bf9088f3324b66071ed0ab8724e9e0bbd276f05d | [] | no_license | aaronlelevier/textress_project | 0b01960664eff9c83703f08cf0e33177b3369236 | 927519fec52f6df54d81e393597b55b3755103dd | refs/heads/master | 2021-06-01T04:42:21.783010 | 2016-07-15T13:42:39 | 2016-07-15T13:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,731 | py | import datetime
from django.conf import settings
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User, Group
from model_mommy import mommy
from account.forms import AcctCostForm
from account.models import (AcctStmt, TransType, AcctTrans, AcctCost,
... | [
"pyaaron@gmail.com"
] | pyaaron@gmail.com |
4d6153ef51c7c22edd9a11ddb4bff7e1080e2493 | e689eb238d28096b7ae10c5827953075b9d47e08 | /Narrow/Narrow/settings.py | a0caec19ae3c7527215647a4b7ae622cbfa1dc00 | [] | no_license | narrowteam/Narrow | 9a3af755b58b58b92d73039618e55a34746e92d0 | 8baa92147ff1bbe4c5d7e88ea9155c78f2963d24 | refs/heads/master | 2022-12-21T08:29:36.632775 | 2020-05-24T23:51:41 | 2020-05-24T23:51:41 | 156,901,710 | 0 | 0 | null | 2022-12-08T05:29:00 | 2018-11-09T18:22:32 | Python | UTF-8 | Python | false | false | 4,552 | py | """
Django settings for Narrow project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
imp... | [
"maksymilian.demitraszek@gmail.com"
] | maksymilian.demitraszek@gmail.com |
5d45477e65cdefa21b15c2b6df662e7b634f5dbd | 0cb3c36e5480b7237421f61a3512c76433541e00 | /src/todo/urls.py | 02c8397316afc511dd7164d47c2bfbb40e0f52e7 | [] | no_license | thanhnamit/todobackend | bd59ea23fe72586c32f096186b6804a7bf2f71bb | f5c548d94301fb4d2de1f57bb63ec7d4aa44341a | refs/heads/master | 2021-09-23T10:12:09.174544 | 2020-04-19T12:57:18 | 2020-04-19T12:57:18 | 250,524,372 | 1 | 0 | null | 2021-09-22T18:48:15 | 2020-03-27T12:06:41 | Python | UTF-8 | Python | false | false | 261 | py | from django.conf.urls import url, include
from todo import views
from rest_framework.routers import DefaultRouter
router = DefaultRouter(trailing_slash=False)
router.register(r'todos', views.TodoItemViewSet)
urlpatterns = [
url(r'^', include(router.urls))
] | [
"thanhnam.it@gmail.com"
] | thanhnam.it@gmail.com |
f675a26895696833e7e8bea6bddb72b10190333c | 755d018599dc5a37083f1a46d5edde8926f369b9 | /Спринт 15 Деревья/K. Числовые пути.py | 752268ba4add01ab5235f0ee685e4e71afa54828 | [] | no_license | meat9/Algoritms | 6d3c425449955c7618e5b73e6f2ec46f1acd58b0 | 1394ba0c046a215d722aa1901e88f27ff7972e23 | refs/heads/master | 2022-12-26T10:43:21.078047 | 2020-09-13T08:16:59 | 2020-09-13T08:16:59 | 286,240,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Ребята решили поиграть в игру.
# Дано дерево, в узлах которого записаны цифры от 0 до 9.
# Таким образом, каждый путь от корня до листа содержит число,
# получившееся конкатенацией цифр пути.
class Node:
def __init__(self, value, left=None, right=None):
self.value = value
self.right = r... | [
"meat9@yandex.ru"
] | meat9@yandex.ru |
f50b67826de98874c664ace45f9b8690f8719564 | 091eeb1a4a821638624f96ea5add91348f162d23 | /contrib/spendfrom/spendfrom.py | 98907014e07de72ecc9b78208ae232cfb4d72766 | [
"MIT"
] | permissive | GitPayProject/GITS | 02ac1d7dea581f4f209bb8af4b31692407dde00b | 3a0008de955a1b5eac9563de63de154d62b61bc2 | refs/heads/master | 2020-04-10T22:39:23.808427 | 2018-12-11T21:04:52 | 2018-12-11T21:04:52 | 161,328,358 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,928 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend GITSs received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a GITSd or GITS-Qt r... | [
"gitpays@gmail.com"
] | gitpays@gmail.com |
3fbecf4b7076d44805d1bfe60850a3746099e528 | dc497da8067529746102d8099c1b453b147d1485 | /code_trace.py | 602124ea92f93e64c38228d7181270f04c67b81f | [] | no_license | mattcree/token_parser | dde65ae4549633e7a1bfe0457aefa6b31e048892 | ede2e9cc49cc119040f6d6dd7105d3dd7e399a46 | refs/heads/master | 2021-01-18T19:57:11.501176 | 2017-08-22T16:43:16 | 2017-08-22T16:43:16 | 100,541,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | from datetime import datetime
import sys
class CodeTrace(object):
@staticmethod
def trace(*args, **kwargs):
entry_trace = "[{0}] {1} *** {2} {3}{4}\n"
exit_trace = "[{0}] {1} *** {2} {3}({4})\n"
entry_text = "ENTER"
exit_text = "EXIT"
# Full Trace
# Writes lo... | [
"matthew.cree@gmail.com"
] | matthew.cree@gmail.com |
a292e56eb81373a7b82979145f19e3c95bf2f52c | 18bc90598134982f93524fd2297d6009a6afa5b1 | /application/controllers/login.py | 8bfcfdb43def5fa78cbbb9b87aa579e757e4ebd2 | [] | no_license | daye10003/SNS | 2b28fc10d4b8ed2bb1ccf1d346341034cd760b70 | 26b5ed9c26ca7f671bf6ebf18367a7d9762c1af8 | refs/heads/master | 2021-01-01T18:55:53.411852 | 2014-08-29T09:17:05 | 2014-08-29T09:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | from flask import render_template, url_for, redirect, flash, session, request
from application import app
from application.models import user_manager
import re
from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, validators
class UserForm(Form) :
email = StringField(
u'email',
[
valid... | [
"daye10003@gmail.com"
] | daye10003@gmail.com |
5e887ab5258c0852f9615e50b0ad3c4453b8de1c | 9da9cfaa4bc9a5c55ee3a3c76ab9041a1998668b | /Day22.py | 71359f16c130ed530cab3ea32fb1fe6137862d8e | [] | no_license | aamnaam/AoC-2020 | 9a0c66ea4bb620077d2294bbce7d58fe04a60ff9 | e41076e5f0bc5681bf42020c4d32790b360affbe | refs/heads/main | 2023-02-07T01:45:30.230408 | 2020-12-24T11:09:55 | 2020-12-24T11:09:55 | 318,985,637 | 3 | 0 | null | 2020-12-24T11:09:56 | 2020-12-06T08:26:12 | Python | UTF-8 | Python | false | false | 1,826 | py | with open('Day22', 'r') as f:
data = f.read().split('\n\n')
my_hand = crab_hand = []
def set_hands():
global my_hand, crab_hand
my_hand = list(map(int, data[0].split(':')[1].split()))
crab_hand = list(map(int, data[1].split(':')[1].split()))
def combat_game():
while my_hand and crab_hand:
... | [
"aamaanmohammed17@gmail.com"
] | aamaanmohammed17@gmail.com |
1ca831220ab3045b842f756ae68c54fdc2ab276a | 5632b28f27114155c56a1a4b1b80aedb0ca7ecfd | /tests/integration/api/v2010/account/sip/domain/test_ip_access_control_list_mapping.py | c0662c277031bf343a3f5aa1f1c25a7fbb21ab51 | [] | no_license | incentivizinggood/lambda-survey-package | 4f3c5c62c6a3bf3d84007ee17cbfa8d811a0c0d2 | ea00e196bfedd25bf8be6b26105eb6f3161712a3 | refs/heads/master | 2021-06-16T12:45:13.885811 | 2017-05-17T21:42:22 | 2017-05-17T21:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,370 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class IpAccessControlList... | [
"tmcdonald1234@yahoo.com"
] | tmcdonald1234@yahoo.com |
675b01dcde98168800671ad211778faa2ce9b622 | 5b9ac627bf39b01917f75d18d8ca83211a04c718 | /cahoots/confidence/normalizers/character.py | eb3454f1cbed230ef870e1d916a85b2295aff56f | [
"MIT"
] | permissive | SerenitySoftware/cahoots | dbfa109e4c65d20ef01c2d97d3087e7a8aede838 | 866336c51436343ff5e56f83f89dddc82a5693a3 | refs/heads/master | 2021-05-28T20:00:32.827485 | 2015-08-23T00:31:11 | 2015-08-23T00:31:11 | 21,884,335 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | """
The MIT License (MIT)
Copyright (c) Serenity Software, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | [
"ryan.vennell@gmail.com"
] | ryan.vennell@gmail.com |
67176a5d014e8121773fb4bb529be752634fb02c | 6ede725cd5dcad221c0b5d97d3e34a40cac564e2 | /ex20.py | b2024e1dd9fdfbf45f77ab1521c754a21b8542e6 | [] | no_license | khkr/LearnPython-tutorials | 9d2a53cec0352cb674b6878667168e7cfcbb2c40 | 15e1313743c53ade1fd57221d74cf82f9bb53ecf | refs/heads/master | 2021-01-01T19:52:42.972203 | 2017-10-05T06:29:24 | 2017-10-05T06:29:24 | 98,706,286 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from sys import argv
#Here we are getting inputs from the CLI
script,input_file = argv
def print_all(f):
print(f.read())
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print(line_count,f.readline(),end = "")
current_file = open(input_file)
print("First let's print the whole file:")
print_al... | [
"khkrlife@gmail.com"
] | khkrlife@gmail.com |
10cbd8a89586e389bc9b8bbf2ca25b39eaf21cb1 | e77f82a870b042eefa82e398b44dd261e45011f1 | /Synthesiser/synthBridge.py | c79b1cc34b1d464e973d429cbbd5e10973b39ce1 | [] | no_license | EdwardHarriss/embedvid-19-iot | f1f2bba9e556793279e91d32435f1d722cd0d802 | df1ae9d058a07751680f843cead5249ed9aad878 | refs/heads/main | 2023-06-11T04:00:01.113057 | 2021-07-03T10:41:13 | 2021-07-03T10:41:13 | 332,718,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | import serial
import paho.mqtt.client as mqtt
import re
SER_PORT = "/dev/tty.usbmodem14203"
GROUP_NAME = "Embedvid-19"
MY_NAME = "Matt"
BROKER_URL = "test.mosquitto.org"
BROKER_PORT = 1883
MESSAGE_RE = b"[PR][0-8][0-9A-B]"
PUB_TOPIC = "IC.embedded/" + GROUP_NAME + "/synth/" + MY_NAME
SUB_TOPIC = "IC.embed... | [
"56544406+m4tt-v@users.noreply.github.com"
] | 56544406+m4tt-v@users.noreply.github.com |
fcc28c4fb295fc56e743a94f929317d9aac54d4f | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_yaml/__init__/SequenceNode.py | 2cc52374a86f60654ef8c8168c3539260e1b19ab | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # encoding: utf-8
# module _yaml
# from /usr/local/lib/python2.7/site-packages/_yaml.so
# by generator 1.137
# no doc
# imports
import yaml as yaml # /usr/local/lib/python2.7/site-packages/yaml/__init__.pyc
import __builtin__ as __builtins__ # <module '__builtin__' (built-in)>
import yaml.error as __yaml_error
import ... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
3aae11eb1ee84c902aeb1b3df0abf7526663c2e4 | c5600c5fe2d53612dadf3cc8177b92f383a017fa | /analisys.py | 6887bfb29b755d06c0d033a2118bbb32a0f77d02 | [] | no_license | aweinstein/hrv_altitude | 40fe823630f971e00dd6c00dc9851c6295b34ecb | b122cae155804832913c61050eb1a4813f59d07d | refs/heads/master | 2020-04-06T06:58:13.244222 | 2016-08-26T08:42:06 | 2016-08-26T08:42:06 | 62,821,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | import matplotlib.pyplot as plt
from scipy import stats
import pandas as pd
import sp
import vis
def plot_all():
hrv = pd.read_pickle('dfs/hrv.pkl') # hrv.pickle is generated by parse_data.py
hrv_filtered = sp.remove_outliers_all(hrv)
hrv_5m = sp.extract_segment(hrv_filtered)
plt.close('all')
g =... | [
"alejandro.weinstein@gmail.com"
] | alejandro.weinstein@gmail.com |
64485fcfbefc2902611117edb0c4e96f0d76e1c7 | 4af1ad7f4d891b17333729bbe2b5c90ea3d1c7c0 | /testing/med/pyggel/particle.py | f2bd04740246915f58e934804c326731d3267ab9 | [
"MIT"
] | permissive | PyMine/PyMine | e26c4a7e2abedee557fd336bd34f7e14c0c5666a | 37389f4701e5b19b4f8dd414dbada637b641ecbf | refs/heads/master | 2020-05-01T12:33:15.949296 | 2014-10-12T15:19:25 | 2014-10-12T15:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,880 | py | """
pyggel.particle
This library (PYGGEL) is licensed under the LGPL by Matthew Roe and PYGGEL contributors.
The particle module contains classes for creating and rendering particle effects.
A simple fire effect is included.
"""
from include import *
import data, image, misc, data
from scene import BaseSceneObject
i... | [
"ggmethos@autistici.org"
] | ggmethos@autistici.org |
55979f81e84ca3abdbba86f5beb153040368f2e3 | 0cdae8070daaf96a8290872c6ef33fb9e52ad617 | /lesson-1.py | ac86c66ab5ad20e521076508c1b45fc08fe15856 | [] | no_license | KushaiDob/mypyt | e8ba0617966236c97ae021e0867b0bcfe7dc383a | 64338fb5e2e4690b5c4627c569250bca1d3d5bac | refs/heads/main | 2023-04-10T09:51:54.138427 | 2021-04-18T12:26:54 | 2021-04-18T12:26:54 | 355,516,224 | 0 | 0 | null | 2021-04-18T12:26:55 | 2021-04-07T11:16:59 | Python | UTF-8 | Python | false | false | 1,828 | py | # 1
a = "Hi"
b = "friend!"
print(f"{a}, {b}")
name = input("Your name:")
surname = input("Your surname")
print(f"Good to see you, {name} {surname}!")
# 2
time = int(input("Введите время в секундах: "))
hours = time // 3600
minutes = time // 60 - hours * 60
seconds = time % 60
print(f"{hours:02}:{minutes:02}:{seconds... | [
"emsoem@mail.ru"
] | emsoem@mail.ru |
95338aabec6d13b455ac8d56994623467e63990d | d523dacd2ebab40bce0603f0ea89cbb8d7b077b5 | /img-prueba-backend/imageproject/apps/imagesprocessor/apps.py | 592673bea34aa9c1c2c821a293660e9d5d7e8d62 | [] | no_license | JonathanCh022/prueba-tecnica-django-angular | 5dfb80a41ec4d40b6f925ccda1ed181c7f957718 | b2935d537230d86d6dc6f135660f00711b8298d0 | refs/heads/main | 2023-07-15T06:59:15.255219 | 2021-08-20T02:58:43 | 2021-08-20T02:58:43 | 396,934,840 | 0 | 0 | null | 2021-09-01T21:00:53 | 2021-08-16T19:07:31 | Python | UTF-8 | Python | false | false | 167 | py | from django.apps import AppConfig
class ImagesprocessorConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'apps.imagesprocessor'
| [
"chacon_022@hotmail.com"
] | chacon_022@hotmail.com |
43f9f1fe653a60a23dd3dc9973ee25902f105163 | 84723265975eb1c018627eff98ade87c427f09c8 | /question1.py | 61b54e8fabda334a54257b9d1952bb1d8d0050a8 | [] | no_license | moni310/Dictionary | 163a0061647bd5f6fb0721da3870c13f8e4b280e | 2fb6da6ae6bb38a5405384e9b0eea6c66c70e348 | refs/heads/main | 2023-07-01T23:09:47.826993 | 2021-08-14T09:24:34 | 2021-08-14T09:24:34 | 392,549,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | dic1={1:10,2:20}
dic2={3:30,2:40}
dic3={5:50,6:60}
dic2.update(dic3)
for key in dic2:
if key in dic1:
dic2[key]=dic2[key]+dic1[key]
dic1.update(dic2)
print(dic1)
| [
"“moni20@navgurukul.org”"
] | “moni20@navgurukul.org” |
e671c12f8e4141db53c3ed6cc2641a641fa01a69 | 52c112a24cbb1825bb793561df3cbad7ec73e4a2 | /star.py | ca06b6a53ae33a394e66431a76ab7d1590f84c69 | [] | no_license | Vindhesh/demopygit | 58fc5d56450e66f48028a996bc6463fabc19b2cb | 60756c9716a68d2894281f6b0594fae0241217c0 | refs/heads/master | 2022-12-02T06:05:01.854113 | 2020-08-23T12:45:00 | 2020-08-23T12:45:00 | 289,483,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | for i in range (1, 11): #will print 1 to 10 numbers
for j in range(1, i+1): #will run loop where
print('*', end='')
print() | [
"vindhesh1@gmail.com"
] | vindhesh1@gmail.com |
e58ff074814692285479001c87b49f6a76bdd087 | 12b1d699edf91751a126b8765243a52ae13cb30a | /plot_dumps_single_instance.py | a1ba8578b24510e048cae6d8d27160c72c12c8f5 | [] | no_license | IliasZadik/double_orthogonal_ml | f7e027d666fd8419f136a590a4f33fcb082ab1a4 | cb9b6967ad6745a337d0cb37cc30b74206f26313 | refs/heads/master | 2020-03-19T09:07:04.286631 | 2018-07-13T02:01:14 | 2018-07-13T02:01:14 | 136,261,052 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,304 | py | import sys
import os
import argparse
import numpy as np
import joblib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def main(args):
os.environ['JOBLIB_TEMP_FOLDER'] = '/tmp'
parser = argparse.ArgumentParser(
description="Second order orthogonal ML!")
parser.add_argument("-... | [
"vasy@microsoft.com"
] | vasy@microsoft.com |
279c7cdfc33ed18c9ffabfb18f80e22f8fb9d5cf | bc1458b238ceedc6e53dfd5ee72e5257b7624adf | /server/trackexample.py | 282fe6ac712a315ffcbe1fad19847390b145130a | [] | no_license | drakejwong/tune-in | 36b94fa169f20840a22f2878fd2616e47887d76b | 87d3a38c11c1d21c9d640176d99b7c57c3e5f89b | refs/heads/master | 2023-02-21T08:49:18.047916 | 2020-10-10T19:58:25 | 2020-10-10T19:58:25 | 271,656,402 | 1 | 4 | null | 2021-01-06T09:52:16 | 2020-06-11T22:13:01 | JavaScript | UTF-8 | Python | false | false | 3,753 | py | {
"album": {
"album_type": "single",
"artists": [
{
"external_urls": {
"spotify": "https://open.spotify.com/artist/6sFIWsNpZYqfjUpaCgueju"
},
"href": "https://api.spotify.com/v1/artists/6sFIWsNpZYqfjUpaCgueju",
"id": "6sFIWsNpZYqfjUpaCgueju",
"name": "Ca... | [
"youngcai345@berkeley.edu"
] | youngcai345@berkeley.edu |
dbed30c53f73497797ddbe0811d3e196d96974ef | 288865b3b519222370b00cda04ffab96f46b046d | /dd/deal/urls.py | 96efada9c080d2357cb3a4f0720c588ba3262eac | [] | no_license | bcattle/dolores-deals | 9c49daefb83f35eff65262dd14d5756a06eea66f | d45914c9afbeca9dbd655eee5b8ba021b2e07760 | refs/heads/master | 2020-12-24T16:59:28.981973 | 2011-05-08T08:29:47 | 2011-05-08T08:29:47 | 1,445,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('deal.views',
# regex, view fxn, args, label for get_absolute_url()
(r'^(?P<city_slug>[-\w]+)/(?P<neighborhood_slug>[-\w]+)/(?P<deal_slug>[-\w]+)/$',
'show_deal', { 'template_name': 'deal.html' }, 'deal_page'),
(r'^$', 'default_deal'),
) | [
"bryan.cattle@gmail.com"
] | bryan.cattle@gmail.com |
5f8ee58ee1001869ac9653bf17b97fc00ea6d69b | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab09/test_ch09_t01_befor_we_begin.py | deb2a8cafff91ac4cfaf68983409b92dd410c622 | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 384 | py | import unittest
from tests.unit_test_helper.console_test_helper import *
class TestOutput(unittest.TestCase):
def test(self):
temp_globals, temp_locals, content, output = execfile("lab09/ch09_t01_befor_we_begin.py")
expected = """Adam
Alex
Mariah
Martine
Columbus
"""
self.assertEqual(exp... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
9718e68171d7afe465522347a20422bcb1af9242 | cbddd0ee297775b5990c0067e9f665701505cb90 | /code/bak.profile_features.py | 987085b0ac4f91f64c76b1658415c78c9d538760 | [] | no_license | asmelashteka/science_on_twitter | 43d8fff446f5475a7cf87933987df22a942c0e56 | 3fe3ba61f46f25fa3c978a63841a52e5890b5f33 | refs/heads/master | 2021-05-26T13:27:01.136522 | 2013-08-09T09:39:00 | 2013-08-09T09:39:00 | 11,953,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | #! /usr/bin/env python
import sys
import tldextract
def encode(fragment, frequent_pattern):
"""
If fragment is not in frequent_pattern encode as 'other'
"""
fragment = fragment.lower()
if fragment not in frequent_pattern:
return "other"
return fragment
def url_features(url, frequent_domain, fr... | [
"asmelashtk@gmail.com"
] | asmelashtk@gmail.com |
4d1d3948b458789e27ef76eb4a9bb6c27e25e86e | 82ecbdf38f5c07f4c23aca56a188b0b64dfb51c2 | /this pc/os_opening_exploere.py | 6062afc7bea56261151fbe6530f5b6388a2a1239 | [] | no_license | pavi-ninjaac/insta | a7922cf22e7ebad4fea120b7389dcfba57ff365b | cb8d3f53412e11e01d2ca5fe13edb368a88cea76 | refs/heads/master | 2022-05-27T22:36:27.421248 | 2020-04-30T17:32:57 | 2020-04-30T17:32:57 | 260,274,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from subprocess import Popen
password=input("enter your password")
if(password=='pavi'):
Popen('explorer')
else:
print('enter the password correctly')
| [
"noreply@github.com"
] | pavi-ninjaac.noreply@github.com |
8ceb95bec95f8eb8abb7c04384ce7ca03d720ffd | 48faee5b845e43e6c102cb027f43c8b886ecaa5e | /utils/ansible_drive/test/ansibleApi_pbtest.py | 106e2ab5ed5e1582930d2804371155ee451f57a4 | [] | no_license | hornLK/LonedayAdmin | 66c0a8b978967a0144a216f621c872a6d2197229 | 36ba3fe763788423801ad5ab14462624114da804 | refs/heads/master | 2022-12-26T06:57:47.675915 | 2018-05-15T13:08:34 | 2018-05-15T13:08:34 | 131,375,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | import json
from ansible import constants as C
from collections import namedtuple
from ansible.parsing.dataloader import DataLoader
from ansible.vars import VariableManager
from ansible.playbook.play import Play
from ansible.executor.task_queue_manager import TaskQueueManager
from ansible.executor.playbook_executor imp... | [
"bjlkq546449541@gmail.com"
] | bjlkq546449541@gmail.com |
00b43f9c90bf476cee024ae94fea67dc9b7c1ccc | 3240645b228111598d5ff1b8f3ff495576f23bdd | /QtWekaWrapper/vis/VisWidget.py | 1d4723ffa948e413b4f20ea95fbb829c9baaa495 | [
"MIT"
] | permissive | Nicusor97/WekaPythonWrapper | 4c76adc36c1bbb5d8f069f5e2cab7d6b5faf2eb8 | ec791897c140e2f5e02379b1d51a7c34eb839a3d | refs/heads/master | 2022-12-11T10:18:23.973893 | 2018-12-28T22:28:57 | 2018-12-28T22:28:57 | 155,069,275 | 0 | 0 | MIT | 2022-12-08T01:32:34 | 2018-10-28T12:35:36 | Python | UTF-8 | Python | false | false | 1,413 | py |
from PyQt5.QtCore import pyqtSignal, QRectF, QPointF
from PyQt5.QtWidgets import QGraphicsView, QGraphicsScene
from PyQt5.QtGui import QPainter
from data import Relation
from abc import abstractmethod
class VisWidget(QGraphicsView):
plotPaletteChanged = pyqtSignal()
def __init__(self):
super().__ini... | [
"nicolaepicatureanu@gmail.com"
] | nicolaepicatureanu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.