blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07d7a9fbcc3f28e2e965359f30bdd4c646aa5d49 | ce0b0b3bc64b0adc0d3033b8e46e265affb840fe | /models/store.py | 11fb83dea72b54700ac6a9db997dc6670d8bd263 | [] | no_license | IvorryC/store-REST-API | 70a455cb36e50abbfddea84586ebe0e635d0cbcd | c392b50c2a10a219addc53356902206364038802 | refs/heads/master | 2023-03-31T13:26:43.971249 | 2021-04-06T16:52:18 | 2021-04-06T16:52:18 | 353,400,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from db import db
class StoreModel(db.Model):
__tablename__ = 'stores'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
items = db.relationship('ItemModel', lazy='dynamic')
def __init__(self, name):
self.name = name
def json(self):
return {'name':... | [
"79863144+IvorryC@users.noreply.github.com"
] | 79863144+IvorryC@users.noreply.github.com |
a40a4ecba8a0939b655fec9e42d09501ca7c15b8 | 75ea6a8ecdb4ecdc3ba4bb7e5ae4bac050ae2ec0 | /CalFoodNum.py | 721b65171564e70d40f714819859e6373ba617ef | [] | no_license | Jokertion/Automate-the-boring-stuff-with-python | 9a8ffe80fa7ee1a0d1dc8a9d961fa239d54ab172 | ab9c89a0e0325e9e0cf591bf525549aa0ec11336 | refs/heads/master | 2020-03-14T23:29:13.453501 | 2018-08-03T14:17:09 | 2018-08-03T14:17:09 | 131,846,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #计算不同客人带来的食物数量总数
#技能包:嵌套字典的调用
allGuests = {'Alice': {'apples':5, 'pretzes':12},
'Bob': {'ham sandwiches':3, 'apples':2},
'Carol': {'cups':3, 'apple pies':1}}
def totalBrought(guests,item):
numBrought = 0
#遍历guests的键值对,客人名字赋给k,带来的食物赋给v
for k, v in guests.items():
#如果带来的食物在键中,将值赋到numBrought中,如果... | [
"noreply@github.com"
] | noreply@github.com |
c34a56a3b9059e6d0d4b4de947865f0f49f3cb74 | 76db78a7acad70c1b623e2f67fdffda619a82fee | /nn_grad_nh3_batch_flax_val_test.py | 20228e1ccc4b6c3fedd9a4ea78b341a37001a837 | [] | no_license | RodrigoAVargasHdz/ad_nn_grad_reg_opt_jax | fcd9350dc4139e0c47d6e522a18175bab6197d38 | bc3b4670b8903e351f2d47b02a58030ad88e2f6a | refs/heads/master | 2023-05-03T13:28:48.561134 | 2021-05-26T20:27:15 | 2021-05-26T20:27:15 | 369,264,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,541 | py | import os
import argparse
import time
import datetime
import itertools
import numpy.random as onpr
import jax
import jax.numpy as jnp
from jax import jit, vmap, random
from jax import value_and_grad, grad, jacfwd, jacrev
# from jax.experimental import optimizers
from jax.config import config
config.update("jax_debug_... | [
"rvargas@v.cluster.local"
] | rvargas@v.cluster.local |
f66250f2efc426debd99c6fa3183d92c689f2d92 | 50220bca2bb555f4969b84bb494d18744bb7321d | /homework/hw5/bollinger.py | 8a411c2a8586c0290b3ee4dfe9b7d66d4c3716e0 | [] | no_license | afcarl/coursera-compinvesting1 | 83eee4ceaaeecdc772f8eb39d4a2e005a805d662 | 2129d9b7b03d0f6eb1b8dbbce91213b5112795f1 | refs/heads/master | 2020-08-22T15:08:43.140251 | 2017-03-26T18:45:44 | 2017-03-26T18:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | #!/bin/python
import sys
import datetime as dt
import pandas as pd
import numpy as np
import QSTK.qstkutil.qsdateutil as du
import QSTK.qstkutil.DataAccess as da
# Input
# dt_start, dt_end, loopback_days
# Idea
# Keep three dataframes to contain the moving average, moving stddev and
# bollinger values
def fetch_... | [
"brad@beaconhill.com"
] | brad@beaconhill.com |
9974261abc74319703ef35628bb1f321b6e39c26 | 84eaaa07532efbde535a52d29e8180dad357fbdd | /util.py | 60f219c5bbae0c0e7adf694df70663c56ce13229 | [] | no_license | jangwoopark/pacman-search | 3ade9823f2d21b70513d64993f4ce008931b6f4a | 7f88ba9c322b4af81979fef61cead4f19e9b9fdc | refs/heads/master | 2021-08-07T21:19:43.753609 | 2017-11-09T01:12:23 | 2017-11-09T01:12:23 | 110,048,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,222 | py | # util.py
# -------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@cs.berkel... | [
"noreply@github.com"
] | noreply@github.com |
a21a2341e1464df20cbe61e5ff72e72e222b92cc | 6c119f4bd4042672624e39d7fab80d922199f57a | /checkdb.py | fd98610741ef2ec08bac3311ed5adcc70d6eadef | [] | no_license | mkioga/39_python_RollingBack | 29ca1e17c13328611750f7a0fb6b0d4ee0575c72 | 27f0cfa913e35b2bfc34ad9ef54d364e39d06466 | refs/heads/master | 2020-03-27T19:59:51.008116 | 2018-09-01T20:11:08 | 2018-09-01T20:11:08 | 147,029,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,105 | py |
# ===========
# checkdb.py
# ===========
# We will try to get some input from the "history" table in "accounts" database
import sqlite3
db = sqlite3.connect("accounts.sqlite")
for row in db.execute("SELECT * FROM history"):
print(row)
db.close()
# When we run above code, we get this results. This is a tuple ... | [
"mkioga@yahoo.com"
] | mkioga@yahoo.com |
32e6cd3643c1465c51b964a2220dbfde464d0360 | 7c3704db33fbf00d657457f2e380523b1e414ffa | /0.1/src/PyDccLib/avp_time.py | 647470e4c0fa759588c26d1b81a8ffc9f73be095 | [] | no_license | ganmao/Ocs-Test-Suite | 93099e3ecf0a8823734684bb3bc81a9b32175061 | 2e30ae29edb5725bafa075a5654b6d953275804b | refs/heads/master | 2020-06-04T17:07:19.207637 | 2010-12-10T03:06:20 | 2010-12-10T03:06:20 | 578,791 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | #!/usr/bin/evn python
#-*- coding:utf-8 -*-
'''
Created on 2010-10-1
@author: zdl
'''
from avp_octetstring import OctetString
class Time(OctetString):
'''
时间格式是从OctetString AVP基本格式导出的。该字符串必须包含4个八位组,
与NTP时间戳格式的前4个字节格式相同。NTP时间戳在NTP协议规范[RFC2030]
第3章中定义。本格式描述的时间,从通用协调时... | [
"zdl0812@163.com"
] | zdl0812@163.com |
93c1d8871bbceebf7b99803b4d0dd754695de719 | 7051493bec7aa84ee3ec937243d1987193d98b7e | /jphouse/tools/SaveImg.py | 0ec029068ea28749adb5f4ecba75d6895c01e65a | [] | no_license | iqhighest/jphouse | 66927425ef50e53398a678334964743090758802 | 033b3095115efe26f2ba449434d6c021f66534a8 | refs/heads/master | 2021-01-20T10:18:25.062374 | 2017-05-05T07:20:03 | 2017-05-05T07:20:03 | 90,342,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # -*- coding: UTF-8 -*-
import os, urllib, uuid
# 生成一个文件名字符串
def generateFileName():
return str(uuid.uuid1())
# 根据文件名创建文件
def createFileWithFileName(localPath, fileName):
if not os.path.exists(localPath):
os.makedirs(localPath)
totalPath = localPath + '\\' + fileName
if not os.path.exists(to... | [
"steven.zhang@sunupper.com"
] | steven.zhang@sunupper.com |
3860977d2d8cb813df4d0cf26ed29f9e52f423e6 | ab0d188eea448e7a6b045d86ced1ba8b33697ff3 | /rinexXYZStandardization.py | 5df704bd2741bcff9ce315cc93a5d0381dbb49f0 | [] | no_license | zzhmy/RINEX | 1a2b2dad4c24a432602428816abfb701de87dcd0 | 84e0f5dede2e7b3a45cfbe3cb464c7d25d216b79 | refs/heads/master | 2020-12-24T12:29:26.490286 | 2017-02-06T04:59:46 | 2017-02-06T04:59:46 | 72,994,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | # -*- coding:utf-8 -*-
"""
这里用#-*- coding: utf-8 -*-
否则pycharm输出对汉字不支持,会出现乱码
"""
# python 2.7
# by zzh_my@163.com
"""
功能:把RINEX文件头中的XYZ坐标信息进行标准化。
采用TEQC生成的S文件进行RINEX头坐标信息的替换。
"""
import os
import shutil
import glob
import sys
# whether have teqc
print "coding by zzh_my@163.com"
print "2016-01-30\n"
documentSegment=os.... | [
"zzh_my@163.com"
] | zzh_my@163.com |
3c12a3af2f5d134b08f1be7061c5934536e9618a | abd1a1d532b196f72b580f5f45aa0f4f90692416 | /env/bin/symilar | 976367e92deafa0639edc0b775ee3278179dbb25 | [] | no_license | woodi22/RetroPie-DB | c030f1462e44aa1ce422ba2f5dda611845c72f68 | 06b4915c0c63535a55b2860f55064fe81ad21aa1 | refs/heads/main | 2023-01-22T12:10:13.357387 | 2020-12-04T16:26:19 | 2020-12-04T16:26:19 | 317,090,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/Users/isaacwood/Desktop/WebProgrammingFinalProject/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"woodi@moravian.edu"
] | woodi@moravian.edu | |
c4680034e9a9212b2d405cb3a2535216d6714528 | e94e72d81b6d526884ac76af96e1053c0c86d039 | /getpw/db.old.py | ce00699dffe54a0765cbc59e578622f2b35d90b4 | [] | no_license | fengcms/python-learn-demo | b7ba81fb5e9375d70bacd520373e5e204c8f6bc1 | f1509781ee001d5e48a8d24adc298e3e6b083d12 | refs/heads/master | 2023-03-19T02:35:51.919681 | 2022-11-23T09:37:07 | 2022-11-23T09:37:07 | 114,220,375 | 11 | 7 | null | 2023-03-13T21:50:56 | 2017-12-14T07:59:39 | Python | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
##########################################################################
# Name: db.py #
# Author: FungLeo #
# Date: 2017-12-20 ... | [
"web@fengcms.com"
] | web@fengcms.com |
380bc8c1da49f475ada2cd52d147697aadacfd3c | b0e38ce58d77e4f4e5072f64c88697803d5f0806 | /60.0 Fonksiyon sinifi.py | 0e745aae46b5e179206eab2c253d0190f13a0f84 | [] | no_license | fport/feyzli-python | eade1c856cb2eee2e26b3a517fd8ea44f3fbfc05 | e8b60d9ae7fb5c3e84be2c348a3a2df5b606f018 | refs/heads/master | 2022-11-23T07:18:17.695382 | 2020-07-22T11:40:01 | 2020-07-22T11:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def islem(islemAdi):
def toplama(*sayilar):
toplam = 0
for i in sayilar:
toplam += i
return toplam
def carpma(*sayilar):
carpim = 1
for i in sayilar:
carpim*=i
return carpim
def faktoriyelAl(faktoriyelsayi):... | [
"noreply@github.com"
] | noreply@github.com |
444a8b82d9035b67e5b874852d5ab470cd9f7eb7 | abab124bc7ffe34ff95e282a59c4005456a53ee3 | /mysite/urls.py | 9baac2e6c6265f10ccdff8021d63a552242a28d7 | [] | no_license | guyunhua/mysite | b35245aef059f7566838d2524a053a95a1270280 | f3a38fd7ed8ced038d7fa4562eb6704c5281b084 | refs/heads/master | 2023-05-15T09:51:59.765938 | 2021-06-09T11:53:26 | 2021-06-09T11:53:26 | 375,300,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"97099101@qq.com"
] | 97099101@qq.com |
653bb7acba9a368257cf1ea6a0b12134c55742d7 | c659aa4843d7514cf5e6b26c1830ab57cf1e784c | /branch/chrisBranch/novella/novella/wsgi.py | 8f642d5f714bbc400cb6ff9291275e96aa4c4081 | [] | no_license | affanhmalik/novella | 355afdd529d0becb1ef3e47d9aae7b3e4042ed87 | 29a06f2d01e17bea6661056756be60cc91399c5f | refs/heads/master | 2020-05-14T12:08:26.260848 | 2014-07-28T03:29:50 | 2014-07-28T03:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | """
WSGI config for novella project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "novella.settings")
from django.core.w... | [
"cniusfu2013@gmail.com"
] | cniusfu2013@gmail.com |
8369fe1e177a9529548c9c93a67aa894e39be3dc | 6dbbf8cf156cc07929f6af4deafef08feb54d5dc | /ArcGIS_Scripts/describeRasters.py | f0062567dd1892ab17bf0cf5f13f3ebe851249a8 | [] | no_license | sishui198/myGISPythonCode | 03a346c87b0a311a995b503494a9188cbe6888c0 | cb33c442b37d312678ba2ee303945b10e46b855c | refs/heads/master | 2022-02-21T01:44:39.460106 | 2018-05-06T23:59:36 | 2018-05-06T23:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | try:
import arcpy
from arcpy import env
env.workspace = "C:\EsriPress\Python\Data\Exercise09"
raster = "tm.img"
desc = arcpy.Describe(raster)
print "Raster baseName is: " + desc.basename
print "Raster dataType is: {0}".format(desc.dataType)
print "Raster fileExtension is: {0}".fo... | [
"noreply@github.com"
] | noreply@github.com |
d420974adf0a6be10681461db969d12898692087 | f4127951720368c12704020e4b54eb434c073528 | /HumanVsCom.py | f40059b2c19f2b830cf5f1a6b6482b58448133d7 | [] | no_license | Nayanikag/TicTacToe | 985188b35463bca43f790de19116ba5fe57234b6 | 9d266c7bfb3aa8618a34e7ad179720efe3c835df | refs/heads/main | 2023-02-09T16:01:09.524888 | 2020-12-28T16:45:34 | 2020-12-28T16:45:34 | 325,062,803 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | '''
-----------------------Authors-------------------------
Nayanika Ghosh - 4191 4976
Disha Nayar - 6199 1035
-------------------------------------------------------
'''
import numpy as np
import pickle
class PlayHumanvsCom():
def __init__(self):
self.play()
def predict_... | [
"noreply@github.com"
] | noreply@github.com |
6f310fb4021e58a16a26e9b61fa33bb68a69b23b | e1091df0ce19a786924ac176a8a7ad158c0ff898 | /datascrape/wk5XMLassignment.py | bd69745590b800a81e49d2c0432a475f8f73d808 | [] | no_license | tanupat92/learnComsci | 4c9a8201f07da80e92eb6f6ad54b3d461926f18a | de1cbe5ac63cf46fc3b953011eb4582f31f01871 | refs/heads/master | 2021-12-14T02:13:16.219495 | 2021-12-11T05:10:25 | 2021-12-11T05:10:25 | 235,941,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 15 12:03:21 2020
@author: tanupatsurface
"""
#http://py4e-data.dr-chuck.net/comments_372615.xml
import urllib.request, urllib.parse, urllib.error
import xml.etree.ElementTree as ET
url = input('Enter location: ')
data = urllib.request.urlopen(url).read()
tree = ET.fro... | [
"tanupat92@gmail.com"
] | tanupat92@gmail.com |
93a32431b1829ea2c4c0c45bf3d687cd85aa98b1 | de470351e95007d24430955b68431c55319488a3 | /Old/behav_gaze_df_transinf.py | a4dfaf13098f6db5ddef525cdec5ad04552d7fc6 | [] | no_license | marthabawn/EyeTracking | 31ea2cfa94913636c82fd76ddacc12deb2690787 | d96a53e1c53dcf81be9d14070deada889000c2eb | refs/heads/master | 2021-01-23T11:54:34.238569 | 2015-06-05T00:32:29 | 2015-06-05T00:32:29 | 30,372,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | import numpy as np
import pandas as pd
import glob
import os
dict_practice = {1: 'IneqEq0', 2: 'IneqEq0'}
#You need to text files that have a list of the conditions each trial corresponds to
dict_setA = {}
with open("Dictionaries/trans_setA_list.txt", 'r') as setA_list:
for line in setA_list:
(key, val) =... | [
"martha.bawn@berkeley.edu"
] | martha.bawn@berkeley.edu |
646d95c185fca0a27dada15c7b6529fcfe5624e7 | 96cdc5b05fdcd534f7c50051d87f07e7d5d3eeca | /treehouse/dashboard/migrations/0001_initial.py | b5a291cd85bc7da06785556e1b50331cfec90bb9 | [] | no_license | zhm12359/fam_tree | ca8cde69b9f0329a07f01d7a5428b300ff63ed7f | d532ae715ebaa338dd9d04b3844772867a1a6339 | refs/heads/master | 2022-12-28T11:55:25.954308 | 2020-06-05T18:20:31 | 2020-06-05T18:20:31 | 116,883,868 | 0 | 0 | null | 2022-05-25T00:25:38 | 2018-01-09T23:45:26 | Python | UTF-8 | Python | false | false | 809 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-14 03:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',... | [
"hz926@nyu.edu"
] | hz926@nyu.edu |
4ae8db22431c5e07ecd077901741065e803ae3f1 | 96f3bfdc79d64869a627f52edbbb227cb5bc10b8 | /venv/bin/pip | f6be3a7cd28627775c3f09ea0fa180298e94e2e7 | [] | no_license | jwndhonoferry/testPySpark | 9330c911502c7dd5edcf124bf2391ec8811f2895 | 0f696595effc6a6bfdf4d38720a0a297d407bd10 | refs/heads/master | 2023-03-23T07:17:24.900233 | 2021-03-17T09:12:15 | 2021-03-17T09:12:15 | 331,209,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/jwndhono/PycharmProjects/testPySpark/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ferryjwndhono@gmail.com"
] | ferryjwndhono@gmail.com | |
8da30b113987bded98b34ce10e865f20b739abae | 771ee6b116368503106729025c72c333aa5752e3 | /shopys/apps/catalog/migrations/0001_initial.py | 5876ebef2b4c2ed65c82bda6d309467ce9b1bd66 | [] | no_license | zhaolikuns/shopsys | 732e501806e33c0922d913c3255fd1bb4bfbfa32 | ec8d2490d5b0b32b172040358532d06b6fddc6c7 | refs/heads/master | 2021-03-16T05:07:09.014705 | 2017-05-21T13:04:00 | 2017-05-21T13:04:00 | 91,534,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-18 05:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Catego... | [
"355149444@qq.com"
] | 355149444@qq.com |
3691083811d7321c87cdbb05e8c670f027fec3f9 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /test/functional/p2p_segwit.py | ceccca331b56c3e9dca0b314718090ac21ff9ef9 | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 100,563 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2020 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test segwit transactions and blocks on P2P network."""
from decimal import Decimal
import math
import r... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
071cd8751ab4d3c34048353a7eaa7e15171d75b1 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Facebook/Actions/Fitness/Walks/UpdateWalk.py | 493e93d6dc4ff63b1d782b571214053924414cfc | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# UpdateWalk
# Updates an existing walk action.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temb... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
609329789cfd420c62d86257a45a1e058b0604ad | cf8762eaeaf9b7f5fb0c7e5ef2b3c91c2543064a | /pages/recall_article_page.py | 8eca901a5773491a157cbe36000cdb8eb6cc1f6c | [] | no_license | metheuspsc/ca-test-automation | 7357de166555a4fea1753b444e5a3743599ff181 | 17936cf3008325bcaba7e3f1a1ff951f4218e378 | refs/heads/master | 2023-08-07T12:53:36.666330 | 2021-09-28T03:56:16 | 2021-09-28T03:56:16 | 409,317,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | from selenium.webdriver.common.by import By
from pages.base_page import BasePage
class RecallArticlePage(BasePage):
"""Assumption: locators are inside the methods to simplify"""
@property
def expected_twitter_share_url(self):
return f"{'https://twitter.com/intent/tweet/?'}text={self.get_title()}... | [
"matheuspsc@gmail.com"
] | matheuspsc@gmail.com |
7e95c4afa11a45fa01dc3edc9be96d2534ed7689 | b1b35e2d2ba2c3fdda94a0680a06ca0f71595a4e | /app/test/data/message/bitdiff.py | f6528d4abbca03674bd202df465c81c42f906684 | [] | no_license | GriffinSchneider/Steganopodous | 86857a0dba62a2ce0acbef232a9e95267693bab8 | 444594e6cc8eff78dded636c5f547e3296d8247d | refs/heads/master | 2016-09-06T02:42:35.692669 | 2012-04-17T19:14:51 | 2012-04-17T19:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | #!/usr/bin/env python
from bitstream import BitStream
import sys
def compare(file1, file2):
stream1 = BitStream(file1)
stream2 = BitStream(file2)
n_same = 0
n_different = 0
for bit1, bit2 in zip(stream1, stream2):
if (bit1 is None or bit2 is None):
break
if bit1 == bit2:
n_same... | [
"souvey@ccs.neu.edu"
] | souvey@ccs.neu.edu |
10a74a89df0e005033f9a0040c90b46da278a520 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/member_entitlement_management/v4_1/models/user_entitlement_operation_reference.py | 0e8a8c4903319844a6245687d671b999ccabee76 | [
"MIT"
] | permissive | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
225b6d5941ba617b3affab3562256f853598178b | c15a28ae62eb94dbf3ed13e2065195e572a9988e | /Cook book/src/9/defining_a_decorator_with_user_adjustable_attributes/example2.py | 36d1bb206aabac56e5e7fba7acecdad70229e638 | [] | no_license | xuyuchends1/python | 10798c92840a1a59d50f5dc5738b2881e65f7865 | 545d950a3d2fee799902658e8133e3692939496b | refs/heads/master | 2021-01-25T07:07:04.812140 | 2020-02-28T09:25:15 | 2020-02-28T09:25:15 | 93,647,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | # Alternate formulation using function attributes directly
from functools import wraps
import logging
def logged(level, name=None, message=None):
'''
Add logging to a function. level is the logging
level, name is the logger name, and message is the
log message. If name and message aren't specified,... | [
"xuyuchends@163.com"
] | xuyuchends@163.com |
cdae4d6eaf780f684ddda35f11ba8dc2ccd4d274 | 2173932d81796dc1ebc9c206a663d5d37e0c037b | /lab2/lab2.py | 997fbe4eb6cc49482bfc84d7bc62f9d8476ba25d | [] | no_license | filipprasalek/mops | 8ac4ddcdd27760bdf6dca158fe5045411f4c15bd | 3bf85e6daa2b250fff2c9000f562084ae0d2a7a5 | refs/heads/master | 2020-05-02T01:33:09.485713 | 2019-04-19T21:06:05 | 2019-04-19T21:06:05 | 177,687,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt
from matplotlib import cm
def is_border(i, j, area_size):
return i == 0 or i == area_size - 1 or j == 0 or j == area_size - 1
def is_heater(i, j, area_size, ... | [
"filip.prasalek@sabre.com"
] | filip.prasalek@sabre.com |
488f782a5d0a2f5fbf2d8e648a04610e918919a7 | 16dcdbb5e2589ce8bd0bfe52b3bd9cdc5c7190b6 | /polls/views.py | 13f02ddf3068d5912d57282934741fa06294be79 | [] | no_license | bstem/EIATool | d2ef68434c2ad0692cfd4ac008fb97031ce6ad95 | be1d7cc455e6088f57c9e7f75badf9e703f07b21 | refs/heads/master | 2021-01-19T12:30:42.082621 | 2017-02-23T22:35:14 | 2017-02-23T22:35:14 | 82,317,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from django.utils import timezone
from django.views import generic
from .models import Question, Choice
class IndexView(generic.ListView):
template_name = 'polls/index... | [
"CEntzminger@bstem.biz"
] | CEntzminger@bstem.biz |
e1135b626e8b2a874b38079c63bf35c3d5d17c8e | 739e20c1c526c066be0b3248c12bc05c6e57653c | /ibscrubgui.py | df2d12123398599af3dbdbd0f375f9abab94a31f | [] | no_license | betmit324/ib_report | d44eafb8837b2bc07eab4f8805194a3f9cd65c6e | 8de0306f9639e3b231cbf651c230a9091de5a723 | refs/heads/master | 2021-01-11T16:42:55.977376 | 2018-02-27T15:50:00 | 2018-02-27T15:50:00 | 80,143,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,551 | py | import tkinter
from tkinter import ttk
from tkinter.filedialog import askdirectory
import os
import os.path
import time
import ib
import sys
import threading
class StdoutRedirector(object):
def __init__(self,text_widget):
self.text_space = text_widget
def write(self,string):
self.text_space.i... | [
"betmit324@gmail.com"
] | betmit324@gmail.com |
49a988bfd6d2afbbbf60fd6596b72b40d5ceae43 | d27f38f666942e07446c0a2dba546652c16b80e3 | /app/routes.py | 341ef2a0327266dd8d8e3320174299a88b60ccc5 | [] | no_license | johnieje/switcha | 4da3238bb3af43670f09bbc563f821e5a4044302 | 6a46f7e7fa832af6c492d3dff0ce10b592e1e8f0 | refs/heads/master | 2022-04-19T07:32:56.209503 | 2020-04-18T12:16:26 | 2020-04-18T12:16:26 | 256,761,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | from flask import render_template, flash, redirect, url_for, request
from app import app, db
from app.switches import Switch
from app.forms import LoginForm, RegistrationForm
from flask_login import current_user, login_user, logout_user, login_required
from app.models import User
from werkzeug.urls import url_parse
@a... | [
"johnieje@yahoo.com"
] | johnieje@yahoo.com |
a2635ca00b66a4ad203a975c8ff1cd9f28207c6b | 6c26d154b4a216c2f3a84891383a8d18299c527f | /NXHello/NXWebserver/NXWebserver.py | ef68321d09381ae215793c6c7e53dd281655bd4d | [] | no_license | htonal/NXHello | 6b03df95737bc55af526ed3f47cd0b12b11b0b31 | 7b4545e4f811136abd1e0efc29d17c0567de2ccb | refs/heads/master | 2020-05-24T16:37:35.921873 | 2019-05-18T13:49:42 | 2019-05-18T13:49:42 | 183,691,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | # -*- coding: utf-8 -*-
# Copyright 2019 TONAL SYSTEM
# 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... | [
"info@tonal.fr"
] | info@tonal.fr |
04615ee4d3c0ae9fc7d72354e454938c68ec91bb | 7a7e560d4aecf4fd57bdcd8648d0ed9e1077c640 | /test03/test04.py | a7e1a7725e600a296c618d66b33cea7a98357e22 | [] | no_license | programmingkids/python-test-level2 | 8b8168306b27b9659d8991086d1e62a545917c3d | 1a4b983a1f615275ab3dd2e89d42b0916cf7c848 | refs/heads/master | 2022-11-21T15:35:15.883339 | 2020-07-20T09:54:01 | 2020-07-20T09:54:01 | 281,015,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | # 実行結果
# 66
data = [12,15,25,11,14,18,22]
| [
"ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal"
] | ec2-user@ip-172-31-11-152.ap-northeast-1.compute.internal |
77c26d3223480b1ecc5baddd9d23d61fb4fd4509 | 0c176cbc9e0965f89e60b410c8413519d291f51d | /__init__.py | cc0674ca22643c6b993a0879c528718dd15f286c | [] | no_license | henridbr/henridbr-my_family_tree | 353b01af5d3152c1778775b4c262d3c17c6347bf | 727339dc710be79deaab56f5f8eb8c52d8fb4522 | refs/heads/master | 2022-08-01T10:22:52.663316 | 2020-05-25T19:17:56 | 2020-05-25T19:17:56 | 152,764,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | # Copyright 2016 Mycroft AI, Inc.
#
# This file is part of Mycroft Core.
#
# Mycroft Core is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | [
"noreply@github.com"
] | noreply@github.com |
22785d6ec49c706671469a0abffb4c131635c47f | 599bcf2ee1ddfbd8f7057c9ec7c428db11bfc072 | /mainapp/migrations/0006_remove_order_order_data.py | 5bbbbf624a7ad10de7d964ab99a206aa97dde389 | [] | no_license | Tr0612/athinath | 4561e939573ba24c3a014a84884f1387d57e7441 | 760dc244d877c4dfda24de16d08a38c20c5bdbbc | refs/heads/master | 2023-02-23T12:53:46.195529 | 2021-01-28T07:36:23 | 2021-01-28T07:36:23 | 333,438,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Generated by Django 3.1.4 on 2020-12-25 13:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0005_carousel'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='order_data',
),
]... | [
"Ghost0612@users.noreply.github.com"
] | Ghost0612@users.noreply.github.com |
54534400b18c5e41880fb6c91712b0accbd4e658 | ce3dd61cb00be3ab3b007ccc572e15ebc4624939 | /itch_factory.py | 07ff3c6ca67486be0f68e78b602a0f96c6ef2bef | [
"MIT"
] | permissive | Shutong-Song/nasdaq-ITCH-5.0-parser | 6a8bd704bf8928648490abf3b1a79015ec0ec1d2 | 5fef246625ebd1af6ed073cf37120fef61ca49a2 | refs/heads/master | 2023-03-09T05:01:47.180999 | 2021-03-01T03:00:58 | 2021-03-01T03:00:58 | 181,784,743 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,414 | py | import struct
def system_event_message(msg):
#system event message format (total 5 variables)
#including: message type("S"), stock locate, tracking number, timestamp, event code,
val = struct.unpack('!HH6sc',msg)
val = list(val);
if len(val) == 4:
return val
else:
return []
def... | [
"simonsong004@gmail.com"
] | simonsong004@gmail.com |
9f0657298cc0520dbbf6f88dd654749d22acc7d9 | 88b0f614c91af8c00c2a132157cfd665dded48b1 | /python/api/disqus_posts.py | d8442b2866356e8917fae38c0fcf517203e7088f | [] | no_license | lemurproject/clueweb12pp-core | 74567939fd3066dbb461de106336ed513d2d6c7e | 3f083e71838c9c3c7067d5ec137592b852d912a0 | refs/heads/master | 2016-09-05T10:15:57.081189 | 2013-08-20T17:51:35 | 2013-08-20T17:51:35 | 10,918,647 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | '''
Diqus posts download
'''
import argparse
import gzip
import json
import sys
import time
import traceback
from disqusapi import DisqusAPI, Paginator, APIError
FAILED_IDS = 'disqus_failed_posts.txt'
FAILED_IDS_HANDLE = open(FAILED_IDS, 'a+')
def load_downloaded_ids(downloaded):
downloaded_ids = set()
with open(... | [
"shriphanip@gmail.com"
] | shriphanip@gmail.com |
ae67f1d6bb50b24ac15c333c79ab4b25c82918c0 | 41ddf80398589255c1de3316667505802aadbdcb | /Week 7 Assignment.py | 5bc60bb9fbde5558b4b287a3e450fcc77a82bdce | [] | no_license | Khaninder/Data-Viz | a6fa764230684c7432184783e0a818cc337863ae | fabc6f8bdb5cf5e960390db871f6127b4e64c609 | refs/heads/master | 2022-04-17T18:30:34.195839 | 2020-04-10T01:10:50 | 2020-04-10T01:10:50 | 250,364,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,776 | py | #!/usr/bin/env python
# coding: utf-8
# In[23]:
import numpy as np
import pandas as pd
# In[10]:
import matplotlib.pyplot as plt
# In[19]:
get_ipython().run_line_magic('matplotlib', 'inline')
plt.style.use('seaborn-whitegrid')
X = [590,540,740,130,810,300,320,230,470,620,770,250]
Y = [32,36,39,52,61,72,77,75... | [
"noreply@github.com"
] | noreply@github.com |
dbd5cecff92cba1fcf35215102752961f33b4718 | ce74ed4ad6834168b81d6ec5e53c80935f247fe1 | /python-wrapper/normalizer.py | 260c4e083f822c223ff64a447d4b415a33455417 | [] | no_license | chenghuige/melt | 6b6984243c71a85ec343cfaa67a66e3d1b48c180 | d2646ffe84eabab464b4bef6b31d218abdbf6ce5 | refs/heads/master | 2021-01-25T16:46:57.567890 | 2017-08-26T04:30:13 | 2017-08-26T04:30:13 | 101,304,210 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | import os
import sys
import glob
from pyplusplus import module_builder
root = '/home/users/chenghuige/rsc/'
name = 'normalizer'
#define_symbols = ['GCCXML','PYTHON_WRAPPER','NO_BAIDU_DEP']
define_symbols = ['GCCXML','PYTHON_WRAPPER']
files = [
'./gezi.include.python/common_... | [
"chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97"
] | chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97 |
78f471f0902f14f995748f3ef4ffec01dceac880 | 44befe00cc663d36556876a336f583e17d6c4d24 | /python_review/2_max_in_list_2.py | 5c82d61616761aa477dd399b287f21b5644e6211 | [] | no_license | HannahYH/Python | 3d636a7cfdc399bafadf26b27972184f7a428a32 | fdca2f2f141856d9f7384e7de5ad050104bb8975 | refs/heads/master | 2020-03-27T15:49:39.462251 | 2019-12-11T09:18:11 | 2019-12-11T09:18:11 | 146,742,129 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from random import seed, randint
# Prompts the user for a seed for the random number generator,
# and for a strictly positive number, nb_of_elements.
arg_for_seed = input('Input a seed for the random number generator: ')
try:
arg_for_seed = int(arg_for_seed)
except ValueError:
print('Input is not an integer, ... | [
"noreply@github.com"
] | noreply@github.com |
2df3f8b7738ac707606738926f6e0f3cb24f0154 | 4fc1d1097ac124d0dcbb9c1e574efec5c38105d8 | /staff/migrations/0001_initial.py | 90b968534d808291b151eba7b45cc526e3b91f5a | [] | no_license | lilianwaweru/management | 077d3261e1f8bd5d6c84a0b40edd28249410279f | e71bd0b67266ca8715605574e52c81137a66eaeb | refs/heads/master | 2020-12-23T14:09:49.630171 | 2020-03-02T12:34:06 | 2020-03-02T12:34:06 | 237,173,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | # Generated by Django 3.0.3 on 2020-03-02 11:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Work',
fields=[
('id', models.AutoField(aut... | [
"lilowesh.lw@gmail.com"
] | lilowesh.lw@gmail.com |
cabe6d29493ca641fcbe6e51d90fbb4d94f131c4 | a0062e2432c7ca908460ae59d3666f1c5c03fec7 | /20200805/Problema5.py | 5deb76957142c01a93aee84696201cd8906d8ee7 | [] | no_license | jonasmzsouza/fiap-tdsr-ctup | e9df6333c5407a8b4937e490b301e821d1f6f89e | 79fae7348a871951368368a8a126b00c22b709ca | refs/heads/master | 2022-12-29T04:17:01.182706 | 2020-10-19T15:32:00 | 2020-10-19T15:32:00 | 248,126,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # Lista.pdf
# Problema 5
# Crie uma função em Python que recebe uma lista contendo números inteiros
# e aumente todos os valores da lista em uma unidade.
def aumenta(lista):
i = 0
while i < len(lista):
lista[i] = lista[i] + 1
i = i + 1
listaTeste = [1, 3, 6, 9, 12, 15, 18, 21]
aumenta(listaTe... | [
"ev.jonasmuniz@gmail.com"
] | ev.jonasmuniz@gmail.com |
0e5c2f08572df65160cf0040294875735675b65c | ce78a21f86faf0b9783b4cbc1df1fc562e80a2d8 | /Public/problem/D1/2070.큰놈,작은놈,같은놈.py | 94f01b7703da6229722d2d9bd4b809bf0e98293d | [] | no_license | jongjunpark/TIL | 18961c6518f78c8e3d80677f39caf32c727c5beb | 28f4d83e28851aac2dee4e77321543f1c811cc83 | refs/heads/master | 2023-03-17T01:45:51.867005 | 2022-10-31T10:44:05 | 2022-10-31T10:44:05 | 245,943,735 | 1 | 0 | null | 2023-03-05T17:15:39 | 2020-03-09T04:28:06 | Python | UTF-8 | Python | false | false | 260 | py | T = int(input())
for t in range(1,T+1):
numbers = list(map(int,input().split()))
if numbers[0] > numbers[1]:
print("#{} >".format(t))
elif numbers[0] == numbers[1]:
print("#{} =".format(t))
else:
print("#{} <".format(t)) | [
"poiufgin7373@naver.com"
] | poiufgin7373@naver.com |
f81be5ea05f4ea49f85bd863cbbd7e280fde0fa5 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part6-import-webdata/No06-Performing-HTTP-requests-in-Python-using-requests.py | e58c16b5e4fa92f0aab1b600c1952cfbd1c58eaa | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,423 | py | #Performing HTTP requests in Python using requests
'''
Now that you've got your head and hands around makin
g HTTP requests using the urllib package, you're going to figure out how to do the same using the higher-level requests library. You'll once again be pinging DataCamp servers for their "http://www.datacamp.com/te... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
bfd1700ad0198fea64886e0f2aa06687748976c6 | 4979df3343d7b99a9a826bd1cb946ae79fac260c | /tests/test_runner.py | 1ecd57ab36aa321d2148d96008b681ff168fcb63 | [
"BSD-3-Clause"
] | permissive | e-calder/enaml | 753ff329fb8a2192bddbe7166581ed530fb270be | 8f02a3c1a80c0a6930508551c7de1d345095173d | refs/heads/master | 2021-07-30T01:18:29.222672 | 2021-07-27T08:51:50 | 2021-07-27T08:51:50 | 206,089,494 | 0 | 0 | NOASSERTION | 2019-09-03T13:52:44 | 2019-09-03T13:52:44 | null | UTF-8 | Python | false | false | 673 | py | import os
import sys
import pytest
from utils import enaml_run
from enaml.application import Application, deferred_call
from enaml.runner import main
@pytest.fixture
def sys_argv():
""" Fixture that saves sys.argv and restores it after the test completes
"""
argv = sys.argv
try:
yield
fi... | [
"marul@laposte.net"
] | marul@laposte.net |
717c5b17513db524f9ab0c73cc8613c5a5a67ba3 | 7241757441c6ce1c51eef3860cd540d1c3cddf77 | /find.py | 4c9736c81f87a7ed290cc7ee8c0d01da71267f3e | [] | no_license | deepikagithub1994/program_files | 69ce130e934455ff10e6f268206cdb35aca87311 | 69ba23cedaca388339d2b27a846de23de56743a4 | refs/heads/master | 2020-05-18T20:11:53.380820 | 2019-05-02T17:54:34 | 2019-05-02T17:54:34 | 184,625,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | str1="python is a programming language"
index=str1.find("is")
print(index)
str2=str1[index:index+len(str1)]
print(str2)
| [
"noreply@github.com"
] | noreply@github.com |
e328cc4ddbb881174b91f93521be7d3e5d87ce0a | 15b7a9708d6fb6f9ae5ac55830f996c629468910 | /ch06/Ex6_16.py | 686602d686c015c0a9a4d929a1940e73303da2f7 | [] | no_license | Anancha/Python_Bible | 81dfab4ebe7f74c46615403cbd8a37b714b84df1 | d9569abf2ad60393289fcec22b81340a19e28601 | refs/heads/main | 2023-09-03T00:52:58.249183 | 2021-11-12T07:57:56 | 2021-11-12T07:57:56 | 415,224,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | shape_tuple1 = ("square","circle","triangle","rectangle","star")
shape_tuple2 = ("heart","oval")
print("shape_tuple1 = ",shape_tuple1)
print("shape_tuple2 = ",shape_tuple2)
length = len(shape_tuple1)
print("shape_tuple1 = ",length)
print("shape_tuple1[0] = ",shape_tuple1[0])
print("shape_tuple1[4] = ",shape_... | [
"noreply@github.com"
] | noreply@github.com |
3ff2044658927d488ab1501d7253b80a1b4ac237 | 7e511e84c0ae1fce2a21f416fd5dfe4d124911ca | /Tamisha_Damas/eCommerce/src/checkout/views.py | 80654ce4219489412dd7379372f0c67539c7e34c | [] | no_license | Tdamas/python_september_2017 | e101e5c9070dbdba2435c1ab2ccc3ab6a2667e66 | 19ee532cb605de810a50d3c20568e7f22ac7333b | refs/heads/master | 2021-09-04T06:13:08.824093 | 2018-01-16T16:03:02 | 2018-01-16T16:03:02 | 102,656,286 | 0 | 0 | null | 2017-09-06T20:41:22 | 2017-09-06T20:41:22 | null | UTF-8 | Python | false | false | 319 | py | from django.contrib.auth.decorators import login_required
# -*- coding: utf-8 -*-
# from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
@login_required
def checkout(request):
context = {}
template = 'checkout.html'
return render(request,template,context)
| [
"tamishadamas@Tamishas-MacBook-Pro-2.local"
] | tamishadamas@Tamishas-MacBook-Pro-2.local |
571485bef085f2d83b9c9c91455f355903534501 | 599b057114525fb2d5f5cca59fea4299eebe92bc | /code/Test/第一次训练/A/src/rebuild.py | ab06c3c725683a2f13fb7ea7826da9109939fe50 | [
"MIT"
] | permissive | BYOUINZAKA/MCM2020 | f9b690dbb20fc32f7506f4319ec66b3477c1d9df | 62b71059524d10dff3b80100db608a86a4bb6d9a | refs/heads/master | 2022-12-03T04:25:21.734420 | 2020-08-07T00:33:37 | 2020-08-07T00:33:37 | 283,980,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from pandas import read_csv
from scipy import interpolate
def setAx(ax):
ax.set_xlim(-256, 256)
ax.set_ylim(-256, 256)
ax.set_zlim(0, 100)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
ax = A... | [
"2606675531@qq.com"
] | 2606675531@qq.com |
fb8c703506380ca2d705c4bcfc8f8db05c33c5b4 | f79fd39560a1be43bc47b4460ffdc7f57c8d2e2f | /wk1-ex67.py | 62b9a8b57bd279eeaba3ef8bc79f18ba1e8f6e42 | [] | no_license | dmr282/python_4_neteng | f7894e9393c653fac1871f59de0dae86ca73e5dd | 1818060a17019b283397094b71679da0110e061c | refs/heads/master | 2020-03-28T21:15:14.874527 | 2018-09-18T14:57:24 | 2018-09-18T14:57:24 | 149,141,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import yaml, json
for i in range(4):
print i
my_list = []
a = 0
b = 0
i = my_list
my_dict = {a: '1', b: '2'}
my_list.append(my_dict)
with open("some_file.yml", "w") as f:
f.write(yaml.dump(my_list, default_flow_style=False))
with open("some_file2.yml", "w") as f2:
f2.write(json.dumps(my_list))
| [
"dmr282@cornell.edu"
] | dmr282@cornell.edu |
84d30739ba48f488394835d53e76120ec6c08546 | c89b0511ce12c06e4cbfe28279a19314e042e783 | /scripts/chainer/train_utils.py | 0277bbd9b9ceefaaeef2197fe6cb923f062ba2b6 | [] | no_license | mizmizo/fcn_detector | 072fdb5d6c40c65ea3f4abbf36300d15779ea695 | 0a96b3811a0a3ae5f25f4dc1b733e5cc928b7117 | refs/heads/master | 2021-01-01T13:35:18.930162 | 2017-10-10T14:54:22 | 2017-10-10T14:54:22 | 97,581,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,095 | py | #!/usr/bin/env python
import copy
import numpy as np
import chainer
from chainer.datasets import TransformDataset
from chainer.optimizer import WeightDecay
from chainer import serializers
from chainer import training
from chainer.training import extensions
from chainer.training import triggers
from chainercv.extensi... | [
"mizohana@jsk.imi.i.u-tokyo.ac.jp"
] | mizohana@jsk.imi.i.u-tokyo.ac.jp |
f1de0d7e87d247c0c994bacd5314c93f2f12f719 | 62f00da4edbf48f5198d14c2a8333b648cfb5dfc | /expedientes/services/misExpedientes.py | b02687f13b94bddf9c5b8ed53d5c2739b23a5135 | [] | no_license | sergiomaciel/juzgadosonline | 31d26ea42f3d2e5dcb5aaa931636ac2976ac7a0c | eb4ae8298410c4c3fcf04ed71f7f560a8eb200d3 | refs/heads/master | 2022-12-10T19:55:16.857326 | 2019-06-30T21:17:00 | 2019-06-30T21:17:00 | 189,388,673 | 0 | 0 | null | 2022-12-08T05:48:06 | 2019-05-30T09:51:11 | JavaScript | UTF-8 | Python | false | false | 2,387 | py | import sys
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth.models import User
from datetime import datetime
from expedientes.models import Expediente, Actualizacion
from juzgados.services import juzgadoService
class MisExpediente():
def __init__(self, user:User):
self.user = us... | [
"dario.maciel.91@gmail.com"
] | dario.maciel.91@gmail.com |
e339f0c761d6c2bb7b67070fb36681d99eeb199e | 70d9bc1d92614e2bfed537dbad1c2f13f1b154bb | /p3.py | f03270ea4183594dd1335f883fe1594b4c027885 | [] | no_license | victorotazu/euler-problems | 5a6ec55ce1604a0ec905081b8b98432220f4baea | 6fdb86b584c97efc33f1d152b0bdc823c08f1233 | refs/heads/master | 2020-04-20T16:07:10.396831 | 2019-02-03T22:15:39 | 2019-02-03T22:15:39 | 168,949,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # The prime factors of 13195 are 5, 7, 13 and 29.
# What is the largest prime factor of the number 600851475143 ?
def get_factors(number):
r = range(2,number)
seq = []
index = 0
dividend = number
while index < len(r) and int(dividend/r[index]) > 0:
if dividend % r[index] == 0:
... | [
"votazu.estrada@gmail.com"
] | votazu.estrada@gmail.com |
22900498c115119817f07e69930809a02c0285ec | a0698cf30d33e629a214850564a60dabd70f071b | /Module_system 1.166/ID_troops.py | c477bfe68e2a15fd06f8dc093c2c5e0204040e82 | [] | no_license | OmerTheGreat/Kader-Mini | 89c3feca100c827d48a36c1a5be31b62971ffbb0 | 75a8b5adde14dd72df1dc067deaa576dd3b3e4ac | refs/heads/master | 2020-12-25T06:04:57.267606 | 2016-07-11T19:26:05 | 2016-07-11T19:26:05 | 63,090,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,428 | py | trp_player = 0
trp_multiplayer_profile_troop_male = 1
trp_multiplayer_profile_troop_female = 2
trp_temp_troop = 3
trp_find_item_cheat = 4
trp_random_town_sequence = 5
trp_tournament_participants = 6
trp_tutorial_maceman = 7
trp_tutorial_archer = 8
trp_tutorial_swordsman = 9
trp_novice_fighter = 10
trp_regula... | [
"noreply@github.com"
] | noreply@github.com |
5dcbe0033160dc757a948a5698293f07cbd725b4 | f0485eab61a2f11325cb4369db1d6ba5b681d670 | /cnn.py | 6f3a375c46bd044d0b6bcd6490c0840f83bdba25 | [] | no_license | dalilareis/Python-neural-networks | 8c6d48fe8a04dd33f6e78e490e1e98f14b8a2f63 | c515f774743d9e5c37b71ffa2eb27611596f74ce | refs/heads/master | 2020-04-16T00:05:31.422674 | 2019-01-10T20:16:30 | 2019-01-10T20:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,877 | py | import numpy as np
#from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.utils import np_utils
from keras import backend as K
K.set_image_dim_ordering('th') #pode ser 'th' ou 'tf'
impo... | [
"39201180+dalilareis@users.noreply.github.com"
] | 39201180+dalilareis@users.noreply.github.com |
3b58eb9af84d7927459d07e03208d9b68d128309 | 5fb848b4e4b590796388ff9ae323bc29ee17ac05 | /reviews/management/commands/seed_reviews.py | 5d9a7838a40c8793c5c9c4dd756b454cddd755a0 | [] | no_license | rodom1018/airbnb-clone | 3b6d775498de87dd8094582f2731ca9b1b83b6bb | 26052dc1765789d191bc4ff0384ad2e5e5c26717 | refs/heads/master | 2023-03-06T21:12:19.996304 | 2021-02-24T16:39:06 | 2021-02-24T16:39:06 | 337,055,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import random
from django.core.management.base import BaseCommand
from django_seed import Seed
from reviews import models as review_models
from users import models as user_models
from rooms import models as room_models
class Command(BaseCommand):
help = "This command creates reviews"
def add_arguments(self,... | [
"enjoying1018@naver.com"
] | enjoying1018@naver.com |
699eda9c9fa27436875646f3e48e3a68b554030c | 94923becbb06260e3cd35dde46c3d1688c9f7feb | /wargames/pwnablekr/rookiss/alloca/win.py | b41641d53ba295cd19ff532a9f6708165421a956 | [
"MIT"
] | permissive | infernalheaven/examples | b1826d521b04ea5bf55c7c2b5a6cc620df59cfe9 | a3a3bfe2a7b9addea94396f21b73252c3bd56d49 | refs/heads/master | 2021-01-11T10:58:10.794931 | 2016-10-05T22:56:39 | 2016-10-05T22:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
host = 'pwnable.kr'
user = 'alloca'
password = 'guest'
binary = '/home/%s/%s' % (user,user)
chal = os.path.basename(binary)
shell = ssh(host=host, user=user, password=password, port=2222)
if not os.path.exists(chal):
shell.downl... | [
"riggle@google.com"
] | riggle@google.com |
c15923ef08c23fec06aafb4dd94a9314347fde9e | 3f227bd7695f9e8939d8a60cc087be8145b2d8c4 | /Bruning/login.py | 5c84a8e9c0c25ec5135b4d526eaa186ee700dd0e | [] | no_license | Rohit1220/website | 221ea78530a3b3e25a6e65bb7776edd1d086deec | e316d56e24a3bc2c77d555d31ed70db92fac2071 | refs/heads/main | 2023-08-24T20:12:40.614443 | 2021-10-17T03:14:53 | 2021-10-17T03:14:53 | 418,006,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | from tkinter import *
from functools import partial
def validateLogin(username, password):
print("username entered :", username.get())
print("password entered :", password.get())
return
#window
tkWindow = Tk()
tkWindow.geometry('400x150')
tkWindow.title('Tkinter Login Form - pythonexamples.org')
... | [
"noreply@github.com"
] | noreply@github.com |
95db0c673cf07182b0f50e3a61044670584016fd | bcc373fa3085956f776d22aaf57f5936225be1cc | /data_processing/__init__.py | a81d3f5c21079b6284e9eedbe8b6d9fc87532070 | [] | no_license | innpei/CycleGAN-cartoon-reenactment | b50180e06a50b8d28dae8d10f15485c19f5ae60c | 4bda867d42bd49796cd6aed30c03e74922660b26 | refs/heads/main | 2023-05-14T05:19:13.459522 | 2021-06-06T17:49:38 | 2021-06-06T17:49:38 | 372,128,755 | 0 | 3 | null | 2021-06-06T17:49:38 | 2021-05-30T05:12:10 | Python | UTF-8 | Python | false | false | 2,757 | py | import importlib
import torch.utils.data
from data.base_dataset import BaseDataset
def find_dataset_using_name(dataset_name):
"""Import the module "data/[dataset_name]_dataset.py".
In the file, the class called DatasetNameDataset() will
be instantiated. It has to be a subclass of BaseDataset,
and it i... | [
"noreply@github.com"
] | noreply@github.com |
96e6bd43916c8c2cec3c59ae650ad90479dfdf4c | 10c2ba04e502004e2df0dfb6c70fb83daccc1b30 | /Django/example/13-manytomany-field/main/index/tests.py | 221c544e303d6d0a99e73496308795bdfe36121c | [] | no_license | yakenohara/KnowHow | 5e79d0015220524f98d9f7c767d2a727534b612d | ccd2aed2d4bf9363136aa30778b5adf382b25c4d | refs/heads/master | 2023-04-05T09:37:14.612262 | 2023-03-26T05:56:40 | 2023-03-26T05:56:40 | 136,476,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,778 | py | import datetime
import json
import re
import textwrap
from unittest import mock
from django.core.files.base import ContentFile
from django.contrib.auth.models import User
from django.db.utils import OperationalError
from django.test import TestCase
from django.utils.timezone import make_aware
from accou... | [
"38835246+yakenohara@users.noreply.github.com"
] | 38835246+yakenohara@users.noreply.github.com |
14064a81e2b808d01e665ab242a0573a2ea70c9c | e3c1293330abb922eeee1c6d0b0a3ecfde09ddbc | /django_money_example/core/serializers.py | 2aa137c888132e20b6bd5e5a1ec17a4cc6fe5ee2 | [] | no_license | jrocketfingers/django-money-example | 4a0cc70afa86b41e1fe3d692882012c3fd005c47 | ecf673b48ce2738aa5b3ea8122b32669a591c74e | refs/heads/master | 2022-07-07T22:58:16.790778 | 2019-11-27T09:51:26 | 2019-11-27T09:51:26 | 223,743,533 | 1 | 0 | null | 2021-02-01T03:35:02 | 2019-11-24T12:51:47 | Python | UTF-8 | Python | false | false | 414 | py | from djmoney.contrib.django_rest_framework.fields import MoneyField
from rest_framework import serializers
from core import models
class ExampleSerializer(serializers.ModelSerializer):
display_amount = MoneyField(source="display", currency_field_name="display_currency")
class Meta:
model = models.Ex... | [
"developer94@gmail.com"
] | developer94@gmail.com |
73763af66d53b49e26248a0b1e2ab7d4457fd071 | f578b4e325c0b6fae17973f7228bafb03c1a2c43 | /Taller9/server_dividir.py | e0bcda91e13d0a02c8547fe765feb3dbc18943d7 | [] | no_license | Kalugy/Distribuidos | 53e21e2a1d6ff0450547c0c0ad8705c68caf9282 | d4f790511391d8cd423b53b630e61d68d94aa6c9 | refs/heads/master | 2020-03-26T22:50:30.255335 | 2018-12-19T22:10:55 | 2018-12-19T22:10:55 | 145,491,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import socket
import sys
import thread
import math
def dividir(numero1, numero2):
return numero1/numero2
s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s1.bind(('', 7500))
s1.listen(10)
def connection(sc, addr):
num=str(sc1.recv(1024))
palabra1=""
palabra2=""
palabra3=""
cuenta=0
contador=0
#cuando... | [
"nico0829@utp.edu.co"
] | nico0829@utp.edu.co |
d06f05cbb6eeab2c73ba51f9a73a2e19cda51879 | 251a104dc767ec57a88d6504710091ace3ce5359 | /untitled3/settings.py | e7505be28e66b0f6284f29ef99f82bc9bfa11d2d | [] | no_license | katandser/Site_Django | e43399d44ed1f1df4f0024372231ea3db3da5ff0 | ae2df382fac579a73e0b960695e5e6becd07d139 | refs/heads/master | 2020-05-09T19:19:34.296717 | 2019-04-14T23:30:37 | 2019-04-14T23:30:37 | 181,374,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | """
Django settings for untitled3 project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"katandser96@mail.ru"
] | katandser96@mail.ru |
3738260cd7566f69bb08576a36a0616524060ba0 | ed6625148299e759f39359db9f932dd391b8e86f | /personal_env/lib/python3.8/site-packages/setuptools/wheel.py | e17742f100132d61e0cf7083ef2ce3b873a0ef4a | [
"MIT"
] | permissive | jestinmwilson/personal-website | 128c4717b21fa6fff9df8295b1137f32bbe44b55 | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | refs/heads/main | 2023-08-28T11:31:07.916714 | 2021-10-14T09:41:13 | 2021-10-14T09:41:13 | 414,847,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,675 | py | """Wheels support."""
from distutils.util import get_platform
from distutils import log
import email
import itertools
import os
import posixpath
import re
import zipfile
import pkg_resources
import setuptools
from pkg_resources import parse_version
from setuptools.extern.packaging.tags import sys_tags
... | [
"noreply@github.com"
] | noreply@github.com |
9207964a8abeafead8e2e062e1c63f4719aa680e | d7016f69993570a1c55974582cda899ff70907ec | /tools/azure-sdk-tools/devtools_testutils/proxy_testcase.py | 0c0fe3dc403f3642e5552ec84ae5ffe10acbc867 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 10,296 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import log... | [
"noreply@github.com"
] | noreply@github.com |
4e543bc8c6bb809b7f5768311a7fdfba0a10f29d | 5f063a25f88dded96928282dd79bd06c8c0ee805 | /testdata/mergeImage.py | 357b17abdcd3f0a6336eac3dc2c0337d0ae03c00 | [
"MIT"
] | permissive | Cogito2012/pix2pix-tf-modis | f87a0e77b83d26a9cac2e7cdec44eb39a7ad0eae | 1fbfaf7665f6b794bbd800185b0c34e5522d3ba0 | refs/heads/master | 2021-01-22T11:28:50.005570 | 2017-05-29T03:18:09 | 2017-05-29T03:18:09 | 92,701,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # merger patches to China.bmp
import os
import cv2
import numpy as np
input_dir = "./patches_translate"
dest_file = "ModisChina.bmp"
patchsize = 512
patchnum_x = 30
patchnum_y = 24
#ModisChina = cv2.CreateImage((patchnum_x*patchsize, patchnum_y*patchsize),8,3)
Modischina = np.zeros([patchnum_y*patchsize, patchnum_x*pa... | [
"wtbao@whu.edu.cn"
] | wtbao@whu.edu.cn |
a291571004a5644ecfc815c6c978d6daa08d8d74 | 382240eed333d0577b23fbc81b06429a17ce544d | /python/prep_osgml.py | a6c2332d22bd4eb0b1acdc95aae21d68ee5bcc9b | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rjspiers/Loader | e5c3f0ca9c54c6dd443521936a238de7233094d4 | 560f216f4703bc5850ddc889ae347db3ec689902 | refs/heads/master | 2021-01-01T18:18:52.957426 | 2017-07-22T17:13:19 | 2017-07-22T17:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,260 | py | """
A collection of classes used to manipulate Ordnance Survey GB GML data,
used with prepgml4ogr.py.
"""
from lxml import etree
from lxml import objectify
import json
import lxml
import os
import re
import sys
# Mock arcpy which is imported by not used in the ESRI UK modules used to
# classify OSMM Topo features
sys.... | [
"walkermatt@longwayaround.org.uk"
] | walkermatt@longwayaround.org.uk |
c0e913617260c8a7f14ec70f417516e956959dab | 2bc23f78fc42d0904e0ed7846da72b5390cb668e | /train.py | cc4b1e7401d51e28bd2f7d4dfa9483c2be7c07dd | [] | no_license | zhao65515/Tensorflow_FixMatch | 120f6f8e2bec5b644cb9d060a7593317abd8a852 | 37a770199564c90e67f0fe08c110b5d3190a15c2 | refs/heads/master | 2022-11-14T03:47:56.261856 | 2020-06-29T04:44:03 | 2020-06-29T04:44:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,409 | py | # Copyright (C) 2020 * Ltd. All rights reserved.
# author : Sanghyeon Jo <josanghyeokn@gmail.com>
import os
import cv2
import sys
import copy
import time
import glob
import json
import random
import pickle
import argparse
import numpy as np
import tensorflow as tf
import multiprocessing as mp
from core.config impor... | [
"josanghyeokn@gmail.com"
] | josanghyeokn@gmail.com |
6d6fd631a84409110e6ebdbb70e519217620e0ec | 1618286b6996f70d1884ed7f063ceaca7a9ec028 | /Week1-Implementation/venv/Lib/site-packages/easypyplot/tests/test_barchart.py | bc22ad88c4ce8bcc1ad9395598872add30408c80 | [] | no_license | alu-rwa-dsa/week-1-list-complexity-code_masters_marthely_luckyjohn | 610e4a3b697f4d848c790c7faaa8a3e2be466648 | 709ab56d2efe72ab0eefbd227d15bd325d59178e | refs/heads/main | 2023-02-23T21:56:09.811829 | 2021-02-02T17:59:16 | 2021-02-02T17:59:16 | 335,334,885 | 0 | 0 | null | 2021-02-02T15:29:23 | 2021-02-02T15:29:17 | null | UTF-8 | Python | false | false | 9,402 | py | """ $lic$
Copyright (c) 2016-2019, Mingyu Gao
All rights reserved.
This program is free software: you can redistribute it and/or modify it under
the terms of the Modified BSD-3 License as published by the Open Source
Initiative.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY;... | [
"n.marthely@alustudent.com"
] | n.marthely@alustudent.com |
844e23da7322d2935b6f935d9e3649d6e5a8c6db | abf4a37e5763d5212119bdf0bedb766a456c1780 | /util/plothelper.py | d919faa5e909c8518e4ebbc4abd78237a8c93cbf | [] | no_license | kdipetri/SUEP_scouting | 739e5d93c2d7f08d0678859d89996e9b1b53132d | ff2de840da19b6e6eafa02605a1504820ed3386f | refs/heads/main | 2023-07-27T23:28:53.352037 | 2021-09-09T17:42:27 | 2021-09-09T17:42:27 | 394,385,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,008 | py | import ROOT
hists1D = {}
hists2D = {}
plotdir = "plots/hists"
doPng=True
doPdf=False
doC=False
lumi=135000 #ipb
one = ROOT.TColor(2001,143/255.,45 /255.,86/255.,"darkPurple")#quinacridone magenta
two = ROOT.TColor(2002,119/255.,104/255.,174/255.,"blahBlue")#blue-violet
three = ROOT.TColor(2003,239/255.,71 /255.... | [
"kdipetrillo@gmail.com"
] | kdipetrillo@gmail.com |
211752c4f07d02d49629acc90f61bcdae83eb752 | 2dd3521d7eac776d498be33a9c5f24e13240f971 | /code/testing.py | c649a43bc084b67ff3ee7990ac7dd0d03ccb73d5 | [] | no_license | AlejandrodeMiguel96/MSc-thesis-on-progress | bcb25cc16a2fc77dec6fc60237bdfc72481f362c | 5c504c668d8435979d1a4fbd45cebf5416f61534 | refs/heads/main | 2023-07-10T01:07:33.634536 | 2021-08-11T00:14:03 | 2021-08-11T00:14:03 | 377,937,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,815 | py | import numpy as np
import matplotlib.pyplot as plt
import statistics
import time
import data_inspection
# data = np.load('database_consistency.npz', allow_pickle=True)
# data = np.load('database_consistency_300_10examples.npz', allow_pickle=True)
# data = np.load('database_consistency_1000_60examples.npz', allow_pick... | [
"noreply@github.com"
] | noreply@github.com |
699217857bdbf1f709123b843e8bbc301dfeee0a | a859aadea24af173a175c2d01910314487ec6fbf | /common/ops_rnn_v2.py | acd3ae1ce052c94ce4a70df353ea57d9d33f42f4 | [
"BSD-3-Clause"
] | permissive | jiahuei/tf-sparse-captioning | cc52cbef5590b47727ea89f265011c9ab58aebad | 9d7b8ecdd44fb1541500ca4f920d6c94fd15bad1 | refs/heads/main | 2023-04-07T05:27:28.395758 | 2021-04-19T11:27:28 | 2021-04-19T11:27:28 | 359,341,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,951 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 27 16:22:42 2017
@author: jiahuei
"""
# import numpy as np
import logging
import tensorflow as tf
# from tensorflow.python.framework import ops
# from tensorflow.python.ops import rnn_cell_impl
from tensorflow.contrib.seq2seq.python.ops.beam_search_... | [
"tanjiahuei@gmail.com"
] | tanjiahuei@gmail.com |
8e20f5f2b9d24a61c69796e934e556c5c6aec474 | a91484418beb39bd1d8ea4f59dedb1ad0a10cfcf | /train_deep.py | abc2d5ca1c42949039b453fa63cf0427c579ccb8 | [] | no_license | kaichoulyc/course_segmentation | 2991b3bcb38bf46036c61612c653c55e067bbe0b | 4d5b14d9e91cea446c289a08e3f7f01cc4e51c6e | refs/heads/master | 2020-05-31T08:18:32.050944 | 2020-01-09T11:54:35 | 2020-01-09T11:54:35 | 190,186,499 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | import torch
import numpy as np
import os
from tqdm import tqdm
import pandas as pd
from utils.iou import compute_mask_iou
from utils.generator import claim_generator
from utils.losses import *
from model.deep_lab.deeplab import *
import timeit
import datetime
abs_path = '/home/kaichou/ssd/course'
train_path = os.pat... | [
"rustem98@list.ru"
] | rustem98@list.ru |
57010b47b950365998b095abc368fa6298c74e4d | 0379bae8cff218a039d79104c38cd1ad2b506919 | /vision/depends.py | bbdf258031515e9ac62cdeb28005634656976f99 | [] | no_license | ottozrq/Louvre | 0128673e05cdabbd1acc5499605a31232b110682 | 170d3421c821694c31b6fee49c99e97fe76f728e | refs/heads/master | 2022-07-14T04:21:42.390515 | 2022-07-03T19:50:38 | 2022-07-03T19:50:38 | 167,688,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | import logging
from typing import Optional
from fastapi import Depends, Request, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
from pydantic import PositiveInt
from pydantic.types import constr
import models as m
import sql_models as sm
from utils import flags
from utils.utils import VisionD... | [
"zhang_r@epita.fr"
] | zhang_r@epita.fr |
1e24c62ea195655b0d2b9e5b17a2627f86a53fe8 | 359430379764e4f1936dd24a5328bbbbc0f0e928 | /Code/AlgoPython/3_sum_triplet.py | bdf5a7d5bb4044147ad0529ce0d716621d51d648 | [] | no_license | chenwang07/LeetCode101 | a002878bf0e584cb6a69f6519d3c6e5adace73c1 | 691a36a0d43de9345fe6fa34b01495ae9ce2d0d1 | refs/heads/master | 2023-08-24T09:12:22.558429 | 2021-09-27T05:09:51 | 2021-09-27T05:09:51 | 359,049,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py |
def threeSum(nums):
nums.sort()
ans = []
i = 0
while i < len(nums) - 2:
j = i + 1
k = len(nums) - 1
while j < k:
target = nums[i] + nums[j] + nums[k]
if target == 0:
ans.append([i, j, k])
temp_k = k
temp_j =... | [
"wangchen9617@gmail.com"
] | wangchen9617@gmail.com |
2858f8e42d24497ae53e3eb44307634afd3ca1a9 | 28e1eec958ba44af8f6c24fa30c5876ddbfef3c3 | /Network Project/data_collection_MPI.py | 5a676ff7d890c2df604829333809ab1d9c38c660 | [] | no_license | keertanavc/Hollywood-Network-Analysis | bc2b346539a0231d744611e7724e968e704d9f01 | 68329c09d684aeb63cbfd4c72a63d1ef19101a79 | refs/heads/master | 2023-05-01T14:49:05.517345 | 2021-05-18T18:00:58 | 2021-05-18T18:00:58 | 276,760,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import pandas as pd
import time
from mpi4py import MPI
import omdb
API_KEYS = list(pd.read_csv('keys.csv', header=False))
file = "ids.csv"
ids = list(pd.read_csv(file)['IDS'])
data_list = [None] * len(ids)
def get_data():
# Get rank of process and overall size of communicator:
comm = MPI.COMM_WORL... | [
"noreply@github.com"
] | noreply@github.com |
e5bdaa5d9ff14cb0d2b34e49fa0389a934836dfa | 8325f238b8d59f9302a945340070809aab3b1901 | /manage.py | 892dfb1b15350aa9575265d56eb0aed1c1d04e87 | [] | no_license | k1-k0/wishl | c2c512499f2f18aa08b5427e4d2ba6435343a8b5 | f04e134b37a26b58d1a5acfdf41bab5d94eb8ae7 | refs/heads/main | 2022-12-26T04:58:00.238984 | 2020-10-10T11:35:46 | 2020-10-10T11:35:46 | 302,756,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wishl.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"kmssrvk@gmail.com"
] | kmssrvk@gmail.com |
feb850b55fd1cc2c30c7f719c3b998baa728d807 | 7466c07a65c9a6356bcb05fafb03d4eed7ba7ffa | /pyradox/csv.py | 9610f2789f466c9db3efbfe57c393f755065b9f1 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | CHBresser/pyradox | 658cdfa0f70b48ccce50e21f76d62a468d5c6100 | c44f6c0b8ce6705722237693ecc02a31c3081cb1 | refs/heads/master | 2021-05-11T07:48:17.540632 | 2017-12-20T08:17:54 | 2017-12-20T08:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import csv
import os
import warnings
import pyradox.primitive
import pyradox.struct
import pyradox.table
from pyradox.error import ParseError, ParseWarning
encoding = 'cp1252'
class ParadoxDialect(csv.Dialect):
delimiter = ';'
lineterminator = '\n'
quoting = csv.QUOTE_NONE # no quotes AFAICT
strict =... | [
"ajul1987@gmail.com"
] | ajul1987@gmail.com |
1d96da553a7c5a29b6415d5ee4db4fb85660f547 | 6c4bcd1ad86869ee15aab228853060b26ed09e3b | /suite/app.mozbuild | 6f34b52a6ea3bd0ed4f329f6ed81b645ffd6b50e | [] | no_license | mxOBS/deb-pkg_icedove | 18b43958d7bfc3529dc7de505ab6d31a08446be1 | 10b6a968583b8d721bedcffc87851c569e2467a3 | refs/heads/master | 2021-01-20T08:24:26.807514 | 2015-05-14T13:56:12 | 2015-05-14T13:56:12 | 35,611,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | mozbuild | # vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
app_libxul_dirs = []
app_libxul_static_dirs = []
include('../bridge/bridge.mozbuild')
if n... | [
"privacy@not.given"
] | privacy@not.given |
c87601687dd5c7c65e20dba92b239e070261b317 | 3670f46666214ef5e1ce6765e47b24758f3614a9 | /oneflow/python/test/onnx/util.py | d2222f7d6b30cad257fa79d950b134ab33ead31c | [
"Apache-2.0"
] | permissive | ashing-zhang/oneflow | 0b8bb478ccd6cabea2dca0864defddab231919bf | 70db228a4d361c916f8f8d85e908795b479e5d20 | refs/heads/master | 2022-12-14T21:13:46.752535 | 2020-09-07T03:08:52 | 2020-09-07T03:08:52 | 293,535,931 | 1 | 0 | Apache-2.0 | 2020-09-07T13:28:25 | 2020-09-07T13:28:24 | null | UTF-8 | Python | false | false | 2,994 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
73b8962f54f6fcb301915d94c2bc3359b13a4d6b | 00149437f4bfb490a56cc7faf170a27c2ba16fcf | /.ipynb_checkpoints/api_keys-checkpoint.py | 4afbf07688d989b10cb2225846ce24fb348d8867 | [] | no_license | PabloBarbatto/WeatherPython | d0c20d2161949ab1775f0d6f56710dfa68643f55 | 9a9651cb42774fb6574e1e8223b307e7f6ec3b6f | refs/heads/master | 2020-04-02T07:21:29.138648 | 2018-10-27T18:05:30 | 2018-10-27T18:05:30 | 154,192,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | api_key = "19b32067ed32e919fafe0c91f8bf0faa"
| [
"pablonbarbatto@gmail.com"
] | pablonbarbatto@gmail.com |
95c8d89866be1ab21e245c5c39170e3918f41ece | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/무지성 랜덤풀이/9월/9.27/13549 숨바꼭질3.py | e0e130cd47181bea752f97e6b07942782346f798 | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | """
문제유형 :
그래프 이론
그래프 탐색
너비 우선 탐색
다익스트라
0-1 너비 우선 탐색
시간초과 발생
범위를 지정해서 범위가 초과하는 것들을 걷어내니 해결할 수 있었다.
"""
import sys
from collections import deque
input = sys.stdin.readline
# n : 수빈 k : 동생
n, m = map(int, input().split())
# 최대 크기 변수
maxnum = 100001
# x 지점에 도착했을 때 시간을 담을 리스트
timelist = [-1] * maxnum
# x 지점을 방문했는지 ... | [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
cfdd9936a4881e9c2aed6cc7dcbb8330ddc68541 | 84c2986c9c9dfa916e5e6021695302c38210718d | /Image Processing in OpenCV/Smoothing Images.py | dfc8e288d5cc6ff25a4f03ba40eec1f285b916ec | [] | no_license | PurpleRabb/Python-OpenCV-Samples | 8fede8630b7777d924ef49c00260eb055165d602 | 942def64caa883a0b3596b1c90efef49cb824bde | refs/heads/master | 2021-07-16T11:45:41.127411 | 2020-11-24T10:17:06 | 2020-11-24T10:17:06 | 226,841,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
# 2D Convolution, 用指定kernel做卷积操作
img = cv2.imread('../images/opencv-logo2.png')
kernel = np.ones((5, 5), np.float32) / 25
print(kernel)
dst2d = cv2.filter2D(img, -1, kernel)
blur = cv2.blur(img, (5, 5))
gauss_blur = cv2.GaussianBlur(img, (5, 5), 0)
med... | [
"364725259@qq.com"
] | 364725259@qq.com |
2d9bb0acebd09799be1988fc4a1ab4dba359e456 | a84f3c73126f6f7a81a6944cc1559421160fa7cf | /solved/Silver1/[11052]카드 구매하기.py | 2c740da5df6aae231ffaac614ccb33f5f953b833 | [] | no_license | JiMinwoo/Algorithm | c042ca1a0344de701ef0526a8ac7549edc821009 | 5346cd080b6221688e944165bec84872333628e6 | refs/heads/main | 2023-07-10T07:31:40.730026 | 2021-08-13T14:44:34 | 2021-08-13T14:44:34 | 372,530,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | N = int(input())
pack = [0]
pack += list(map(int,input().split()))
dp = [0] * (N+1)
dp[1] = pack[1]
dp[2] = max(pack[2], pack[1]*2)
for i in range(3, N+1):
for j in range(1, i//2 + 1): #j와 i-j로 만드는 경우
dp[i] = max(pack[i], dp[j] + dp[i-j])
print(dp[N]) | [
"jmw492@naver.com"
] | jmw492@naver.com |
2a6a40cc88e837f0735dc0d70e5787830ec168fd | c337ba37b6442e0baef21f942fae7dcdf3ab1515 | /app.py | 09ded8ae294f7e15dce6d32ba90eed36b3cc26a6 | [] | no_license | mwuillai/blog | 39c2c4456d97b93089970203c048021ebc74f7a6 | e37b1638b8e584b44fb34243418a19bee8dcc2c1 | refs/heads/master | 2020-03-19T16:35:04.640834 | 2018-08-16T08:02:12 | 2018-08-16T08:02:12 | 136,720,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,660 | py | from flask import Flask, render_template, flash, request, redirect, url_for, session, logging
from flask_mysqldb import MySQL
from wtforms import Form, StringField, TextAreaField, PasswordField, validators
from passlib.hash import sha256_crypt
from functools import wraps
app = Flask(__name__)
# config Mysql
app.confi... | [
"wuillaimathieu78@gmail.com"
] | wuillaimathieu78@gmail.com |
912e9905ac623ea7e54e73e59c0737fe8a99f927 | f26c31f7bddf6afbe4c621f5fdb73f95802411ab | /git_connect_server/git_connect_server/asgi.py | 96da2f7c9e1706832d61af71a20aa472b28fc292 | [] | no_license | Harsh-pandya/gitConnetDjangoVerison | 23e7343a644e6fb4c1aa35299aa98be6e3ca8d07 | ab89844174c70ccae0db9e2ed83681b82b0c4731 | refs/heads/main | 2023-03-10T02:40:27.464265 | 2021-03-02T15:06:41 | 2021-03-02T15:06:41 | 342,909,330 | 0 | 1 | null | 2021-03-01T16:40:12 | 2021-02-27T16:57:21 | HTML | UTF-8 | Python | false | false | 413 | py | """
ASGI config for git_connect_server 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('D... | [
"harshpandya735@gmial.com"
] | harshpandya735@gmial.com |
e22400dd5ebe027e942bdb5aa62837fbadb37131 | d80c8ab73282091e863cd0beef723edd4c91c98d | /models.py | d1a7a128f498863cfac4635c336bc4235d13f8c3 | [] | no_license | DiegoIturra/Web-Scraper | a1f5e04bf71cd4490f51146181d3dfa0159f5f5e | ff6b6cbd4c7585fdc147c9ab9c3f3a61099468c3 | refs/heads/master | 2023-07-02T04:17:43.416018 | 2021-08-15T23:28:09 | 2021-08-15T23:28:09 | 391,232,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | from extensions import db,marshmallow
class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(40), nullable=False)
title_for_route = db.Column(db.String(40), nullable=False)
price = db.Column(db.String(40), nullable=False)
url = db.Column(db.String(40), nulla... | [
"diturra@dparadig.com"
] | diturra@dparadig.com |
a6e84ede469fbe72771be78c555a5612ccf2e137 | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_ckeditor_uploader_backends___init___py.html.py | 798d55fc791e5536bdf76c670715ec7c0d91fbb8 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,201 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXX... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
255132307851c3be363fe7e4d69e4d88c27f9f08 | 6d8f8850c86f8fb5fa63c8f17370d23125e6cf1e | /setup.py | 556149d26381d6dcda4f84506e4d435555089efa | [] | no_license | luohaixiannz/pecan_test_project | bdf01935b568eb142fb15b1653dabefc539a0937 | b1168f77a4e00a759fb01a7e535071c6897fe1c5 | refs/heads/master | 2020-08-02T22:15:32.286068 | 2019-10-13T07:25:24 | 2019-10-13T07:25:24 | 211,522,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='pecan_test_project',
version='0.1',
description='',
author='',
author_email='',
... | [
"root@192.168.0.107"
] | root@192.168.0.107 |
9a2245a65c5409a11353e2bdf4ece15398d0a47e | f080acd0d9f5640124cadd8282c9382df509add4 | /MyPlace/wsgi.py | 7862a3d03fab60f5b815b9e0843ed8a2090652b8 | [] | no_license | MagFry/MyPlace | 69e50367f61ade84d2e34408ec1ec23fe7328593 | 60233a87dc979dff505c4c74b3bb2cb644f9d22d | refs/heads/master | 2020-08-22T07:02:51.358987 | 2019-10-20T10:28:20 | 2019-10-20T10:28:20 | 216,343,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for MyPlace project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"mfryczka96@gmail.com"
] | mfryczka96@gmail.com |
cec1ac5c978a20fda316ddf1475bffc7cc5c0a85 | b91578b96ffe63639d3efc70d4737b92091cd0b1 | /backend/unpp_api/apps/sanctionslist/serializers.py | 3d57ed5f866b73fbe8dde2953857e5e283fedb35 | [
"Apache-2.0"
] | permissive | unicef/un-partner-portal | 876b6ec394909ed2f72777493623413e9cecbfdc | 73afa193a5f6d626928cae0025c72a17f0ef8f61 | refs/heads/develop | 2023-02-06T21:08:22.037975 | 2019-05-20T07:35:29 | 2019-05-20T07:35:29 | 96,332,233 | 6 | 1 | Apache-2.0 | 2023-01-25T23:21:41 | 2017-07-05T15:07:44 | JavaScript | UTF-8 | Python | false | false | 633 | py | from rest_framework import serializers
from sanctionslist.models import SanctionedNameMatch
class SanctionedNameMatchSerializer(serializers.ModelSerializer):
sanctioned_type = serializers.CharField(source='name.item.sanctioned_type', read_only=True)
sanctioned_type_display = serializers.CharField(source='na... | [
"maciej.jaworski@tivix.com"
] | maciej.jaworski@tivix.com |
6d7a90d3a937dd973e04b37a56190fc593aaaff0 | 45df32d998f8edf8ea3929b939c8b81a48eae6cf | /vegify/read_csv_test.py | 1e6bce0e7a4d78ce34e7c9748bf87de49bed9a80 | [] | no_license | FriedBender/shiny-pancake | 086654daddec42d57c7b984b2e1be65d05135f7e | 54a14d19510482662d833a8a5772295e5f426c9d | refs/heads/master | 2023-05-06T19:10:18.420770 | 2021-05-19T20:12:35 | 2021-05-19T20:12:35 | 367,722,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import pytest
from . import read_csv
import csv
# These are local to FriedBenders file structure, modify them as needed
location_of_skus = '/home/maksim/Documents/School/CS 469 - Capstone I/playground/Vegify/itemSKUs.csv'
location_of_Menu_Alternatives = '/home/maksim/Documents/School/CS 469 - Capstone I/playground/Veg... | [
"maxsemchuk@icloud.com"
] | maxsemchuk@icloud.com |
2b5406445f055b8f76f085481dde082f1634c1ff | fe8c038452ff1067693d7b0e61f7004d15b0f791 | /01-Crash Course/week-03/02-Foor_loop/quiz_for-loop_factorial.py | eb425075bb00b8fd8a307b8572f775ff1713c858 | [] | no_license | varunjha089/Google-IT-Automation-with-Python | 73fec6a6a3348d4a5039dd78fa26eb1509b37db0 | 3eb176a989244ead534d194101d7f2da7a2a00ab | refs/heads/master | 2022-11-23T22:17:13.814889 | 2020-08-02T04:38:51 | 2020-08-02T04:38:51 | 273,307,102 | 0 | 0 | null | 2020-07-05T12:00:18 | 2020-06-18T18:04:26 | Python | UTF-8 | Python | false | false | 161 | py | def factorial(n):
result = 1
for x in range(1, n):
result = result * x
return result
for n in range(0, 10):
print(n, factorial(n + 1))
| [
"varunjha089@gmail.com"
] | varunjha089@gmail.com |
9ef5e5fee2e79e57e5166dc15c07384e10dad3c5 | ff8c52894b957eec143f56a6c5b6c331c2d5a6a1 | /4 - Polynomial Regression/Python/regressor_template.py | 798003c20c33cc9fa5838a723ca3423b53f98d8e | [] | no_license | thimontenegro/Machine-Learning | c9dd2165f6d9d55927b8d22ae2146cb67177ac67 | 33bcab62d6523fe7c4d7f760854df25eccb1420c | refs/heads/master | 2020-04-25T15:51:21.327587 | 2020-02-25T18:49:39 | 2020-02-25T18:49:39 | 172,891,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 13 00:17:31 2019
@author: Thiago Montenegro
"""
#Regressor Template
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
#Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
Y = dataset.iloc... | [
"noreply@github.com"
] | noreply@github.com |
5af1652e71e6675f99c875dcb9695b1034b4e964 | abb8e5cf8c7ff330e424490f1425b3dfa1318910 | /docs/conf.py | 0e1815215051fbe6692ee04d654a566f82e98baa | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | fonclub/instagram_private_api | 94e887700d934eae2eece8a3623d9b28502c2c57 | fe29b092f591a059502ec070dfc4ba4113c34e43 | refs/heads/master | 2021-01-11T13:44:24.646424 | 2017-06-22T04:24:06 | 2017-06-22T04:24:06 | 95,124,093 | 1 | 0 | null | 2017-06-22T14:27:48 | 2017-06-22T14:27:47 | null | UTF-8 | Python | false | false | 4,962 | py | # -*- coding: utf-8 -*-
#
# instagram_private_api documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 13 15:42:33 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerat... | [
"lastmodified@gmail.com"
] | lastmodified@gmail.com |
907ddd347c0090667ae70ccc22d09331b3f37284 | e4d66b0fc0ce10ec815ac1655660899645aac65c | /spamerssmtplib.py | c6843e5ced60ee05e9f1b64aa22dd569c5a72dd1 | [] | no_license | alipbudiman/spam-email-with-smtplib | 4d4d852580006ebbcce1e29afb670e23d1cde71d | 2079093a1e51578f285d3bca9eae9bd77a8055aa | refs/heads/main | 2023-05-24T09:32:07.679788 | 2021-06-06T08:43:00 | 2021-06-06T08:43:00 | 374,305,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import smtplib, random
from random import randint
msg_2 = ["write your message here","you can write another message"]#<< write your message here
email_main = "xx@gmail.com"#<< imput your gmail here
email_to = ["xx@gmail.com"]#<< imput your email direction here, you can imput multiple image
total_email=300#<< total ema... | [
"noreply@github.com"
] | noreply@github.com |
77a6b962b0c5fbed8dfb17965ca021e16a2acc41 | 4cbda64e52e82d3f5b3e301505cfb246a5fd052d | /wrinkler/datasets/voc.py | b8c8c783054c80b8bd2e84ad98016c4d734458f9 | [
"MIT"
] | permissive | brandongk-ubco/wrinkler | d4b5f5d449cf6af155bf11991b8e619f4f30dcd2 | 79090c42849a2db77997bcd9171d6d885cc45d4f | refs/heads/main | 2023-02-24T17:48:12.489824 | 2021-01-25T04:34:22 | 2021-01-25T04:34:22 | 329,793,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import torchvision
from .AugmentedDataset import AugmentedDataset
dataset_path = "/mnt/e/datasets/voc/"
train_data = torchvision.datasets.VOCSegmentation(dataset_path,
image_set='train')
val_data = torchvision.datasets.VOCSegmentation(dataset_path,
... | [
"brandongk@alumni.ubc.ca"
] | brandongk@alumni.ubc.ca |
50ed4d571f14e93304d24a9b7773420b866e91f7 | 4bc8afa94f6d36d582962f8ccfd3537cfcf79e0c | /tree/101.py | f5798150d3306542d6f827f1f7308009d499089d | [] | no_license | hellozgy/leetcode | c641dfa363cd97ece38b843acd4adbc4c1004173 | 7d3bacf0185920ffb8985bb998e3d344d57356fd | refs/heads/master | 2021-05-03T09:07:29.414338 | 2018-08-12T03:58:43 | 2018-08-12T03:58:43 | 120,570,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#方案一:
'''
class Solution(object):
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
... | [
"1243268625@qq.com"
] | 1243268625@qq.com |
1c0e6abebd13774f2c7c79c4f287a4bc6c478dcb | f5159b2388d84022e38a52fccd0118f49679f0ae | /algofinance/backtester/strategy_example.py | 20c399c947d5bb19ab1879d38b1653cb01a91b1e | [
"MIT"
] | permissive | maxmhuggins/algofinance | e7569a8293e531aad794e734c833b5f3c3b48ae0 | 2eb1b3c0cb450d405cd297eaa7d18e956cad0700 | refs/heads/master | 2023-06-24T12:00:33.803241 | 2021-07-24T02:06:40 | 2021-07-24T02:06:40 | 345,828,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 3 08:10:57 2021
@author: maxmhuggins
"""
from algofinance.generalanalysis.datareader import DataReader as dr
import backtester as bt
# import datareader as dr
import matplotlib.pyplot as plt
class ExampleStrategy:
def __init__(self, closes,... | [
"max.huggins98@gmail.com"
] | max.huggins98@gmail.com |
b0ad500120f8469b888e170431f17043052f3e7c | d57148c74b79954ff762ce3a02c1b0ef3e79d6a1 | /libs/smartmeshsdk-REL-1.3.0.1/libs/VManagerSDK/vmanager/models/net_reset_info.py | f58017d71ca05bfc882e34f73a9d91a3d9409ea4 | [
"BSD-3-Clause"
] | permissive | realms-team/solmanager | 62fb748b140361cf620b7dd8ff6df755afd42bbe | 95fa049df041add5f8d37c053ef560d0e5d06dff | refs/heads/master | 2020-04-11T10:00:21.086457 | 2018-11-20T15:49:27 | 2018-11-20T15:49:27 | 40,271,406 | 0 | 0 | BSD-3-Clause | 2018-11-20T15:49:28 | 2015-08-05T22:15:39 | Python | UTF-8 | Python | false | false | 3,061 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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... | [
"twatteyne@gmail.com"
] | twatteyne@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.