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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5780ccdc240b7902df73907fa6fcdfde16add904 | 234375d9ea3eeeacbfbd4b9dbcd508c7c88455ec | /setup.py | bcac9084a4162ce6e282d0d68d382f3095154453 | [] | no_license | shinyy98/Riskfolio-Lib | 6962043f2ca4a592fb8f86dd5dcc6328345ea2b2 | 33979a32885de8a24c09847ca5a20af584ab54d4 | refs/heads/master | 2023-04-20T08:07:39.402230 | 2021-05-06T07:48:05 | 2021-05-06T07:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | # Copyright (C) 2020-2021 Dany Cajas
DESCRIPTION = "Portfolio Optimization and Quantitative Strategic Asset Allocation in Python"
with open("README.md", encoding='UTF-8') as fh:
LONG_DESCRIPTION = fh.read()
DISTNAME = 'Riskfolio-Lib'
MAINTAINER = 'Dany Cajas'
MAINTAINER_EMAIL = 'dany.cajas.n@uni.pe'
URL = 'https... | [
"61527316+dcajasn@users.noreply.github.com"
] | 61527316+dcajasn@users.noreply.github.com |
2be0c94b220bec6d2088f2470dc9b8fef1c50cd1 | 915abdf6ce08e1986839b792676039d8be8fc843 | /pycat.py | 6e09a9beffbaaca227051035e64fad30a352c52e | [] | no_license | Udeshay/summerPython2018 | aa2b1eb9e9552b0d2803de097f9230e0f7f96e01 | 2ce694b24b82e9de8abd3938d44e74b3720f5213 | refs/heads/master | 2020-03-17T06:14:10.244212 | 2018-05-28T11:19:07 | 2018-05-28T11:19:07 | 133,347,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | #!/usr/bin/python
import sys
from os import path
#function definition of cat_fun
def cat_fun(f_name):
if path.exists(f_name):
if path.isfile(f_name):
f = open(f_name,'r') #opening file in read mode
print f.read() #will read file and print all data
f.close()
else :
print "\n\tcatpy:"+f_name+":**... | [
"root@station158.example.com"
] | root@station158.example.com |
1816c72bb11d3ba9ad7302ebd635296b73376925 | 3235145c84c48535bbf27dabfb3faa7359ed6fef | /google-cloud-sdk/lib/surface/kms/keyrings/list.py | bf8cafeeb0701a5774aa513b68e90225b592a8f0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | paceuniversity/CS3892017team1 | b69fb10f5194f09748cd5bca48901e9bd87a55dc | f8e82537c84cac148f577794d2299ea671b26bc2 | refs/heads/master | 2021-01-17T04:34:04.158071 | 2017-05-09T04:10:22 | 2017-05-09T04:10:22 | 82,976,622 | 2 | 8 | null | 2020-07-25T09:45:47 | 2017-02-23T22:13:04 | Python | UTF-8 | Python | false | false | 1,842 | py | # Copyright 2017 Google Inc. 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 ag... | [
"hanastanojkovic@gmail.com"
] | hanastanojkovic@gmail.com |
d9d896fb355e176f32778e810f56eebdbe390e59 | f775d4763d10e84d682d2122b2cb87ec18be77b8 | /setup.py | cf72f0ac32fe380f6028da1217fe4f08d6fce348 | [
"MIT"
] | permissive | chrysn-pull-requests/aiodnsprox | d23b8de88c47cd3f20baadcc565805bde4a0b931 | e53843015fb22a6c0327e467b2956a45c82678e1 | refs/heads/main | 2023-08-17T17:21:22.375237 | 2021-10-01T10:21:33 | 2021-10-01T10:32:44 | 413,811,566 | 0 | 0 | MIT | 2021-10-05T12:37:27 | 2021-10-05T12:37:26 | null | UTF-8 | Python | false | false | 1,992 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright (C) 2021 Freie Universität Berlin
#
# Distributed under terms of the MIT license.
import os
from setuptools import setup, find_packages
PACKAGE = "aiodnsprox"
DESCRIPTION = "A Python-based DNS-over-X proxy based on aiocoap "
AUTHOR = "Mart... | [
"m.lenders@fu-berlin.de"
] | m.lenders@fu-berlin.de |
783970d24e1d97381791c087441d406eeaf61ecf | 03c27d0d9c64905b0e52856f78d995256ef1f7c1 | /details/migrations/0005_auto_20210719_2318.py | 2fc8a788de4e914b66ed596d5820c7a201da4084 | [] | no_license | Anish06-crypto/loan-application | c7f0ef77aeeac9d6c4dc38b1f1b67c31a732736b | 34d1275490b8f94fc58c34c6c65d8f41209ebbc9 | refs/heads/master | 2023-06-23T00:49:42.152419 | 2021-07-20T06:00:01 | 2021-07-20T06:00:01 | 387,684,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | py | # Generated by Django 3.2.5 on 2021-07-19 17:48
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('details', '0004_auto_20210719_2313'),
]
operations = [
migrations.RemoveField... | [
"anishr62gmail.comgit config --global user.name Anish06-crypto/git config --global user.email anishr62gmail.com"
] | anishr62gmail.comgit config --global user.name Anish06-crypto/git config --global user.email anishr62gmail.com |
91a697244a8376cdea2aa5aa40233538c0976c78 | 66013dd1c4b051d1934a82f6c903f4088e9db3d0 | /2주차/2021.01.26/예제/differentiation.py | ed0d5c04867a8c4231bd263838638e8709580c8b | [] | no_license | dlrgy22/Boostcamp | 690656d5b0e35d88a9b1480b36b42ffba47b3bc5 | af6fb8ce02cc92d1d0227a972d187ccc294af0e9 | refs/heads/main | 2023-04-18T04:06:18.419625 | 2021-05-07T01:24:47 | 2021-05-07T01:24:47 | 330,589,750 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import sympy as sym
from sympy.abc import x, y
func = sym.diff(sym.poly(x**2 + 2*x + 3), x)
print(func)
print(func.subs(x, 2))
print(sym.diff(sym.poly(x**2 + 2*x*y + 3) + sym.cos(x + 2*y), x))
print(sym.diff(sym.poly(x**2 + 2*x*y + 3) + sym.cos(x + 2*y), y))
| [
"dlrgy22@gmail.com"
] | dlrgy22@gmail.com |
f5bb27e1af65281e82c2d2612b64ea120e971722 | 30109f5f173f4e51a20cfcaf6ec41628b177f553 | /fhir/resources/STU3/documentmanifest.py | 94a0436357d396ba1018fdc3d460cc56e2befff9 | [
"BSD-3-Clause"
] | permissive | arkhn/fhir.resources | 82c8f705c8f19e15621f2bb59fd17600c0ef3697 | 122e89c8599c4034bb3075b31d1a1188e377db91 | refs/heads/master | 2022-12-16T07:58:19.448071 | 2020-08-13T03:59:37 | 2020-08-13T03:59:37 | 288,683,730 | 1 | 0 | NOASSERTION | 2020-08-19T09:01:02 | 2020-08-19T09:01:01 | null | UTF-8 | Python | false | false | 12,206 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/DocumentManifest
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
from typing import Any, Dict
from typing import List as ListType
from pydantic import Field, root_validator
from . import backboneeleme... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
24624a2a8ec05dc33a29232d475a8b8132ad41cb | df3c1c48abfc3892c7c6d21df5ecbe738ead6b38 | /app.py | dbca7180cf9a9b0d9781eb40ac8188ed9d7a4030 | [] | no_license | timshik/Store | 881e489d385c7db84f8edf2600b3c22f09b1847c | 087f831cf9326b4dfce2648584911e59758228ef | refs/heads/master | 2022-04-15T06:07:15.863061 | 2020-04-14T13:00:00 | 2020-04-14T13:00:00 | 255,578,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import os
from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import UserRegister
from resources.item import Item, ItemList
from db import db
from resources.store import Store, StoreList
db.init_app(app)
app = Flask(__name_... | [
"timshik@users.noreply.github.com"
] | timshik@users.noreply.github.com |
ed2954bdd2ec5424da580a3dbdf86056e9c9e612 | dd1e2ed53fec3dca0fa60042c04ad8cf6019ed89 | /python/functions/arguments_passed_as_dictionary/arguments_passed_as_dictionary.py | bd77e7ed569887e6547b03ab831fdd645d5f53b0 | [] | no_license | cloudavail/snippets | 9be4ee285789ff3cff1a3a71e1f505a1b1697500 | 340f5c2735d6ec88b793f1eea91f2b026c24586e | refs/heads/main | 2023-08-03T10:30:13.976947 | 2023-05-15T04:46:32 | 2023-05-15T04:46:32 | 12,838,293 | 22 | 24 | null | 2023-09-07T03:33:17 | 2013-09-15T00:40:49 | JavaScript | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
# objective: pass arguments as dictionary
# creates the function "argument_catcher" and accepts the following keywords
def argument_catcher(city, population, size, state):
print 'city: {!s}'.format(city)
print 'state: {!s}'.format(state)
print 'population: {!s}'.format(population)
... | [
"colinbjohnson@gmail.com"
] | colinbjohnson@gmail.com |
c78ac5f125525e45499d74f4a07081a1f77f4fad | fc91ba7357f75c3dca5e85a74c58f49948585b94 | /views.py | bd6cc9216f74755eb3d5a72a4a05508f9b117984 | [] | no_license | acrawford13/local-library | 0e1f3f0c237d97e97cf0ba383cdda47b54e46797 | 69bec622b30f695099fdb61e8cf390f321c761b8 | refs/heads/master | 2021-07-13T08:36:35.912494 | 2017-10-06T01:00:30 | 2017-10-06T01:00:30 | 105,849,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,519 | py | from flask import Flask, render_template, flash, url_for
from flask import redirect, request, jsonify, make_response
from flask import session as login_session
from sqlalchemy import create_engine, and_
from sqlalchemy.orm import sessionmaker
from sqlalchemy.exc import IntegrityError
from models import Base, Book, Us... | [
"andrea.crawford13@gmail.com"
] | andrea.crawford13@gmail.com |
58feb52c37f7bcf23a6be186845452d2879973a3 | 0ce487a00f82c262e8624fc5094e0d4b2b6556d6 | /testdir/test.py | 22ce659815e5774c69a8bbddfe41ec475a3feee6 | [] | no_license | netpan/netpan | a56ca88d82a44e759fe6deff81e58f77ab192c61 | 3d2ed9921c06026fc3484c3e8261e3519f21dfc5 | refs/heads/master | 2020-05-02T18:05:22.139693 | 2019-03-29T08:09:00 | 2019-03-29T08:09:00 | 178,118,032 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | a=int(input("请输入你家狗儿的年龄:"))
if a<0:
print("你是来搞笑的吧!")
elif a==1:
print("相当于人类14岁的年龄!")
elif a==2:
print("相当于人类22岁的年龄!")
else:
b=22+(a-2)*5
print("相当于人类 %d 岁的年龄" %(b))
input("press enter to exit!") | [
"pjzjxpf@163.com"
] | pjzjxpf@163.com |
bf74ca17e3732d2678260260cb83b4e680409be7 | 239c573e6d5c478bfd848f813f9d3760db2a6ac4 | /applyuni/Portal/views/universityportal.py | 8807ec819c995213404da803604d9e29dbf6d642 | [] | no_license | Harsha2001-creater/project_2020 | 8b0acf11d02e825cf0b07afedd2b1e06021f855f | a784e620e208c112df2477ac20e955aa45d819fc | refs/heads/main | 2023-03-05T05:40:03.807723 | 2021-02-19T10:20:20 | 2021-02-19T10:20:20 | 326,559,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render
from django.shortcuts import render,redirect,HttpResponseRedirect
from django.http import HttpResponse
from django.views import View
from Portal.models.newcourse import Newcourse
class Universityportal(View):
def get(self,request):
return render(request,'University_porta... | [
"niharikareddy561@gmail.com"
] | niharikareddy561@gmail.com |
539846eac1b2f133d9cd8effb4190a5c233a6adb | 1a5d7882b9e89b821851be328256211c65f9c1a2 | /simple_settings/strategies/__init__.py | 7d95f88acb1141987187d45f54d012d3e2e30de8 | [
"MIT"
] | permissive | matthewh/simple-settings | 2644f3032e5fc7ffa50dc8fa164bf79f640e5641 | dbddf8d5be7096ee7c4c3cc6d82824befa9b714f | refs/heads/master | 2022-11-04T22:25:55.398073 | 2020-06-22T19:25:03 | 2020-06-22T19:25:03 | 274,223,776 | 0 | 0 | MIT | 2020-06-22T19:21:30 | 2020-06-22T19:21:29 | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
from .cfg import SettingsLoadStrategyCfg
from .environ import SettingsLoadStrategyEnviron
from .json_file import SettingsLoadStrategyJson
from .python import SettingsLoadStrategyPython
yaml_strategy = None
try:
from .yaml_file import SettingsLoadStrategyYaml
yaml_strategy = SettingsLoad... | [
"drgarcia1986@gmail.com"
] | drgarcia1986@gmail.com |
7f097c9f8210d4dbb9dbbe2375d00e98ab669c30 | 773904616b39d54e8c8188903ae2f0f520d64c72 | /recipes/masterlist.py | cac93cc35df29407fac234458c0fa288e2be3978 | [] | no_license | youoldmiyoung/recipe-aggregator | fe3170bfd83583a9ec34e1cb1d09819a81e2bf7a | ae3699e6efd1903a972ec8a0fe5c3a070e2efd11 | refs/heads/main | 2023-04-01T08:24:52.394182 | 2021-04-11T18:40:23 | 2021-04-11T18:40:23 | 347,492,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159,562 | py | masterList = [['Cauliflower and Mushroom Curry', 'https://olivesfordinner.com/2020/05/cauliflower-and-mushroom-curry.html', 'https://olivesfordinner.com/wp-content/uploads/2020/05/Cauliflower-and-Mushroom-Curry-cover-320x320.jpg'], ['Easy Homemade Pizza Dough', 'https://olivesfordinner.com/2020/04/easy-homemade-pizza-d... | [
"mtgayle17@gmail.com"
] | mtgayle17@gmail.com |
9f5e24ce50922fcb8e5c47d264958237365389b8 | 8540cb55d0e353f89e7656beae6b60f9db5b2bc6 | /COURSE 2 Improving Deep Neural Networks_Hyperparameter tuning, Regularization and Optimization/Optimization+methods.py | a98da16ee119ab200ebbf26637279ce020e19d63 | [] | no_license | zzw95/deeplearning.ai | 2c6687481bbde423f52223462d7124d20e6b50d8 | 6fcdb44f0c2aa685a9a0e9acc85be8cbd81d65b3 | refs/heads/master | 2018-12-09T22:22:20.534618 | 2018-09-12T03:03:55 | 2018-09-12T03:03:55 | 119,778,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,010 | py |
# coding: utf-8
# # Optimization Methods
#
# Until now, you've always used Gradient Descent to update the parameters and minimize the cost. In this notebook, you will learn more advanced optimization methods that can speed up learning and perhaps even get you to a better final value for the cost function. Having a g... | [
"zhuzhenwei95@gmail.com"
] | zhuzhenwei95@gmail.com |
94c209d3d25c989f349ccd38025fa4dd3e3dbd18 | 7f35d7d1b8f203217f47a615ca8efdb5e17976db | /algo/second/p693_binary_number_with_alternating_bits.py | 1c70b23a02fcb9375c33a53430168b55fc331bdc | [] | no_license | thinkreed/lc.py | 767dd61f4c9454f09e66e48b2974b8d049d6e448 | ba6b2500b86489cc34852ff73ba0915e57aa0275 | refs/heads/master | 2020-05-16T14:49:18.261246 | 2019-07-16T23:42:12 | 2019-07-16T23:42:12 | 183,113,318 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | class Solution(object):
def hasAlternatingBits(self, n):
"""
:type n: int
:rtype: bool
"""
a = n ^ (n / 2)
b = a + 1
return not (a & b)
| [
"thinkreed2017@outlook.com"
] | thinkreed2017@outlook.com |
af504185ba8ca0856e0f15dcd57e1301d574f6b8 | 5a0bc261e7ed7418a1237c01ba25155c519e5909 | /Chapter7/Chapter7part23.py | 05c0d9dfe38692f6b9c422f5e843cbef73ccd55f | [] | no_license | jsigner/ESC411 | b4af0e3ee09e75c1df5b2879d1a792b1cb8ab029 | 4481449c649e755264605ba619f5a8b9a47894bc | refs/heads/master | 2020-12-20T15:02:59.783210 | 2020-01-29T11:19:28 | 2020-01-29T11:19:28 | 236,115,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import numpy as np
def diff2(u):
N = len(u)
d2u = [0]*N
d2u[0] = u[1]-u[0]
d2u[N-1] = u[N-2]-u[N-1]
for n in range(1,N-1):
d2u[n] = u[n+1] + u[n-1]-2*u[n]
return(np.array(d2u))
def RHS(u,dx):
N=len(u)
d2=diff2(u)
r=np.array([0.0 for n in range(N)])
for n in range(0,N):
... | [
"jens.signer@uzh.ch"
] | jens.signer@uzh.ch |
05dec73c900f0b0c9e402c0259bf21ec5f4c80fb | 91f5e289978190e5ae673aeef64da6d2eea003b7 | /Python/run_manual_prcrawler.py | eec0b1162c7d0cd14b14743dd25802c1477c1031 | [] | no_license | sdownin/mmc-pharma | 59699e715a7d09057b520d98747523ab7e15c0fa | 2605a749a697b62cd1f5402f6566296fd6c83113 | refs/heads/master | 2020-04-19T01:04:15.674176 | 2019-06-07T06:58:46 | 2019-06-07T06:58:46 | 167,863,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 15 12:34:08 2019
@author: T430
"""
import os
import pandas as pd
from argparse import ArgumentParser
from manual_prcrawler import ManualPRCrawler
def run():
""" Main web crawler run function
"""
work_dir = 'C:\\Users\\T430\\Google Drive\\PhD\\Research\\MMC\... | [
"stephendowning2008@gmail.com"
] | stephendowning2008@gmail.com |
78fce8646714678588c09f4232057ee8abcbf17f | 075e491540481578d68665bc7679c68a0281e6e2 | /finance/stock.py | 00575fbd38c0bd30e6404c3483f99c259ca44e8d | [] | no_license | ChenChihChiang/Hahow-Python-Web | 4a4505d37fa49721b1528c7f726cf0b38a40d2da | 3b5feeb65d88090d8f663f8ba7e84e024d26c1aa | refs/heads/master | 2021-06-14T22:19:57.938509 | 2017-04-18T03:53:22 | 2017-04-18T03:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | import requests
from bs4 import BeautifulSoup
import pandas as pd
import time
url = 'http://www.twse.com.tw/ch/trading/exchange/BWIBBU/BWIBBU.php'
def parserTSE(year, month, no):
year = str(year)
month = str(month)
no = str(no)
payload = {
'query_year': year,
'query_month': month,
'CO_ID': no,
'query-b... | [
"chihchinag@gmail.com"
] | chihchinag@gmail.com |
ec282d154faabb3d27915f38c3c13d823ae008c8 | 39de3097fb024c67a00c8d0e57c937d91f8b2cc9 | /Graphs/first_depth_first_search.py | d08ac89c8316ae345b61554a0dbaf65cbb800397 | [] | no_license | srajsonu/InterviewBit-Solution-Python | 4f41da54c18b47db19c3c0ad0e5efa165bfd0cd0 | 6099a7b02ad0d71e08f936b7ac35fe035738c26f | refs/heads/master | 2023-03-07T05:49:15.597928 | 2021-02-24T18:20:07 | 2021-02-24T18:20:07 | 249,359,666 | 0 | 2 | null | 2020-10-06T10:54:07 | 2020-03-23T07:09:53 | Python | UTF-8 | Python | false | false | 558 | py | from _collections import defaultdict
class Solution:
def __init__(self):
self.graph = defaultdict(list)
def Solve(self,A,B,C):
n=len(A)
for i in range(n):
self.graph[A[i]].append(i+1)
vis=[0]*(n+1)
q=[]
q.append(C)
vis[C]=1
while q:
... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
75cc35602ae659ea024b658db136fe838acb3ec8 | dae4ab4882080344e5f505def7e2e59e0ed888b4 | /polyaxon/libs/unique_urls.py | 9a1268f47539af0e3fffc4d92358250465c22ab1 | [
"MPL-2.0"
] | permissive | vfdev-5/polyaxon | 8c3945604e8eaa25ba8b3a39ed0838d0b9f39a28 | 3e1511a993dc1a03e0a0827de0357f4adcc0015f | refs/heads/master | 2021-07-09T22:27:23.272591 | 2018-11-01T23:44:44 | 2018-11-01T23:44:44 | 154,320,634 | 0 | 0 | MIT | 2018-10-23T12:01:34 | 2018-10-23T12:01:33 | null | UTF-8 | Python | false | false | 1,467 | py | def get_user_url(username):
return '/{}'.format(username)
def get_project_url(unique_name):
values = unique_name.split('.')
return '{}/{}'.format(get_user_url(values[0]), values[1])
def get_user_project_url(username, project_name):
return '{}/{}'.format(get_user_url(username), project_name)
def ge... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
327b9720cf90db9b40e56d118b4b15e2dd54d0ca | 4668d0c19f483cf40d37c0d3b3b22ec4a273eb3c | /intercept/plain_tcp_bridge.py | 93d518a7187ec58284a1d8991a4415fff18a18f7 | [] | no_license | jevinskie/proxytap | ee423996c5bd8a516312d0a20a3ee4656f7e2067 | 1f4dadf68247959fbc56f5e49b7f5d6a836ad7a9 | refs/heads/master | 2016-09-05T19:20:07.796643 | 2012-01-19T21:24:14 | 2012-01-19T21:24:14 | 2,572,088 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from scapy.all import Ether,TCP
import socket
from tcp_state import *
class PlainTcpBridge(object):
def __init__(self):
self.sockets = {}
def set_tcp_interceptor(self, tcp_int):
self.tcp_int = tcp_int
def connect(self, sock):
try:
print "start con"
brsock =... | [
"jevinsweval@gmail.com"
] | jevinsweval@gmail.com |
8a3336a7bcdd604e74b83c6d88392be64fce7e97 | daa727ab2f9415e345c19dd722e6de82945281b5 | /app.py | 4a8641ba0bb7a05df8464ac7694ac0679330054f | [] | no_license | Zeeshan75/docker_demo_71 | e629753f2eea6a94519eeea9e3aaf2a9c95d042a | edb9717757793134cbacb0c0c63a7fb45911e3fc | refs/heads/main | 2023-07-07T17:48:59.373387 | 2021-08-31T08:41:26 | 2021-08-31T08:41:26 | 401,631,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from flask import Flask
import os
app = Flask(__name__)
@app.route("/")
def hello():
return "getting started docker new change the file ........................!!"
if __name__ == "__main__":
app.run(host='0.0.0.0',debug=True, port=4000)
| [
"noreply@github.com"
] | Zeeshan75.noreply@github.com |
47607374b412d3c3ea3a567915b7d2377f77190a | 27bccae0a0651dec824eb40633448928f3fa87a7 | /masterpc/apps/user/templatetags/sum.py | d6c4b1d6a806d71909cda61bda0e4857984ca5f1 | [] | no_license | samir04m/MasterPC | 1d2a2955b491d99afa14a94fc9955140cdbfb9bd | be115e2b38e518c2e8d0aa185f53c02ffd56dac8 | refs/heads/master | 2022-09-30T01:35:40.792649 | 2020-06-09T03:49:21 | 2020-06-09T03:49:21 | 262,657,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django import template
register = template.Library()
@register.filter
def sum(a, b):
return a + b | [
"samir04m@gmail.com"
] | samir04m@gmail.com |
65a0dc2550757ed063b5e95fc41794c30d082456 | 5cb5b774b1f5c5f9b503ed5da863f9c7e3773f5e | /6 - ZigZag Conversion/main.py | 60f09ef05958c656df971bd1fcacd79155773e6b | [] | no_license | ewalldo/LeetCode-Problems | 92a5325c8bdb79fc69ea5dff1768f769fc13cc83 | caba88c5c2b709625e1915554cf3b8a3a73ed2b4 | refs/heads/master | 2022-11-16T06:25:32.817039 | 2020-07-12T02:58:16 | 2020-07-12T02:58:16 | 277,758,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 0 or numRows == 1:
return s
ret_ = []
n = len(s)
cycle_len = 2 * numRows - 2
for i in range(numRows):
for j in range(i, n, cycle_len):
ret_.... | [
"noreply@github.com"
] | ewalldo.noreply@github.com |
39c3141c70b4a3fe7f93408a9993d754ec1d4bd5 | e2c6f262bb4ea12e3adb4534b3d7e3451c416dc4 | /slarson/pywikipedia/maintcont.py | b55f806b04bc8e108737425fb4b8a8401c72cf48 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-mit-old-style"
] | permissive | slarson/ncmir-semantic-sandbox | c48e8c9dd5a6f5769d4422c80ca58c370786bfab | d6a02a5cf4415796f25d191d541ebaccaab53e7f | refs/heads/master | 2016-09-06T04:10:21.136714 | 2009-03-31T09:49:59 | 2009-03-31T09:49:59 | 32,129,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
The controller bot for maintainer.py
Exactly one instance should be running of it. To check, use /whois maintcont on irc.freenode.net
This script requires the Python IRC library http://python-irclib.sourceforge.net/
Warning: experimental software, use at your own ris... | [
"stephen.larson@933566eb-c141-0410-b91b-f3a7fcfc7766"
] | stephen.larson@933566eb-c141-0410-b91b-f3a7fcfc7766 |
71d1c10d5510aae57aba8c5b966cb8abcea7333d | 11daa29e6234611fdff7002c0bd6359ee89187f6 | /lab 4/PlanetWars lab(1)/PlanetWars lab/bots/Blanko.py | 494b9632e83016dfb28d61692d1fa8afeed5e2b0 | [] | no_license | TomLatimer92/Artificial-Intelligence-for-Games | fef960fe4aacd347272961f3c625a72aed46b2e8 | b9a6f754be4df33ad836ff423b00bae2448843cd | refs/heads/master | 2020-04-16T01:45:19.644230 | 2017-06-09T02:44:52 | 2017-06-09T02:44:52 | 83,385,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | ''' Simple "Blank" PlanetWars controller bot.
The Bot does nothing, but shows the minimum a bot needs to have.
See the `update` method which is where your code goes.
The `PlanetWars` `Player` object (see players.py), will contain your bot
controller instance. The Player will provide a current `GameInfo` instance ... | [
"9718648@student.swin.edu.au"
] | 9718648@student.swin.edu.au |
eac1ab541e86524ea94c08d6969cdedaa9046529 | cf8e42cc0846e07c391fad400265ae7579299e7e | /App/musixscore/views.py | 5f55a02212bbe6cf3c828f87d5edfddce58ec5e6 | [] | no_license | breezyrush/group1 | 0e39057665d6cda942af5e874fe55873f738df52 | b9b259ad95c56512533f75101e77d35e7f6905c8 | refs/heads/master | 2021-01-21T14:01:36.752975 | 2015-12-17T13:50:57 | 2015-12-17T13:50:57 | 49,046,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from django.shortcuts import render
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseRedirect
from .models import *
def home(request):
return HttpResponseRedirect(reverse('browse'))
def clear(request):
cart = Cart.objects.all()
for c in cart:
c.delete()
return Htt... | [
"roselle.ebarle04@gmail.com"
] | roselle.ebarle04@gmail.com |
2ac6fd37659ab6b940ecee9fbc7eff07fd8ca0db | 4ebad384d7964d38f31f0f21e79243e1a461c019 | /Tugas.py | cf4664fea8597ce6978d8b8915fc08077aa6bd5f | [] | no_license | azrilizha/TugasAkhir | 7027c13e7eacb5550817c5a08a0266d99c7c531c | 404bd4e668fcee2d1f5f45ef2243cb1c72f5172c | refs/heads/main | 2023-02-09T23:13:43.910051 | 2021-01-03T09:16:36 | 2021-01-03T09:16:36 | 326,343,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | import csv
import os
import datetime
date = datetime.date.today()
nama_file = "data servis Virtual Komputer.csv"
def blank_screen():
os.system('cls' if os.name == 'nt' else 'clear')
barang = []
with open('data servis Virtual Komputer.csv', 'w', newline='') as csv_file:
barang = ["Tanggal","Nama Barang","Jum... | [
"noreply@github.com"
] | azrilizha.noreply@github.com |
d3ef66b13c17f8fe1ee580b188cfbdc448362ae2 | 8a2736b2f6ff848d0296aaf64f615ffab10d657d | /b_NaiveBayes/Original/Basic.py | c43274031e68abacbf14c82fc4271fc557f866f9 | [] | no_license | amorfortune/MachineLearning | 4d73edee44941da517f19ff0947dfcc2aab80bb1 | 1923557870002e1331306f651ad7fc7a1c1c1344 | refs/heads/master | 2021-01-09T06:02:56.852816 | 2017-02-03T07:22:22 | 2017-02-03T07:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | import numpy as np
from math import pi, exp
sqrt_pi = (2 * pi) ** 0.5
class NBFunctions:
@staticmethod
def gaussian(x, mu, sigma):
return exp(-(x - mu) ** 2 / (2 * sigma ** 2)) / (sqrt_pi * sigma)
@staticmethod
def gaussian_maximum_likelihood(labelled_x, n_category, dim):
mu = [np.... | [
"syameimaru_kurumi@pku.edu.cn"
] | syameimaru_kurumi@pku.edu.cn |
5b7118aae6780676a9b1e5dd9aaf4e5714a2dd11 | 36a094a44450d1353e9dfc8242a54e2bb70bb9b5 | /src/ebonite/build/helpers.py | 4d914e3f781459de8dab388a9fd817735874b529 | [
"Apache-2.0"
] | permissive | zyfra/ebonite | 52843ce847a3fd28e4ba8ab64d986dcfb23671c0 | b01b662c43709d152940f488574d78ff25f89ecf | refs/heads/master | 2022-11-29T21:20:02.358797 | 2020-10-19T12:22:49 | 2020-10-19T12:22:49 | 221,721,146 | 275 | 18 | Apache-2.0 | 2022-11-21T22:44:02 | 2019-11-14T14:49:47 | Python | UTF-8 | Python | false | false | 1,239 | py | from functools import wraps
from typing import List, Callable
from pyjackson.utils import get_function_fields, turn_args_to_kwargs
def validate_kwargs(f=None, *, allowed: List[str] = None, allowed_funcs: List[Callable] = None):
def inner(func):
all_fields = allowed or []
if allowed_funcs is not N... | [
"noreply@github.com"
] | zyfra.noreply@github.com |
f6a5c9b594417257ba6c45214cb08941d6ed3a86 | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/tags_output/=+home=+abel=+.virtualenvs=+django=+lib=+python2.7=+site-packages=+django=+views=+generic=+detail.py | a3f8b315eb315bda85117f9e7f2d3232d007aa1d | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VER... | [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
77f5e2718963f38e6f8d3b4f94db63d867327aac | fa074f02d654df1a60e5f5d6cc0e53279f352ba3 | /Pilot3/P3B7/metrics.py | 2e3b8e8867ce592d35fdca05cce30c73ebec6bb8 | [
"MIT"
] | permissive | samcom12/Benchmarks-3 | 2ff5b943df7a0b4f20f8cfa6a9373383a74687e5 | a48c85a4d4d76905c3392b18e42bea4bd28c518c | refs/heads/master | 2023-08-29T19:44:27.455414 | 2021-08-02T14:34:52 | 2021-08-02T14:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | from pytorch_lightning.metrics.classification import F1
class F1Meter:
def __init__(self, tasks, average='micro'):
self.metrics = self._create_metrics(tasks, average)
def _create_metrics(self, tasks, avg):
"""Create F1 metrics for each of the tasks
Args:
tasks: dictionar... | [
"young.todd.mk@gmail.com"
] | young.todd.mk@gmail.com |
a467cdec749495cd2cef258f4ff84b48fc93d69b | 0686c615c9a78b4aae8b7be064d7ee6653f45fff | /GUI/Contain/lable_frame.py | f75d7fdf4d979a6e79fa4101c09e73e1d2dd4de2 | [] | no_license | QuangVuong85/Tkinter | 647bf6b8873dd9698befcad131ebdead70f5f0ee | a87f31b9e805d4fad0ee16616ae8ef9b42371b4e | refs/heads/master | 2020-06-04T10:03:52.941390 | 2019-06-16T09:55:56 | 2019-06-16T09:55:56 | 191,978,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from tkinter import *
from tkinter import messagebox
import random as rd
def random_value():
messagebox.showinfo("Message", "Value random=%f"%rd.random())
master = Tk()
master.title("Title")
lableframe = LabelFrame(master, fg="red", font=14, text="Random value")
lableframe.place(relwidth = '1.0', relh... | [
"quangvuong0805@gmail.com"
] | quangvuong0805@gmail.com |
4525aa767d23f6bb83dd9dc9727e3368900f2e47 | 01f321b011953de639030b010249ec721446e71b | /virtual/bin/easy_install-3.6 | 5395a95d1f956a344d068bdc788dada7c9a1edfe | [] | no_license | gabrielcoder247/myportfolio | a5b37fd809eeb46926f72d9409d31f29f842d179 | e7e08045d6cea0f8393379bc2feb878cef25ff63 | refs/heads/master | 2020-03-30T03:37:15.111963 | 2018-09-28T06:55:31 | 2018-09-28T06:55:31 | 150,698,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 6 | #!/home/gabrielcoder/Documents/portfolio/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gabrielcoder247@gmail.com"
] | gabrielcoder247@gmail.com |
c026325912bbc226f2020f4804cb3964da43e858 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/linear/linear_transform.py | 657282a1c1dbc8111ae74b874623568fcce31f81 | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | """
.. todo::
WRITEME
"""
__authors__ = "Ian Goodfellow"
__copyright__ = "Copyright 2010-2012, Universite de Montreal"
__credits__ = ["Ian Goodfellow"]
__license__ = "3-clause BSD"
__maintainer__ = "Ian Goodfellow"
__email__ = "goodfeli@iro"
class LinearTransform(object):
"""
A generic class describing a ... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
864fc05a6117b18a00d629f8d80d7a448f6517f9 | 4c7750cd7d645ce0704032bf4ca9afd33b37020d | /configs/top_down/resnet/mpii/res50_mpii_256x256.py | e83aa9400a85c3017812fb8ffb293601bde131e0 | [
"Apache-2.0"
] | permissive | Nabin-Subedi/mmpose | c5239bb8d6155c724030736e51a44aba87e34657 | 586cea709a407c4e9cdd5d2d5adc23f8caec924b | refs/heads/master | 2023-01-11T06:48:57.703848 | 2020-11-18T03:11:24 | 2020-11-18T03:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='PCKh', key_indicator='PCKh')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learn... | [
"noreply@github.com"
] | Nabin-Subedi.noreply@github.com |
58245768cd84f9603e8f689a19db03e72f3ccfd5 | 343e2805922596f5f7028624cbe293dc26cfe0a7 | /binary_search_tree_tests.py | d9f4485c115b7167840fdc6ceaadee166fe9e083 | [] | no_license | cdrn/Algorithms | 73e556fe7f9e7116760879ee279ceec1ec3b527d | 5a4d7621466ae86bbeafb137f77652c736f2d5d3 | refs/heads/master | 2021-09-15T16:13:57.215421 | 2018-06-06T12:28:33 | 2018-06-06T12:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | import pytest
import binary_search_tree
# setup
def init_bst():
bst = binary_search_tree.BinarySearchTree(25)
bst.insert(bst.root, 10)
bst.insert(bst.root, 15)
bst.insert(bst.root, 500)
bst.insert(bst.root, 1000)
bst.insert(bst.root, 4)
return bst
def test_bst_init():
bst = init_bst()
assert bst.roo... | [
"chrisdoran@protonmail.com"
] | chrisdoran@protonmail.com |
3fb6d2edd1c23332a727301f124c23df1d0b4df0 | b8717e92625da4c754a84b5bb2bc56545b5bdccf | /azext_iot/operations/generic.py | 95a70b63587e749c138c98b3056526671b87fc83 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | andrewhill00001/azure-iot-cli-extension | b158456a649eb60ea5dc85778b70c752710522ad | 2b1bbedd91a4253548b5edb82fd3d8cf26f69dfd | refs/heads/master | 2020-03-28T20:42:27.320102 | 2018-09-07T21:18:40 | 2018-09-07T21:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | 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.
# -----------------------------------------------------... | [
"noreply@github.com"
] | andrewhill00001.noreply@github.com |
d52046d70e0b72fb5f903072c94bfbe2ee87fac2 | 35bb363d97e33861c76106251991410311f193ca | /maskrcnn_benchmark/utils/checkpoint.py | e095937236eff225b5eb9cb0c40bc3e18b666bd2 | [
"MIT"
] | permissive | krumo/Domain-Adaptive-Faster-RCNN-PyTorch | 82c17dda3d133d6cbae8b16d5a6653e8d1c38df5 | 0da7af8ae4e62d86fb97239026ef1875470e4ca0 | refs/heads/master | 2022-07-25T02:39:28.775147 | 2022-07-11T15:04:13 | 2022-07-11T15:04:13 | 211,833,935 | 298 | 77 | MIT | 2019-10-27T22:09:33 | 2019-09-30T10:22:00 | Python | UTF-8 | Python | false | false | 4,810 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import logging
import os
import torch
from maskrcnn_benchmark.utils.model_serialization import load_state_dict
from maskrcnn_benchmark.utils.c2_model_loading import load_c2_format
from maskrcnn_benchmark.utils.imports import import_file
from mask... | [
"whrzxzero@gmail.com"
] | whrzxzero@gmail.com |
3e0ab987c99c4e799ac09dce61e5b0b24b715612 | 6ed8b908eac26b029214078a58b2791dadd2c968 | /2048puzzle/PlayerAI_3.py | 9f9ffb04d2f8d00473afb317937339c7096e81b1 | [] | no_license | Kunapalli/leetcode | d73d6b4abec93da4a3a2dc92709dbc7b14144bbc | 5fbaac2dd6d5f74b20de6da8a41bb6af4c73ec30 | refs/heads/master | 2020-04-25T20:02:18.396671 | 2019-05-07T04:53:16 | 2019-05-07T04:53:16 | 173,041,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | from random import randint
from BaseAI import BaseAI
import time
import Grid_3
import math
def terminal(state):
return not state.canMove()
def getChild(state, dir):
t = state.clone()
moved = t.move(dir)
return (t, moved)
def children(state):
c = []
for dir in state.getAvailableMoves():
... | [
"sharma@Sharmas-MacBook-Pro.local"
] | sharma@Sharmas-MacBook-Pro.local |
25b320acb305f818264ed9fbc78710bc50781607 | 744771e7ee537d9f13018f2158cc85ea2ba4331c | /opencv/camera/cvimport.py | 1761733a694fe55c926e28fa1b21d6034fb6a52f | [] | no_license | Miragecore/python_study | b654269e9c0a202dd72aa341380f6bbecccbe394 | 475477590afd12a7e93444bea2329db9f74d9e10 | refs/heads/master | 2023-01-18T14:56:00.233073 | 2023-01-09T01:46:52 | 2023-01-09T01:46:52 | 59,117,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import site
site.addsitedir("/usr/local/lib/python2.7/site-packages")
import cv2
import numpy as np
| [
"MirageKimYs@Gmail.com"
] | MirageKimYs@Gmail.com |
70a8dd326fb2ca09e7b9dafc697a919fc5f4956e | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_hcl_firmware.py | 773860479af00219eb4688debc01670faea8c88d | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,857 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
d9ebb9da6703c60aa1b6bae5d27a4646a86c8585 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-petadata/aliyunsdkpetadata/request/v20160101/DescribeInstanceInfoRequest.py | 9e54e048432bd24eba7c3baff1ba1d512898802c | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,128 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"yixiong.jxy@alibaba-inc.com"
] | yixiong.jxy@alibaba-inc.com |
042f26bfe56643c6652b56921c76c835ae78b86e | fcf99db2d9f58da7065369c70f81e3e7cb53356b | /extra/dynamic1.py | 53d37a6922ed684b88e5d2cd97b18c2a630e82aa | [] | no_license | manankshastri/self-d | b0f438e19d1eb6378093205c49eacd7ad3c53275 | 4266c27118354391cc9677e56c0f494506d390cd | refs/heads/master | 2020-04-24T00:38:53.226656 | 2019-10-14T03:44:40 | 2019-10-14T03:44:40 | 171,572,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import time
def fib(x):
if x ==0:
return 0
elif x == 1:
return 1
else:
return fib(x-1) + fib(x-2)
startTime = time.time()
print("%-14s:%d" % ("Result:" , fib(32)))
print("%-14s:%.4f seconds" % ("Elapsed time: ", time.time() - startTime))
| [
"manank.shastri@gmail.com"
] | manank.shastri@gmail.com |
79d7698a4437041440511147e14d336945d9fffe | e942cafaf64f6354e1f9ebd4a84bcf236ad93004 | /yawast/commands/ssl.py | bbfe7b60ff039aab4923e020844fa135c88a4fb5 | [
"MIT"
] | permissive | Prodject/yawast | 9a441a0576012dc5f0664cd23cfa0a803fd7a477 | 044309709cf3782de75a35f77297f2d2850d8e1c | refs/heads/master | 2020-03-23T02:32:12.357082 | 2020-01-21T18:13:19 | 2020-01-21T18:13:19 | 140,978,938 | 0 | 0 | BSD-3-Clause | 2020-01-21T18:13:20 | 2018-07-14T21:23:05 | Ruby | UTF-8 | Python | false | false | 1,974 | py | # Copyright (c) 2013 - 2019 Adam Caudill and Contributors.
# This file is part of YAWAST which is released under the MIT license.
# See the LICENSE file or go to https://yawast.org/license/ for full license details.
import socket
from yawast.commands import utils as cutils
from yawast.scanner.cli import ssl_intern... | [
"adam@adamcaudill.com"
] | adam@adamcaudill.com |
ff363c8bbbbcb10df1b0550fdc8d72a9e1003e47 | e5793284d9327bfef1b9b8b4bdb3a012fa721def | /plataforma/sujetos/migrations/0020_auto__add_field_persona_telefono.py | e0d8fbb9a152c103b14cecf3f2c61f085ff984dc | [] | no_license | saraif/plataforma | 1b486fd1dd41c136d3be011957ad254e2ecc2dfd | 4e27260bcce19dc337c5cc804d26400cefdcf86f | refs/heads/master | 2020-04-29T13:02:09.787275 | 2013-11-22T13:29:28 | 2013-11-22T13:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Persona.telefono'
db.add_column(u'sujetos_persona', 'telefono',
self.g... | [
"salacuatro@salacuatro.(none)"
] | salacuatro@salacuatro.(none) |
344a82674f33771880a5b0e100072e35f8462279 | ed44dfecd44f7fee6cfaf9630b472e3c0968bccb | /gestionadmin/shops/urls.py | 2c3eded9d0d3bf50b1697e9f38a69716285fb33b | [] | no_license | paulemxx/Orgo | 0119429acbefaa2f878e4588a2ebfa75759d8c7a | 74ec1904fc61fdfd1d543d01e55f134c504b59f8 | refs/heads/main | 2023-01-23T19:26:14.344946 | 2020-11-24T23:38:05 | 2020-11-24T23:38:05 | 305,420,661 | 0 | 1 | null | 2020-10-21T22:48:46 | 2020-10-19T14:57:40 | HTML | UTF-8 | Python | false | false | 496 | py | from django.urls import path
from gestionadmin.shops import views
app_name = 'shops'
urlpatterns = [
path('ajoutproduit', views.ajoutproduit, name='ajoutproduit'),
path('ajoutcategorie', views.ajoutcategorie, name='ajoutcategorie'),
path('ajouttag', views.ajouttag, name='ajouttag'),
path('listeprodui... | [
"gnogan.paul@gmail.com"
] | gnogan.paul@gmail.com |
a0839df16294a099c433e6529f1a9a3ba7994d38 | b1004bfd794910911b4eb510a6e5a0460ce1cb5a | /python3course/finalcapstone/euler_path/graph.py | 842336aca7d9c19e066032be50eebd69e4813a06 | [] | no_license | GeorgeKeith/udemy_py | 4e0385bbf10441534d5c0ee22d022f7d441b0fae | b4e68240e6954e0f70b17265e8f4ed343243a6b9 | refs/heads/master | 2020-03-19T04:44:24.806075 | 2018-06-03T04:20:14 | 2018-06-03T04:20:14 | 135,860,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | from node import Node
from link import Link
class Graph:
def __init__(self):
self.nodes = {}
def __len__(self):
return len(self.nodes)
def add_node(self, name):
node = Node(name)
self.nodes[name] = node
def add_nodes(self, names):
name_list = names.split(",")... | [
"george@techfeathers.com"
] | george@techfeathers.com |
5865f3e2289173a978094911b88a1b6f0e1d7ebe | dd638b83d7f1b351affa17bee0300b825ec7f833 | /serious_pysam/game/game.py | 62dbaff43aa2f69857b679cfbd6b08adba76935a | [
"MIT"
] | permissive | notrurs/Serious_PySam | 1b3d3b9cc25875ef7cd9d4c47203bb9aba719010 | 37acbf3d2a1136f35b907f0528a4005e6870b4a1 | refs/heads/master | 2023-05-10T10:14:51.961755 | 2021-06-15T10:43:01 | 2021-06-15T10:43:01 | 255,668,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,503 | py | import pygame
import sys
from collections import defaultdict
from pygame_menu.locals import ALIGN_CENTER
from serious_pysam import config as c
from serious_pysam.menu.menu import MainMenu
class Game:
"""Main super class for Game object."""
def __init__(self,
caption,
width,
... | [
"fursik111@gmail.com"
] | fursik111@gmail.com |
49b17dda58267f24453517afa4f2ea37b95f754d | 961d8796f1e6c39f8d3f150a8cb25a351320bc38 | /utilities/clubUserPurchases.py | 0fc1a94e8fbd048fadc979df2690ad93447728c1 | [] | no_license | akshitar/TargetChallenge | 98aec45b3264ce90c41f325c565fa0ad70eedf08 | 22415d5ddf3d921beb1b8ede7ec46c0309458dbb | refs/heads/master | 2020-12-24T20:52:49.162479 | 2016-05-03T17:46:39 | 2016-05-03T17:46:39 | 57,988,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import csv
import marshal as pickle
fileUserPurchase = open('assets/userPurchaseChronology', 'r+')
userPurchases = {}
prevUID = ''
with open('data/transactionLog.csv', 'rb') as transactionLog:
count = -1
reader = csv.reader(transactionLog)
purchaseLog = []
for userData in reader:
count = count... | [
"akshitar@usc.edu"
] | akshitar@usc.edu |
4efa1687dadd46892464c946083720005116424d | 888f65551bb3fe1b8e84c205796b24678669a649 | /venv/bin/mako-render | e6e8f3b2ebd988dca4cd46c0956c7a2d59f20d2a | [] | no_license | chunharrison/NBA-Predictor | e6514c70f2cf26d6db4c14aee225cfbd9d5984a7 | 967951ba34debee012385af63f2bf8031dee51ca | refs/heads/master | 2022-05-04T22:02:03.374496 | 2019-05-15T05:55:34 | 2019-05-15T05:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/harrison/Documents/NBA-Predictor/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"wjsdntjr@hotmail.com"
] | wjsdntjr@hotmail.com | |
b3ed8beabe64300b4c689147e18f17f5b1453e18 | 7565e9fb464e12d950a8e0dc4195c6b60035559b | /hw5/save_original_info.py | 11262f34acc448960290e9419938dd7f267c916a | [] | no_license | proevgenii/EPAM-HW-2020- | 0cb3d32d3399aada6e30d300da7b6036181171bc | 3d884c8f10b1b183f1802f815e7b6dddbec79c9f | refs/heads/main | 2023-07-06T20:04:28.069300 | 2021-08-23T20:50:00 | 2021-08-23T20:50:00 | 344,617,122 | 0 | 0 | null | 2021-08-23T20:50:17 | 2021-03-04T21:41:38 | Python | UTF-8 | Python | false | false | 2,020 | py | """
Написать декоратор который позволит сохранять информацию из
исходной функции (__name__ and __doc__), а так же сохранит саму
исходную функцию в атрибуте __original_func
print_result изменять нельзя, за исключением добавления вашего
декоратора на строку отведенную под него - замените комментарий
До применения вашег... | [
"proevgenii19@gmail.com"
] | proevgenii19@gmail.com |
db96e3cc2ff9ff0b7d64455bcbb747357bd27f7f | 8a1351dd9a9f7ab8f58e133cab788aed29edbf04 | /pyspark_model/online_pred.py | d4f9d75f07a2c90ea0002a1f2881f807c8c71001 | [] | no_license | stubird/onlinePred | 3999c2444c6599d01564258e232b966e2858a326 | 9208118fa48de3484e00bed044cac1bf99e0be8f | refs/heads/master | 2020-03-30T01:40:45.220258 | 2018-11-02T07:21:12 | 2018-11-02T07:21:12 | 150,588,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import flask
from flask import Flask, request, url_for, Response
from sklearn.externals import joblib
from pyspark.mllib.tree import GradientBoostedTreesModel
from pyspark.mllib.linalg import SparseVector
from pyspark import SparkContext,SparkConf
import json
app = Flask(__name__)
# 加载模型
conf = SparkConf().setMaster("... | [
"360789029@qq.com"
] | 360789029@qq.com |
9f531ead96710329b7c89d17a9c2abd4b35294a1 | 41704c5c80283fd87afdbf41949ad69c1c240303 | /Lectures/s9/exercise.py | 1946ba302591e70f6631fad240b47cd6655b146f | [] | no_license | geonsoo/HCDE310 | 3263dbc7135351eb7996e5ba7386562e70562138 | 6605df0c65310b3c412df5d4e15e31d20625c825 | refs/heads/master | 2020-06-14T18:31:13.701033 | 2016-12-02T01:00:18 | 2016-12-02T01:00:18 | 75,346,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | import urllib2
from BeautifulSoup import BeautifulSoup
def try_it(someURL):
# Get the web page at that URL
response = urllib2.urlopen(someURL)
# Read the page data as one big string
page_data = response.read()
# Print out the URL
print "URL is: " + response.geturl()
# Print out the numbe... | [
"smunson@gmail.com"
] | smunson@gmail.com |
3902c35a3082958cebda9eb01b43d71151829312 | 948f254e75e7d0f816c0944d636234f1668eb7b8 | /meaniceinbox_old.py | fafa56764682dcf81c0fcd5a071bfd515871debf | [] | no_license | NOAA-Strausz/EcoFOCI_ssmi_ice | 30f2398ba0e87c5b710cd57e933d3fb885ddb540 | b0501df633f419a0aebf45308b98919a6d2a5b9e | refs/heads/master | 2021-12-09T11:51:57.638964 | 2021-12-01T21:42:40 | 2021-12-01T21:42:40 | 162,646,458 | 1 | 2 | null | 2020-10-22T22:47:00 | 2018-12-21T00:45:39 | Python | UTF-8 | Python | false | false | 8,088 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 20 13:15:11 2019
@author: strausz
"""
import argparse
import glob
import numpy as np
import datetime as dt
import pandas as pd
import math
import sys
from haversine import haversine
parser = argparse.ArgumentParser(description='Get ice concentrat... | [
"david.strausz@noaa.gov"
] | david.strausz@noaa.gov |
c981f1e95abb4190bf05190cd91b6a38d5e84056 | 507947847e9b72c2b427b74c15f325f36b269e02 | /apps/belt/models.py | e8510049f3924077500d033054504837f4d43185 | [] | no_license | echeverria-oscar/oscar_belts | 57916cf9875db2d004427fb8b382c1df8c296e32 | 446ccaa6cdf3776844284dca64ce45f3d9f7aa65 | refs/heads/master | 2020-12-24T12:34:57.968726 | 2016-11-06T06:33:33 | 2016-11-06T06:33:33 | 72,974,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,873 | py | from __future__ import unicode_literals
from datetime import datetime, date
from django.db import models
import bcrypt
from django.db import models
# Create your models here.
class UserManager(models.Manager):
def login(self, post):
user_list = User.objects.filter(username = post['username'])
if u... | [
"oscar@oscars-MacBook-Pro.local"
] | oscar@oscars-MacBook-Pro.local |
40ebde4a66db2044009fa4345a931b67003e657b | c91d029b59f4e6090a523bf571b3094e09852258 | /src/comercial/apps.py | 8f54832caa2d497204eca6944b8e7c6dc3c3e09e | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class ComercialConfig(AppConfig):
name = 'comercial'
| [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
f29a1716fb77131024301e47e4439bc769de638a | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/types/search_messages_filter_animation.py | e52ba5032981ef7f5289e9d53f9ec2a0230f7cab | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 559 | py |
from ..utils import Object
class SearchMessagesFilterAnimation(Object):
"""
Returns only animation messages
Attributes:
ID (:obj:`str`): ``SearchMessagesFilterAnimation``
No parameters required.
Returns:
SearchMessagesFilter
Raises:
:class:`telegram.Error`
"""... | [
"me@amirh.co"
] | me@amirh.co |
b7f1b707aff8227e5a6adbf2cc67481d0bb0a5a8 | 82008bd4464276674c0f87bc5920563877d2a9dc | /validphone.py | 5d24834a8fcfff8e9197404b5e603e807e80c08b | [] | no_license | smudugal/ValidPhoneNumber | 6d9e0fcc1b0687f1ec86b38c6260b7d9da32f06c | 998f8719426b42a5687f59a84e936df42ee4b7a7 | refs/heads/master | 2021-01-19T13:43:57.037748 | 2017-02-18T21:48:45 | 2017-02-18T21:48:45 | 82,414,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import re
def telephone_check(num):
pattern = '^1?\s?[(]?[0-9]{3}[-,)]?\s?[0-9]{3}[-,\s]?[0-9]{4}$'
if re.match(pattern,num):
return True
return False
if __name__ == "__main__":
print 'Enter a telephone number to check: '
num = raw_input()
valid = telephone_check(num)
pass
| [
"samyukta.11@gmail.com"
] | samyukta.11@gmail.com |
10e06c96d12545cd7e9bbb9a2321187fd1f606ea | 6b937035c51cf5653e30478ffe7e677ba557258f | /clock.py | af29f6c4d9ad47a4695fcf2b9c4619058e7ddbf3 | [] | no_license | greeedyboy/HttpServer | 920d4c4c3ba0ac9f225d9bcddbf9d4c4847b5bdd | bbd62a490a64bb975f23d93ef0ed729e28c91ccb | refs/heads/master | 2020-05-17T21:51:20.957123 | 2019-04-28T16:56:51 | 2019-04-28T16:56:51 | 183,983,432 | 0 | 0 | null | 2019-04-29T02:04:43 | 2019-04-29T02:04:42 | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""info
"""
from gking.plugin.creatart import git_post
from apscheduler.schedulers.blocking import BlockingScheduler
import subprocess
sched = BlockingScheduler()
@sched.scheduled_job('interval', minutes=120)
def timed_job():
print('This job is run eve... | [
"greeedyboy@163.com"
] | greeedyboy@163.com |
19907a4d12c158d81ffc7e4e964f3e29250c770d | 6b53ece215f6de1ce87b0c2a9aece8ede6b4a05d | /ah.py | a96b1e183a06a108adf7deca657f60f4d5f0cefe | [] | no_license | micheldavalos/kattis_aaah- | fad19fd0596caab04154f1ad111f6e38bb74662b | bbedc7335b1c530cb3f869482ed0b2b54e4a0d51 | refs/heads/master | 2020-06-06T19:25:30.962955 | 2019-06-20T02:24:34 | 2019-06-20T02:24:34 | 192,833,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | first = input()
second = input()
if first == 'h' and second == 'h':
print('go')
elif len(first) >= len(second):
print('go')
else:
print('no') | [
"michel.davalos@academicos.udg.mx"
] | michel.davalos@academicos.udg.mx |
ea29a9cc461cc772418606651a63a753c9adce36 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/securitycenter/v1p1beta1/securitycenter-v1p1beta1-py/google/cloud/securitycenter_v1p1beta1/types/organization_settings.py | faec729075707f892513d3f7e9e1c999722a8557 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
d2d9b448996e36b3842f5c9574cb580f9715777c | 34b6995f57f5f599e93df6f3e3841bbb9616b85f | /gym_electric_motor/envs/gym_dcm/dcm_base_env.py | 4d5cae80381ab8a7d50999601947b03aaae29c65 | [
"MIT"
] | permissive | zizai/gym-electric-motor | ec86584315b4abf91f5d3ee7978272e00085728e | 48a0232edf3474e441453126df0f52dc391aed11 | refs/heads/master | 2020-11-24T20:39:37.934074 | 2019-12-20T10:01:53 | 2019-12-20T10:01:53 | 228,333,802 | 0 | 0 | MIT | 2019-12-16T08:02:48 | 2019-12-16T08:02:47 | null | UTF-8 | Python | false | false | 33,923 | py | import gym
from scipy.integrate import ode
import numpy as np
import json
from .models import dcmotor_model, converter_models, load_models
from ..dashboard import MotorDashboard
from ..utils import EulerSolver
class _DCMBaseEnv(gym.Env):
"""
**Description:**
An abstract environment fo... | [
"wilhelmk@campus.uni-paderborn.de"
] | wilhelmk@campus.uni-paderborn.de |
5a45bf84ab969517a17806532492d907662c8f93 | 844e0cd4ffbe1ead05b844508276f66cc20953d5 | /test/testseqdiagbuilder.py | 111bfcc7200d6457de50b6bc106cb2bee15747bd | [] | no_license | Archanciel/cryptopricer | a256fa793bb1f2d65b5c032dd81a266ee5be79cc | 00c0911fe1c25c1da635dbc9b26d45be608f0cc5 | refs/heads/master | 2022-06-29T13:13:22.435670 | 2022-05-11T20:37:43 | 2022-05-11T20:37:43 | 100,196,449 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66,316 | py | import unittest
import os, sys, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
sys.path.insert(0,currentdir) # this instruction is necessary for successful importation of utilityfortest module when
... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
8fa26a7fc731cf1959afc22db8fe82bb1fe9ed7b | f37a5d7d252e014a0664cccac5a567fd94ba76eb | /api/src/entities/recommendation.py | cd1800336b7ed64a62b3ddb3117dc82300bd47b5 | [] | no_license | GabrielVanLoon/Projeto_Teach.me | 3e795b04815716d9644bc06145e3d3c9caf8032f | 43188ebb27142904b1b2c8a620898971733ce298 | refs/heads/master | 2022-12-25T19:00:09.536937 | 2020-10-03T21:50:26 | 2020-10-03T21:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | class Recommendation:
def __init__(self, student=None, instructor=None, text=None):
self.student = student
self.instructor = instructor
self.text = text
def __iter__(self):
yield 'student', self.student
yield 'instructor', self.instructor
yield 'text', s... | [
"gabriel.vl.rojas@gmail.com"
] | gabriel.vl.rojas@gmail.com |
56dce1c7a2e622474cab828faaa1e75698d9e760 | 4ac11b3ac16e8ede6075b7da7008b6c63aab2788 | /app.py | bc0e5c2f2298f73a2bca6dddd8593aeb75e34064 | [
"MIT"
] | permissive | DrFirestream/Tabaqui | 59faa185db7fc030dcb9e8278441e3a9bf9413af | dad4fe2b3dcf01195bac330de509663ea2bd6e54 | refs/heads/master | 2022-12-24T15:20:27.472475 | 2020-09-19T21:22:22 | 2020-09-19T21:22:22 | 296,133,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,254 | py | import flask
import boto3
import botocore
import json
import datetime
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql.functions import func
import sys
import os
import random
MAX_REQUESTS_TO_AWS = 20
MAX_PROMPT_LENGTH = 200
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = Tru... | [
"dr.firestream@gmail.com"
] | dr.firestream@gmail.com |
a381417460e3b250868a66c482b42631651416ad | 52e5cd27efb30cd3466e3937fe57ce560f5d56b6 | /5/5-6/main.py | e76c228d88609be9d06a8a0debd4d00027f75c5d | [] | no_license | justice3120/opencv_sample | 25afc2b0877775793f2ae91199f7a642491f28d6 | 7720bd6331758a66d91e46c62cd2114cf194a9f8 | refs/heads/master | 2021-01-18T19:30:26.145170 | 2016-11-24T04:16:04 | 2016-11-24T04:16:04 | 72,085,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | from PIL import Image
import sys
from graph import build_graph, segment_graph
from smooth_filter import gaussian_grid, filter_image
from random import random
from numpy import sqrt
import numpy as np
import cv2
def diff_rgb(img, x1, y1, x2, y2):
r = (img[0][x1, y1] - img[0][x2, y2]) ** 2
g = (img[1][x1, y1] - ... | [
"masayoshi.sakamoto@dena.com"
] | masayoshi.sakamoto@dena.com |
0d9dec6db8744147c3f50fe1865d02563d2fcd29 | 9db53eb9e79f120084461b1ddf4d8df1d16277f4 | /lab1.py | 112d1659cb0fd6c62d79c3d9548925f0cb2458ae | [] | no_license | petersterling1/cmput404lab1 | c8c409ca3f98c7aecaba4e0d734f5234f7a35f62 | 54ba07aed422c3a551e76188f500697ee151bde4 | refs/heads/master | 2020-12-07T19:27:53.045658 | 2016-09-07T21:16:09 | 2016-09-07T21:16:09 | 67,643,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import requests
response = requests.get('https://github.com/petersterling1/cmput404lab1/raw/master/lab1.py')
print response.text
| [
"psterlin@ualberta.ca"
] | psterlin@ualberta.ca |
2f61e1a2a9ae30f8aa6baa190d2c72e14392c2d1 | 99958f3786f4ec372f4f5f5752ed5040dbda4ac3 | /GAE_install/RPG/werkzeug/testsuite/wrappers.py | 6c1d39d1092ce583d371594f8b2f70e2339558ff | [] | no_license | armadillu/LocalProjectsRPG | 01f03eadcfd2f8c7e6bfdc20e149047d3c7f24a4 | 4b974d9de06f85b7d4f807e44c7f836d0b195220 | refs/heads/master | 2021-01-22T12:02:10.023666 | 2013-05-24T20:48:03 | 2013-05-24T20:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,912 | py | # -*- coding: utf-8 -*-
"""
werkzeug.testsuite.wrappers
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests for the response and request objects.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import unittest
import pickle
from StringIO import StringIO
from datetime import ... | [
"oriol@uri.cat"
] | oriol@uri.cat |
90eeb932286f2b70f61e93c7696e6754db0c0289 | 82cdfdc0cc3a3de9d2b3f3ef9e51f25f0f3a11ad | /SAMP/people/migrations/0005_auto_20190711_2032.py | ef10a25d1fcf4accfb4b3d364670cc2a114f4337 | [] | no_license | akitsuryoko/StudentAssosiationManagementPlatform | 8a6a6ad41ee8b1a187aa7a3b6dcfb29247aab58e | 02db11de01275606b3d05119284362cb55e1bc63 | refs/heads/master | 2020-06-19T05:07:30.159642 | 2019-07-12T12:12:30 | 2019-07-12T12:12:30 | 195,827,677 | 0 | 0 | null | 2019-07-08T14:20:50 | 2019-07-08T14:20:50 | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 2.2.1 on 2019-07-11 12:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0004_auto_20190710_1516'),
]
operations = [
migrations.AlterField(
model_name='person',
name='cookie_id',
... | [
"1138164561@qq.com"
] | 1138164561@qq.com |
42af71a8602e0cdea4da087e51fed92e10e0e222 | e2311b68b22d9bfeae2de1e159b9d36ae677fff9 | /Day 10/days_in_month.py | 1236731bc894a4d8ef4e1506b2160e3a70e82ecf | [] | no_license | Omisw/Python_100_days | 80be2886fae8e67cdcc35956fbceab91d9cd5b4d | 8699e6a34938f4a370fc03e1fded53923625aa1d | refs/heads/main | 2023-03-10T06:38:45.858562 | 2021-02-24T22:23:11 | 2021-02-24T22:23:11 | 330,755,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # Day 10 - First exercise.
# Days in Month
# Instructions
# In the starting code, you'll find the solution from the Leap Year challenge. First, convert this function is_leap() so that instead of printing "Leap year." or "Not leap year."
# it should return True if it is a leap year and return False if it i... | [
"o_mis_6@hotmail.com"
] | o_mis_6@hotmail.com |
548aa10877c45afcb7de075e147edf9994827bd2 | bdd8ea8cad219d0fbe7d1151ba566e852dd9b640 | /analyze_job_output.py | bc9943b2c9972c1721c2a26ac8c7d9dd9bb86398 | [] | no_license | edquist/vm-test-runs | ff13928b907c32f07e0d4539e8e27188d88132c1 | 1847bf6e60d20f9662f52b84aa7dc0dddcbdc9ce | refs/heads/master | 2023-02-09T11:39:28.723434 | 2016-06-22T20:31:20 | 2016-06-22T20:31:20 | 63,362,384 | 0 | 0 | null | 2016-07-14T19:04:58 | 2016-07-14T19:04:58 | null | UTF-8 | Python | false | false | 12,607 | py | #!/usr/bin/python
import glob
import os
import re
import socket
import subprocess
import sys
from datetime import datetime, date
import yaml
def run_command(command, shell=False):
# Preprocess command
if shell:
if not isinstance(command, str):
command = ' '.join(command)
elif not (isin... | [
"blin@cs.wisc.edu"
] | blin@cs.wisc.edu |
a28899990a52251b03fac204e9b1ffb85d3044c3 | 04ffe1395bec0943f1f9fc26cffdd9eb8777cf9a | /CONSTANTS.py | d495aacf47c7cb3ec7a517349b702461c99584bb | [
"MIT"
] | permissive | elben10/corona-dashboard | 8693954bee0f58c2f01509db08e33403754b4f4a | ce3be765ee560b9cfec364f3dca32cc804776b8a | refs/heads/master | 2022-12-15T08:59:16.116354 | 2020-03-29T18:34:55 | 2020-03-29T18:34:55 | 248,964,130 | 0 | 0 | MIT | 2022-12-10T23:18:59 | 2020-03-21T11:41:48 | CSS | UTF-8 | Python | false | false | 106 | py | DATE = "dateRep"
CASES = "cases"
DEATHS = "deaths"
ISO2 = "geoId"
COUNTRY_TEXT = "countriesAndTerritories" | [
"jakob@datamaga.com"
] | jakob@datamaga.com |
7a6ed2e5960052212101319e62ebc462b40124b7 | 006bf92faff4950b13b2830924f3a723972e6d45 | /bot.py | 227ede349eaf781f3f4d24b40b0bddfb665afd02 | [] | no_license | NotThareesh/Pybot | 7910942a29279029a7365985f5da9fb5927e7231 | 12bdd159d8307ceb504f7f52d541542c010665e3 | refs/heads/main | 2023-04-24T07:29:25.121851 | 2021-05-17T16:03:49 | 2021-05-17T16:03:49 | 333,765,373 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import discord
import os
from discord.ext import commands
intents = discord.Intents(messages=True, guilds=True, reactions=True, members=True, presences=True)
client = commands.Bot(command_prefix="!", intents=intents, help_command=None)
TOKEN = ''
@client.command()
async def load(ctx, extension):
client.load_exte... | [
"thareesh.prabakaran@gmail.com"
] | thareesh.prabakaran@gmail.com |
f8ce478e09b28dbecf8e4a33bca3cd6def745e32 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_241/ch5_2020_03_04_20_03_29_973202.py | 3d805dd5f639c6b24268fa29be5f1fa3398ea0f6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | libras_para_kg=float(input("Quantas Quilogramas: ")
print("libras:libras_para_kg*0,453592")
| [
"you@example.com"
] | you@example.com |
300fb83211f3f1329e2de6d6bc5c4976fda3927d | 82e02cee23da4c12a6e39bc6fc53760bfdd1d7a6 | /bottle-test.py | 3e488f3ad390feaada6ee09b21123c6f54c3a230 | [
"MIT"
] | permissive | hanky312/Gcoin-api | a40d78e0e7ed4ca1da8417741fa06bfdc56d9935 | 81572de95de45f4e46c9e50da5584855c41d6f54 | refs/heads/master | 2021-01-18T17:24:55.612132 | 2017-04-25T19:00:43 | 2017-04-25T19:00:43 | 86,796,596 | 6 | 1 | null | 2017-04-25T19:00:43 | 2017-03-31T08:29:24 | Python | UTF-8 | Python | false | false | 11,179 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from bottle import route, request, run, response
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
from datetime import datetime
import urllib,json
import pprint
import decimal, simplejson
#fix json type
class DecimalJSONEncoder(simplejson.JSONEncoder):... | [
"hsnu109128@gmail.com"
] | hsnu109128@gmail.com |
0fdae3788745958c642dc3b1fd5772fdbe2b9965 | 4d1415832ff283f8bbb655f356af333a921d96cb | /jasmin/vendor/smpp/pdu/error.py | 5f207ed06eb0aea08a81843b05b50b28ea23e6a2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | DomAmato/jasmin | a7d437632127d67b33dd3c980b548b7639b871fa | a813b8be5722eb7b5d8ac3dfbd0749441ac9df01 | refs/heads/master | 2021-05-24T12:16:32.070490 | 2020-04-06T22:20:01 | 2020-04-06T22:20:09 | 253,556,310 | 2 | 0 | NOASSERTION | 2020-04-28T20:23:33 | 2020-04-06T16:34:50 | Python | UTF-8 | Python | false | false | 2,742 | py | """
Copyright 2009-2010 Mozes, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | [
"tritux.com"
] | tritux.com |
8c82f3f4edeb1917ad66c06c4ad474a27f497bc4 | 58cb93acfdb489dc5b7b75773a4f554e3da554ee | /waifuforsale/settings.py | 13205387591b2a50dd7128af1819038163f57c26 | [] | no_license | Rlexsu/waifusite | 7c3949267e1be8c612abccffbbc4a7b136346581 | 1fe3f8a0df926b1fa7d3180205734e47a885f5ce | refs/heads/master | 2021-01-20T14:28:35.661253 | 2017-05-09T04:36:22 | 2017-05-09T04:36:22 | 90,613,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | """
Django settings for waifuforsale project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"alex.teoh.91@gmail.com"
] | alex.teoh.91@gmail.com |
205d233ac74de0fef9008634ea2b663bc3c14464 | af55b6668d2f390049c57664af7b38832af6d7fa | /pycorrector/bert/predict_mask.py | 9a8613902744b317d7a2397c7405cdf028a5eddb | [
"Apache-2.0"
] | permissive | JohnParken/pycorrector | 5406f9802227dfaed8db6bb3a29e64baf98ddf2c | fed285600996510e073cdf71f3ba57e68116acf7 | refs/heads/master | 2021-02-04T10:04:53.982845 | 2020-03-03T02:37:16 | 2020-03-03T02:37:16 | 243,653,849 | 0 | 0 | Apache-2.0 | 2020-02-28T01:33:36 | 2020-02-28T01:33:36 | null | UTF-8 | Python | false | false | 17,375 | py | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description: Run BERT on Masked LM.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
sys.path.append('../..')
import argparse
import os
import random
import re
import numpy as np
... | [
"507153809@qq.com"
] | 507153809@qq.com |
0e61b44d530b816a0aa5513e650f5a85bfbc5a73 | 1c37f33a0031c4caee8a6bb5e7f748ff147f1d23 | /product/migrations/0005_variationmanager.py | cdf85bd944d895afdbe4b679da2c219ddc2bdccf | [] | no_license | fikocavit/e-commerce | 34003821de7e58b8554acffe98f22958b072aea5 | 0ae07653042677e107cbe2da43ae247848a281da | refs/heads/master | 2023-05-02T18:53:45.995674 | 2021-05-26T09:56:34 | 2021-05-26T09:56:34 | 368,474,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 3.1 on 2021-05-21 09:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0004_auto_20210521_0843'),
]
operations = [
migrations.CreateModel(
name='VariationManager',
fields=[
... | [
"firat.cavit@hotmail.com"
] | firat.cavit@hotmail.com |
2e02246308602c745a87fe2f038ce541667b86f6 | 6739f850c08414905a95d804f85acf3c61fad956 | /pysimt/metrics/cer.py | 5a44a017b743bc32cf872dca9cfdafc276c0bcac | [
"MIT"
] | permissive | welvin21/pysimt | 940eaaec340e3942fdfdebace2a640506459c6c6 | 6250b33dc518b3195da4fc9cc8d32ba7ada958c0 | refs/heads/master | 2023-09-04T18:27:14.294636 | 2021-10-17T15:35:33 | 2021-10-17T15:35:33 | 418,076,867 | 0 | 0 | MIT | 2021-10-17T09:21:02 | 2021-10-17T09:21:01 | null | UTF-8 | Python | false | false | 2,109 | py | """Character error rate (CER)."""
from typing import Iterable, Union, Optional
import editdistance
from .metric import Metric
class CERScorer:
"""Computes the character error rate (CER) metric and returns a `Metric`
object.
Args:
refs: List of reference text files. Only the first one will be us... | [
"ozancag@gmail.com"
] | ozancag@gmail.com |
4648638b49ed86db25fc2b2d037d25916a5b6282 | 92f057d40a83332983279d1b3902593e0540e2f5 | /competitions/migrations/0001_initial.py | 714aba3b90137f528d73c98c1873d51b9b5b796b | [] | no_license | frmblanco/my-project | 1a8e3e47d047f5283ebe4268a359b2e1499f184d | 2e658b2c7060ae0ea75e351033248c04b5b3cebd | refs/heads/master | 2021-07-20T08:43:31.759548 | 2017-10-24T08:24:24 | 2017-10-24T08:24:24 | 107,520,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-19 08:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Compet... | [
"francisco.blanco@opinno.com"
] | francisco.blanco@opinno.com |
f763e33920d9e9ed6b6427fa7aa3b468468add6b | ea8860ef1bde80ea7a9f087f67709918626c3220 | /scrapyprojects/motube/motube/spiders/recursivetube.py | e0133cbe315cfa42d9247588324288c3a36bfb34 | [] | no_license | yorin/scripts | 29db2d6d0737c508f9c16e0a04b820fc278e3733 | 100b18ec11861e42fcf8de2762d2f7ebe4d74e50 | refs/heads/master | 2020-06-04T00:36:18.592100 | 2019-05-15T13:16:22 | 2019-05-15T13:16:22 | 32,155,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # -*- coding: utf-8 -*-
from scrapy.http import Request
from motube.items import MotubeItem
import scrapy
class RecursivetubeSpider(scrapy.Spider):
name = "recursivetube"
allowed_domains = ["youtube.com"]
start_urls = (
# 'http://www.youtube.com/',
'https://www.youtube.com/results?search_que... | [
"werbyvillarino@gmail.com"
] | werbyvillarino@gmail.com |
2dc3ec4af49c857ff67a051334b7be5cbb9dd6ba | 927b50cdaf1c384c8bbf6f13816d0ba465852fd8 | /main/migrations/0002_auto_20201128_0813.py | f86867def1d360053603e5adf8c185ee104522d0 | [
"MIT"
] | permissive | jhabarsingh/DOCMED | f37d336483cffd874b0a7db43677c08a47bd639c | 8a831886d3dd415020699491687fb73893e674c5 | refs/heads/main | 2023-04-26T06:45:10.409633 | 2021-05-19T14:37:53 | 2021-05-19T14:37:53 | 316,683,855 | 3 | 5 | MIT | 2021-02-21T13:32:33 | 2020-11-28T07:51:22 | JavaScript | UTF-8 | Python | false | false | 1,061 | py | # Generated by Django 2.0 on 2020-11-28 08:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='doctor',
name='blood_group',
f... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
f0058d3d6a1df1097582e384bb22a5d06725cbb7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/467/usersdata/282/111931/submittedfiles/Av2_Parte2.py | f4d68cd5e055d09012f4f459c82a6e8816d004ca | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | # -*- coding: utf-8 -*-
a=[]
qa=int(input('Digite o numero de elementos de a: '))
b=[]
qb=int(input('Digite o numero de elementos de b: '))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1c4458211f04b61d65360a91f24938a79f071603 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=43/params.py | 0c4e8626f8dbb25ae1a1eaa2f0fe59307cd289fe | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.017881',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 43,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
494c54dfc73428bb8c69d8883fe9c32c72090571 | 1d4f00932367743c48b26ebf000fab5fdec48495 | /django_leve_five/settings.py | d0c8f66648eb1e3897732959b5ce6850a4b7d27b | [] | no_license | sabrina0331/django-deployment-ex | d53c723349c8782aca241199a53dd1a41fbb0194 | 5bac965d1af8898994edb582e905f59fe5f7db12 | refs/heads/master | 2020-09-14T22:16:43.413517 | 2019-11-21T22:16:00 | 2019-11-21T22:16:00 | 223,275,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | """
Django settings for django_leve_five project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
im... | [
"sabrina20520@gmail.com"
] | sabrina20520@gmail.com |
ae4cc4603c1a22255a40e5fe082d194ec34583d6 | 23c8baaec2c190c1e9c818485a720f7e2c77a79f | /Array/334.py | 7afbcb861e5c5223e7d7b99ca1fda015325dfd55 | [] | no_license | ViVaHa/Leetcode | ca5bc3f157b7802b68d47fe001b0adaa605eb792 | 9e4d39576633a83a5e647cfa3ea62ce4e840e642 | refs/heads/master | 2020-03-22T20:25:31.755179 | 2018-11-22T17:52:35 | 2018-11-22T17:52:35 | 140,598,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class Solution:
def increasingTriplet(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums)==0:
return False
m1=sys.maxsize
m2=sys.maxsize
for num in nums:
if num<=m1:
m1=num
elif num<=... | [
"varshath@Vishnus-MBP.fios-router.home"
] | varshath@Vishnus-MBP.fios-router.home |
487f7f1a66033de858a171cdecf6bc646c75145e | 35ec90ff2b7c22cd67ff5ef35381f8beb49c5ce4 | /venv/lib/python2.7/abc.py | f85089e6de1967d796cf1235936822db08ee4e82 | [] | no_license | xiawei918/driplet | 518ad11290b0d2a9b2f4c96bbab4a1ac38edb724 | 46329631cf82ccf404278ba7d73cf73497486234 | refs/heads/master | 2023-06-21T11:29:52.006897 | 2023-06-17T04:42:52 | 2023-06-17T04:42:52 | 178,310,764 | 0 | 1 | null | 2019-03-29T14:54:03 | 2019-03-29T01:38:59 | Python | UTF-8 | Python | false | false | 43 | py | /Users/weixia/anaconda/lib/python2.7/abc.py | [
"weixia@WEIs-MacBook-Pro.local"
] | weixia@WEIs-MacBook-Pro.local |
68b6abf0c1278b35d7a549089e37e1033e234db4 | 897cc05268f904f3b2faa2f08201087436ac72ab | /Messenger/Developers/venv/bin/django-admin | 3a5a01fe363b45db3f74b7c2348ba83ad86f3aec | [] | no_license | alexkim1218/CSE442-Developers | 513a76ac794b5863bd26beb50f1bde495eae2b08 | 2e027003fcf6c7f5cb4a42fcbed0b3f9b85d2ab3 | refs/heads/master | 2020-05-17T10:35:04.993192 | 2018-12-03T16:57:59 | 2018-12-03T16:57:59 | 183,660,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | #!/Users/HuangweiDing/PycharmProjects/Developers/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"seyaduab@buffalo.edu"
] | seyaduab@buffalo.edu | |
2c3a1f89467d4632951f38ea7f7fe18fe7d23094 | 286f95d4a0b2b0e082a92a4361ad3f6513705943 | /functional-programming/map.py | dce4c4e09c2de4b1e4bfb2e6fa4afc63aef5ce02 | [] | no_license | flashjaysan/python-projects | 5aafffba313d308def867b33e4ebb95152672780 | a95b24a083d50f376a808d846f42751622ac2274 | refs/heads/main | 2023-06-11T17:42:49.205624 | 2021-06-22T16:04:40 | 2021-06-22T16:04:40 | 362,723,330 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import collections
Scientist = collections.namedtuple('Scientist', ['name', 'field', 'born', 'nobel'])
scientists = (
Scientist(name='Ada Lovelace', field='math', born=1815, nobel=False),
Scientist(name='Emmy Noether', field='math', born=1882, nobel=False),
Scientist(name='Marie Curie', field='physics', b... | [
"jaysan@wanadoo.fr"
] | jaysan@wanadoo.fr |
d91951bb7e3d019589001109b06f2d1214f43ea3 | fa4401ec3a3e6077566c5e142567172cd2232b71 | /sg2/game1.py | a529c3ec3a0eaaf506b09bc868d2d0903acf9f80 | [] | no_license | wizardkeven/SeriousGameV2 | c5eb2591a6a158aec52b641b7885d31cf53ae73c | deae6e8c6b70487ff66c9c1e4d61321ed33f450d | refs/heads/master | 2021-01-19T11:05:22.818776 | 2015-04-07T23:05:18 | 2015-04-07T23:05:18 | 29,533,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from kivy.app import App
from kivy.uix.widget import Widget
from kivy.clock import Clock
from kivy.core.audio import SoundLoader
import time
class Object(Widget):
"""Class which represent the object on the screen
"""
def on_touch_move(self, touch):
"""Function called when the object is... | [
"wizardkeven@live.com"
] | wizardkeven@live.com |
c02607f0370710a5f23cb44e48f0bff1b7cdeaaf | fc74436ab3e11ba2978ebb81600dcd3799a74d1f | /lstm_based_seq_2_seq/alad_seq2seq.py | fa019e23d362ca3df50f06ee529e7350ed98120f | [] | no_license | vrahul1997/nlp_from_scratch | f119d8736edbf81474d4916eba6d87de8d73a936 | 08984d7a3900419995df0bd0e99ab4794a7f54dc | refs/heads/main | 2023-02-16T22:04:26.678253 | 2021-01-07T13:04:38 | 2021-01-07T13:04:38 | 314,092,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,947 | py | import torch
import torch.nn as nn
import torch.optim as optim
from torchtext.datasets import Multi30k
from torchtext.data import Field, BucketIterator
import numpy as np
import spacy
import random
from torch.utils.tensorboard import SummaryWriter # to print to tensorboard
from utils import translate_sentence, bleu, s... | [
"vijayvenu1997@gmail.com"
] | vijayvenu1997@gmail.com |
a83b8b621ccdb7c4edbf4359733bf2099d221fe7 | b0eaa5f11441ae24432e57225cfb7906857ee172 | /auth-service-2/venv/lib/python3.6/imp.py | 82ba4f7f3d9967dff13a174e94b08e49c593e914 | [] | no_license | Anyungu/flask-msa | 86bf64631b548a5407b36546a6e46ae415a44b76 | 1126fe6ea016ad5772695079b074f549aea3948d | refs/heads/master | 2023-01-24T16:09:52.088877 | 2020-08-18T14:03:57 | 2020-08-18T14:03:57 | 285,810,522 | 0 | 1 | null | 2020-08-18T14:03:59 | 2020-08-07T11:15:03 | Python | UTF-8 | Python | false | false | 44 | py | /home/namrehs/anaconda3/lib/python3.6/imp.py | [
"anyungucw@gmail.com"
] | anyungucw@gmail.com |
0041805ec3ee73af537e19673e3b48a1208a44fa | 78604a99d488889e2932ed713b209d19178f2c95 | /src/models/pieces/strategies/move_strategy.py | 4aa8cc683e5fef4b330c6acbbba96a628e1bdf27 | [] | no_license | AdnanZahid/Chess_Neural_Networks_With_Python_Chess | 8173706cf97fcf818dc0049054a81659d3346274 | c4d760bed1951bda24c84ed0681b9ca3820550e1 | refs/heads/master | 2021-01-24T04:19:59.626876 | 2018-02-26T07:37:30 | 2018-02-26T07:37:30 | 122,931,577 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # This class manages mobility and list of moves for a piece
class MoveStrategy:
def __init__(self,piece,color,directionsList,board):
self.piece = piece
self.color = color
self.directionsList = directionsList
self.board = board
def getMobility(self,position): ... | [
"adnaan.zaahid@gmail.com"
] | adnaan.zaahid@gmail.com |
1d630546bb190a52d8d5854bcb6b460288e43877 | ffc224baf2393bc6a5d0c24eebd5da689bbfafe1 | /ass2ex2.py | 87ebbb883645591dc553aa7c7d4a7f8531b2351d | [] | no_license | Ranjeth83/assignment- | dd84f4df9abe7a7b61f48626eab4c096516237d0 | c1dc2cf8b03128b4a93a1b41ff69083f297f486b | refs/heads/master | 2022-11-06T09:31:22.711445 | 2020-06-22T02:13:58 | 2020-06-22T02:13:58 | 273,515,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | val = input("enter your name:")
print(val) | [
"noreply@github.com"
] | Ranjeth83.noreply@github.com |
6cf262c45682d5fbf7ebdee95f242ab1457a8f85 | b90444530bd7999168c6ea5e3c17657ae2a0b925 | /test/functional/wallet_disable.py | c3b0df3627e134dcba7685e137121384d0aa298d | [
"MIT"
] | permissive | Bitcoin3-source/Bitcoin3.0 | 4723d3db6fa2edc5734ab28dac87cf131bbcfe9e | 4c623be5200032fd49b54e01147da721e142f4f2 | refs/heads/main | 2023-03-25T20:34:26.331459 | 2021-03-25T02:31:47 | 2021-03-25T02:31:47 | 343,466,598 | 0 | 3 | MIT | 2021-03-25T02:31:48 | 2021-03-01T15:36:34 | null | UTF-8 | Python | false | false | 1,542 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test a node with the -disablewallet option.
- Test that validateaddress RPC works when running with -d... | [
"superdaddynz@gmail.com"
] | superdaddynz@gmail.com |
68038ebf4d1e402773f4dae40fcac9450c4c51bb | ce63cd114213a8debe7874d7904379cedc51ab65 | /Utils/tflite_schema/CustomOptionsFormat.py | fbaad184b926a00a7bd4e4124a81aa07d8e0f60b | [
"Apache-2.0"
] | permissive | sandeepkadiyam/HumanActivityRecognition-in-Bangle.js | 4a901fa709e26f48813b17cc4ec31dfa13019e91 | a174c080d9541d76f177b8655cd033be1d013ec1 | refs/heads/main | 2023-07-05T00:34:55.331509 | 2021-09-03T07:24:52 | 2021-09-03T07:24:52 | 389,747,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
class CustomOptionsFormat(object):
FLEXBUFFERS = 0
| [
"noreply@github.com"
] | sandeepkadiyam.noreply@github.com |
233ca755a7a06a8bb3b16af8bdf0e8b4b9d705fd | cdb92a30ff6e0fd12a782d91af915f4975c8bdce | /video.py | 21b1947d5d8b30efce3fd68aa308b346cd6a4d2a | [] | no_license | Ravenking7675/Screen-Sharing-using-PubSub- | 0295b1b8f1bbbe2031bdb074be255e207a9b9f15 | d3aba9cfe4bdc7db5b6d0fe960945f322cf42753 | refs/heads/master | 2022-12-06T18:02:54.371487 | 2020-09-04T08:26:21 | 2020-09-04T08:26:21 | 292,794,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | from capture import capture_image
print(capture_image()) | [
"superavinash2000gmail.com"
] | superavinash2000gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.