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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
412e8795ac75a224f067ce73eeb0bb392bea7095 | 1f4d3a1e7a18a18f5621a0e623f814df31784a13 | /Exercise/22.return_function.py | 35996ad1bfb32813ff365804f7d23b7816612841 | [] | no_license | skylarzhs/learn-python | 9b681a22f4fe96b894ede91f2967b5b6fc8c092e | b7a243121515ff95e6ca249c296596aef294d9c8 | refs/heads/master | 2021-07-07T07:20:05.139496 | 2020-07-25T07:57:38 | 2020-07-25T07:57:38 | 155,383,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | # -*- coding:utf-8 -*-
# 可变参数求和
# def calc_sum(*args):
# ax = 0
# for i in args:
# ax = ax + i
# return ax
# def lazy_sum(*args):
# def sum():
# ax = 0
# for i in args:
# ax = ax + i
# return ax
# return sum
# print(calc_sum(1,2,3,4,5))
# f = lazy_sum... | [
"157519788@qq.com"
] | 157519788@qq.com |
eecf1d418155f7ae27b4dce7f4c4aa384bb413b4 | 808e7d23eb345724d9bc06804f352a7ec40fcf3b | /testDjango/views.py | e15286f548f80dd7333e50fab0e1e1c27c4199aa | [] | no_license | fxma/testDjango | 3718c184d62698e7c8b7e61f75d7c5a4d294fce4 | da2bb8e647d5987e3a7ca3fd58f904e88d2bcf11 | refs/heads/master | 2020-04-11T18:42:05.876201 | 2018-12-16T14:39:23 | 2018-12-16T14:39:23 | 162,008,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from django.http import HttpResponse,Http404
import time
import datetime
from django.shortcuts import render
from django.shortcuts import render_to_response
import MySQLdb
# def hello(request):
# return HttpResponse("hello world!")
def hello(request):
context = dict()
context['hello'] = 'Hello World!'
... | [
"ma_fengxin@163.com"
] | ma_fengxin@163.com |
13d1d80e09ac2d722d4552d168bf1f004a37ebcc | 9f527d2c7378758ee1d1d3d99257f05c55272447 | /web/models.py | 207b02b1d20031e74ef9c43c6eec7be40c64e696 | [] | no_license | coolestcat/higweb | 7dd4048df252221c761520e7a54ad29bc6105343 | 70667711aca7fd28325a3143ee090c45411f3cbc | refs/heads/master | 2021-01-19T00:30:15.817902 | 2015-04-19T22:57:10 | 2015-04-19T22:57:10 | 32,948,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,217 | py | from __future__ import unicode_literals
from tastypie.utils.timezone import now
from django.db import models
class Alias(models.Model):
aliassernum = models.IntegerField(db_column='AliasSerNum', primary_key=True) # Field name made lowercase.
aliasname = models.CharField(db_column='AliasName', unique=True, m... | [
"alvinleung94@gmail.com"
] | alvinleung94@gmail.com |
1c44758ce87bbe708afbe87796414cc6e00ce10f | 6486fab69a89645a45d71c482d84d7de49dd1659 | /stringAnalyzer.py | 2a911af1d675b50769431efa47ac084db85e95a0 | [] | no_license | elmerjaen/Lexical-Parser | 1c7e625137e2d97a8bbb7e380ce1f46f9e61dbdc | a1b2c36324c6e313f4973a81216731ff468b0047 | refs/heads/main | 2023-09-04T20:13:56.696921 | 2021-11-21T16:21:18 | 2021-11-21T16:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | # Analizador Léxico by Elmer Jaén
import matplotlib.pyplot as plt
def table(list_show):
fig, ax = plt.subplots(1,1)
plt.rcParams.update({'font.size': 18}) #ch3eange font size
# row_labels is optional
row_labels=['Palabras reservadas:', 'Identificadores:', 'Operadores lógicos matemáticos:','Números pos... | [
"elmer.jaen@utp.ac.pa"
] | elmer.jaen@utp.ac.pa |
643795f151072295d587adb43db76d88e1683f49 | 1d95859dd9154fa2e7f087f111cbb1e1441fb619 | /Chapter4Lists/Proj1.py | c3b1041acd647d9d30c6072fd7842acc785e9d48 | [] | no_license | mrkruoff/Work_with_Automate_the_boring_stuff | d54906b983269e34106fed2966daf2f4f42f8af6 | 2bcd7e45830301511cf414a2d46db9927520402f | refs/heads/master | 2021-07-06T13:34:41.573065 | 2017-09-26T22:21:46 | 2017-09-27T16:56:37 | 104,943,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | def comma(inputlist):
outputstring=''
outputstring+=inputlist[0]
for i in range(1,len(inputlist)-1):
outputstring+=','+inputlist[i]
outputstring+=',and '+inputlist[len(inputlist)-1]
return outputstring
mylist=['apples','bananas', 'tofu', 'cats', 'dogs', 'mice', 'yogurt']
string=comma(mylist... | [
"ruoffm@oregonstate.edu"
] | ruoffm@oregonstate.edu |
ab64df24d2ab5994bbd12576db574fa3037e90ec | 22b555ed4a5ce9256e81e78977ae5ab50d4af80c | /apps/profile/migrations/0027_auto_20150916_1417.py | 0bd02d9c79f72dcaeb606eb99bb3ece5e03e0e10 | [] | no_license | kcole16/jobfire | 334cfe3a8a3a7028db543a794387e58414e95548 | f55b719f64312bbc3542624d45cf2fa2802779a4 | refs/heads/master | 2021-07-11T06:44:32.295415 | 2015-09-26T21:20:50 | 2015-09-26T21:20:50 | 39,473,036 | 0 | 0 | null | 2021-06-10T20:27:29 | 2015-07-21T22:30:29 | JavaScript | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('profile', '0026_auto_20150915_2314'),
]
operations = [
migrations.AlterField(
model_name='company',
... | [
"kcole16@gmail.com"
] | kcole16@gmail.com |
d6f88a51961dfbaff72ba17a232a5e048f814825 | e108a45d456b9e3a2e0f1b0ddd51f552d397f7b2 | /TocTable_algorithm.py | f61e2884603f2ed6d814000d303ddfbd990c93b1 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | agiudiceandrea/TocTable | 66efb92195350f9da97d2b19b0d86644224ed9f1 | 7f99457970ac1eef1d8343519bf9cc6511964ed2 | refs/heads/main | 2023-02-24T21:23:14.061388 | 2020-11-30T15:46:29 | 2020-11-30T15:46:29 | 334,705,074 | 0 | 0 | null | 2021-01-31T16:45:06 | 2021-01-31T16:45:05 | null | UTF-8 | Python | false | false | 11,746 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
TocTable
A QGIS plugin
TocTable
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin ... | [
"MY_NAME@example.comgifattor@libero.it"
] | MY_NAME@example.comgifattor@libero.it |
9731bfb1731f6bb96de9696493701447b90e6fd0 | b3be7c8358e07191571c009cdf2d341d7b075a48 | /media.py | 964e09100bae4d59e91c436b7fcd339bd780ea54 | [] | no_license | jassie-rangar/IPND-3rd-Project | c2112eaecf19e745cfd589408f3c38137d286479 | 74c3cb56eccf118933425003e1b7feeff1a5daf9 | refs/heads/master | 2021-01-22T05:11:01.622516 | 2017-02-11T07:29:40 | 2017-02-11T07:29:40 | 81,638,001 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import webbrowser
class Movie():
"""This class provides a way to store movie related information"""
def __init__(self,movie_title,movie_storyline,poster_image,trailer_youtube):
""" This docstring explains the constructor method, it's inputs and outputs if any """
self.title = movie_title
... | [
"jaskiratsingh035@gmail.com"
] | jaskiratsingh035@gmail.com |
50388300e027e2679a18ee7082721eaca1d73ad6 | 2fe2f5d4a7f9649f1dc01cb41dac7e13e62d6b5e | /08/demos/Assignment/cust_objects/null_cust.py | 8f5d46438a5e6e31231c4d2a48285f967bf3cade | [] | no_license | ankitagarwal/pluralsight_design_patterns | 2edc6de68484801dcf1edfa6bd81221e7545c75b | 9ded77e17898b2be0223dbc5c3736459efe6ef81 | refs/heads/main | 2023-05-01T21:46:03.407125 | 2021-05-25T15:44:44 | 2021-05-25T15:44:44 | 370,723,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from .abs_cust import AbsCust
class NullCust(AbsCust):
def __init__(self,cust_type):
self._cust_type = cust_type
@property
def name(self):
return None
@name.setter
def name(self, name):
pass
def send_invoice(self):
print('Customer type "%s" not ... | [
"ankit.agarwal@ab-inbev.com"
] | ankit.agarwal@ab-inbev.com |
2c04d227f256a556a0f089ee255feac18760ec34 | c63f226c88826675ad6a87e1acf2a7511d0ea0c3 | /apps/login/models.py | 6bf1130b58c6cbbc87f2524e83575874f57b3cc1 | [] | no_license | qwerji/login_app | 1024041395c0c73f81060178856d06d14aa94771 | 64da2f584c2339d124cfef3cb89a53d49e313c36 | refs/heads/master | 2020-01-24T20:49:20.709105 | 2016-11-17T22:59:44 | 2016-11-17T22:59:44 | 73,858,722 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | from __future__ import unicode_literals
from django.db import models
from django.core.exceptions import ObjectDoesNotExist
import bcrypt, re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def validate_reg(self, request):
errors = self.validate... | [
"bentswanson@gmail.com"
] | bentswanson@gmail.com |
41e74dfbc4c3d4cce2a45291771017f36b7c0f9f | f7c987afa021b028b8308a8fbf8fad08e6a24b21 | /app/models.py | 98323996c6f80ebf57d517a8375b3de4575f2add | [
"MIT"
] | permissive | Evance23/News-Zone | 3e3586da195e259471c192f0455216a3e1273997 | 7b4ea65f1d1a8d6eed75901e7624c405a8fc0944 | refs/heads/master | 2023-04-23T09:31:45.001078 | 2021-05-07T12:34:11 | 2021-05-07T12:34:11 | 358,629,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class News:
'''
news class to define news Objects
'''
def __init__(self, id, title, overview):
self.id = id
self.title = title
self.overview = overview
| [
"evancebarracks01@gmail.com"
] | evancebarracks01@gmail.com |
642e3e99d1201a885cf557bfd47a7c5f3c6ed08b | c2a7ba3176ef3a6d698b3390c942f219bfeda762 | /archiving_assistant/urls.py | 88d5103175ae59abfbb3389073c968c98e4fcdee | [] | no_license | SuperbWebDeveloper11/archiving-assistant-api | b64aabc20ce158a2364d0ed6c7e45004aff14815 | f9211f7749ebcc221ca6261f62c7136dd6c791bc | refs/heads/main | 2023-01-29T23:07:13.818559 | 2020-12-05T20:06:51 | 2020-12-05T20:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from django.contrib import admin
from django.urls import path, include
from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from rest_framework import permissions
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
from rest_framework.authtoken... | [
"nabiliwas360@gmail.com"
] | nabiliwas360@gmail.com |
1bcbcbfe92659458a764c39a0f71f668340971fc | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /accounts/perms.py | bd00bb6b63018efa7cc39d7709ce8ee5829b7d04 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,451 | py | # -*- coding: utf-8 -*-
from simple_perms import PermissionLogic, register
from helpers.mixins import BasicPermissionLogicMixin
class UserPermissionLogic(BasicPermissionLogicMixin, PermissionLogic):
def view(self, user, user_to_view, *args):
if user_to_view == user:
return True
if us... | [
"norman@xael.org"
] | norman@xael.org |
aacc12eabb0b4eb5e62e7da5668c3ba88bb40c61 | 2f5797309b741938dca213353f042c77825b0936 | /server_run.py | 35559759cb860a0476b02c5e749109bf2aeb1303 | [] | no_license | electramite/RPi_dashboard | 0def396c04ea99a5f8345363e37ffd421dad8067 | 02cb5a959e9ad86e15184283602b10407264cba7 | refs/heads/main | 2022-12-30T13:44:01.199658 | 2020-10-20T08:36:06 | 2020-10-20T08:36:06 | 305,641,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from flask import render_template, url_for, request
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
trig = 17
echo = 27
GPIO.setup(trig, GPIO.OUT)
GPIO.setup(echo, GPIO.IN)
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
distance = sensor_... | [
"noreply@github.com"
] | noreply@github.com |
03692f50ed9e909b7858f410645b5c90ff1c95ed | c385a69705301f50b45d46f71b808654d7450ad6 | /python_wheel/lbj_db/lbj_db/entity/ret_find.py | 23bc1de9ae084c4d4a0213afab1b5e780b3032c5 | [] | no_license | libaojie/python_package | c411c60c84be1f42221f98c5f140486dc5508b21 | 4bb0ab793c119153e9ee476274d8908c23e33a30 | refs/heads/master | 2023-05-26T12:23:07.226332 | 2023-05-22T06:19:06 | 2023-05-22T06:19:06 | 159,101,700 | 0 | 0 | null | 2023-02-16T06:52:26 | 2018-11-26T03:00:49 | Python | UTF-8 | Python | false | false | 1,609 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Comment : 查询sql列表结果
@Time : 2020/02/08 20:47
@Author : libaojie
@File : ret_find.py
@Software : PyCharm
"""
class RetFind(object):
"""
查询列表结果
"""
def __init__(self):
self._page_size = None # 当前页面
self._page_num ... | [
"libaojie@hirisun.com"
] | libaojie@hirisun.com |
9cc161c306a2b642a3822cfd73e8ce21d28327e7 | 6d26b320905ba93ee02f9ba95a76b3839ae3e2c1 | /archinstaller.py | e09ce0bff0dab7b10df5c2841484901e01a5e273 | [] | no_license | accountDBBackup/arch | 3ecfb39adce321e5874a8963e4c9c923c7d4848e | 3c6d51198746e5bbc769055223297abbeae4e334 | refs/heads/main | 2023-07-06T20:34:36.264595 | 2021-08-05T21:13:04 | 2021-08-05T21:13:04 | 388,939,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import os
import subprocess
import fileinput
import pwd
import afterchroot
def welcome():
print("Welcome to to the Arch Installer!")
system_clock_sync = "timedatectl set-ntp true"
print(f"Running `{system_clock_sync}` command to sync the system clock!")
subprocess.run(system_clock_sync, shell=True)
d... | [
"bilbat35@gmail.com"
] | bilbat35@gmail.com |
f0704c277601046e7ecff140c4ce76723f895a6f | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/test/outstanding_bugs.py | 5a947e5deea9d551dd5f2994869ab7dd70a83e94 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/test/outstanding_bugs.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
abe1990e419bae2b1a5e5c3b386ec31e385780da | 679bf42c14ef2b7ea5d682ad6f1ffc6e488028c0 | /server_tcp.py | 1b23cfc1e10d15eb48863613e93cb0d2bb774fa0 | [] | no_license | pers9727/lrs_protocol | 0b67086adbcaae271037989fd3e28667f30b72bc | 330d758fc3d7546709e15714a0a303a8320d1f8e | refs/heads/master | 2023-02-05T03:41:57.031536 | 2020-12-28T12:08:54 | 2020-12-28T12:08:54 | 324,732,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | import socket
import threading
from _thread import *
import pickle
import os
import work_with_files
module_file = '/home/roman/lrs_protocol/module_information/'
commands_file = '/home/roman/lrs_protocol/commands.txt'
ip_type_file = f'{os.getcwd()}/ip_type.txt'
print_lock = threading.Lock()
port = 65432
def threaded(... | [
"roman.1232.8896@gmail.com"
] | roman.1232.8896@gmail.com |
2d800fba44b77304483de1a550b1a877daeeda5d | fe61c7ac89c2a486066d36bdc99b70c3a7098e59 | /Message.py | 1bbc1d8e16a6b71e8ede7e0835d3272922516cdc | [] | no_license | figarodoe/MauMau | 9f149508a1b504c88847a2b5da5fa495fd01a09c | 592bb1c6339735383a639a9c4e333e491fb2f611 | refs/heads/master | 2021-01-12T02:22:04.037120 | 2017-01-10T06:46:58 | 2017-01-10T06:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | '''Markup but not'''
def Clear():
import os
from sys import platform
if platform == "win32":
os.system('cls') # For Windows
else:
os.system('clear') # For Linux/OS X
| [
"takerheil@yahoo.de"
] | takerheil@yahoo.de |
0eab4d6b9baf06f0c6515a1c93b578c02de52a07 | ce68ff8c06a47cb5a26dce7f42f5a80c35ef5409 | /06-Faces/detection.py | 70a971742b20deba4af9dda6be9a17a70b01ce43 | [] | no_license | lyukov/computer_vision_intro | 9421062c0ad77ab96b2c79e5879744b78f4c0c54 | 008ed8705bd98259691110413579a5afd87e0ab5 | refs/heads/master | 2022-03-27T05:50:18.456057 | 2019-12-17T12:02:20 | 2019-12-17T12:02:20 | 225,220,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | from skimage.io import imread, imshow
import numpy as np
import pandas as pd
import os
from skimage.transform import resize
from skimage import img_as_float
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Dense, Activation, Flatten, Dropout
from keras.models import Sequential
from keras.op... | [
"d@lyukov.com"
] | d@lyukov.com |
e79168b08e0286fa92b3cb329528a55e4ca1e1de | 94d653498dc75690b847df9f560ee75a1cb177d5 | /calculator.py | 50f1e373bc4efee1b8e9fea4a26efd6d5b10ca1b | [] | no_license | weelis/shiyanlouplus | 28bf09eb422ab1cb73b363ce6df4b36f945ed124 | 9ba7b9006221d017656670e620d12b1f4c2909fc | refs/heads/master | 2020-04-27T23:36:07.823231 | 2019-03-10T06:45:56 | 2019-03-10T06:45:56 | 174,782,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python3
import sys
try:
salary = int(sys.argv[1])
salary_tax = salary - 3500
if salary_tax <= 1500:
tax = salary_tax * 0.03
elif salary_tax > 1500 and salary_tax <= 4500:
tax = salary_tax * 0.1 - 105
elif salary_tax > 4500 and salary_tax <= 9000:
tax = salary... | [
"1159986664@qq.com"
] | 1159986664@qq.com |
a6d93d5e249b23f47e659301e4c8403aef94ee45 | 63f1c3161651ba76434ef241eed933788a0836c5 | /autorally/autorally_core/src/chronyStatus/chronyStatus.py | 0fda2de26ce3e42f0713501d7722d321a597a7cd | [] | no_license | 27Apoorva/RBE502Project | 0bd64706a5ff26cb791c11eff96d75bd41e024be | 056330cd91667a3eeceddb668672cf4e5e2bc3cd | refs/heads/master | 2021-08-30T04:30:09.326153 | 2017-12-13T04:00:38 | 2017-12-13T04:00:38 | 112,425,430 | 1 | 0 | null | 2017-12-16T01:50:43 | 2017-11-29T04:13:25 | Makefile | UTF-8 | Python | false | false | 5,012 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
# Copyright (c) 2016, Georgia Institute of Technology
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of sou... | [
"eic.apoorva@gmail.com"
] | eic.apoorva@gmail.com |
d19d3271cd6125027f3d50770dd7a814ce0ebf43 | af9d2aa777f9a311f309f1036ebc141e7f936c2f | /core/migrations/0002_auto_20200929_1344.py | fc83f09aaa626ed540f263173034c781930cf548 | [] | no_license | oopaze/testes-unitarios-django | d20c0de8f565c2f0e3f557159af8a6912d401fc9 | 1b31b9cfa3641ffa4cf5dcc1d9fb8299c9b27734 | refs/heads/master | 2022-12-24T13:32:36.460162 | 2020-10-07T04:50:37 | 2020-10-07T04:50:37 | 301,927,563 | 0 | 0 | null | 2020-10-07T04:50:38 | 2020-10-07T04:35:34 | Python | UTF-8 | Python | false | false | 353 | py | # Generated by Django 3.1.1 on 2020-09-29 13:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='sorvete',
old_name='unidade',
new_n... | [
"pedroosd28@gmail.com"
] | pedroosd28@gmail.com |
1670cf15584af1d803a46c989f7bbbd0b31521a2 | acb8eb49908d0d8417dfd08ddb5340f938d34214 | /pretrain_data/aliagn_trained_vecs.py | f066a1d3594f355d74784e4b76da16e720f71a8b | [] | no_license | zhuxiangru/multimudal-bert | 11577b783150754ff3e01bd03d915f51a7407ec2 | ef05fccb2315a6feaadab5f162a72a105f06092a | refs/heads/master | 2022-10-31T02:34:53.874507 | 2020-06-15T09:23:27 | 2020-06-15T09:23:27 | 268,139,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import sys
from urllib import parse
import os
import json
from multiprocessing import Pool
import html5lib
import time
import re
def get_entity_id_dict(infilename):
entity2id_dict = {}
index = 0
with open(infilename, "r", encoding = "utf-8") as infile:
for line in infile:
... | [
"zhuxiangru@163.com"
] | zhuxiangru@163.com |
cccb674d3a60d939b4eefbb72d10130d2db2932b | 96d14f70deb5164e294475402ef50f6e39712a1c | /ex27.py | 3483e6dea39c2be6c4ec4c23d9e6292bed2e1cf0 | [] | no_license | jagdishrenuke/Project_python | bafc1b4cf058d36a990c9b4857b0cd635492d919 | 79284d5f6f05c24aff7181c53c8d8318739f86db | refs/heads/master | 2020-04-23T12:22:55.461500 | 2015-03-16T17:25:03 | 2015-03-16T17:25:03 | 32,340,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py |
ten_things = "apple orange crows telephone light sugar"
print "wait there are not 10 things in that list."
stuff = ten_things.split(' ')
more_stuff = ["day","night","song","girl","frisbee","cool","banana","boy"]
while len(stuff) != 10:
next_one = more_stuff.pop()
print "Adding: ",next_one
stuff.append(... | [
"jagdish_renuke@yahoo.com"
] | jagdish_renuke@yahoo.com |
c5599204c2088d413cd3a990459617d0b80417da | cefa2d235896b31f84456160787eebf55f3ccc84 | /Generate_code.py | 180024b5ee42331eefcc14afe34458337c3410be | [] | no_license | Unbeaten123/Take-others-as-mine | eaebb4bd5595a81183a106a3968fc235955e8998 | 26227cd558b52259dce45fb7d586a5fe172c44aa | refs/heads/master | 2021-01-10T15:20:53.147238 | 2016-04-27T14:55:21 | 2016-04-27T14:55:21 | 53,040,946 | 0 | 0 | null | 2016-04-04T06:06:12 | 2016-03-03T10:13:29 | JavaScript | UTF-8 | Python | false | false | 720 | py | from elaphe import barcode
def get_code39(info):
bc = barcode('code39', info, options=dict(includetext=True), scale=3, margin=10)
bc.save('code39.png', quality=95)
def get_QRcode(info):
bc = barcode('QRcode', info, options=dict(version=9, eclevel='M'), margin=10, scale=5)
bc.save('QRcode.png', quality=9... | [
"yuzhizhou123@gmail.com"
] | yuzhizhou123@gmail.com |
b3fb5072be2c9803b039ffc66f3bf3a06a4247b1 | 4755dabdcff6a45b9c15bf9ea814c6b8037874bd | /devel/lib/python2.7/dist-packages/snakebot_position_control/msg/__init__.py | 7e50b3d802aa4cf5d4063bde91254d3fba75ff3c | [] | no_license | Rallstad/RobotSnake | 676a97bdfde0699736d613e73d539929a0c2b492 | 37ee6d5af0458b855acf7c2b83e0ee17833dbfd1 | refs/heads/master | 2023-01-03T05:46:46.268422 | 2018-05-27T16:01:47 | 2018-05-27T16:01:47 | 308,665,980 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from ._PositionControlEffort import *
| [
"vetle.fredriksen@gmail.com"
] | vetle.fredriksen@gmail.com |
976cddf10f6864ba5c9a7a761545d47337c3af20 | 4789ee577801e55bb6209345df6ddd1adff58aa9 | /skyline/boundary/boundary_alerters.py | 0f63c5c74e6d30f89ea03ffca79842f2fafdab45 | [
"MIT"
] | permissive | bastienboutonnet/skyline | 76767fdad5eb9b9ee9bb65bfcee05e2551061fbe | 7f19fcc7ac1177b4a0a4663d6e645be63ceea452 | refs/heads/master | 2023-04-25T01:57:17.955874 | 2021-04-11T09:20:30 | 2021-04-11T09:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,389 | py | from __future__ import division
import logging
import traceback
# @modified 20201207 - Task #3878: Add metric_trigger and alert_threshold to Boundary alerts
# hashlib not used
# import hashlib
from smtplib import SMTP
# @added 20200122: Feature #3396: http_alerter
from ast import literal_eval
import requests
import b... | [
"gary.wilson@of-networks.co.uk"
] | gary.wilson@of-networks.co.uk |
fc0054ef638181b7cdaa31bdd9b2c7d6c701b84a | 8bbe2351bbd157a46ccf8530cde4e4cc7b0bd3b7 | /main.py | 94f313395298785422b7caeae12f2b205f2ce590 | [] | no_license | airuibel/py_code | 8dc98d71e79a4c0f785ad5cf81b2ca2073061ebf | 1da9a9dcd37475dd14bab6ae58bca1e2dff4c251 | refs/heads/master | 2020-06-18T03:47:43.754204 | 2018-03-20T09:31:00 | 2018-03-20T09:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,021 | py | # import package
import numpy as np
from pandas import DataFrame
import pandas as pd
import re
from dateutil import relativedelta
import datetime as dt
# 1.1
def df_groupby(df, groupkey, col, func, res_col_name, asint=False, dup=False):
"""
:param df: 一个df 征对 1+ 用户
:param groupkey: df中聚合分类的变量名
:par... | [
"l"
] | l |
828540d2bb15e92786f7d4e9d29d60f51087bb38 | 908cf8e6ef52033bbf3d5afbb29637a25f5d66f8 | /test/test_codat_data_contracts_datasets_journal_entry_paged_response_model.py | 2fed4e4b1c7bd6ead4aef71f66240ef4f130e40b | [] | no_license | procurify/codat-python-sdk | 074769a2d9e72640741689b6f51e880d35b88095 | 3c8f664998427bda32bad8062c3bf324f39506da | refs/heads/master | 2023-08-25T03:55:19.817085 | 2021-10-22T22:14:34 | 2021-10-22T22:14:34 | 395,381,471 | 1 | 0 | null | 2021-10-20T21:10:31 | 2021-08-12T16:31:03 | Python | UTF-8 | Python | false | false | 1,570 | py | """
Codat API
[What's changed in our Swagger](https://docs.codat.io/docs/new-swagger-ui) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import codat_python_sdk
from codat_python_sdk.model.codat_data_contracts_dataset... | [
"contact@alexchalk.net"
] | contact@alexchalk.net |
cc9c3f6f2afd9774fe87a3ed7411d529af8e5707 | 5bb5e25009a10de97d400fdd124754cb0d6509bd | /clips/rigol-fix-png.py | d6c7b9bce5c52ae7e4afdbdbb54e472edbec3cae | [] | no_license | NovaCentrix/chris-resistance-tester | 938890d4811c1a0b0d8a764b604dc5395b405962 | c90e053f8ee465889b89100c10833ecbce064549 | refs/heads/master | 2023-07-11T03:33:11.764303 | 2021-08-15T21:37:31 | 2021-08-15T21:37:31 | 399,392,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | #!/usr/bin/env python3
# The MAIN code takes a bunch of images
# (typically oscope screen-shots, for example)
# and adds some text to the screen and
# saves it in an output file with a new name.
# The FIX_ONLY code solves some quirk with
# the Rigol PNG format which causes imagemagick
# to hiccup. Simply reading it a... | [
"rclott@hiwaay.net"
] | rclott@hiwaay.net |
32bfab98c76b271ada678fab1707be3299455126 | 624a13c06fec22ae36a3a96a9d5eefd9faddc424 | /class/cp05_class_01.py | 7a25c33a0ef2a66a758f65ed08a22625125c8eb6 | [] | no_license | ederortega/python_t01 | 747ea8966cbcc075c9bc6d9c1dd0d756731dabe0 | e8ecc8a71fc56b94ee56ac5c6f70882ec284eded | refs/heads/main | 2023-01-12T23:54:39.623150 | 2020-11-19T03:44:46 | 2020-11-19T03:44:46 | 314,127,847 | 0 | 0 | null | 2020-11-19T03:44:47 | 2020-11-19T03:39:12 | null | UTF-8 | Python | false | false | 59 | py | class ASimpleClass:
pass
# constructor
# print type
| [
"eortega@lsv-tech.com"
] | eortega@lsv-tech.com |
ea7af78e34c8acc6637fb1902a7c88c16081361f | 0daa78054f5d5b505047aaa28ecbbea1662f9c53 | /loop.py | 047a171e01830a7b9011b773017a51188177d3eb | [] | no_license | WindWalker19/Python_for_everybody | 22d8e616ce19a0259a56f4a30048700c142cbc63 | a2302f2ed4fcc334a096dda22b4ff6e7603c7c22 | refs/heads/master | 2022-07-11T16:39:38.038333 | 2020-05-13T21:17:40 | 2020-05-13T21:17:40 | 263,165,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #A while loop with break.
while True:
line = input("> ")
if line == "done":
print(line)
break
print("Blastoff")
while True:
line = input("> ")
if line[0] == "#":
continue # The continue would ask to go to the top of the loop without executing the code after it.
print("hello")
if line == "done":
break
p... | [
"noreply@github.com"
] | noreply@github.com |
afef1d3a45280972b38bb94aebbe092d929eea1a | 193d84db39e014990c171b09a592b944e91cb524 | /sendmail.py | 981308e8c194eb9ddcb8a095182054098b8297db | [] | no_license | trungdungit45/idsoftware | 66543e1d0731b08e260ba586c6ec3964b53ddc61 | 59acddea1a3dedfe0835faea46334db2c58bac5e | refs/heads/master | 2020-03-21T12:00:38.184951 | 2018-07-14T02:56:57 | 2018-07-14T02:56:57 | 138,532,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | from Alert.sendmail import send_message
from Detection.comparetime import compareTime
import datetime
def readIP():
f = open("Log/snifflog.log","r")
list = []
f1 = f.readlines()
for x in f1:
list.append(x)
f.close()
return list
def checkLog(_listAlert, _listAl... | [
"trungdungit45@gmail.com"
] | trungdungit45@gmail.com |
6fae90865636fc55b71131aa16bf7e887bde5e2e | f888c61c80af47a2ae8d374ce7a9282d134e5987 | /pyautest/golden_file_test.py | 08158c10facc645d04e4d43d7e1f262a4834b955 | [
"MIT"
] | permissive | higumachan/pyautest | 1de272832f93aa7ca629b3ee8b8588b8186bb1a0 | 3f7fb55570397349e6dce77d49cff8ac1b965bf4 | refs/heads/master | 2020-04-22T09:53:46.973050 | 2019-03-06T13:49:56 | 2019-03-06T13:49:56 | 170,286,860 | 0 | 1 | MIT | 2019-04-03T15:35:17 | 2019-02-12T09:09:38 | Python | UTF-8 | Python | false | false | 1,738 | py | import inspect
from pathlib import Path
from typing import List, Any
from pyautest.adapter import basic_adapters
from pyautest.adapter.base_adapter import BaseAdapter
class GoldenFileTest:
def __init__(self, file_directory: Path, adapters: List[BaseAdapter]):
self.file_directory = file_directory
... | [
"harekumo792154@gmail.com"
] | harekumo792154@gmail.com |
b5abfe01419986db825a86397318c45516c2d8f0 | 814df4c836843382dc9aecc907da7e2d8e824b53 | /Decryption_Server.py | 96d28a363a72f441e1d8b007236ed04a4704894e | [] | no_license | Aditya-Ramachandran/RSA_Cryptography | ed6909dc359a6f949f0a91d24ed047354918df63 | 18f6b1a30250573286488244cc832d0883ebba10 | refs/heads/master | 2022-12-09T21:31:37.320591 | 2020-09-08T16:23:11 | 2020-09-08T16:23:11 | 289,639,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | from __future__ import unicode_literals
import socket
from math import sqrt
import random
from random import randint as rand
import pickle
host = socket.gethostname()
port = 5000
s = socket.socket()
s.bind((host, port))
s.listen(2)
def gcd(a, b):
if b == 0:
return a
else:
... | [
"noreply@github.com"
] | noreply@github.com |
9d8e6c4e68e730a0a0efe827ef579808eb65591a | d9a84de5d6abc39a6a0352695e1495108f9a677e | /hab/cutdown/nichromeCutdownController.py | 2452cb4839d832112fd60d9081bf145860a4abab | [] | no_license | wmsi/hab-scripts | 9f60169881937ad1efb399902a70c6c08171a188 | 1d2e6756ab3a18e79d55ba09e6be9352d4cf71b8 | refs/heads/master | 2021-01-01T19:41:14.389885 | 2018-03-02T13:53:24 | 2018-03-02T13:53:24 | 98,650,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,515 | py | #!/usr/bin/env python
"""
################################################################################
Written by Nicholas Sullo while working at WMSI 8/17/2015
Modified heavily by Mckenna Cisler (mckennacisler@gmail.com)
while working at WMSI 7/31/2017, to use the nichrome cutdown method
Refer to http://abyz.co.u... | [
"asher.s.merrill@gmail.com"
] | asher.s.merrill@gmail.com |
7d7718ce352aa1898575a3f0c040ed0540bbe9b3 | ea759ab6c37c83c06c0af127fa3169e912ef25d2 | /cnn_cascade_lasagne.py | be272bde0110dcc0da710b2caddd7d8bf9a23e2f | [] | no_license | Soledad89/Cascade-CNN-Face-Detection | 74d1178fc042b91a46ddc5affe9e1d190d813e70 | a75bcb74f763bdba851398c6096dbc058f5c2021 | refs/heads/master | 2021-01-12T06:51:29.560884 | 2016-10-10T21:05:58 | 2016-10-10T21:05:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,677 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 31 20:20:22 2016
@author: Kostya
"""
from lasagne.nonlinearities import softmax, rectify as relu
from lasagne import layers
from lasagne import updates
from lasagne import regularization
from lasagne import objectives
from time import time
from six.moves import cPickle a... | [
"gogolgrind@gmail.com"
] | gogolgrind@gmail.com |
7ea5150e0d97ba74d7b4cc0f9c625fa76e762586 | 25bb769e523c104acfde204e1e86a6bd6ba1edd3 | /sdk/message.py | 46b5f5edf983bd42b142c7664607811c252816bc | [
"MIT"
] | permissive | shekhirin/HarryBotter | 14e45b43ac2091e77c7c9fdb5fe796531c79e6b8 | e1977dbade44840288145f08aef60746ac66982b | refs/heads/master | 2021-05-31T23:03:21.666081 | 2016-07-01T08:57:00 | 2016-07-01T08:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from sdk import Attachment
class Message:
def __init__(self, recipient, message, notification_type=None):
if type(message) is str:
message = {'text': message}
elif type(message) is Attachment:
message = {'attachment': message.json}
self.json = {k: (v) for k, v in lo... | [
"elishanto@gmail.com"
] | elishanto@gmail.com |
5573f5982530159c643ba9fdd383fc08c091845e | 7a368de76d45b2253c7b498a97ea68e298446d65 | /crowdgezwitscher/blog/views_api.py | b9aafd1b282b3960ddbfc2970331cd970ef36b02 | [
"MIT"
] | permissive | Strassengezwitscher/Strassengezwitscher | 2c902cb24e70a70b95bfa252ffd7c12a49722bae | afdd433acb35c1a554ba79464b744975de065151 | refs/heads/develop | 2022-12-19T01:44:24.243092 | 2020-02-12T10:35:18 | 2020-02-12T10:35:18 | 56,970,152 | 4 | 1 | MIT | 2022-12-10T17:55:44 | 2016-04-24T12:25:12 | Python | UTF-8 | Python | false | false | 419 | py | from rest_framework import generics
from blog.models import BlogEntry
from blog.serializers import BlogSerializer
class BlogAPIList(generics.ListAPIView):
queryset = BlogEntry.objects.filter(status=BlogEntry.PUBLISHED)
serializer_class = BlogSerializer
class BlogAPIDetail(generics.RetrieveAPIView):
que... | [
"piepmatz@users.noreply.github.com"
] | piepmatz@users.noreply.github.com |
bb2ccf947d3c1273b14ce5a92873ebe6d910636b | c9e6e551067f0bb8f59ebd4b3d8594297374125c | /region/migrations/0001_initial.py | 2b218811cfc169b4e06f052b7cf1c1485abdeceb | [] | no_license | andyxmai/bondreach-backend-django | 9565a1b6d8cd8650185221589853efcc2bd18807 | 8db8fc6c8b4cbb2d1f49e469ede1b3de4d04c0b4 | refs/heads/master | 2021-03-24T13:11:36.581046 | 2017-04-12T22:09:12 | 2017-04-12T22:09:12 | 84,764,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-12 23:45
from __future__ import unicode_literals
from django.db import migrations, models
import utils.dates
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"andrew.x.mai@gmail.com"
] | andrew.x.mai@gmail.com |
82580bba4d72b48263cdfe60efcac80622837b76 | 4a132226a1039aca3bb96b6d482806f61210562c | /cars/urls.py | ce1630b34d6e7d18b3f93a667315a9da33f692ed | [] | no_license | PietrzakJustyna/cars_api | e6bc373d676e06088b72625391b3a05be0f65abe | 7c1be387364ae3ab001e2a62384195cd1898e83b | refs/heads/master | 2022-12-03T16:43:47.496027 | 2020-08-20T12:55:54 | 2020-08-20T12:55:54 | 288,796,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | """cars URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"tynk713@gmail.com"
] | tynk713@gmail.com |
18c99b97419a151d0e42d5246e38ea853e23bb2e | d6fc3f78bdb938b9eb02ad473b914829bff2fc9b | /Drawing/bar_plot.py | 7bf9e9117af5dddf141ae967f1779a6d64b4545f | [] | no_license | Doctor-Feng/Machine_Learning | ec0e796325dfd4ee4864669b499c0b3f5a12008e | ff8a12d7e270bddbe3d5d362c3b63b25802516db | refs/heads/master | 2020-06-22T16:57:08.260868 | 2019-07-19T10:07:23 | 2019-07-19T10:07:23 | 101,947,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import numpy as np
import matplotlib.pyplot as plt
plt.figure (1)
index = [0.3,0.8]
plt.bar(index,[0.212,0.002],0.25,alpha = 0.8,color = 'b')
plt.ylabel('time(ms)')
plt.title('')
plt.xticks( np.add(index,0.5 * 0.25),('train','test'))
plt.legend()
#plt.savefig('wind_Power_Usage_Diagram.png',dpi = 600)
plt.show()
| [
"fengdh@daheng-image.com"
] | fengdh@daheng-image.com |
c48387129d1b598576966c6cc19fb3e7bd4127ea | 4aee1b5faac38af7429d5a4e518f971b5e966cf6 | /MaximizationBias_Example6.7/MaximizationBias_QLearning_Example6.7.py | dd0b4ca11110dc48c9cac60cc593679f86fc8fd1 | [] | no_license | themagicsketchbook/RL_Sutton-Barto_Solutions | 5d35ea4524f06e7fc0002f9be861651fbb3acf04 | 9e0cc8696357c6f3cdbc4a662e5c6a062a5857ff | refs/heads/master | 2022-01-12T04:13:19.583974 | 2019-07-16T13:18:51 | 2019-07-16T13:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | import numpy as np
import matplotlib.pyplot as plt
class simulation:
def __init__(self,action_num,method):
self.action_num = action_num
self._method = method
self.ACTIONS = [[0,1],[i for i in range(action_num)]]
if self._method == 'Q':
self.Q_values = [[0.0, 0.0... | [
"noreply@github.com"
] | noreply@github.com |
d89c1bbae2ca69a1855e7e0c6509bfeadfa76bc7 | d5dd127b213c9a4b47cf57f8a9b7b9528856842b | /killerbee/killerbee/build/scripts-2.7/zbdump | 4f081e72b003b73ab9113fc227af8a66e557e0bb | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nofarmazor/Soteria | 9f4a770c6f6d894111e58cbb3aaa41a675d4982f | ef9295cb69c37980a841a83ba07f5769bcc64e9f | refs/heads/master | 2016-09-06T14:44:00.758903 | 2015-04-22T11:47:34 | 2015-04-22T11:47:34 | 31,611,446 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | #!/sw/bin/python2.7
'''
zbdump - a tcpdump-like tool for ZigBee/IEEE 802.15.4 networks
Compatible with Wireshark 1.1.2 and later (jwright@willhackforsushi.com)
The -p flag adds CACE PPI headers to the PCAP (ryan@rmspeers.com)
'''
import sys
import signal
import argparse
from killerbee import *
def interrupt(signum... | [
"omertu@gmail.com"
] | omertu@gmail.com | |
a65604c0deab61126203e90bd4b92e397c7b27c7 | 73c9537b3e2dd9c57e581d474b9e2daf7a8fb02a | /petccenv/lib/python3.4/site-packages/django_summernote/__init__.py | c63655d2b511e883b3efacf6fa71393ea01972ab | [] | no_license | pviniciusm/petcc | 8f6ec2966729051f11b482c4c7ed522df3f920ba | 30ccddce6d0e39ccea492ac73b2ddca855c63cee | refs/heads/master | 2021-01-21T13:29:52.835434 | 2016-04-23T18:06:07 | 2016-04-23T18:06:07 | 54,607,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | version_info = (0, 8, 2)
__version__ = version = '.'.join(map(str, version_info))
__project__ = PROJECT = 'django-summernote'
__author__ = AUTHOR = "Park Hyunwoo <ez.amiryo@gmail.com>"
default_app_config = 'django_summernote.apps.DjangoSummernoteConfig'
| [
"pvinics@gmail.com"
] | pvinics@gmail.com |
12eb00ffdab31b071abf94283d7fc51c9a985f4b | b0a21635d93a2bb7cdaf7083b0081147aa0bfec2 | /binary_search.py | 644c531840ffb6492f5c59c49a61c7328aa5b5c0 | [] | no_license | iyuroch/algo_labs | 990637748c2d79233cad2302a932c96589d29d10 | 2fb19487ee7a39413b2f3d12bb393ef30897294c | refs/heads/master | 2020-04-09T02:36:00.833364 | 2018-12-19T13:25:41 | 2018-12-19T13:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py |
def search_el(arr, left_idx, right_idx, el):
middle_idx = (left_idx + right_idx) / 2
if arr[middle_idx] == el:
return middle_idx
if left_idx == right_idx:
return False
elif arr[middle_idx] < el:
return search_el(arr, middle_idx + 1, right_idx, el)
elif arr[middle_idx] > el:
... | [
"iyuroch@gmail.com"
] | iyuroch@gmail.com |
4113853c20a7674a37b502b73ee6d10f9288b8e6 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/eventgrid/v20200101preview/get_event_subscription.py | 80b0097a55e3921372b7d0b2fecda5f6ee7bbc0b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 8,537 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
e9936e19970a668d639cc6a18072df2cadc2ce7a | e6f5325ab05070f5648c531660fd9a51739c1765 | /app/contribution/views.py | 0ed7f429962cdecaedd63196af66b6760b7da071 | [
"MIT"
] | permissive | vitsyrovat/conference | 4799237db37e802c6c95ef12c6cb11e1c64c648b | 47315f79ab2117fcd259662c31a47c99c1421051 | refs/heads/master | 2022-07-22T00:51:41.819231 | 2020-05-11T18:20:20 | 2020-05-11T18:20:20 | 257,536,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | from rest_framework.viewsets import ModelViewSet
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
# Create your views here.
from contribution import serializers
from core.models import Contribution
class ContributionViewSet(ModelViewSet):
"""Man... | [
"vitsyrovat@gmail.com"
] | vitsyrovat@gmail.com |
b539a324c93a3ce5b5b5feedc5d1287601d63ffd | 0b4957de738dd05f964ea838016b4b811feca970 | /tests/utils/test_utils_shell.py | fdae13b81ae7f8e06716a3e3f09b9ce5f7a76e6a | [
"MIT",
"Apache-2.0"
] | permissive | bossjones/ultron8 | bdb5db72ba58b80645ae417cdf97287cfadd325d | 09d69c788110becadb9bfaa7b3d2a2046f6b5a1c | refs/heads/master | 2023-01-13T06:52:45.679582 | 2023-01-03T22:25:54 | 2023-01-03T22:25:54 | 187,934,920 | 0 | 0 | Apache-2.0 | 2023-01-03T22:25:56 | 2019-05-22T00:44:03 | Python | UTF-8 | Python | false | false | 1,008 | py | """Test shell utils"""
# pylint: disable=protected-access
import logging
import pytest
from six.moves import zip
from ultron8.utils.shell import quote_unix
logger = logging.getLogger(__name__)
@pytest.mark.utilsonly
@pytest.mark.unittest
class TestShellUtilsTestCase:
def test_quote_unix(self):
argument... | [
"noreply@github.com"
] | noreply@github.com |
2c06844c17a93585bc26348c15831ffd9eb9962a | 5788e3f1c0216a2b5126fa8d17f9a808f7bef457 | /test_community/test_community/urls.py | 8b6b9c7b7b43a340174e2216c69f1a154008d3af | [] | no_license | ChoiJunhee/2020-2_Django | 85074efc1cd8fb5739bcf03e71ad993da45a134e | 11c941ca993162d831c37c96dd6ba9e0e12b3dee | refs/heads/master | 2023-01-10T20:05:55.739760 | 2020-11-07T09:37:41 | 2020-11-07T09:37:41 | 297,317,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """test_community URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"python@hanyang.ac.kr"
] | python@hanyang.ac.kr |
c5a234c511cc301fc2e43c3d0beaec4deaf478e7 | 9bbaf9115d404cd4afe428858310c8fab1155711 | /Main.py | e9bd19b68191f97ea0f694c3290d1912a90fa137 | [
"MIT"
] | permissive | iamjb17/DSaA2 | d752dadfe6d716a9491351490076dbdbc126fea7 | c3e97ca0746341beaf0f8c5e27c6c82fca0cf173 | refs/heads/master | 2023-02-14T01:48:53.285454 | 2021-01-14T23:14:03 | 2021-01-14T23:14:03 | 324,405,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Authored By: Jessie Burton #001356971
import RunRoute
import UI
# Created using PyCharm Community Edition 2020.1.3 x64 on a Lenovo Laptop Running Windows 10 on AMD hardware
# only run this code if I am running as the main entry point of the application
if __name__ == '__main__':
# * Driver Main Class-- The domi... | [
"iamjb05@gmail.com"
] | iamjb05@gmail.com |
dcbdf42869d55f83f734a2914900efafc4a859d0 | 39e66a296f1d83472d02c15c9b8975dcc137c57a | /crawling_indeed.py | de79e280a5aeae28dbd22b063d8e540e996932ee | [] | no_license | nvquang/goodwin | fe538d620e237d4c1ff642bb728b7f61dbab310c | d050ec537d1100ee1670143fc2d8b5c281671e56 | refs/heads/master | 2020-12-30T12:23:41.427173 | 2017-05-21T14:37:35 | 2017-05-21T14:37:35 | 91,432,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | import urllib.request
import urllib
from urllib.request import urlopen
from bs4 import BeautifulSoup
import pandas as pd
def get_text(tag):
if tag:
return tag.text
return None
def crawling_indeed():
links_df = pd.read_csv("indeed_links.csv")
hdr = {'User-Agent': 'Mozilla/5.0'}
columns = ... | [
"quang.nguyen2016@ict.jvn.edu.vn"
] | quang.nguyen2016@ict.jvn.edu.vn |
7f9fb102af433872f71ba987ff70a370de785e99 | 5e79820bf510e4bd5a5be1de22246cf9e54ecf30 | /logestic_regression/norm.py | cdc913cfa8eb98770b039869b9d5b1e49abd9d34 | [] | no_license | bojunf/machine-learning-project | 08258bb7675a3896e8df32d8ea1099baae2995d4 | f4b12ce76f26408b1707ca2b8116b58042780a8a | refs/heads/master | 2021-08-14T12:28:06.153629 | 2017-11-15T17:54:31 | 2017-11-15T17:54:31 | 110,864,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import sys
import numpy as np
ftrain = str(sys.argv[1])
ftest = str(sys.argv[2])
fval = str(sys.argv[3]) # input file names
traindata = []
with open('{0}'.format(ftrain), 'r') as f: # read training data
nline = 0
for line in f.readlines():
nline = nline + 1
arr = line.replace('\n', '').split(',')
traindata.... | [
"noreply@github.com"
] | noreply@github.com |
f179eade30c3bd9c2fd92c1dcafbdf2683622c47 | 635cb7fb75048f9de7b95b48d1f59de68f9b3368 | /R01/sortowanie_obiektów_bez_wbudowanej_obsługi_porównań/example.py | 7641bed7b8787e11f23a4ef78d74ba00e90b1ae8 | [] | no_license | anpadoma/python_receptury3 | 9e889ac503e48eb62160050eecfdc4a64072c184 | c761f2c36707785a8a70bdaccebd7533c76dee21 | refs/heads/master | 2021-01-22T14:38:34.718999 | 2014-01-31T22:09:44 | 2014-01-31T22:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from operator import attrgetter
class User:
def __init__(self, user_id):
self.user_id = user_id
def __repr__(self):
return 'User({})'.format(self.user_id)
# Przykład
users = [User(23), User(3), User(99)]
print(users)
# Sortowanie według pola user-id
print(sorted(users, key=attrgetter('user_id... | [
"mtar@data.pl"
] | mtar@data.pl |
36368975cba55c5f7af99945aefefc4387fc4ba2 | 36166fb6929110b695523e1e569836412b557b22 | /dynamic/dispatch.py | a550cab81ae52aae1bc200e4fbedc6a1f99fce0d | [] | no_license | Valt25/vanillaPythonWebApp | e33536454eb9353050e4008b26cb89772178193d | 558a9dbe34a730403304bf1b8ce186553878454e | refs/heads/master | 2020-06-15T08:13:27.598747 | 2019-07-04T13:22:18 | 2019-07-04T13:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from dynamic.urls import urls
from dynamic.utils import Response
from utils import url_not_found
def get_view_func_from_urls(environ, urls):
for url in urls:
if environ['PATH_INFO'].split('?')[0].strip('/') == url[0] and environ['REQUEST_METHOD'] == url[1]:
return url[2]
def generate_wsgi_re... | [
"v.gerasimov@innopolis.ru"
] | v.gerasimov@innopolis.ru |
2df3e4723de73e9f011ea8c4dbbaf3d9347995df | b83b0cd0ceeaed79afbc8203dfc38336553b324f | /Python/loops/starpattern.py | 82a8545dbc27eb7076f3703cfb3c384bd50f5b43 | [] | no_license | SBartonJr3/ClassBarton | 2576bd3423676698a61185a25835c1ed2fdeb9c6 | 514093ec6e5d8990ba3452b2ff8e2b0c76259ee6 | refs/heads/master | 2020-04-27T18:24:39.005771 | 2019-06-10T17:21:29 | 2019-06-10T17:21:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #Stephen Barton Jr
#Python Programming, star pattern
#22 APR 2019
def main():
for i in range(1,6):
for j in range(1,i+1):
print("*", end = " ")
print()
main()
| [
"noreply@github.com"
] | noreply@github.com |
8f98de03e4669f0cea77fa4b917683db4d9be640 | 1f256bf20e68770c1a74f7e41ef6730623db0c74 | /location_management/migrations/0001_initial.py | 4015d233eb0c002e111dfd9acab22eacef6e3268 | [
"MIT"
] | permissive | davtoh/enterprise-website | 380ea32b730f16b7157e59ca0dc1e86d1f10e4a8 | 00b6c42cd6cb01517c152b9ffce9cfb56744703d | refs/heads/master | 2021-06-05T09:20:27.721789 | 2021-05-05T04:58:04 | 2021-05-05T05:14:05 | 141,315,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | # Generated by Django 2.0.6 on 2018-07-05 23:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cities',
fields=[
... | [
"davsamirtor@gmail.com"
] | davsamirtor@gmail.com |
3f7a3592ecb43458823f4a89ef52c6dcfbfef71c | 70d4ef0863906b3ca64f986075cd35b8412b871e | /blueapps/account/sites/default.py | e996ac9936aeb25beb19699d619290f60b693d5c | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | selinagyan/bk-sops | 72db0ac33d9c307f51769e4baa181ceb8e1b279e | 39e63e66416f688e6a3641ea8e975d414ece6b04 | refs/heads/master | 2020-05-07T16:44:33.312442 | 2019-04-11T02:09:25 | 2019-04-11T02:09:25 | 180,696,241 | 0 | 0 | null | 2019-04-11T02:07:11 | 2019-04-11T02:07:10 | null | UTF-8 | Python | false | false | 2,955 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"pagezhou@tencent.com"
] | pagezhou@tencent.com |
1f1e8010afc725d867016c4c3a0daab4b420b78b | 29801a4a09e6c97061e67e21fd7600317d86bd29 | /TIY2_4.py | 22ce625692bbaadfa8eded661600954ebfdcf6d6 | [] | no_license | EthanPassinoFWCS/Chapter2Anthis | 3fe1f0b501a67202686879e7b2ffdad196e02a44 | 1f21cee7b09979d47878dc76c891ca7a667fbedf | refs/heads/main | 2023-01-04T11:21:28.922019 | 2020-11-02T20:12:26 | 2020-11-02T20:12:26 | 309,483,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | name = "John Smith"
print(name.lower())
print(name.upper())
print(name.title()) | [
"noreply@github.com"
] | noreply@github.com |
a811597869c088ec4c17da0719f6b9a3e9e8a9b8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_46/83.py | 728c1c577aee018ba646a8511a4f62a6e9af6751 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | import psyco
psyco.full()
class memoize:
def __init__(self, function):
self.function = function
self.memoized = {}
def __call__(self, *args):
if args not in self.memoized:
self.memoized[args] = self.function(*args)
return self.memoized[args]
def clear(self):
self.memoized = {}... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
588745154691fddda9c9d4900f105db06f013696 | 2060b4819d71871980f8bcf02129d5b6af0a80fb | /fixture/application.py | 159ed380790f067786d5a98bdc54d6fac6d980b3 | [
"Apache-2.0"
] | permissive | Algirwitch/python_training | dba44d1722b2fb3e3e2e160891642b5892d5f791 | 65a316a366b89ecf83bed58c706b7052790cf686 | refs/heads/master | 2021-08-23T03:04:56.655254 | 2017-12-02T20:14:03 | 2017-12-02T20:14:03 | 110,426,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from selenium.webdriver.firefox.webdriver import WebDriver
from fixture.session import SessionHelper
from fixture.group import GroupHelper
from fixture.new_cont import NContHelper
class Application:
def __init__(self):
self.wd = WebDriver(capabilities={"marionette": False})
self.session = Session... | [
"olia93@mail.ru"
] | olia93@mail.ru |
fd21e05126b71464ee4fba8bc4e7adcee0ea0ad0 | 42a2439b783b74da9b31f0ff64c8c32fb7a626ba | /qutebrowser/.qutebrowser/config.py | d20ae20167fd2c4cf228a7b284fd749a3e097c53 | [] | no_license | zweifisch/dotfiles | 7a8401faf9adda58eaad59aa396ca36ee8167fbc | 0760f07d7651707d5348580cfc599c3a2d12a934 | refs/heads/master | 2023-06-21T04:30:28.458086 | 2023-06-11T05:34:12 | 2023-06-11T05:36:15 | 7,055,187 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py |
config.bind('t', 'set-cmd-text -s :open -t')
config.bind('O', 'set-cmd-text :open {url:pretty}')
config.bind('h', 'tab-prev')
config.bind('gT', 'tab-prev')
config.bind('l', 'tab-next')
config.bind('gt', 'tab-next')
config.bind('b', 'set-cmd-text -s :tab-select')
config.bind('gi', 'hint inputs')
config.bind('<Ctrl... | [
"zf.pascal@gmail.com"
] | zf.pascal@gmail.com |
1bae4554cc3411d5a5d0020cd8da45c46a8036f4 | 27b42507a4a6f122e545db06c9629c7693e5768d | /list even num.py | 0e22377fee378316ddaa2ff7a91b3cc1bfbb1d80 | [] | no_license | pooja89299/list | e4651a24f5ff78c37d2c8f93af35e1fd85be0031 | 99244365f920145ff638392d3183e97ae4ccdd2d | refs/heads/main | 2023-05-07T10:08:21.241095 | 2021-05-20T13:03:46 | 2021-05-20T13:03:46 | 369,207,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # a=[1,2,13,15,78,9,10,19,61,51,41,4]
# b=[]
# i=0
# sum=0
# while i<len(a):
# k=a[i]
# if k%2==0:
# b.append(k)
# sum=sum+1
# i=i+1
# print(b)
# print(sum) | [
"noreply@github.com"
] | noreply@github.com |
0bac786f12b06979a3196f901657b5cb7ec66d0d | e99439a5ce60a1c25e9c00d3f646fe53663a9e2e | /reinforce/train.py | 34a5b091946dc09f7bd0268833db242e65cb3531 | [] | no_license | aarunsrinivas/reinforcement-learning | 15e4bc553db7690509f361d0283c7209ae9ee6c3 | bb4fc3aa04969169ce21a75ae6a887d0afb6e947 | refs/heads/main | 2023-07-14T15:33:50.146129 | 2021-08-23T04:02:33 | 2021-08-23T04:02:33 | 398,105,211 | 0 | 0 | null | 2021-08-23T04:02:34 | 2021-08-20T00:05:03 | null | UTF-8 | Python | false | false | 606 | py | import gym
import numpy as np
from agent import REINFORCEAgent
scores = []
EPISODES = 1000
env = gym.make('CartPole-v0')
agent = REINFORCEAgent(0.95, [4], 16, 16, 2, lr=1e-3)
for episode in range(EPISODES):
score = 0
done = False
state = env.reset()
while not done:
action = agent.choose_action(state)
next_sta... | [
"aarunsrinivas@gmail.com"
] | aarunsrinivas@gmail.com |
1a442845be688845257b798f6b9a0bb3d80717e6 | 8c7efb37b53717c228a017e0799eb477959fb8ef | /wmm/scenario/migrations/0116_auto__add_field_tidalenergyparameter_ordering__add_field_pelagicconser.py | 6686340589e48b393339faa86cbcd5a5df0aba84 | [] | no_license | rhodges/washington-marinemap | d3c9b24265b1a0800c7dcf0163d22407328eff57 | e360902bc41b398df816e461b3c864520538a226 | refs/heads/master | 2021-01-23T11:47:50.886681 | 2012-09-24T18:38:33 | 2012-09-24T18:38:33 | 32,354,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,555 | py | # encoding: 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 'TidalEnergyParameter.ordering'
db.add_column('scenario_tidalenergyparameter', '... | [
"sfletche@gmail.com"
] | sfletche@gmail.com |
e482f77c92f6c159224fa7ad371be8af9bfb1b78 | 6bd8c7bfe66d1df1dd9db790e7a27150b7f72d31 | /tagcreator/indirect/rvg_indirect_analog.py | 62455ec5eeee02740ba69a16a10a04dc6f9a3268 | [] | no_license | sebasalvarez13/ww-tag-generation | 595178a6835da41c0ed73eed4852b0e031ca5c7f | 649f6f903b2d144f7e3ee2238a4f118b77edbed7 | refs/heads/main | 2023-07-17T09:14:49.837523 | 2021-08-16T22:38:11 | 2021-08-16T22:38:11 | 353,503,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | #!/usr/bin/env python3
import csv
import os.path
from os import path
from tagcreator.indirect.indirect_analog_features import features
class RvgIndirectAnalog:
def __init__(self, line):
self.line = line
self.tag_start = "GenericRevGate"
self.controls_list = ["CMD", "Faults... | [
"sebastian.alvarezarce@gmail.com"
] | sebastian.alvarezarce@gmail.com |
a9b78fbdc46c4c090b2ee84da3860c8721ba674b | a60133740a2097ccd90c37b5616e611e06025d1c | /evaluate.py | bb1cb184711eeaef49b0e4e5e6e9c0c36df94c34 | [] | no_license | kubumiro/CNN-Python-Framework | 078c42835554843e8af6c2564904f4c6061e9914 | 4b08b18c244601c444671cc96ed72e3863ae323f | refs/heads/master | 2020-09-22T06:15:26.402529 | 2019-11-30T23:42:51 | 2019-11-30T23:42:51 | 225,083,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py |
def model_predict(model, X, y)
| [
"noreply@github.com"
] | noreply@github.com |
52389b5b2bff83aa9b999bd20397ad5a96cf1b26 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_145/601.py | 1c4900414caa5c3d523730cdea08f4e249066ea5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python3
from fractions import gcd
from math import log
rounds = int(input())
for i in range(rounds):
n, d = input().split('/')
n = int(n)
d = int(d)
g = gcd(n,d)
n = n//g
d = d//g
if log(d,2) != round( log(d,2)):
print("Case #{}: impossible".format(i+1))
continue;
while n!=1 :
n -... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6d4472bea179f8bc119c29f82a682a99682eade1 | a7c237fab83686d7ece883f95f32f40d15226280 | /nld_from_csv.py | e28f5c31c100faa33a6e248ce16a7c50e5bde54a | [
"MIT"
] | permissive | benjaminestes/bq-stat | 697f0dd372a266d81d0fd8aca83265eed0204baa | 688d3b847d85a956958cfce0d0d393ba60fc408c | refs/heads/master | 2022-02-19T17:08:57.224444 | 2019-07-22T21:06:21 | 2019-07-22T21:06:21 | 112,222,412 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | #!/usr/bin/env python
# coding=utf-8
"""Given a CSV file from Stat's ranking ranking export, create a
newline-delimited JSON file corresponding with BQ schema."""
from sys import stdin
import csv
import json
def map_row_to_schema(row):
"""Associate a value from a Stat CSV export with the correct
identifier ... | [
"benjamin.lee.estes@gmail.com"
] | benjamin.lee.estes@gmail.com |
bf3ea11b9c446a4883cb22a7a78fb68a8f7dc894 | b9767eeeddd3d3e6f591cc96a24d2fabd4373749 | /helper.py | bd4e5cbe961767a6bb5621eefa87765679b6b355 | [] | no_license | artika-tech/Olympics-Data-Analysis | a578c0ca0878a97607c7ff9cfc33dff43180631c | 4304d1d33404ae25b8a904456bc16beb3d0721ae | refs/heads/main | 2023-08-04T20:05:24.751663 | 2021-09-04T16:10:03 | 2021-09-04T16:10:03 | 403,099,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,903 | py | import numpy as np
def fetch_medal_tally(df, year, country):
medal_df = df.drop_duplicates(subset=['Team', 'NOC', 'Games', 'Year', 'City', 'Sport', 'Event', 'Medal'])
flag = 0
if year == 'Overall' and country == 'Overall':
temp_df = medal_df
if year == 'Overall' and country != 'Overall... | [
"noreply@github.com"
] | noreply@github.com |
e1d209745842586a2972bad9db2e8556b73f6e9e | aba74338092c4de7cb504419eb7b4a19a71d35d7 | /1.딥러닝과러닝머신/2고급/1-1.텍스트형식&바이너리형식.py | 732cc860293d895d1e64d6d14d321a623c7f159e | [] | no_license | goodlucky1215/artificial-intelligence | 469f6ec931dcd30aae4b9d2782588e2468a3635f | 07c5fd009ca86c6ceb0f5ce9c960aeb1ffcd435a | refs/heads/master | 2022-04-24T22:57:33.094666 | 2020-04-29T13:00:59 | 2020-04-29T13:00:59 | 259,822,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | #데이터가져오기
import requests
r=requests.get("http://api.aoikujira.com/time/get.php")
#텍스트 형식으로 데이터 추출하기
text= r.text
print(text)
#바이너리 형식으로 데이터 추출하기
bin = r.content
print(bin)
| [
"goodlucky1215@naver.com"
] | goodlucky1215@naver.com |
c25dfb947af2e44cd0e4dea4e46957f4f9ac03ec | a1d8ea6b40b8f90f9c10378a7db213f99b1ba947 | /src/cython_catkin_example/setup.py | b719bf7badd9ef8a18410bcb7c864b86acac4775 | [] | no_license | vbillys/cython_catkin_example | 5b56a56d1a00b0040d07a24b3a4db10d1dc75186 | ee5a7a43828f3c3fba31002a5ebe275fbc312d83 | refs/heads/master | 2020-12-27T07:11:20.419112 | 2016-07-06T04:43:30 | 2016-07-06T04:43:30 | 53,922,598 | 0 | 0 | null | 2016-03-15T07:07:56 | 2016-03-15T07:07:56 | null | UTF-8 | Python | false | false | 769 | py | from setuptools import setup
from distutils.sysconfig import get_python_lib
import glob
import os
import sys
if os.path.exists('readme.rst'):
print("""The setup.py script should be executed from the build directory. Please see the file 'readme.rst' for further instructions.""")
sys.exit(1)
setup(
name = ... | [
"marco_esposito@mytum.de"
] | marco_esposito@mytum.de |
677fb51759db8a07210bb76240c9cbab445670b8 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-string/two_characters.py | 10b3ac19c02ca478f6a224f3f683e11fe2efc679 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 1,698 | py | # https://www.hackerrank.com/challenges/two-characters
from collections import Counter
from collections import defaultdict
def alternate(s):
if s is None or 0 == len(s):
return 0
consecutiveSet = set()
for i, c in enumerate(s):
if 0 == i:
continue
if s[i - 1] == c:
... | [
"agapelover4u@yahoo.co.kr"
] | agapelover4u@yahoo.co.kr |
a06db2c071875ff44793b4fa25d314d8e7a501c1 | 0178c69ef9fc5e49cadeaadddb4839eeff3f4a2a | /examples/sac.py | edb4bb7454feec8eb93576ef06326455a559076a | [] | no_license | YangHaha11514/rlkit | 3b17de2b4861e12b8c13c849410b7fab335157df | 8c2ee5d1602423e352724a0b0845c646688f98df | refs/heads/master | 2020-03-14T06:22:53.568011 | 2018-03-11T01:31:38 | 2018-03-11T01:31:38 | 131,482,724 | 1 | 0 | null | 2018-04-29T09:46:53 | 2018-04-29T09:46:53 | null | UTF-8 | Python | false | false | 1,813 | py | """
Run PyTorch Soft Actor Critic on HalfCheetahEnv.
NOTE: You need PyTorch 0.3 or more (to have torch.distributions)
"""
import gym
import numpy as np
import rlkit.torch.pytorch_util as ptu
from rlkit.envs.wrappers import NormalizedBoxEnv
from rlkit.launchers.launcher_util import setup_logger
from rlkit.torch.sac.po... | [
"vitchyr@gmail.com"
] | vitchyr@gmail.com |
bb3da42f0892a5fe72ea88473753bf90060eb5b5 | d6de20f751e49eb5c22846249e34bb83feea2040 | /src/core/scoring/apps/online/apps/search_engines/management/commands/search_yandex.py | 16788bac85610453cefce5f74d0aabba37a54e73 | [] | no_license | daritorius/scoring-example | 48a9d3f50b755a688314a261ab1ecf02c8368ac9 | cb9fec5b710031305521d884a363d5540bcba376 | refs/heads/master | 2022-02-19T04:06:43.703460 | 2014-07-30T15:54:39 | 2014-07-30T15:54:39 | 200,102,774 | 0 | 0 | null | 2022-01-06T22:36:18 | 2019-08-01T18:43:55 | Python | UTF-8 | Python | false | false | 758 | py | # -*- coding: utf-8 -*-
from core.main.base.modules.Singleton import Singleton
from core.scoring.apps.online.apps.search_engines.actions.YandexActions import YandexActions
from django.core.management import BaseCommand
from django.utils.translation import ugettext_lazy as _
class Data(object):
__metaclass__ = Sin... | [
"pavel.tiron@gmail.com"
] | pavel.tiron@gmail.com |
1b1d43ac638223550a5a9f28cb4d5f216a837cbf | 1fac53ab13a9a682ecd926857ef565fa779afae4 | /fbseries.py | 44da677508725917468869fb71285e9ed733a195 | [] | no_license | Shamabanu/python-1 | 339123ff4e7667d6331c207cb1c7ca3fc775dc48 | 4c1642679bb0bdd53a1d21e5421e04eb7abda65b | refs/heads/master | 2020-04-13T23:49:27.700807 | 2018-12-29T15:10:26 | 2018-12-29T15:10:26 | 163,516,492 | 1 | 0 | null | 2018-12-29T14:16:28 | 2018-12-29T14:16:28 | null | UTF-8 | Python | false | false | 219 | py | def fibonacci(n):
if(n <= 1):
return n
else:
return(fibonacci(n-1) + fibonacci(n-2))
n = int(input("Enter no of terms:"))
print("Fibonacci sequence:")
for i in range(n):
print (fibonacci(i))
| [
"noreply@github.com"
] | noreply@github.com |
2625c8e76f3d89680e11b486b6d8510b714ec271 | a788067ff3826294e7a27459fbbe3391ca1fe870 | /proj/core/feed/forms.py | b1da6f3f3c6969c7528b9434a4bde8ec06e162ff | [] | no_license | Goobs/taskz | 2e69aff4f8315b772a6b5e32191d9d7a146bae6c | 6b572b1df6817e1093264bc83d6ac79c0096ad80 | refs/heads/master | 2016-09-05T18:10:11.848557 | 2014-03-17T18:40:17 | 2014-03-17T18:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # -*- coding: utf-8 -*-
from proj.core.utils.crispymixin import *
from .models import *
class FeedForm(CrispyModelForm):
content = forms.CharField(widget=forms.Textarea())
class Meta:
model = Feed
fields = ('content',)
def get_layout(self, *args, **kwargs):
self.helper.label_clas... | [
"goobs@mail.ru"
] | goobs@mail.ru |
0f433f4c1f603c220ce7a2803bc50c6f90e6d28c | 2d50f351f616d6f5afc72f1f04de243252caeeee | /app.py | 7116f45004cfdd49483da5cb2b459fdbf13ab38b | [] | no_license | cllcall/douban_flask | 2a8a4948ac5bb485736c4ebe96495e6514e19cc1 | 0e49ca1a5f1a244ddf116698f837a7799447338c | refs/heads/master | 2023-05-05T12:57:45.206936 | 2021-05-29T13:43:50 | 2021-05-29T13:43:50 | 371,888,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | from flask import Flask,render_template
import sqlite3
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
@app.route('/index')
def home():
#return render_template("index.html")
return index()
@app.route('/movie')
def movie():
datalist = []
conn = sqlite3.con... | [
"2236445873@qq.com"
] | 2236445873@qq.com |
399b13357b719cf03b12dbebc9c3cd588315a576 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /Django/csvt-django/csvt05/manage.py | cf37dbd64ee66f2e67594f34529b3a7bff46f5fa | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "csvt05.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
ceb00ada558194b136dbe08db9825882d460d300 | 577341517a9aa9f94afac9c9b1ca5efbf39bbf02 | /initial.py | 2a5e707232a35b2fd7bdce64b724911033252ff2 | [] | no_license | prathyu0398/Freshworks_assignment | 7276dde9aabb9536aa519fd7c861cd133c577f92 | 02cf03ae47ef2ab7d6aa7e7aa72533e46a1da100 | refs/heads/main | 2023-01-29T03:00:13.984100 | 2020-12-01T08:07:18 | 2020-12-01T08:07:18 | 317,468,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | import threading
from threading import *
import time
import json
#https://github.com/sriharsha9598/CRD-operations-of-a-file-based-key-value-data-store
f=open("data.json",)
d=json.load(f)
def create(key, value, timeout=0):
if key in d:
print("error: this key already exists") # error message1
... | [
"noreply@github.com"
] | noreply@github.com |
35f6822467bc9491df6aecb05a27905bfc3f14e3 | 571d560deb0a9e4d96cd1491aefe247b2f0a3ff4 | /Source/Interfaces/GraylogInterface.py | f677f75a94c0a330fe2d833fc9041483bfd14332 | [
"MIT"
] | permissive | owentl/office365-audit-log-collector | 8ec5e0824682c03288f5e3a4b5e81cac7c91e04d | 35876909259f56cb48e2588f7f65a8224d50ef9d | refs/heads/master | 2022-06-02T22:41:51.058334 | 2022-04-21T09:14:35 | 2022-04-21T09:14:35 | 483,233,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | from . import _Interface
from collections import deque
import logging
import threading
import socket
import json
import time
class GraylogInterface(_Interface.Interface):
def __init__(self, graylog_address=None, graylog_port=None, **kwargs):
super().__init__(**kwargs)
self.gl_address = graylog_a... | [
"daandeboer@gmail.com"
] | daandeboer@gmail.com |
c1dc9b8de82a537e52ed23b956fe00cfff4c98ee | 2db67c3d6d4ec252f3e76ce6e92f258c4e1fbf73 | /delfin/drivers/dell_emc/unity/unity.py | 7652a09592639cd3844daf83fc8c520d00d832a2 | [
"Apache-2.0"
] | permissive | jiangyutan/delfin | 2b74ed2473f2e42f8cc1d185a8ac4c0835035bd0 | d63b5f19efabc1c6ef94f0244e9f89c2ecceb7ed | refs/heads/v0.8.0-maint | 2023-05-04T21:18:08.539343 | 2021-03-15T08:00:53 | 2021-03-15T08:00:53 | 286,358,774 | 0 | 0 | Apache-2.0 | 2020-08-10T02:38:37 | 2020-08-10T02:38:36 | null | UTF-8 | Python | false | false | 8,054 | py | # Copyright 2020 The SODA 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 wri... | [
"noreply@github.com"
] | noreply@github.com |
93856c78a47412b99de857cb1abbf8b25758ad79 | f8bbdfb112618136fc4adccb03ce25fbfc48bff5 | /panel/config/admin/management_data/CustomPages/Member.py | 16842cd9719bcaac1229acc9f6e270cb55f48b24 | [] | no_license | lazypanda10117/CICSA-Ranking-Platform | 160973987b533ede6e0b94af29b5bc85646b2bc0 | d5f6ac64a1f85c3333c71a7d81749b49145b9a16 | refs/heads/master | 2022-12-09T23:21:28.649252 | 2020-04-28T22:53:07 | 2020-04-28T22:53:07 | 133,093,367 | 3 | 2 | null | 2021-09-22T17:51:39 | 2018-05-11T22:14:01 | Python | UTF-8 | Python | false | false | 3,351 | py | from cicsa_ranking.models import Member
from .AbstractCustomClass import AbstractCustomClass
from panel.component.CustomElements import Choices
from misc.CustomFunctions import MiscFunctions, RequestFunctions, LogFunctions
class MemberView(AbstractCustomClass):
def __init__(self, request):
self.base_class... | [
"jeffreykam0415@gmail.com"
] | jeffreykam0415@gmail.com |
9e93607857282ba92b99032fb6fda11e657ed2d1 | b4a065f13aa86e69193a932647cafff38f2051c0 | /code/private_ip_finder/poc001/private_ip_finder.py | fa21e73f1eb9c7a5ac7813986c36a9a93b0b685f | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | nicc777/python_poc_stuff | 84808f1258ba90a635be7f9591d7f7ff72405bbf | 81d84897e9b410cecca97546a3c79f27546cb3a7 | refs/heads/master | 2020-07-01T19:26:14.901929 | 2018-12-03T16:20:21 | 2018-12-03T16:20:21 | 74,262,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python3
import socket
import traceback
def get_ip()->str:
ip_address = None
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 443))
ip_address = '{}'.format(s.getsockname()[0])
s.close()
except:
traceback.print_exc()
... | [
"nico@turfsport.co.za"
] | nico@turfsport.co.za |
f5bcdcacff09c019f93bdd3bb510a1ef20ca3e79 | de7040427f055a4fd9d1ec9d6c36567265d8c65d | /code/ki_1/python/python/set.py | 925da07384b6b071ee8ee9469e80ead67332e401 | [] | no_license | vuquang142k/Program_Python | d98cb4000a8f91988ca33fc638cce78e93e7caf6 | 303cfd4d72fa8c97709fb26ae54b29cd20a317b4 | refs/heads/main | 2023-06-16T11:50:40.395295 | 2021-07-06T20:34:11 | 2021-07-06T20:34:11 | 344,947,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | #Set la 1 container,tuy nhien ko su dung nhieu bang list hay tuple
#Duoc gioi han boi {}, tat ca nhung gi nam trong do la nhung phan tu cua Set
#Cac phan tu cua Set duoc phan cach nhau boi dau ,
#Set khong chua nhieu hon 1 phan tu trung lap
#chi chua hashable object
set_1={69,96}
print(set_1) #{96,69}
set... | [
"kanji14092000@gmail.com"
] | kanji14092000@gmail.com |
3c6272b5ed36863e8a7b012c1491944ae1bc0fed | d61f7eda203a336868c010abb8f9a6f45dd51adb | /217. Contains Duplicate.py | bfe1c7f845dd61be31b14fab7c6bc51dc3d70b9b | [] | no_license | Mschikay/leetcode | b91df914afc728c2ae1a13d3994568bb6c1dcffb | 7c5e5fe76cee542f67cd7dd3a389470b02597548 | refs/heads/master | 2020-04-17T12:11:38.810325 | 2019-10-06T02:37:32 | 2019-10-06T02:37:32 | 166,570,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
# s = set()
# for n in nums:
# if n in s:
# return True
# s.add(n)
# return False
return not (len(set(nums)) == len(nums)) | [
"chikaytong@gmail.com"
] | chikaytong@gmail.com |
a846d3b7ee66e5286fde9b10540aff373ef6a1e1 | 21583a54a0ff37b70f34ced45abbaedd5ecc5518 | /fusion_map/urls.py | 6a596ee9b5d800666af4bcbf0970ea09e6f12d8e | [] | no_license | lud0/fusion_map | 2094468111ac5019dac43d66dd0d76e05f7a8a60 | 0ffb86305408087bb92b7388d890680f79577852 | refs/heads/master | 2020-03-24T11:18:49.304421 | 2018-07-28T14:09:42 | 2018-07-28T14:09:42 | 142,677,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | """ fusion_map URL Configuration
"""
from django.urls import path
from main import api, views
urlpatterns = [
path('', views.index),
path('api/1/locations/add', api.add_location),
path('api/1/locations/removeall', api.remove_all),
]
| [
"lud0@users.noreply.github.com"
] | lud0@users.noreply.github.com |
3a8869e9053daa50023d1680085020838c976a27 | db664689ca6dbb8eb04854c4f83c42033e2a41e5 | /K-Means Clustering with word embedded data/RunKMeans.py | 90c9f17ad0df596a39668163a3dca3b2e32c3843 | [] | no_license | KashishNarang94/DataMiningCSE506 | 6202c0b6e652de4cf86ed2f55d3e26f37a6165f4 | 6849c69bfbe2ef3c23fe1f22a99c1a8774c1b5e7 | refs/heads/master | 2020-09-09T18:50:32.969506 | 2020-01-25T19:43:52 | 2020-01-25T19:43:52 | 221,533,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import KMeansImplement
QuestionNo=[2,3,4,5]
flag_normalize=[0,1]
KMeansImplement.Kmeans(flag_normalize[0],QuestionNo[0])
KMeansImplement.Kmeans(flag_normalize[1],QuestionNo[1])
KMeansImplement.Kmeans(flag_normalize[0],QuestionNo[2])
KMeansImplement.Kmeans(flag_normalize[0],QuestionNo[3]) | [
"KashishNarang94@users.noreply.github.com"
] | KashishNarang94@users.noreply.github.com |
de3cfdc440c151793be00c74b519e37b26974039 | c543f79b9befcbd18af68f10b795d6ede9e2646b | /manage.py | 5aa54c7665e460e7fb641be5a5f535b4cfd470b1 | [] | no_license | BerkutaRuslan/OceanTT | bb7e5c799321ae993d12dc7f11d45545a56f5787 | 3369082320042f2d6ec8664b5433a509ba1104dd | refs/heads/master | 2023-01-24T06:38:32.783453 | 2020-11-30T15:52:09 | 2020-11-30T15:52:09 | 317,198,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | 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', 'oceantt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"berkutruslan1@gmail.com"
] | berkutruslan1@gmail.com |
a30b1616f644fb660ee165cfd9d32bdf3e1587cf | 7c6a05a163c653eba6509674c31586cd63f15bde | /src/navigation/scripts/nav_stack/Serial_node.py | ae29f521e8085739b5a8a06d178e3079df46f74d | [] | no_license | Team-Anveshak/aurora2018 | 02016e035cede1ba08f7143604e59baca3a7cf36 | 975aea6e498af8829c512108792dad878a27b07b | refs/heads/master | 2021-05-13T22:09:44.795530 | 2018-05-19T03:18:44 | 2018-05-19T03:18:44 | 116,481,108 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | #!/usr/bin/env python
import string
import rospy
import serial
from rover_msgs.msg import enc
from geometry_msgs.msg import Twist
pwm=0
port='/dev/ttyACM0'
try:
ser = serial.Serial(port=port, baudrate=57600, timeout=1)
except serial.serialutil.SerialException:
pass
class Serial(object):
def __init__(self,ser):
... | [
"achu.shankar2@gmail.com"
] | achu.shankar2@gmail.com |
05352a15e8fe5729ce8218b174d55903f616d532 | 0f812d8a0a3743a9ff9df414e096a7f9830b0397 | /old/demo/onelinkmanipulator_demo_PID.py | 56c7d8e95f6edfbf0742cc0e0823707431e2d674 | [
"MIT"
] | permissive | pierrecaillouette/AlexRobotics | 18977eec79875b7fc8c84d11f1c680be93b43fcb | 2223100df3e141d88491dde3d60a4eadd07a5c72 | refs/heads/master | 2021-04-09T03:18:58.858708 | 2019-04-28T15:30:26 | 2019-04-28T15:30:26 | 248,833,850 | 0 | 0 | MIT | 2020-03-20T19:14:52 | 2020-03-20T19:14:52 | null | UTF-8 | Python | false | false | 2,985 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 6 15:27:04 2016
@author: alex
"""
import numpy as np
###########################
# Load libs
###########################
from AlexRobotics.dynamic import Manipulator
from AlexRobotics.control import linear
from AlexRobotics.control import ComputedTorque
from AlexR... | [
"alx87grd@gmail.com"
] | alx87grd@gmail.com |
55d16850c20edcac6154e8d98839f22a73dcb294 | 48c3636efbea499243bfdd035e2fa2c54179c842 | /core/migrations/0003_pontosturisticos_atracoes.py | 703c69e274c46247b4493018be00938115942d66 | [] | no_license | agmguerra/pontos_turisticos | 625e8981e3d3d00c81811759070447fefe654f2b | d6e987e08b7636b96cc45a1e052c240c73b5d947 | refs/heads/master | 2020-08-14T14:18:39.406632 | 2019-12-09T18:41:56 | 2019-12-09T18:41:56 | 215,182,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.6 on 2019-10-15 01:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atracoes', '0001_initial'),
('core', '0002_pontosturisticos_aprovado'),
]
operations = [
migrations.AddField(
model_name... | [
"agmguerra@gmail.com"
] | agmguerra@gmail.com |
09472d9e33fd1ac9ca1eb9f00d82e5bb5a706341 | 7559dfd02bf6ebc15386f6f5035d4a1e66b19ac2 | /fts_base/wizard/__init__.py | a47b82d512e1935d34e8e86f23de1328cb846067 | [] | no_license | Therp/fulltextsearch | 3b1077549df7032c3f11285395eb6464152a5249 | e8ed30c2a71ed5b0d10488590219ea6dbaf61d62 | HEAD | 2016-09-06T04:19:36.057770 | 2014-09-12T13:09:55 | 2014-09-12T13:09:55 | 23,957,766 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import fts_config
| [
"hbrunn@therp.nl"
] | hbrunn@therp.nl |
c4ff477e4d4593ec29941b50cc598115076da953 | e0d27e8f36ddc657e0b18db12e8d5e4894acf6d1 | /__init__.py | 62071625e7c8fef7523b8277fe60a611cdbbc40c | [] | no_license | dilkuwor/empproj | e41dbbd7443f13aaf6681871ca5ff168a3659424 | c14d2157db097bf38ade82989dcb7856e5fbbe71 | refs/heads/master | 2021-01-24T03:57:53.364058 | 2018-03-03T20:10:14 | 2018-03-03T20:10:14 | 122,914,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from flask import Flask
from flask_restful import Api
from timeapi.resources.employee import Employee, EmployeeCollection
from timeapi.resources.project import Project, ProjectCollection
from timeapi.resources.project_employee import ProjectEmployee
from apispec import APISpec
from flask_apispec.extension import FlaskA... | [
"dil.kuwor@gmail.com"
] | dil.kuwor@gmail.com |
c025936563a10774a9b3acd93602aa92bf3b75f8 | 2b7dccfa789bdeff28f306243f5ee04137e131be | /PythonAndCoding/tweettweet.py | ad177cc437e3640df20a5dee289e4f0e18627984 | [] | no_license | animeshsrivastava246/PythonWork | d3a88a65bbf50da3ffb9912ab18dd0126e502c8e | 3bdee1f06fd7faf92b02c37f3361e7e92011c57b | refs/heads/main | 2023-07-13T12:17:05.083860 | 2021-08-16T11:30:42 | 2021-08-16T11:30:42 | 396,763,690 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | import tweepy,time
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
user=api.me()
def limit_handler(cursor):
try:
while True:
yield cursor.next()
except tweepy.RateLimitError:
tim... | [
"noreply@github.com"
] | noreply@github.com |
27b994c3924007d90e49e4fc1c92fc4eef573a45 | 5bc7733ecb92e5c426ba3ff620ffba8da27292f6 | /postGRE_script.py | 08ac3a51cf487cea29986395757646fbbea6f9ed | [] | no_license | CodeyBank/simple-database-using-postgres | 66ac01bfed27ad8b4047bc081c909c22b66bab53 | 29c0ab25cbef664621d84cc659818dfdc720046b | refs/heads/main | 2023-05-19T16:47:53.768820 | 2021-06-05T18:47:08 | 2021-06-05T18:47:08 | 374,189,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | import psycopg2
def create_table():
connection = psycopg2.connect("dbname='shop' user='postgres' password='Thebossm@#995' host='localhost' port='5432'")
cur = connection.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS store (item TEXT, quantity INTEGER, price REAL)")
connection.commit()
c... | [
"noreply@github.com"
] | noreply@github.com |
42983223ec1ec685ad95399c0bf213151fcc9c28 | 8a754ae404f73a2fc1c9eb2ed3a796cc1c65b2da | /src/data/.ipynb_checkpoints/make_dataset-checkpoint.py | fca6a0c07c291a8ffb091da8b3eb6f8908511210 | [
"MIT"
] | permissive | DataEconomistDK/Recession-Predictor | 2d0ec8a8bb4f88b135bf1eb19836928d84b44a04 | 74f453cad275f216c30403ddc6a49d6a22b054d7 | refs/heads/master | 2021-04-23T17:42:23.682241 | 2020-04-23T08:10:37 | 2020-04-23T08:10:37 | 249,952,543 | 1 | 0 | MIT | 2020-03-25T10:48:08 | 2020-03-25T10:48:07 | null | UTF-8 | Python | false | false | 18,886 | py | """
This module gets data from FRED and Yahoo Finance, builds some features,
and saves the data into the respective filepaths.
"""
import re
from io import StringIO
import json
from datetime import datetime, timedelta
import requests as req
import pandas as pd
import RecessionPredictor_paths as path
class YahooData... | [
"46265154+DataEconomistDK@users.noreply.github.com"
] | 46265154+DataEconomistDK@users.noreply.github.com |
346f62a2096c1ecfa719e42210fc519957c983e5 | 1e5812e1839bbb67e2d284a96f3f5fa8360ceeca | /own/visualizer.py | fc7a7f32e4f27023554246dec93d3d62304926a5 | [] | no_license | TSBB15-VT21-group-4/3d-reconstruction | aaf8498abdea6bb2b7b79181073b33bd0636c517 | a36b331bb40fb19e9ae515807e705e76e70aef93 | refs/heads/master | 2023-07-03T16:55:08.330639 | 2021-08-06T09:50:00 | 2021-08-06T09:50:00 | 393,331,214 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,323 | py | #!/usr/bin/env python3
import numpy as np
from matplotlib import pyplot as plt
from external import lab3
import warnings
class Visualizer():
"""
Declares functions used for visualization.
"""
def __init__(self):
pass
def visualize_corresp(self, view_1, view_2, p_index):
"""
... | [
"matvi959@student.liu.se"
] | matvi959@student.liu.se |
43161b15896e4902218ba23e07244705afec3bd9 | b0bb0dcdf8228cbdd02e47a9e2097892f7dd0861 | /bak/download.py | 03f5f93a9a8b197c04727d19e700059556ff1ede | [] | no_license | scmsqhn/zipline_for_u | 562de0d8ed638de431d207e6808db7e19fc168f7 | 369b17fd3142fcfb9ced7ce0b17a3a35a8af37d4 | refs/heads/master | 2021-01-20T06:51:09.012662 | 2017-05-02T14:54:38 | 2017-05-02T14:54:38 | 89,936,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,161 | py | # -*- coding: utf-8 -*-
# @Author: yuqing5
# date: 20151023
import tushare as ts
from sqlalchemy import create_engine
import datetime
import time
import pandas as pd
import os
import cPickle
from pandas import DataFrame
import pandas.io.sql as SQL
import sys
sys.path.append('./utility/')
from tool_decor... | [
"haining.qin@changhong.com"
] | haining.qin@changhong.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.