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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
405bd0222f20698f693b5f40e08a85ab55068561 | 5f27f6ce95156539254c1d3f23516d643eac91bc | /Loops_while_for.py | 1d55d10b2f2fecc0d5ee62421decb433a23bd304 | [] | no_license | DevakiThakar/Python_scripts | de09a3ed08810d40b6614bef8009e213587573a5 | b9b951110531b9c839ccc006b7e42c3f93daa18b | refs/heads/main | 2023-08-21T17:59:35.706059 | 2021-10-16T02:47:33 | 2021-10-16T02:47:33 | 416,978,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | i=1
while i <5:
print('Devaki' , i)
i+= 1
n= i%3
if n==0:
print(i, 'fish', n, 'sheep')
elif i> 3:
continue
else:
break
for i in range (0,15, 2):
print(i)
days = ['Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun']
j =4
for i in days:
... | [
"noreply@github.com"
] | noreply@github.com |
e4e670034e6f03193ea0264c98be36a1a76e7bfe | 799078876ba2bb83ee584360ccae556d13968077 | /pydantic_redis/__init__.py | 7e7db2b2524a5857b81657a4a3e32f447921d961 | [
"MIT"
] | permissive | aabrodskiy/pydantic-redis | d38d6f05b54920c763a3325292c67229631bd553 | eb832cd79fac15e8e98ed235d60525fce9a50bc1 | refs/heads/master | 2023-08-22T21:29:59.204053 | 2020-07-19T05:34:59 | 2020-07-19T05:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | """Entry point for redisy"""
from .store import Store
from .model import Model
from .config import RedisConfig
__version__ = "0.0.5"
| [
"martinahindura@gmail.com"
] | martinahindura@gmail.com |
2c0f99fe4d63eb55ffc94359156e1dafdb4b0425 | 3fd5d6dce2f8610a3261a79ba777f01c0bd0073f | /assn 3/esports_team_api.py | 863ccfe5e2f62e0ae200cb91e8ed26d9866dbf83 | [] | no_license | the5enses/ACIT2515_assignment | 56789974657e434b475c78991f26482daa863da7 | ccb998cdb133273f7a3ea953d2bccda71428527b | refs/heads/master | 2020-07-30T23:38:38.883968 | 2019-12-06T07:45:05 | 2019-12-06T07:45:05 | 210,400,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,747 | py | from flask import Flask, request
from esports_team import EsportsTeam
from dota_player import DotaPlayer
from league_player import LeaguePlayer
import json
app = Flask(__name__)
team = EsportsTeam()
@app.route('/esports_team/players', methods=['POST'])
def add_player():
content = request.json
try:
... | [
"pnguyen36@my.bcit.ca"
] | pnguyen36@my.bcit.ca |
d0eae87ac65ce5b3391d754448ef1e2905d7b5b4 | 23f1ad3699ad3944b5c0fd70bd382444a4788499 | /src/nppplot.py | 66782bbbce2377b69740b24293eb218c44a85bb1 | [] | no_license | toniDwiraharjo/sr1k4nd1 | 3947d2cab0cfa214d1acd1cf20b01da05c20d3b0 | 1f46ebbf8dca1a912b5c7973293c13345af1acf2 | refs/heads/master | 2020-03-17T12:58:50.840842 | 2018-05-16T04:49:22 | 2018-05-16T04:49:22 | 133,612,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import numpy as np
import matplotlib.pyplot as plt
import glob
from mpl_toolkits.basemap import Basemap, cm
h = 720
w = 1440
llcrnrlat = -89.875
llcrnrlon = -179.875
urcrnrlat = 89.875
urcrnrlon = 179.875
llcrnrlon_indo = 94
llcrnrlat_indo = -11
urcrnrlon_indo = 141
urcrnrlat_indo = 11
for spine in plt.gca().spines.va... | [
"toni.dwiraharjo@gmail.com"
] | toni.dwiraharjo@gmail.com |
54840fa0720ff6919256b53a3d66b15a91e7f24a | 12cf491be179f86e9a589fe52b2ae437349fbf32 | /Test3.py | 6983ee44bafab7190dc2547269c5f4709a962977 | [] | no_license | Navneeth-7/Python-Programs | 79ef7abfd5352699ae2dabe87a9be02e8af1bc2c | 1c4872048d968f0e7083d892cdf2ec36ea4a21b7 | refs/heads/master | 2023-04-20T03:31:49.940366 | 2021-05-18T08:13:44 | 2021-05-18T08:13:44 | 268,897,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | from Test import my_func
my_func()
| [
"noreply@github.com"
] | noreply@github.com |
8306a76bff145100746beb5db2d75f119e520eec | 3bcbc0c44a95af2ef325acce2fbcde5db2c438db | /util/collision.py | 2381ecf208ce73a9a6bd1a9dbe2580aa2bbf6e7e | [] | no_license | uhrwecker/SpinnySources | ef8306dc73666fe20eb71ad185472040d1026a76 | 237e309bc78bb143bfd0cea151a774573c3d6985 | refs/heads/master | 2023-05-11T17:20:23.908531 | 2021-05-26T17:34:40 | 2021-05-26T17:34:40 | 365,996,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import numpy as np
def check_if_inside(dp, tmin, tmax, pmin, pmax):
rmin = 7.8
rmax = 8.2
if type(dp) == np.ndarray:
dpr = dp[:, 2]
dptheta = dp[:, 4]
dpphi = dp[:, 6]
else:
dpr = dp.r
dptheta = dp.theta
dpphi = dp.phi
r = dpr[dpr < rmax]
r2 = ... | [
"janmenno@yahoo.de"
] | janmenno@yahoo.de |
c4cca626a47f3669799bde8d1cfe6eeb64c4a824 | 5283c6d597e68b132ab04a49b7c254111f521ae0 | /wheatherapp/urls.py | 40327dd3621dde83244c0f950ae010989b7be03b | [] | no_license | Furkan-Yanmaz/weather-app | 3fdece8885529d4d8add984918b1234f917fe78d | 3b27a7d24c4446715028bd7e26f4f6b4ef679371 | refs/heads/main | 2023-04-20T18:47:40.185807 | 2021-05-22T13:27:18 | 2021-05-22T13:27:18 | 369,798,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """wheatherapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"84195332+Furkan-Yanmaz@users.noreply.github.com"
] | 84195332+Furkan-Yanmaz@users.noreply.github.com |
6f6be5e25264fd431ccd202be321cb72772af557 | e4f35cdbce0c1670de4e72d2413b6a10a3293eb7 | /Tasks/ClassWork2/C_S_V.py | d7734f2f52451dced33e5029186521ec3014d9ba | [] | no_license | turanoff/MRTI2920 | c40660e94cdd860d0c89a538fd0c46bcce46b982 | 9cffb0a09caf4bee226c193ab48c374d6d551060 | refs/heads/master | 2023-01-06T12:54:39.817530 | 2020-10-30T13:51:21 | 2020-10-30T13:51:21 | 282,312,793 | 0 | 0 | null | 2020-07-24T20:44:22 | 2020-07-24T20:44:21 | null | UTF-8 | Python | false | false | 1,047 | py | import csv
name = "Audi.csv"
auto = [
{"Model" : "80 1.6 Spaces", "Year" : 1989, "Horsepower" : 69, "Engine size" : "1595 cm3 (97.3 cu-in)"},
{"Model" : "80 1.6 Spaces", "Year" : 1993, "Horsepower" : 102, "Engine size" : "1595 cm3 (97.3 cu-in)"},
{"Model" : "80 1.8 Spaces", "Year" : 1986, "Horsepo... | [
"noreply@github.com"
] | noreply@github.com |
bbb276bcb08ef63c40d8ed4966efc51379353fb2 | 59952f518b3859bee043c89b238b9e8f5018980c | /SEM 2 PRACTICALS/prac_02/randoms.py | e53c75d091cbd744a14babff3da7e7f35e252d80 | [] | no_license | Z4MUS/CP1404_PRACTICALS | cf13c3b99e8975bccee68ed3e66da763da3242b8 | fab5ede53853b39552ba3b4dc8efa163b40c9b8c | refs/heads/main | 2023-08-26T12:45:57.113493 | 2021-08-23T09:38:10 | 2021-08-23T09:38:10 | 399,043,664 | 0 | 0 | null | 2021-11-02T07:26:25 | 2021-08-23T09:23:17 | Python | UTF-8 | Python | false | false | 239 | py | 18 # smallest would have been 5 largest would have been 20
7 # smallest would have been 3 largest would have been 9
4.785206279159674 # smallest would have been 2.5 largest would have been 5.5
import random
print(random.randint(1, 100))
| [
"mina.zakhary@my.jcu.edu.au"
] | mina.zakhary@my.jcu.edu.au |
ffcab490c4fc94fd86ca632a666c0d1e686a3f96 | e24c92db1056137fd58261cef381d10391e6ca69 | /models/controller.py | 4a3fc69b410b53ddffdd8f057bacd1d88d7392a0 | [] | no_license | steven0203/ENAS_tumor_segment | 9193a6a6ee8dcfbb2d2d2d5d192baf55ff3fc481 | b8a5ad01649417742a213b2bf14bc11d24ff5a8f | refs/heads/master | 2022-08-11T19:46:08.364985 | 2022-07-24T19:16:12 | 2022-07-24T19:16:12 | 239,132,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,163 | py | """A module with NAS controller-related code."""
import collections
import os
import torch
import torch.nn.functional as F
import utils
from utils import Node
def _construct_dags(prev_nodes, activations, func_names):
dags = []
for nodes, func_ids in zip(prev_nodes, activations):
dag=[]
for i... | [
"steven830203@gail.com"
] | steven830203@gail.com |
20784baa24d13e8f96aa320d1b60214490a17a21 | aedc1f176e74827bddb5cdfd325b431e33160000 | /getTopXSongs.py | 4d882f71ce0eff1c91ebfb272600d8b44ecff80b | [] | no_license | AlexanderLindhardt/last.fm-year-review | 42d1596943b99e8c5c04b24f3dc328bbdffded8a | 6af3d8179d44cde0124a8e2eb5823f0a4405dee0 | refs/heads/main | 2023-01-24T23:37:33.110478 | 2020-12-09T11:56:25 | 2020-12-09T11:56:25 | 319,784,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | import pandas as pd
from API import *
def getTopXSongs(user, X):
payload = {
'method': 'user.getTopTracks',
'period': '12month',
'limit': X,
'page': 1,
'user': user
}
r = lastfm_get(payload)
r_json = r.json()
r_tracks = r_json['toptracks']['t... | [
"noreply@github.com"
] | noreply@github.com |
a960334f0c053cb6131d4db9551e7e9ecb21f279 | a70112a5ca95bc8332eaad9e6028fe85f5f0ed42 | /solution/serverlist.py | b582e5842d21e445f1825c2debc8042c425aedda | [
"Apache-2.0"
] | permissive | pereullereun/lhms | 01bd66124dbacb186ac9a0a9ccbab5ed192f1261 | 9d6634e67638dae006eae3ee1c2eb21627376131 | refs/heads/master | 2020-09-06T09:32:09.713376 | 2019-11-08T02:07:50 | 2019-11-08T02:07:50 | 220,387,202 | 0 | 0 | Apache-2.0 | 2019-11-08T04:33:14 | 2019-11-08T04:33:13 | null | UTF-8 | Python | false | false | 8,060 | py | #!/usr/bin/python3
import os
import subprocess
import re
import pymysql
from datetime import datetime
strPath = r"/etc/webmin/servers";# file dir
files = os.listdir(strPath)
lists = [];# file lists
host = [];
user = [];
pwd = [];
val = 0;# extractServer use
test = "";# grep host
test1 = "";# grep user
test2 = "";# gre... | [
"noreply@github.com"
] | noreply@github.com |
89bd26ffc583c971bf0d5741af630fa22a170e66 | 6da002f8460a15d9b43c193ba73cfd650c74da8b | /python/implement_strStr/solution.py | 1c9b3d3c233c7f056c610be6b01bca3af55d883a | [] | no_license | y0ssi10/leetcode | 66a5ca2bd8290e1bad2e37028a8a01ffe75a845c | 5fd34565e7d789c0c3997b4dcdae8aa0073240e2 | refs/heads/master | 2022-03-16T04:24:28.830333 | 2022-02-06T19:49:11 | 2022-02-06T19:49:11 | 183,048,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Problem:
# Implement strStr().
# Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
#
# Example:
# Input: haystack = "hello", needle = "ll"
# Output: 2
#
# Clarification:
# What should we return when needle is an empty string?
# This is a great questio... | [
"iwai0621@gmail.com"
] | iwai0621@gmail.com |
7a17263d809ab132d3f4619683f85fb9564156f0 | fb6fbbde16328707312c8078e528b21055216112 | /posts/admin.py | f17498400e1a9f4434e40a8de8a6f9bb919c6726 | [] | no_license | Chaitanyate/restapi | 81a2a5fcff13ffbedab738bf02a26ed8baec1bfc | 696c321729cd72c828dfab9132660aec414f0541 | refs/heads/master | 2023-02-10T14:34:30.747210 | 2020-12-28T07:27:26 | 2020-12-28T07:27:26 | 324,942,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.contrib import admin
from .models import post,vote
# Register your models here.
admin.site.register(post)
admin.site.register(vote) | [
"Chaitanya.Tejas@gds.ey.com"
] | Chaitanya.Tejas@gds.ey.com |
686ba37875cd440e47439a02c0a72a2e7d1c2012 | 2ef2bbd61e0bda57ae462c8c6e65de399024204a | /whois_app/search/mixins.py | 8acba9b82c78686fea443d0413fadae889d97395 | [] | no_license | ankurGhosh1/whois_app | 2cfd8ed87ba8bcca8bca38508e0f9c501ecdd8f4 | 6dee9f9709e79db1eb18a60e93ddf17e915bd88f | refs/heads/main | 2023-03-11T06:28:49.588165 | 2021-02-25T15:27:56 | 2021-02-25T15:27:56 | 341,120,167 | 0 | 0 | null | 2021-02-25T15:27:57 | 2021-02-22T07:52:07 | Python | UTF-8 | Python | false | false | 314 | py | from django.shortcuts import redirect
from django.contrib.auth.mixins import AccessMixin
class LoginMixin(AccessMixin):
def dispatch(self, request, *args, **kwargs):
if not request.user.is_authenticated:
return redirect('/login/')
return super().dispatch(request, *args, **kwargs)
| [
"ankurcool.kumar@gmail.com"
] | ankurcool.kumar@gmail.com |
de5d8a1e9b5609524ea4bb960458695629aff346 | 91ea1ecbddc892b4d63b4a2c99c13c53a611c420 | /src/task_3/scripts/move_arm.py | 14a46e5e8e64d92c0f0bac3b2c9ec3f9bd3e7241 | [] | no_license | nikp00/RInS_2021 | 2bb21c0cf2fcc01c802e68c372905268bdd9222c | 450c013e70ac426e6fd4233660dea145edb7b47e | refs/heads/main | 2023-05-13T01:12:36.077683 | 2021-06-03T12:15:32 | 2021-06-03T12:15:32 | 345,799,011 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | #!/usr/bin/python3
import rospy
import time
from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint
from std_msgs.msg import String
class Arm_Mover:
def __init__(self):
rospy.init_node("arm_mover", anonymous=True)
self.arm_movement_pub = rospy.Publisher(
"/turtlebot_ar... | [
"nik.princic@gmail.com"
] | nik.princic@gmail.com |
11772fe7201704831c984d3d6f99633d039f7186 | f267ac6ef4e928408a48b1408f8986d89408395b | /pandas/core/strings/base.py | 730870b448cb201f637dc27cd6c43b0f29d04a35 | [
"BSD-3-Clause"
] | permissive | LucasHynes/pandas | 115bfb4c1fb2cb0b3c6beabf99e882d8bc721537 | 4fc95885dbf60b70ba2cf66dd7e5cdd1962d509b | refs/heads/master | 2023-04-24T09:50:03.827671 | 2021-05-21T20:07:09 | 2021-05-21T20:07:09 | 350,482,509 | 0 | 0 | BSD-3-Clause | 2021-05-21T20:08:31 | 2021-03-22T20:38:13 | Python | UTF-8 | Python | false | false | 4,842 | py | from __future__ import annotations
import abc
from collections.abc import Callable # noqa: PDF001
import re
import numpy as np
from pandas._typing import Scalar
class BaseStringArrayMethods(abc.ABC):
"""
Base class for extension arrays implementing string methods.
This is where our ExtensionArrays ca... | [
"noreply@github.com"
] | noreply@github.com |
c559d06eb214b2642176fc951701238b2e96913c | 15878931330391187d8b545dbc8fc1d9ea4ae9d5 | /chatRoom_project/app/main/views.py | efebbca1eb8e39148aa81c0ca22d9ead51be1b95 | [] | no_license | MengYing/AI2015_project | 4f2c437fe325aeee67bc90fc54ce73a7a5b13d16 | 5df8e0778fb21b4e2d205abb2e6e7d2c5a1de6f4 | refs/heads/master | 2021-01-10T21:33:32.321620 | 2015-05-27T16:40:37 | 2015-05-27T16:40:37 | 35,364,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from flask import *
import random
from datetime import datetime
from . import main
from ..auth.forms import LoginForm
from .. import db
from ..models import User
from ..util import *
@main.route('/', methods=['GET', 'POST'])
def index():
return redirect(url_for('auth.login'))
@main.route('/label', methods=['GET... | [
"himeng0130@gmail.com"
] | himeng0130@gmail.com |
d63f65068ae6a8cd9e7af2811af7d6b67a303637 | c597134d7c2876685fd73d614d5b42689f4f1025 | /docs/examples/auto-instrumentation/server_instrumented.py | 1ac1bd6b71b974eb3843b2e906664233d10ec5b8 | [
"Apache-2.0"
] | permissive | dmolenda-sumo/opentelemetry-python | 833a95eab625d2101afaba01c3d309bdd9b08687 | f92431e90d258ad6f0f4f496b2e9b778bcb1f627 | refs/heads/main | 2023-03-19T12:29:08.435142 | 2021-03-17T15:03:18 | 2021-03-17T15:03:18 | 348,751,892 | 0 | 0 | Apache-2.0 | 2021-03-17T15:04:42 | 2021-03-17T15:04:41 | null | UTF-8 | Python | false | false | 1,597 | py | # Copyright The OpenTelemetry Authors
#
# 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 ... | [
"noreply@github.com"
] | noreply@github.com |
b25403fc53f5f5969f36e94ee28d051866d5f2e6 | 5983ea8a59cd0b9763e0eb0dfc7f26dfd2ba5e60 | /2019102962刘铎/刘铎-2019102962/DQN-First/maze_env.py | 33157255db41910b66f0e97841906122112ce32f | [] | no_license | wanghan79/2020_Master_Python | 0d8bdcff719a4b3917caa76ae318e3f8134fa83a | b3f6f3825b66b93ec6c54ed6187f6c0edcad6010 | refs/heads/master | 2021-01-26T13:29:09.439023 | 2020-06-23T02:17:52 | 2020-06-23T02:17:52 | 243,442,589 | 11 | 6 | null | 2020-03-29T05:59:29 | 2020-02-27T05:55:52 | Python | UTF-8 | Python | false | false | 4,088 | py | """
Reinforcement learning maze example.
Red rectangle: explorer.
Black rectangles: hells [reward = -1].
Yellow bin circle: paradise [reward = +1].
All other states: ground [reward = 0].
This script is the environment part of this example.
The RL is in RL_brain.py.
"""
import num... | [
"noreply@github.com"
] | noreply@github.com |
38b47e6b8278b58eeabe46340ad35c8304f0f192 | 294dde64cf801ed87bafb749389ade27e555ee16 | /venv/Scripts/easy_install-3.7-script.py | fb34e65a57019d570b69dcc2a0e583c0e8722630 | [] | no_license | opherdonchin/myboard | 65d3f3cb0532b72bd873055bba7cd3a36f228cc0 | 6c61961c92695bf33299519cb4fede761283eb77 | refs/heads/master | 2020-05-24T05:15:39.039341 | 2019-05-16T22:50:00 | 2019-05-16T22:50:00 | 187,110,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!C:\Users\Opher\PycharmProjects\myboard\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"donchin@auth.ad.bgu.ac.il"
] | donchin@auth.ad.bgu.ac.il |
8d03fde6354e3a18b23e231b98d4f5e56f330a43 | 86a736c6ad0d8e0dd16f61eec2353251ec2a4d9b | /apps/login_app/migrations/0003_auto_20171024_2210.py | 65898b46e9625426a060d6161a8172f325d9e56a | [] | no_license | vladgrig93/musicstore | cb05dd518be0c6e76abc9ef04f803cf33f0ad53a | cd4bae7d1668d23fa0ad41f5df21003acc4fde39 | refs/heads/master | 2021-05-15T10:27:33.889407 | 2017-10-25T17:56:45 | 2017-10-25T17:56:45 | 108,189,760 | 0 | 0 | null | 2017-10-25T17:58:56 | 2017-10-24T22:16:21 | Python | UTF-8 | Python | false | false | 2,478 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-10-24 22:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('login_app', '0002_auto_20171024_2110'),
]
operations... | [
"vpgrigoryan@gmail.com"
] | vpgrigoryan@gmail.com |
6a8b7bfd5ae881511c22056e7fa9f5b71b477736 | c697ea6d5f36677dcbc7760b0b5bfa3c0b5bb610 | /Inventory/migrations/0025_order_purchase_id.py | 8d7583293522f502ccda2c010b709f428227aaab | [] | no_license | jtarun4625/demo-inventory | 733888fa2829f5e8cb35cabb463533654c14cde5 | 82df79a34658ac1b28e280c199ff605c54a043ef | refs/heads/master | 2020-03-27T21:51:01.075294 | 2018-09-03T04:45:30 | 2018-09-03T04:45:30 | 147,180,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-03 14:41
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Inventory', '0024_invoicedetail_order'),
]
operati... | [
"tarunjoshi4625@gmail.com"
] | tarunjoshi4625@gmail.com |
2326813aa3d14691450f5235ef4a56841950ddb1 | a4d83ef758cae4bd2979c2194e9c93c23e9d8722 | /whileloop.py | 6f7a93679869f92867c6a3033b77cbe422f06944 | [] | no_license | kiran-k-kharvi/python-learning | 5757c76ff71c302c459ab003c26dd5fb796b4d37 | 2a035ae04c019e59ef5c47fbd28cb8754e417405 | refs/heads/master | 2020-05-30T20:58:51.926412 | 2019-06-08T05:15:44 | 2019-06-08T05:15:44 | 189,835,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | command = "" # empty string
while command.lower() != "quit":
command = input(">")
print("ECHO", command)
| [
"kirankharvi22@gmail.com"
] | kirankharvi22@gmail.com |
3e650603ae3e84e5d306039e62061349eb7ca240 | ad97a0f7694f95a8cd6f2825f551d1c0e2fa118b | /solana-bridges/test-extras/ed25519-test-sign.py | e9d5795b4560c45207b4d75cec360ab2e2974db8 | [] | no_license | obsidiansystems/solana-bridges | 62e2f6cf633a97b7d493002d6439ecdaf01e5701 | 2c11fbfdecd6e4eb47af0cd64d91181fe1ad8133 | refs/heads/develop | 2023-02-16T02:18:30.255293 | 2021-01-07T18:47:39 | 2021-01-07T18:48:32 | 294,246,703 | 17 | 14 | null | 2021-01-05T17:23:33 | 2020-09-09T22:49:44 | Rust | UTF-8 | Python | false | false | 1,601 | py | import sys
import binascii
import ed25519
# examples of inputs: see sign.input
# should produce no output: python sign.py < sign.input
# warning: currently 37 seconds/line on a fast machine
# fields on each input line: sk, pk, m, sm
# each field hex
# each field colon-terminated
# sk includes pk at end
# sm includes... | [
"dan.bornside@gmail.com"
] | dan.bornside@gmail.com |
b319a767f27957cd05c260e82f7fa2f709530ddb | 856e7bb28e11b09435c3056e8cdb52c4d12952b6 | /unet/connected_model.py | c8d72757bab5f5de7aa3efd9e63d1fb5c7b91789 | [
"Apache-2.0",
"MIT"
] | permissive | tlmakinen/deep21 | 0b34b4e72b3510fffe722af1b49665b70821a1e3 | 84cb2dcea1b7d6bde36604c1f063f504060992d9 | refs/heads/master | 2022-02-11T16:08:40.210074 | 2022-01-31T10:48:39 | 2022-01-31T10:48:39 | 241,205,894 | 12 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,897 | py | ## Import the required Libraries
from __future__ import absolute_import, division, print_function
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.layers import Conv3D, BatchNormalization, Conv3DTranspose, concatenate,\
... | [
"tmakinen@princeton.edu"
] | tmakinen@princeton.edu |
cd45cd3fc444de3dae6450b2b7ee47f8aae486cf | c39cac3687c832d1d5dba8d4183367fe2d24797d | /modules/cli.py | 89ec94fa43b4dcb5f19f23edef429850e9fb4766 | [
"MIT"
] | permissive | rabeeh-ta/cleaner-py | 76149a5dc0ce4b7ad89f840b5efee40982ddf716 | b9d3e917b8e47f357d848fce9d062296e16b605b | refs/heads/master | 2023-01-20T03:44:27.341688 | 2020-11-29T09:17:30 | 2020-11-29T09:17:30 | 316,406,963 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"--flutter", help="Deletes the Build folders on every flutter project found", action='store_true')
parser.add_argument(
"--node", help="Deletes the Node-Modules folder on every project found", action='store_true')
args = parser.parse_args... | [
"rabeehchemnad@gmail.com"
] | rabeehchemnad@gmail.com |
1e88434dd31c27d1f4dcd9288f435fb81fd52951 | e440b4e4294d96a680d19fd6a2d0608253703641 | /src/scripts/mouseEvent.py | 52a2ce7102819ab6f8d589871145b2560eb2a577 | [] | no_license | whodatbo1/ImageProcessing | 91064381998356cce19edabc11365ac0ebb5284e | a408cc394cb11e029569add77248ce794b696954 | refs/heads/master | 2021-04-23T15:16:16.154184 | 2020-03-25T09:39:51 | 2020-03-25T09:39:51 | 249,935,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import cv2
import numpy as np
def clickEvent(event, x, y, flags, param):
if event == cv2.EVENT_RBUTTONDOWN:
text = ""
text += str(img[y, x, 0]) + ", "
text += str(img[y, x, 1]) + ", "
text += str(img[y, x, 2])
cv2.putText(img, text, (x, y), cv2.FONT_HERSHEY_COMPLEX, 1, (0, ... | [
"M.V.Ivanov@student.tudelft.nl"
] | M.V.Ivanov@student.tudelft.nl |
2ba4aa1a57fa46cd27ab494ec07af154551d9122 | 73fedd3c2bec863dc6ec027a32af1770fd28736e | /circles.py | d0c5a7676a635bcafb101a4530a02965d416ffd2 | [
"MIT"
] | permissive | theianrobertson/circle-pics | 8ffe2a4e97d4d032656a93551bd1c8257ae6696a | 5f7a19f2eedb6a0b2aa4a010ca8fdd9cee381676 | refs/heads/master | 2021-01-13T13:41:57.866407 | 2017-12-14T03:37:52 | 2017-12-14T03:37:52 | 79,257,046 | 6 | 2 | MIT | 2017-12-14T03:37:54 | 2017-01-17T18:16:49 | Python | UTF-8 | Python | false | false | 9,490 | py | """
Code for creating neato circle images
Made by Ian
"""
import sys
import logging
import math
import os
import random
import datetime
import PIL.Image
import PIL.ImageDraw
import PIL.ImageFilter
#Config in here, could be split out eventually
LINE_COLOUR = (0, 0, 51)
START_RADIUS = 60
#STEP_DISTANCE_RATIO = 0.4
STE... | [
"ianrobertson85@gmail.com"
] | ianrobertson85@gmail.com |
25373ec68d388a015c984f0978eae77c47991f81 | 5b55cf5c083e8c87e9a6d4e747fa02a9b7c38221 | /Search_Spider.py | 0a9a4e30be2d2bed963432af5d1690ee4981e990 | [] | no_license | riverlevy/bilibili_spider | b036323dff02c24ec0ff11ea5ecd28fa61cc7845 | c57ffeb43addf3cf6457110c58d6b6d4416fd0b5 | refs/heads/master | 2020-03-20T12:57:27.513164 | 2018-06-22T14:57:42 | 2018-06-22T14:57:42 | 137,444,828 | 2 | 1 | null | 2018-06-22T14:53:04 | 2018-06-15T05:30:52 | Python | UTF-8 | Python | false | false | 3,666 | py | import requests
import http.cookiejar
from bs4 import BeautifulSoup as BS
import re
import lxml
import urllib
import time
class SearchSpider(object):
def search():
res={}
header={
"Accept":"text/html, application/xhtml+xml, image/jxr, */*",
"Accept-Encoding": "gzip, deflate,br",
"Accept-L... | [
"noreply@github.com"
] | noreply@github.com |
05362ab0e94fdc9372905fa94f2e4dbaad070f27 | 4f39e3e2cfe05db7ec34ef8663b03f8c954ec55a | /user_app/migrations/0002_auto_20200927_1313.py | 04db274b56efe0cc117ed1f96fd7a2cfe99eb005 | [] | no_license | SomeonePL/Web_video_chat_WebRTC | 3b89fa18f36398e941ab908ba124a5ee9d5c6d03 | 9fa96c5f46cdcccc6385ebf8b6ae8ae4e33e0f94 | refs/heads/master | 2022-12-25T16:56:41.482749 | 2020-10-02T09:25:30 | 2020-10-02T09:25:30 | 300,562,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.1.1 on 2020-09-27 13:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='person',
name='number',
... | [
"skrobak.andrzej@gmail.com"
] | skrobak.andrzej@gmail.com |
2b81723daaca4ad00d75f8448c4ac9543325b912 | b3ef4a0cc61b370eb111759574dc2900e4072254 | /prgm3.py | 9c0eaf1813936b07dc6839e3a4db914e3e9f8e70 | [] | no_license | Dev-Lohit/Spectrum_SID_Python | e54dbfd481cd977850bf7e3dcd06c70ac7909dc1 | 6d89c59a7bece73216595a7e780443741e0cdb6d | refs/heads/main | 2023-06-05T01:22:22.481902 | 2021-06-27T02:26:45 | 2021-06-27T02:26:45 | 380,634,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = int(input())
for i in range(2, n+1):
div = 2
while div < i:
if i % div == 0:
break
else:
div+=1
if div == i:
print(i,end=" ") | [
"noreply@github.com"
] | noreply@github.com |
a9d82a03403c77d290928a61b6d34bef0b4d954f | 5fd64bba178a6768c264db8a3fbe3e3d2645f127 | /grab-comic.py | c7902f9570b74560756264d04a33cb3ec115fc3c | [
"MIT"
] | permissive | LautrecOfCarim/GrabComic | b497fc566ac2fe214e298902693fd6166f08a043 | 8a353f4d7049c9333527fb376589eb6285295102 | refs/heads/master | 2022-05-22T10:44:57.869794 | 2020-04-18T02:52:25 | 2020-04-18T02:52:25 | 256,655,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | # MIT License
# Copyright (C) Alexander Radkov 2020
import codecs
import re
import requests
import shutil
from os import listdir, mkdir
from os.path import isfile, join, exists
# Get all files in the ./Pages directory
srcDir = 'Pages'
dstDir = 'Comic'
allFiles = [f for f in listdir(srcDir) if isfile(join(srcDir, f))... | [
"radkoval@square-enix.com"
] | radkoval@square-enix.com |
437b7eb669d6086754cb781e70affdc0daf4c124 | 66a60de401e3d986a2db297cc7ca2dfbc91031f4 | /nickometer/nickometer.py | 989d8d68c4a4dbbff2bf0003687b2266bbc69d2c | [
"MIT"
] | permissive | tekulvw/Squid-Plugins | b2285f4760fcb4c68553810c274740d5b7284e86 | e0bcb9e0c5de04ad833942d11020c33b10e1d3a7 | refs/heads/master | 2023-06-26T18:28:56.611661 | 2020-08-10T19:59:39 | 2020-08-10T19:59:39 | 53,470,058 | 36 | 100 | MIT | 2023-07-28T14:44:38 | 2016-03-09T05:13:20 | Python | UTF-8 | Python | false | false | 6,947 | py | import re
import math
import discord
from discord.ext import commands
def slowExponent(x):
return 1.3 * x * (1 - math.atan(x / 6.0) * 2 / math.pi)
def slowPow(x, y):
return math.pow(x, slowExponent(y))
def caseShifts(s):
s = re.sub('[^a-zA-Z]', '', s)
s = re.sub('[A-Z]+', 'U', s)
s = re.sub('[... | [
"tekulve.will@gmail.com"
] | tekulve.will@gmail.com |
04fc4b05290bec02ff3c1af9fdca0c49c16356a8 | 6f8794ebe0f7abb235c2dc8254371a5985db87c6 | /Stack/BalancedExpression.py | a9173772e4cef8d5d0d225bc98f9b3e43edc4c77 | [] | no_license | RobinDhull/Data-Structure-using-Python | b64d36382a4759887b5e1e054bb3c1856cf440d9 | 2f1240441569468d466ef5988bc6cc16bba16167 | refs/heads/master | 2020-12-21T21:54:39.113519 | 2020-05-19T08:15:00 | 2020-05-19T08:15:00 | 236,575,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | Open = '{(['
Close = '})]'
def isBalanced(st):
stack = []
for i in st:
if i in Open:
stack.append(i)
elif i in Close:
indexOfExp = Close.index(i)
if ((len(stack) > 0) and Open[indexOfExp] == stack[len(stack) - 1]):
stack.pop()
... | [
"noreply@github.com"
] | noreply@github.com |
1d94e88ac319c129ed6efba1bf22597cf367a8ec | a10da1a8bad3df791a5d3f692c9847d1acb6db6c | /gui_simple.py | 7d6d2460445587f7e734fe6e08c40d00c9450d54 | [] | no_license | abhijithnraj/GUI-using-Python | 84d9b44a769a97b8fa2252ec2f62b6e9ecb2e45f | f2d0f422dbe885411e19dd7cfcbdf97a7693acdd | refs/heads/master | 2021-01-21T22:00:36.919019 | 2017-06-23T06:00:40 | 2017-06-23T06:00:40 | 95,138,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #The basic widget with button and label
from Tkinter import*
root=Tk()
root.title("Simple GUI")
app=Frame(root)
app.grid()
label=Label(app,text="This is the label for the switch below:")
label.grid()
button=Button(app)
button.grid()
button["text"]="Button"
root.mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
5758a7b7cd6a9fd9f20c1d0ee80a06b0f9bb06b6 | b882e7e396c8618942953a228878944bb1f79e51 | /app.py | 1ff9d22860fff9aca475a67d38c4f450e26e0d9b | [] | no_license | attila5287/DU_Coding_pr02_Extract-Transform-Load_Indeed-Jobs-Web-Scraping | ae8556e76f480b7b9a1dfa16afbc16ec177bc312 | 7326ef5df1719dfe421bb4aa32ca450b76ccc874 | refs/heads/master | 2020-04-07T23:54:38.535258 | 2018-11-28T12:01:25 | 2018-11-28T12:01:25 | 158,829,427 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape_indeed
app = Flask(__name__)
mongo = PyMongo(app, uri="mongodb://localhost:27017/indeed_db")
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=False)
| [
"noreply@github.com"
] | noreply@github.com |
b8f7c997d52bd60d7d869717f5570bd78ed488ad | fd20f6be3a5723f1abdfb347d617f9398e254ac7 | /arc_scaper/arc_set_data_loader.py | f1c2703c2c2e7fdcac081cdbcd4dc2a8ef253b4f | [] | no_license | npongo/arc_scraper | 142473fc8d99e58d78774aee90afcf561f98f5b8 | d8eb7788f3dd3bf962177fb291bad8cd9075100f | refs/heads/master | 2022-11-26T12:52:45.678889 | 2020-07-30T03:49:41 | 2020-07-30T03:49:41 | 276,049,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,627 | py | from threading import Timer
from arc_query_builder import ArcQueryBuilder
from arc_enum import ArcFormat, ArcOutStatistic, ArcStatisticType
from requests import get, Session
from helpers import json_to_wkt, exception_logging, esri_geometry_to_empty_wtk
from time import time
from json import dumps
from datetime import d... | [
"benjamin@npongo.com"
] | benjamin@npongo.com |
187ebfa5fc754d6b269cf52095a09389dde42a66 | 9fb3e54f9042ed830cd390a2b87503623340efef | /ui/paintMode.py | 52154abf21bfe0d7db20559a801fd40ace91a905 | [] | no_license | blueyo0/ISeg_GUI | b47856fab561280ed869e288b32fb5ec28500a10 | 80bc29699dee93da7ac2d0edd6a1006ac3e0e7eb | refs/heads/master | 2023-03-11T19:56:43.488293 | 2021-02-28T10:16:30 | 2021-02-28T10:16:30 | 299,595,021 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from enum import Enum, auto
class PaintMode(Enum):
Paint = auto()
Erase = auto()
Drag = auto() | [
"small_dark@sina.com"
] | small_dark@sina.com |
878bd7c77267774dbcacd5ed1f887c9c3b26ddb7 | c5294a8e9a6aa7da37850443d3a5d366ee4b5c35 | /build/spencer_people_tracking/launch/spencer_people_tracking_launch/catkin_generated/pkg.installspace.context.pc.py | 0e8b747bde57ae825f82cfdacbb221758a0acfbb | [] | no_license | scutDavid/ros_gradution_project | 6eab9a5776ae090ae8999d31e840a12a99020c79 | fbbd83ada5aa223809615d55a48e632699afd4b5 | refs/heads/master | 2020-03-07T18:39:24.084619 | 2018-04-25T13:41:04 | 2018-04-25T13:41:04 | 127,647,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "spencer_people_tracking_launch"
PROJE... | [
"1902828943@qq.com"
] | 1902828943@qq.com |
cede0e482d3ea3a08d161be9ba8ae74f9c9f82fa | 7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81 | /trunk/pida/utils/pgd/debugsession.py | 6e0c5d6df92cc9f56a44188a64b2d6b59d10bc26 | [] | no_license | BackupTheBerlios/pida-svn | b68da6689fa482a42f5dee93e2bcffb167a83b83 | 739147ed21a23cab23c2bba98f1c54108f8c2516 | refs/heads/master | 2020-05-31T17:28:47.927074 | 2006-05-18T21:42:32 | 2006-05-18T21:42:32 | 40,817,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,589 | py | # -*- coding: utf-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
# Copyright (c) 2006 Ali Afshar
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including... | [
"aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7"
] | aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7 |
b73906fdf30085227f7987fe8d7f32b2ef51e936 | 96be324b934741ba27bdae907a046758cbc95442 | /python/a154.py | a421fc2b1b81a3f9fdef5439afafd0efc2457404 | [] | no_license | aiyueqi/leetcode | 7b992b79072a5de7d0e3ec5c7594d0b7f8d7b5ed | 91305321104b399f54f18d13ed396af981ece1b9 | refs/heads/master | 2021-06-05T20:07:11.562443 | 2020-04-22T10:55:00 | 2020-04-22T10:55:00 | 151,817,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | from typing import List, Dict, Tuple
#此题选取参照点时,可选取首或尾,但是考虑到数组未旋转的情况,如果选首需要特殊处理,选尾逻辑可以统一,故选择尾
#不考虑有重复数字的情况,有重复数字会有问题
#递归
class Solution:
def findMin(self, nums: List[int]) -> int:
if len(nums) == 0:
return None
return self.f(0, len(nums)-1, nums)
def f(self, l, r, A):
if ... | [
"ayq@xmlydeMacBook-Pro-104.local"
] | ayq@xmlydeMacBook-Pro-104.local |
259a932036318ade59e95a9af38522d7510b313e | 49e1744ccc3681cb036b6bdeb5e73bcd87c3fcf9 | /semacomp2016/models.py | a2543b277b8ec88465c45914ef86e224996f188d | [] | no_license | mush8/SEMaComp-site | f052e44c2b831f3c4b87bab2e203c76c52498bf9 | a9639b3f3f9246a7907253c16252ca7ee466b323 | refs/heads/master | 2020-12-30T23:09:44.511853 | 2016-07-27T19:39:26 | 2016-07-27T19:39:26 | 64,438,835 | 0 | 0 | null | 2016-07-29T01:03:04 | 2016-07-29T01:03:04 | null | UTF-8 | Python | false | false | 2,731 | py | from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
... | [
"ricardosavii@gmail.com"
] | ricardosavii@gmail.com |
47abd26109c9522bd177dbbf0cd330a30d2b38c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03998/s861110715.py | 06ced3f35c4b4debbacf590c69b46eaf81a9942e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | A = list(input())
B = list(input())
C = list(input())
n = A[0]
del A[0]
while True:
if n == "a":
if A == []:
print("A")
break
n = A[0]
del A[0]
elif n == "b":
if B == []:
print("B")
break
n = B[0]
del B[0]
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ecc937959d6a50bec48eee0e0c39cad9bc0593a0 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /2020_August_Leetcode_30_days_challenge/Week_2_Excel Sheet Column Number/by_recursion_and_base_conversion.py | 8614066d3ca3b81874534ab1c3be1896d784e563 | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | '''
Description:
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Input: "A"
Output: 1
Example 2:
Input: "AB"
Output: 28
Example 3:
Input: "ZY"
Output:... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
c041ce36c31bab982df6a4db67cbb9e648902b4e | d88e4152c0540c4c3c0a93c997ed8666d6ede863 | /daeUSB.py | 299f7ae439ebaf4837641b8975188e5fef04d3c2 | [] | no_license | mahongquan/word_auto | 2ad36383a435a0b020c3939e1efafec13a64a59f | 552ecb5dc43fdd71785f6e188de7cd0df66345ac | refs/heads/master | 2020-03-21T17:28:03.633892 | 2018-07-22T02:38:31 | 2018-07-22T02:38:31 | 138,833,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | # -*- coding: utf-8 -*-
#安装USB2COM驱动
import pywinauto
import pywintypes
from pywinauto import findwindows,handleprops
import os
import _thread
import traceback
from threading import Thread,Event
import time
def runUSB():
#cmd=r"start c:\9111\PCIS-DASK\PCIS-DASK.exe"
cmd="start c:\\CS3000备份\\CDM21216_Setup.exe"
... | [
"mahongquan@sina.com"
] | mahongquan@sina.com |
84640649a65e784a7b7c373924230f8077642d77 | be0d4b45683c26c3a104379c8e243c315e131f24 | /cgi-bin/featureLast.cgi | 886082833dc4f4104c2b87c90254047281ba2374 | [] | no_license | Prakshi24/DeployCloud | 60ac5f1952b80b545463ef7a4350f3fd41076fea | 60b59d2f9c39f131355d70abaf66149f90c27d16 | refs/heads/master | 2021-01-16T22:06:49.906451 | 2016-12-15T10:01:55 | 2016-12-15T10:01:55 | 65,148,711 | 0 | 1 | null | 2016-12-15T08:17:12 | 2016-08-07T18:46:38 | null | UTF-8 | Python | false | false | 8,519 | cgi | #! /usr/bin/python2
import cgitb # its traceback for displaying the errors on web browser
import cgi
import random
import commands,os
import mysql.connector as mariadb
cgitb.enable() # enabling the traceback
print "content-type:text/html" # browser understands HTML only , we need to tell this
print "" # it indicates ... | [
"yprakshi@gmail.com"
] | yprakshi@gmail.com |
4e7bf936f7bab166d31898bd287c671b82fea418 | 3035e8cf0644236d09b96248dd9bc777c10b18e4 | /actor-sdk/sdk-core-ios/ActorSDK/Sources/ActorCore/convert.py | 36f9c7daf3c48679fa575ca2853211e15056cf99 | [
"MIT"
] | permissive | huangxianggui/actor-platform | 79a8da7e91d1b141069d41e953f9b9314e906b57 | cb4fbbad909e1a8006fe087c06c3ea27a79d7946 | refs/heads/master | 2021-01-20T08:19:51.693140 | 2015-10-22T13:15:54 | 2015-10-22T13:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | import sys
import os
if not os.path.exists('Public'):
os.makedirs('Public')
if not os.path.exists('External'):
os.makedirs('External')
allFiles = set()
for root, directories, filenames in os.walk('Sources/'):
for filename in filenames:
# Matching only header files
if not filename.lower(... | [
"steve@actor.im"
] | steve@actor.im |
347729485483842cd8f628eb2745ccf0380f5512 | 2a58bb4ba5941f18f9fafe2b7c1199f38a85fd3f | /Scripts/pip-script.py | af7f1921b977a68615e4eaad1105832bcc37c331 | [] | no_license | wangshicheng0213/Genesis | 83feeb06d454fb5042f28d1dd389615364e1612d | cc39e0940c0955c5f6ae2aab989935bf10421907 | refs/heads/master | 2020-06-16T22:32:14.442614 | 2019-07-29T12:44:07 | 2019-07-29T12:44:07 | 195,721,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!E:\PythonWorkSpace\Genesis\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"1393734354@qq.com"
] | 1393734354@qq.com |
eac15be1b756cb635b7f76146a0414d2072d782e | c7b470c174ace052c3c03b1641c6644f5435fff9 | /game/models/inventory.py | 03730231c1e282818e46e568b8322ad7fed22f6a | [] | no_license | Brakanier/cave_world | 19b4536fef40bfcb517c81bef6e660470ab95774 | 96a0d568d3fd77bcd1fa08599566e689cdec3d35 | refs/heads/master | 2023-04-07T15:51:00.206031 | 2019-08-10T13:28:34 | 2019-08-10T13:28:34 | 166,072,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from django.db import models
class Inventory(models.Model):
user_id = models.BigIntegerField(
db_index=True,
unique=True,
)
items = models.ManyToManyField(
'game.Item',
blank=True,
)
trophy = models.ManyToManyField(
'game.InventoryTrophy',
related_na... | [
"18brakanier.forest@gmail.com"
] | 18brakanier.forest@gmail.com |
3057c49c9af4fb4e2e8886f372c93f6d6e1e8bfc | a84f271df045516f516a1da4acc76eb9d61825b4 | /survey/migrations/0024_auto_20200428_2357.py | 09d7c09bc4e279b79540b5444675a537f4461d18 | [
"MIT"
] | permissive | TheWITProject/MentorApp | a28263791c78d3d5b680bf5b514d4b685442113c | 2f08b87a7cde6d180e16d6f37d0b8019b8361638 | refs/heads/master | 2022-11-23T22:44:29.237363 | 2020-05-24T16:25:27 | 2020-05-24T16:25:27 | 237,828,254 | 0 | 0 | MIT | 2022-11-22T05:54:06 | 2020-02-02T19:59:07 | Python | UTF-8 | Python | false | false | 687 | py | # Generated by Django 2.2.10 on 2020-04-28 23:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('survey', '0023_auto_20200428_2343'),
]
operations = [
migrations.AlterField(
model_name='question',
name='type',
... | [
"jremmanue@gmail.com"
] | jremmanue@gmail.com |
18108f5d087fa3a624f0d19e647ca9e832d0ce9f | 16c02d8052557adeebe0d85ad31cc9e0e73cac44 | /rango/migrations/0006_auto_20180521_1510.py | eba62c67c18f55ca583c0b809904a4fb45f48b38 | [] | no_license | burked9/rango | 694f2e419e41bc06abca9d9470cc1a816ca4bfcc | 6cf1b23b992bc6447fde18a3440769be19a3d72f | refs/heads/master | 2020-03-17T09:57:26.795338 | 2018-05-24T13:07:36 | 2018-05-24T13:07:36 | 133,494,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # Generated by Django 2.0.5 on 2018-05-21 14:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('rango', '0005_auto_20180... | [
"daniel.burke@magellangroup.net"
] | daniel.burke@magellangroup.net |
5afae6587a37941e230adb1b3cbf68501cc75181 | 5d0f7573ea3ebf039a2afcc2229fa4017b7e2f0b | /ContactDetection/src/bi-gru-cnn.py | b91438662c623b0b89bb9a4a60a520ff55060681 | [] | no_license | RankingAI/text-mining | b48bc1ffbb4cc7e8f269cbc1cb6c2d24c1167c01 | a66e0d3a899ce7760ad2b2d7a25a422fa92a55eb | refs/heads/master | 2020-03-23T20:13:55.168696 | 2018-09-26T18:37:29 | 2018-09-26T18:37:29 | 142,029,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,710 | py | import numpy as np
np.random.seed(42)
import pandas as pd
import os,sys,time,datetime,gc
from sklearn.metrics import *
from keras.models import Model
from keras.layers import Input, Dense, Embedding, SpatialDropout1D, concatenate
from keras.layers import GRU, Bidirectional, GlobalAveragePooling1D, GlobalMaxPooling1D,... | [
"1095279203737@tianchi.com"
] | 1095279203737@tianchi.com |
132e5c34952c72f35e089c726777abaa59399bcd | daca4a0604a21e4dcdab501369704db24741938e | /webdriver/tests/sessions/new_session/invalid_capabilities.py | 8452bfb11e908be7a06fd65f6138f6f0c3958cd8 | [
"W3C",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause"
] | permissive | Spec-Ops/web-platform-tests | 4ac91a784d5d363d261bfe92e251e6efd74b6b01 | c07a244ceef0d0833f61f2efa227bc1c65371c9c | refs/heads/master | 2020-12-11T06:08:52.141843 | 2017-10-20T11:55:15 | 2017-10-20T12:56:55 | 54,023,228 | 3 | 4 | null | 2016-09-06T21:01:15 | 2016-03-16T10:39:23 | HTML | UTF-8 | Python | false | false | 3,428 | py | #META: timeout=long
import pytest
from webdriver import error
from conftest import product, flatten
@pytest.mark.parametrize("value", [None, 1, "{}", []])
def test_invalid_capabilites(new_session, value):
with pytest.raises(error.InvalidArgumentException):
new_session({"capabilities": value})
@pytest.... | [
"james@hoppipolla.co.uk"
] | james@hoppipolla.co.uk |
d08a5113b9abe09c0d71088b769870dd8b03bf99 | 8ffe984acaba602d3b4191b592c2cc584c182985 | /jasy/style/output/Compressor.py | 62d8a326af29e51490520f415cf16fc1062fe635 | [
"MIT"
] | permissive | sebastian-software/jasy | 809614950ab044661be716d708a779f942f83d9c | 9740ed33f0836ab2dd3e00ab4fae4049f9908072 | refs/heads/master | 2020-04-05T23:03:52.689714 | 2017-08-29T11:50:50 | 2017-08-29T11:50:50 | 6,399,503 | 2 | 2 | null | 2014-03-20T13:01:13 | 2012-10-26T06:16:51 | Python | UTF-8 | Python | false | false | 9,927 | py | #
# Jasy - Web Tooling Framework
# Copyright 2013-2014 Sebastian Werner
#
import json
import re
import sys
import jasy.style.Util as Util
ascii_encoder = json.JSONEncoder(ensure_ascii=True)
class CompressorError(Exception):
def __init__(self, message, node):
Exception.__init__(self, "Compressor Error: ... | [
"info@sebastian-werner.net"
] | info@sebastian-werner.net |
ba14f234c19da366de41a677f975113a4f189211 | 02977d05a321dc3115b5071bcccb7b609e2a78e5 | /python/setup.py | 365cd50f3736703ce08822ce2fbe29990d246489 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | weiting-chen/omniscidb | 80dc5475b89b6941ae3720be4614f3174b796102 | 380133c29d6390e3dfc59486f06407c27fcd5a3a | refs/heads/master | 2021-07-10T18:26:18.875299 | 2021-03-31T14:54:08 | 2021-03-31T19:33:34 | 239,653,054 | 0 | 0 | Apache-2.0 | 2020-02-11T01:47:40 | 2020-02-11T01:47:39 | null | UTF-8 | Python | false | false | 2,243 | py | import os
from codecs import open
from setuptools import setup, find_packages
CONDA_BUILD = int(os.environ.get('CONDA_BUILD', '0'))
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_descripti... | [
"dev@aas.io"
] | dev@aas.io |
8057e15f5b61530b22a77047011f076d37be6a81 | 1852ebe35d063852745a72fd851e41b135e7b955 | /4maja/3.py | 063c884d85a810c8eb8c3c9669631e0df32ff06e | [] | no_license | dmurawski/python | db34f9b3b52088db4a7f6b2898a2b14cf61bd826 | d11027946696b7dbd05cd36604d331fcd045595b | refs/heads/master | 2021-05-20T23:58:34.820699 | 2020-06-05T13:49:11 | 2020-06-05T13:49:11 | 252,461,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import numpy as np
def funkcja(n):
a = np.arange(1,(n*n)+1,1)
a = a.reshape(n, n)
print(a)
funkcja(5)
| [
"dmurawski018@gmail.com"
] | dmurawski018@gmail.com |
f6d53a43f477a828fde406af81f072577b698f0a | b3fcd141a524376ba122e1508f79089f55d62431 | /assignment3(C1W3)/planar_utils.py | 07f49b7c0b0609b09083574a760e1762d00ac813 | [] | no_license | sdoaxing0410/NeuralNetworkHomework | e68ef1048e4705093c211fd60241845448b32c8b | 32d881cf902cafc716a2d3661b5635f4ee5930ee | refs/heads/master | 2021-04-20T03:28:17.967069 | 2020-07-20T07:43:37 | 2020-07-20T07:43:37 | 249,651,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | import matplotlib.pyplot as plt
import numpy as np
import sklearn
import sklearn.datasets
import sklearn.linear_model
def plot_decision_boundary(model, X, y):
# Set min and max values and give it some padding
x_min, x_max = X[0, :].min() - 1, X[0, :].max() + 1
y_min, y_max = X[1, :].min() - 1, X[1, :].max(... | [
"chivox@ChivoxdeMac-mini.local"
] | chivox@ChivoxdeMac-mini.local |
26c558cff00cdab061b221026330bf40bfcc831e | b75c250e2a31299e58bf0d602697fc01913ec4b7 | /my_module/fmt/core.py | fa0d0bd8496495454ad5365dd05ea78ddc9d3440 | [] | no_license | FlyMaple/python | 0587162207ede81d3d5657f9d879ec59398504c2 | fbaaaeba45f46c62ca70e89f9561272cfd4d977b | refs/heads/master | 2020-03-12T22:42:04.131896 | 2018-09-06T05:16:59 | 2018-09-06T05:16:59 | 130,852,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | def fmt_core():
print('This is fmt_core') | [
"skye.wu@zyxel.com.tw"
] | skye.wu@zyxel.com.tw |
23c336d4f90c16e460905f0b731dc98b744fd847 | 0b2921f133c45a03060ee7e549090bee9ca019ab | /6.py | 7eae7e60bfa25f2803497221a99b5bbb66418862 | [] | no_license | srimathiselvakumaran/code_python | 53a6b547bb577615f72f1212bd2e21c5f6fc28be | b6a3c4f46e7a42deebab3fb4dce6bc33ef58aafc | refs/heads/master | 2020-06-06T20:57:25.584138 | 2019-07-16T10:45:02 | 2019-07-16T10:45:02 | 192,850,786 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | year=int(input())
if year%4==0:
print("yes")
elif year%100==0:
print("no")
elif year%400==0:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | noreply@github.com |
4301d8ddb5bac52d283851cc404947a820b5da05 | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_intro/dojosurveyRev/manage.py | 925c756178ebae644969e9b503f6ded8d97f2cb8 | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dojosurveyRev.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
85961582dc95662c8c73c9884a55fa4a9889b231 | eca93d96d8b0bd370e282451d40327475dda64ed | /music/views.py | 2c3a10924c23c82f27308d0c6fa1643e1da5c44c | [] | no_license | gauravsetia1188/thenewboston | b44a43d7ad0abf940df1a86ffaaed9224e32b0a5 | f70df9418fc608eb16313c0a85d1531f2d6c86a6 | refs/heads/master | 2021-01-17T17:33:30.457721 | 2016-06-02T08:19:57 | 2016-06-02T08:19:57 | 60,244,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | from django.http import HttpResponse
from .models import Album, Song
from django.http import Http404
from django.template import loader
from django.shortcuts import render,get_object_or_404,redirect
from django.views import generic
from django.views.generic.edit import CreateView,UpdateView,DeleteView
from django.core.... | [
"gaurav setia"
] | gaurav setia |
e3dbf87755cf77cf2f46bdf0be5b7571470097a1 | 0dffb7679b709f4042e57b30fb933d8abce1a158 | /video_store/platforms.py | 4c604f19158a739ac4feb59de8ec1a9a220f177e | [] | no_license | codenoob-22/Youtube-Archives | e4c58d4a9dd7017cc38fa46dead7053b20359326 | 5e9bd194a879e619598aa14a77cabd98fe5a4e86 | refs/heads/master | 2023-01-19T17:54:03.593092 | 2020-12-02T18:37:05 | 2020-12-02T18:37:05 | 313,988,223 | 0 | 0 | null | 2020-12-02T18:37:07 | 2020-11-18T16:11:44 | null | UTF-8 | Python | false | false | 4,415 | py | import json
import requests
from dateutil import parser
from urllib.parse import urlencode
import google_auth_oauthlib.flow
import googleapiclient
from django.conf import settings
from video_store.models import APIKey
import logging
logger = logging.getLogger("process_log")
class YouTube:
''' class implements... | [
""
] | |
a33736a4c56b07c51707c6b40da9599e2a337f71 | 6c29e5db26e3c5ff06ae861dd735360421dabc4e | /principal/admin.py | 85660906e7cccdc6ab2789dc1c85ad5d2511ac24 | [] | no_license | blinit10/dfranco-paypal | f35e588eac5422971e949d22491ea79da1477247 | fc840d7607bb6226060082851174123662ebfa28 | refs/heads/main | 2023-06-08T01:30:43.934995 | 2021-06-24T01:46:26 | 2021-06-24T01:46:26 | 379,699,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | from django.contrib import admin, messages
from .models import *
# Register your models here.
#inlines
class GaleriaProductoInline(admin.StackedInline):
model = GaleriaProducto
extra = 0
class ProductoPerksInline(admin.StackedInline):
model = ProductoPerks
extra = 0
class SeccionNosotrosPerksInline(ad... | [
"57692778+blinit10@users.noreply.github.com"
] | 57692778+blinit10@users.noreply.github.com |
3991c6fbfa0f529731c69ea19bcbb083a1abbbcd | 53b269c4eafa380f46d72a3c8182cd7d2e570195 | /Is-Out-of-Distribution-Detection-Solved/src/ood.py | e56fb404f12d824e89ca1b734184da3b4016dcf6 | [] | no_license | Seshank361/Ferles | 76be3de7cf6ebfdc6382dc4fa3db80b6261c77f5 | 6e8a23408f77c06f1e09109cbde6f433126f56d6 | refs/heads/master | 2023-06-14T20:03:04.573322 | 2021-07-11T09:51:02 | 2021-07-11T09:51:02 | 384,757,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,354 | py | import torch
import torch.nn.functional as F
import numpy as np
from sklearn.linear_model import LogisticRegressionCV
from sklearn.metrics import confusion_matrix
from torch import nn
from torch.autograd import Variable
from torch.utils.data import DataLoader, TensorDataset
from sklearn.metrics import roc_curve, auc, b... | [
"seshank.achyutuni361@gmail.com"
] | seshank.achyutuni361@gmail.com |
d19c3850d13ea397110a11cb9587fe5c3e57637e | 92b3b455adbe9a3a9f07d088c04101344931696e | /server-tcp.py | 61d4f8ba7a475c640287afbbea2c301046694ede | [] | no_license | ycho46/TCP-UDP-Application | 40fff69acca5167e5139a8c5555c2398e7399ad4 | 34133d46ca26f956a64aae60c206da7da07e48f2 | refs/heads/master | 2021-01-10T01:12:14.646904 | 2015-09-29T05:30:21 | 2015-09-29T05:30:21 | 43,326,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | import socket
import sys
import hashlib
import random
import string
def Main(argv):
#check command line arguments
if len(sys.argv) != 2 and len(sys.argv) !=3:
print "Check your arguments.\n\teg. python bank-serverTCP.py 8591 or\
\n\tpython bank-serverTCP.py 8591 -d for debug mode"
sys.exit()
#check port argu... | [
"ycho46@gmail.com"
] | ycho46@gmail.com |
acf5d4b77fd234775af80508e3a4688f0811f179 | 37e53bb1d47004e956119e7e7047b8194b3142f5 | /grok/recursion_ver_3.py | 1d12fa0694653459fa11a17525f97743ce815aa0 | [] | no_license | fortredux/py_miscellaneous | eea82f900434ef23d98769f9057c87c97b278e45 | 7aee7c8bc0ddda1e137e4cb7e88eed78dbdb98d8 | refs/heads/master | 2020-12-21T21:03:28.897746 | 2020-04-05T20:44:55 | 2020-04-05T20:44:55 | 236,560,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py |
def check(i):
i = int(i)
if i == 0:
print('0')
return False
else:
return True
def countdown(num):
x = check(num)
while x is True:
num = int(num)
print(num)
return countdown(num-1)
countdown('15')
| [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
181242534741172deff30d1570b6c1e64b1d1641 | 6daaf3cecb19f95265188adc9afc97e640ede23c | /python_design/pythonprogram_design/Ch5/5-3-E60.py | cae23228ee53270139ad9d77e1371e78ac0da7f0 | [] | no_license | guoweifeng216/python | 723f1b29610d9f536a061243a64cf68e28a249be | 658de396ba13f80d7cb3ebd3785d32dabe4b611d | refs/heads/master | 2021-01-20T13:11:47.393514 | 2019-12-04T02:23:36 | 2019-12-04T02:23:36 | 90,457,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import pickle
def main():
## Display the large cities in a specified state.
largeCities = createDictionaryFromBinaryFile("LargeCitiesDict.dat")
state = input("Enter the name of a state: ")
getCities(state, largeCities)
def createDictionaryFromBinaryFile(fileName):
# Assume pickle module has been i... | [
"weifeng.guo@cnexlabs.com"
] | weifeng.guo@cnexlabs.com |
a8226d7b2fce6347b3c4b5cb8a0bad7755c9b653 | 6e025bb9553d7639b5e96552bc343b685ac95a44 | /mysite/learn/views.py | a271208c0dce3c06fac2f9196428e5a1adb09ad4 | [] | no_license | sunyiying/DjangoPro | b44db9c240f211a8f7c1fd2822fa71852a2fc975 | f99d98e432c2c559371a45fb510d1627f297cd3c | refs/heads/master | 2020-04-27T11:28:01.184342 | 2019-03-09T09:15:49 | 2019-03-09T09:15:49 | 174,296,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py |
from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from django.urls import reverse
# Create your views here.
def index(request):
return HttpResponse(u"欢迎学习django课程")
def add(request):
# a=request.GET["a"]
a=request.GET.get("a",0)
b=request.GET.get("b",0)
... | [
"sunyy9@lenovo.com"
] | sunyy9@lenovo.com |
b6e60b7528e70b43334ec068ad75da2ef495d5d4 | 2fc515c5ac513a56cdf6baed3b0953ba4d008401 | /flappy/geom/matrix3d.py | b8b27b2b8c4e9d2f1ae540f75a813f67fce57173 | [
"MIT"
] | permissive | wannaphong/flappy | cc86ba16eee5472d58632506fc5d1dda80f0b418 | bc4630ca9120463c57c1d756c39c60a6dc509940 | refs/heads/master | 2021-05-30T18:35:00.012946 | 2015-09-19T09:36:35 | 2015-09-19T09:36:35 | 42,767,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | import math
class Matrix3D(object):
def __init__(self, data=None):
self.data = None
if data and len(data) == 16:
self.data = data
else:
self.identity()
def identity(self):
self.data = [
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
... | [
"pyronimous@gmail.com"
] | pyronimous@gmail.com |
4cad7251b641899544d98f4a901331f7bf1a6750 | 647128341b74aa1ab3f4fc4e09ed0f9e4daec932 | /annotation/amt/generate_usernames.py | 3489e7889a036542a74be82a105f7b3de519d958 | [
"MIT"
] | permissive | Pratik-11/roft | 3f35b1e969b304c8b4587c32f309038ac29985ad | 29c54c9712832051170c47909a5d38790ff5350b | refs/heads/master | 2022-12-19T12:43:54.243300 | 2020-09-30T15:00:58 | 2020-09-30T15:00:58 | 299,954,790 | 0 | 0 | MIT | 2020-09-30T14:55:48 | 2020-09-30T14:55:47 | null | UTF-8 | Python | false | false | 3,015 | py | import json, random, copy
'''
NOTE: You must run this script from within the amt directory. If you are importing and
calling generate_usernames as a function, make sure to run os.chdir(<path to amt directory>)
Adjectives Source:
https://github.com/dariusk/corpora/raw/master/data/humans/descriptions.json
https://raw.g... | [
"ldugan@seas.upenn.edu"
] | ldugan@seas.upenn.edu |
9f9de4a0ce359c148f01dc85de77fe73c15d295b | 06a38963f22f8a74cc129033f8f1cac7f114cf5d | /problem_set_1/.history/src/p03d_poisson_20210517220103.py | 6c67a7f7ecde98d6ae3463c6f27704f0d07843ae | [] | no_license | lulugai/CS229 | 47e59bcefe9dccbb83c6d903682eb6ddca3a24b5 | 4dd77b2895559689e875afe749360c3751a12cf1 | refs/heads/main | 2023-05-09T17:39:45.336695 | 2021-06-01T09:15:25 | 2021-06-01T09:15:25 | 372,768,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import numpy as np
import util
from linear_model import LinearModel
def main(lr, train_path, eval_path, pred_path):
"""Problem 3(d): Poisson regression with gradient ascent.
Args:
lr: Learning rate for gradient ascent.
train_path: Path to CSV file containing dataset for training.
eva... | [
"2927791087@qq.com"
] | 2927791087@qq.com |
814385f469553b042ba8286f004735e58e621fe8 | 5aed7d53a161e3457ca5a91cc5684ca636b9585d | /exercises/5.py | 4343f575c9eedfcffb34eb479399466b102bb8a0 | [] | no_license | najeebp/46_python_Exercises | d066f8628edbbae9d119924210c1a55015c8bcba | da070b00179a8abbd99e73abd30fd9e768d1881a | refs/heads/master | 2016-09-06T10:07:53.089936 | 2014-10-23T07:12:16 | 2014-10-23T07:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | def translate(string):
sample = []
vowels = 'aeiou'
for element in string.split():
re=''
for elementt in element:
if elementt not in vowels:
re += elementt+'o'+elementt
else:
re +=elementt
sample.append(re)
return ' '.join(sample)
print translate('this is fun')
| [
"najeebp91@gmail.com"
] | najeebp91@gmail.com |
3d22ed63a3ecbe8726e934b81008535c769d326d | 016a376cd28c290f52cb3d21c7480e76f10a3f3e | /mnist/gen_descr.py | c39484d77d576c0beacef454aaa8c9b21ba25b4d | [] | no_license | iscissor/al-fk-self-supervision | e023522af83198b572ed36d17cfb4fda2a755b64 | 03a776cff595ac01d19ebab14cba8a89dbdd1989 | refs/heads/master | 2023-07-15T05:37:23.649392 | 2021-08-12T00:21:07 | 2021-08-12T00:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | from __future__ import print_function
import argparse, os, sys, time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from custom_datasets.mnist import transform_usual, MNIST
from custom_models.model import *
from utils import *
def main():
# Trainin... | [
"denis.gudovskiyd@us.panasonic.com"
] | denis.gudovskiyd@us.panasonic.com |
9092164cade33e786253089e178044d0156653f7 | 71d4fafdf7261a7da96404f294feed13f6c771a0 | /mainwebsiteenv/lib/python2.7/site-packages/phonenumbers/shortdata/region_SK.py | fdc7ed9e7dd3d18546d0c1cdbe188f1eb3101d50 | [] | no_license | avravikiran/mainwebsite | 53f80108caf6fb536ba598967d417395aa2d9604 | 65bb5e85618aed89bfc1ee2719bd86d0ba0c8acd | refs/heads/master | 2021-09-17T02:26:09.689217 | 2018-06-26T16:09:57 | 2018-06-26T16:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """Auto-generated file, do not edit by hand. SK metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_SK = PhoneMetadata(id='SK', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_length=(3, 4, ... | [
"me15btech11039@iith.ac.in.com"
] | me15btech11039@iith.ac.in.com |
a2669f6f3cf2be4424ef7db7edfd60b48effbd05 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/logs/apis/TestMetricTaskRequest.py | 8e2bba6c9cb8119d77246c48816fc0632e6a8191 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 3,730 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
7d0fbab5f8f03729cbd94b058d05751bc56c782a | de1fd7da6a3237a4039a1e89de60fbbb9d63203b | /limgex 1.0.17 (2.7ver).py | 9aa40cd53a15e56dd4dad53c300e3614b6bcf8ba | [] | no_license | prebald/limgex | c99ad67ce2d63392d6213a94e0afed899334ec9e | 1b3a1c536d9b9943de1cf0374573948b639c814b | refs/heads/master | 2022-11-19T02:37:11.935272 | 2020-07-20T19:44:19 | 2020-07-20T19:44:19 | 280,683,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | # 7/17/2020, rakokuko
# Extracts img data from lofter exported xml file.
# Not applicable for images embeded in text blog entries (those with <img> tags)
# 1.0.1 using built-in urllib.request module instead of requests
# 1.0.15 Python2.7 compatible ver
import os
import re
import ast
import urllib
import ssl... | [
"noreply@github.com"
] | noreply@github.com |
67a771ee18a8a6725ab88841f5b91845bc7753bc | 93518b505249fc08c16aadf3fcf21aeeb393cc17 | /Code/kMeansClustering.py | 68a15a63fb29d03cce3793e48581d424f979ce16 | [] | no_license | debsa2000/PCOSPrediction-Applied-Machine-Learning-Course-Project | dabbc385d74fd5314ffbfcaf9bed8a257a887bdc | 23612679edc3098df20b323089149ab139202fca | refs/heads/main | 2023-05-18T23:26:32.403691 | 2021-06-08T19:35:56 | 2021-06-08T19:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | import numpy as np
import pandas as pd
from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.cluster import KMeans
from sklearn.metrics import accuracy_score
from sklearn import svm
class clust():
def _load_dat... | [
"ds101@snu.edu.in"
] | ds101@snu.edu.in |
e3ccc17dad2cce4bc4775644166167b2526d35eb | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex044/exercicio044.py | 290134b8ab1da627fa43d612670b1700cc3f8065 | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # Elabore um programa que calcule o valor a ser pago por um produto
# considerando o preço normal e condição de pagamento
# a vista dinheiro 10% de desconto
# a vista cartao 5% de desconto
# 2x cartao preço normal
# 3x ou mais
compra = float(input("Informe o preço das compras"))
print("Escolha a forma de pagamento")
pr... | [
"54421573+ArthurAlesi@users.noreply.github.com"
] | 54421573+ArthurAlesi@users.noreply.github.com |
ad8cd8c0f460dc81c3b9de282699694a3471a7c8 | 42f5eaf16bfd7076cb5a598cf2f239faa575f28b | /05-grpc-google-cloud-speech/python/google/ads/googleads/v2/errors/bidding_strategy_error_pb2.py | f7e523c0e71bf34542911e87beb1aa189a2cf844 | [] | no_license | jiriklepl/IMW-2019 | ab0e1c791a794ccf8a6a8d8d4e732c29acee134c | 921c85d3c8132114ad90db8deb52eb5ddc06c720 | refs/heads/master | 2020-08-28T13:29:15.087785 | 2019-12-15T17:12:24 | 2019-12-15T17:12:24 | 217,711,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,629 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v2/errors/bidding_strategy_error.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from googl... | [
"jiriklepl@seznam.cz"
] | jiriklepl@seznam.cz |
ec7aa8ec3045bb0672f893db968f532ab7ae139d | aef6e68ccb00c423ebfad39101c1913c68253c83 | /saramin/parser.py | ca99d8976a02a2ae8ac2f0f0c92607724ebb452b | [] | no_license | plzprayme/work-scholarship-tools | 76dd39f037d774111927a316cdd8c88ed854aec9 | df8004c90a8a3b33e5c858c7d544a0e35ef7ce19 | refs/heads/main | 2023-02-13T05:24:35.673243 | 2021-01-15T07:47:18 | 2021-01-15T07:47:18 | 306,560,615 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,233 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from bs4 import BeautifulSoup as bs4
from datetime import datetime, date
from time import sleep
import pandas as pd
def filter_by_condition(rows):
result = []
for row in rows:... | [
"dbfpzk142@gmail.com"
] | dbfpzk142@gmail.com |
0b854c01753d1ed1f4b00a924fdfe1c80906adf2 | e2a901a7ba635c2c1ad4f7054a2abba29926d22c | /pycode/util.py | 536ec9aedac12155875f6a16a53cb30155616d73 | [] | no_license | yocineman/charaExporter | 5d496a1ce32d6f904f4d833de44ddf9b3fd128b8 | dea89eed2256904164d90c55dec6dae0e7a7260b | refs/heads/master | 2020-05-05T13:03:40.855344 | 2019-09-10T08:46:19 | 2019-09-10T08:46:19 | 180,057,333 | 0 | 0 | null | 2019-09-10T08:46:20 | 2019-04-08T02:49:02 | Python | UTF-8 | Python | false | false | 6,088 | py | # -*- coding: utf-8 -*-
import os
import re
import shutil
import distutils.dir_util
# publishpath = shotpath + 'publish' + 'charSet' + char
# publishfullpath = publishpath + currentVer
# publishfullabcpath = publishfullpath + 'abc'
class outputPathConf (object):
def __init__ (self, inputPath, isAnim=False, tes... | [
"k_ueda@ndesign.co.jp"
] | k_ueda@ndesign.co.jp |
73499f608ccba3feeca5c8a2cf6b5d8a8dc69689 | e6c0683afc2a3d48ada10ffa9f7d257e7c64589e | /purity_fb/purity_fb_1dot3/models/network_interface_response.py | ed609f53ec7b6a81ce61d29353a26243d7384010 | [
"Apache-2.0"
] | permissive | unixtreme/purity_fb_python_client | 9a5a0375f4505421974aadc674ed04982c2bf84f | e836afe9804ffa99f74bf4b5202f181c3c04d9df | refs/heads/master | 2020-04-24T14:53:56.977344 | 2019-02-22T12:37:45 | 2019-02-22T12:37:45 | 172,042,713 | 0 | 0 | NOASSERTION | 2019-02-22T10:05:44 | 2019-02-22T10:05:44 | null | UTF-8 | Python | false | false | 4,256 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.3), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.3
Contact: info@purestorage.com
... | [
"zhengli.jecky@gmail.com"
] | zhengli.jecky@gmail.com |
5eec2e4d9dc07cb7c83ae65d5f511f02d689ee2a | c1c1f6a7ba2889b9059d3913ceb2d2693dc19822 | /node_modules/ws/node_modules/bufferutil/build/config.gypi | f2cdd97ae428744c9c8098c2f6582eff2020c2f1 | [
"MIT"
] | permissive | pressla/caradali | aeb0cbc99ba61bfaedabfb20d5e09489d68863d5 | 6ef47c3494c4fd4a9834e93408fdc6b49c0702e0 | refs/heads/master | 2016-09-10T12:52:54.312504 | 2015-05-07T11:11:34 | 2015-05-07T11:11:34 | 31,992,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_install_npm": ... | [
"pressl.alex@imitrix.de"
] | pressl.alex@imitrix.de |
5aa6d0190c71dff4c9372596cae52cfd9393b80b | 08a93de4813e0efb5cf40ac490eb0502266ca8ba | /settings/urls.py | c64f4a4821b4b9656b8e0cfa43d8ede15897236c | [
"BSD-2-Clause"
] | permissive | hunglethanh9/modelchimp | eaf3a8c6c73a3ed4c942fa361d8b661bf5d92a87 | cdb8162cdb554aa5ef00999f390138bd8325f472 | refs/heads/master | 2020-06-06T00:09:33.447383 | 2019-06-18T13:02:03 | 2019-06-18T13:02:03 | 192,582,892 | 1 | 0 | null | 2019-06-18T17:14:47 | 2019-06-18T17:14:47 | null | UTF-8 | Python | false | false | 1,188 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth.views import (
PasswordResetView,
PasswordResetConfirmView,
PasswordResetDoneView,
PasswordResetCompleteView,
)
urlpatterns =... | [
"samir.madhavan@gmail.com"
] | samir.madhavan@gmail.com |
912717965a079ebe8e78ea61ae8e35055653b5e5 | c33657f5c541fd2bc14dbb8714cf938f10a9ed88 | /config/settings/base.py | e5da856351b6a1b4b0b1f8a687d3b094d026607c | [
"BSD-3-Clause"
] | permissive | manax-dojo/cashflow | 790f70d9954082505ef1c5fa54eb98f6b7fe51c4 | 2b658c938eca11cee7c89c1190a0faa5c2eeb6b2 | refs/heads/master | 2021-01-19T00:54:44.146269 | 2017-05-25T12:39:35 | 2017-05-25T12:39:35 | 87,218,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,214 | py | """
Django settings for cashflow project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
# import
# ----------------------------------------------------------------... | [
"bruno.santeramo@gmail.com"
] | bruno.santeramo@gmail.com |
b4490bd15f0a948e14d1137f93d740488ef938cb | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-2264.py | cd5238d534bb618b3c7d6f7cfcdb66b9da278905 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,351 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d6fbd234e71dc18e2af7c0b7b3c27b57efb9a5d7 | c6e3ebc3a667c7165ba611830a2f2b5dbfc3c2a6 | /LongLineInPoly.py | 6bf22c3476e9889ecdf03d25361f18e10495b02d | [] | no_license | MosesF/LongLineInPolygon | 9a26d0d0a60ec0a288d8bb4b3a5db2ff8a39e7d5 | f7070ef4ea6264531c60125ae75c7895857bac77 | refs/heads/master | 2021-05-01T23:15:21.202336 | 2018-02-09T17:05:43 | 2018-02-09T17:05:43 | 120,932,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,346 | py | import matplotlib.pyplot as plt
import math
"""
incline Function
takes in a coordinate and finds it's incline from 0-360 from the origin (0, 0)
"""
def incline(a1, b1):
# Calculates incline in radians
a = math.atan2(b1, a1)
#converts to degrees
a = math.degrees(a)
# '%' converts incline from '-18... | [
"100588689@oncampus.local"
] | 100588689@oncampus.local |
1b314849b4ebbac2f475cf55d12648b650a8abbe | 418a223f1b60b14c2cc4dd07c8673c6b950d6910 | /lib/archived/train_mam_fe64c.py | 03af1a24632f079f01ade9eb9ac27a27c50af7e1 | [] | no_license | RomeoV/deep-local-features | 2d478c6f22eb2d57a89acdacb372cb565433e512 | 6259e997e2b00d80e81c8e759986a76c3c57a66c | refs/heads/main | 2023-04-30T07:16:43.890977 | 2021-05-14T08:37:07 | 2021-05-14T08:37:07 | 340,782,510 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import torch
from torch import nn
from pytorch_lightning.core.lightning import LightningModule
from pytorch_lightning.loggers import TensorBoardLogger
from torch.nn import functional as F
import pytorch_lightning
from lib.loss import *
from lib.repeatability_loss import RepeatabilityLoss
from lib.autoencoder import *... | [
"phil.lindenberger@gmail.com"
] | phil.lindenberger@gmail.com |
8983f0e549c61b717612a6559a068b31219005c3 | 5c9db606a8f8f114c5569f26e368e6026f4752c9 | /crediayuda/pages/urls.py | 6f0bf7d8f7cc369158a41fa516ea94a389ac47e4 | [] | no_license | memoriasrp/git_crediayuda | 2c50db8d8ecccd3075aa643661213fbcae7a68b9 | 706035c2a789b0577c63d0de64aa400586dcfd24 | refs/heads/master | 2020-06-11T23:26:40.920633 | 2019-06-29T03:18:33 | 2019-06-29T03:18:33 | 194,120,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.urls import path
from .views import PageListView, PageDetailView, PageCreate, PageUpdate, PageDelete
pages_patterns = ([
path('', PageListView.as_view(), name='pages'),
path('<int:pk>/<slug:slug>/', PageDetailView.as_view(), name='page'),
path('create/',PageCreate.as_view(), name='create'),
... | [
"silviamarp@gmail.com"
] | silviamarp@gmail.com |
4fa273f3ec1d1d7f167374408be6692638917806 | 79e22478e51e62f9171d1209cd67d7a99c66861e | /ledtester/light.py | 642cde30fa6b7c2bc2c007525b67f9b77733b656 | [] | no_license | Aprilmei/comp30670_Assignment3 | 5f51a2b8f16ea36b6b69f0ffc3a0076ee733f7b6 | b5545622f130b8a4be42a7b2b70f76459b11c29b | refs/heads/master | 2021-06-13T12:06:41.286363 | 2017-02-27T14:22:27 | 2017-02-27T14:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,858 | py | '''
Created on 27 Feb 2017
@author: April
'''
import urllib.request
import re
import argparse
light=[0]
N=0
# request
def read_url(link):
req = urllib.request.urlopen(link)
content = req.read().decode('utf-8')
content_lines=content.splitlines()
return content_lines
def read_command(command,x):
... | [
"sanchiyou@msn.cn"
] | sanchiyou@msn.cn |
d7c759cbcfcbf99821bb0d3e66eb3e9796632e2b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hires.py | 55de384efb494e1deadbf5e334722a21e472f366 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
from xai.brain.wordbase.nouns._hire import _HIRE
#calss header
class _HIRES(_HIRE, ):
def __init__(self,):
_HIRE.__init__(self)
self.name = "HIRES"
self.specie = 'nouns'
self.basic = "hire"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4c97af4f3a99b08218312d715c3dece675edbb72 | 75a3db2311d0d7362889d7a1bf625f78253cacf8 | /canvas_objects/StaticDraggableObject.py | b9baad06aaacdbcea547df9d33c8d26edcbb4541 | [] | no_license | Kothy/Cards | 3bc14aabe0eccbbe86f7bc4fa3fde96a4c8a7a4a | 98bf2137a9213a5899dbb2ad2db6b55231da1eb7 | refs/heads/main | 2023-04-09T15:22:44.637673 | 2021-04-21T17:45:35 | 2021-04-21T17:45:35 | 355,614,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,401 | py | from tkinter.filedialog import askopenfilename
from PIL import ImageTk, Image
import tkinter as tk
import os
from Constants import *
import copy
from serializeImg import imageToText
class StaticDraggableObject:
def __init__(self, parent, img, x, y, typ): # draggable and static
self.parent = pa... | [
"noreply@github.com"
] | noreply@github.com |
406e84991ef3def37f7d31903318dec6a5584ffc | 823eac0ce3eafc7c39f3c5df546bdef390f69f9e | /pywave2/pywave2.py | 15d9229f743e14ce36b260cdf716af7e9a8476db | [] | no_license | trstringer/pywave2 | b321e320a08f684456e149fce6476ec8fc3c6a26 | 0d6a4b276d2e31b53c36f695933508b69d5f9078 | refs/heads/master | 2021-06-12T10:53:48.748797 | 2017-03-11T14:39:26 | 2017-03-11T15:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | """Main entry point"""
import argparse
import os
import sys
from buoydata import get_buoy_data
def main():
"""Entry point function"""
# first check to see if the user passed env vars
# if they didn't then try to parse args
station_id = os.environ.get('PYWAVE_STATIONID') or parse_args().station_id
... | [
"tr.stringer@outlook.com"
] | tr.stringer@outlook.com |
3938feb5cd60be82625b0c0f7b8448147a7a4fb2 | 11a8a406140ef4c21f9bfe27d27ecbe01091eb31 | /pypeerassets/provider/cryptoid.py | 172e53d6d920a25a4bdcda66caf63ee8acc8a40a | [
"BSD-3-Clause"
] | permissive | xiaomuluoye/pypeerassets | 4c9bbc209b037e94de1094132a6e3187fe886b36 | 3a849aa4a8bbf3c4000f261e0851ddd2bfe764f7 | refs/heads/master | 2021-01-22T06:19:47.212276 | 2017-09-03T11:22:10 | 2017-09-03T11:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | import requests
from operator import itemgetter
from .common import Provider
from pypeerassets.exceptions import InsufficientFunds
class Cryptoid(Provider):
'''API wrapper for http://chainz.cryptoid.info blockexplorer.'''
@classmethod
def __init__(self, network: str):
"""
: network = pee... | [
"dx.1178@gmail.com"
] | dx.1178@gmail.com |
b251c0b14ea2077e181f413c9ba2339cbb9def6b | 2da04065b1ceb1816c2eead4548f342e6f30f649 | /Make_Standalone_Python_gtk3/ReadEtexts.py | 3cd4b8a7e60c64f18d3bc2efff65d3e9cd1b3062 | [] | no_license | sugarlabs/myosa-examples | 19fa11bbc059a392665a4a94960ff4f7a82c0318 | b4d6d5940344bf31460b0a49b310afa6cc25c0cd | refs/heads/master | 2021-01-20T05:05:17.019406 | 2020-01-07T08:14:08 | 2020-01-07T08:14:08 | 28,525,142 | 2 | 2 | null | 2020-01-07T08:14:09 | 2014-12-27T00:51:29 | Python | UTF-8 | Python | false | false | 7,299 | py | #! /usr/bin/env python
#
# ReadEtexts.py Standalone version of ReadEtextsActivity.py
# Copyright (C) 2010 James D. Simmons
# Copyright (C) 2012 Aneesh Dogra <lionaneesh@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | [
"lionaneesh@gmail.com"
] | lionaneesh@gmail.com |
0df41ae40a0375dbac1794c5a5d7bb4a19941e27 | 0e6311674ad4637031ff4c7e0f522a7fac65973d | /akshare/futures/futures_daily_bar.py | adc6d5c6f6e66a3584b8960a5602b1284331c185 | [
"MIT"
] | permissive | waruanfou/akshare | 26b064e305c05b4b4d1bf297fe73ab61e465bb06 | b240109eae08d6bb5eee2df3edeac680c9176430 | refs/heads/master | 2023-06-23T08:32:42.035038 | 2021-07-18T11:26:29 | 2021-07-18T11:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,312 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2021/5/4 15:58
Desc: 交易所网站获取期货日线行情
"""
import datetime
import json
import re
import warnings
import zipfile
from io import BytesIO, StringIO
import numpy as np
import pandas as pd
import requests
from akshare.futures import cons
from akshare.futures.requests_fun ... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
ea08e72c949f9eb2d033e908af78dd0e21303729 | 0931834ed6f2d8ad900c1ed8db5807063c464475 | /app/modules/s3_class.py | abf2e1de544dba0aa937cfd64a3b753cfeb5db91 | [] | no_license | brianpiperato/awspipeline | 36a345b0548ba868dbdb64a8c76bd536db75c5db | 50a0c5213c47eb1d71fe6d34588ec76c4c8d9481 | refs/heads/master | 2022-12-02T15:45:55.753269 | 2020-08-12T21:34:24 | 2020-08-12T21:34:24 | 215,800,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | # Purpose: AWS S3 Class for C.R.U.D operations
# Author: Brian Piperato
# Created on: 10/2/2019
# Last Modified on: 10/24/2019
import os
import glob
import boto3
import json
import logging
from botocore.exceptions import ClientError, BotoCoreError
from app.modules.file_manipulation import read_directory, ProgressPerce... | [
"piperatob1@gmail.com"
] | piperatob1@gmail.com |
184fa83533304a450388f0a5e26e24b9b60fa749 | 5cc53f9ac1521f3faed94976516aab5c656bbcf7 | /actions/lib/__init__.py | dbed2c6ef0c02eb37eb1646c94a424e021dce4fc | [
"Apache-2.0"
] | permissive | rasdar139/vpc-flowlogs | d7e4acc1c1f2b028d3586d7691a967d779015e93 | 8b92a0514469ddbc5e4af0cfe6e384a64dfa66fc | refs/heads/master | 2023-04-11T05:16:25.380841 | 2021-04-27T11:11:31 | 2021-04-27T11:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,353 | py | """ Library used by both the cli and __main__ cloud function
It should only have the dependencies that are required for the __main__ action
since it will be zipped up for cloud execution
"""
import datetime
import ibm_boto3
import ibm_botocore
import logging
import functools
import gzip
import json
import sys
from logd... | [
"powellquiring@gmail.com"
] | powellquiring@gmail.com |
62cbc2bc1f0553ebc160c9187f62311a93b9fbf8 | 11ddf56093b5a821a080249f6fc2e50e34f8970d | /opennsa/backends/dud.py | ad776c4f171d702c54f71fa839ea79587c1479fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igable/opennsa | 067d0043d324e32cebb6967023fbcc0df9ec836c | 5db943d50310345d18113dbfbe2251bb2a1a63f0 | refs/heads/master | 2021-01-15T08:36:33.998695 | 2014-02-11T11:49:53 | 2014-02-13T13:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | """
NRM backends which just logs actions performed.
Author: Henrik Thostrup Jensen <htj@nordu.net>
Copyright: NORDUnet (2011)
"""
import string
import random
from twisted.python import log
from twisted.internet import defer
from opennsa.backends.common import genericbackend
def DUDNSIBackend(network_name, networ... | [
"htj@nordu.net"
] | htj@nordu.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.