blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d4ff5552c38e2033ad74010a713ece92f2d92f8 | 1fa8b6a8a11277d0d1807f98efaca40ea5e37b24 | /BOJ/연구소 3.py | f4486a7319ab0259cccd708a70f2fff720144fc7 | [] | no_license | wontaechoi/algorithm | c41c5857df5a0fdc2b8c3226aa51e113b667efc5 | a92261f3e6ac8fa515e2c2332e34d6a2176f243d | refs/heads/master | 2022-12-31T06:48:55.941394 | 2020-10-19T14:42:18 | 2020-10-19T14:42:18 | 287,288,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | def combination(array, m):
def combi(arr, m):
if len(arr) == m:
all_comb.append(arr.copy())
return
start = array.index(arr[-1]) +1 if arr else 0
for i in range(start, len(array)):
combi(arr + [array[i]], m)
combi([], m)
return
def bfs(virus):
... | [
"35357369+wontaechoi@users.noreply.github.com"
] | 35357369+wontaechoi@users.noreply.github.com |
6fd7c178a26f5ee9680985d398bfcacdfed91699 | 0d7d129e975050f754a60a0a64ec9d0658c2213c | /rsscraper/users/tests/test_forms.py | dbcaf9ee5c1fcc191eb1880febc3ba7120c88a41 | [
"MIT"
] | permissive | Sunno/rsscraper | 1781daaf22655961809527992e58ce3d5094b813 | a9897d507980ec4525e8521188cf76203829caca | refs/heads/master | 2020-11-27T14:44:20.760498 | 2020-01-10T15:40:52 | 2020-01-10T15:40:52 | 229,495,438 | 0 | 0 | MIT | 2020-06-06T01:45:52 | 2019-12-21T23:29:29 | Python | UTF-8 | Python | false | false | 1,117 | py | import pytest
from rsscraper.users.forms import UserCreationForm
from rsscraper.users.tests.factories import UserFactory
pytestmark = pytest.mark.django_db
class TestUserCreationForm:
def test_clean_username(self):
# A user with proto_user params does not exist yet.
proto_user = UserFactory.buil... | [
"thesunno@gmail.com"
] | thesunno@gmail.com |
4737339fcf6dfa728fd3cdf54ddc19cdc0f34bfc | 6d4509dd7945cc7d0bb666c775f52a0a9a6cb139 | /tests/demoqa/test_async.py | c3319f3c4bfdba7580b0afdf9e225b531d44ee98 | [] | no_license | N1addict/python-playwright | c1038a8890aa236035dd0c90d26ccb2344821539 | c8bc02936a1c8b573c96a614d92af3e359ab939e | refs/heads/main | 2023-03-17T08:37:51.686158 | 2021-03-02T13:54:06 | 2021-03-02T13:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | import pytest
from playwright.async_api import async_playwright
from playwright.async_api._generated import ElementHandle
from pytest import fixture
base_url: str = "https://www.demoqa.com"
@pytest.mark.asyncio
class TestBase:
async def test_visit_elements_page(self) -> None:
"""Test that the Elements pa... | [
"thompson.jonm@gmail.com"
] | thompson.jonm@gmail.com |
79652b0f0f24d659472eca84f4e185eca3bbabe8 | 4870d1009e25783ad8c394fe6f09031647896ff7 | /quartus_cadence_netlist_merger/main.py | 231d8e5794e6b358e51b8548af632566e7dcbe29 | [] | no_license | yuravg/quartus_cadence_netlist_merger | 5c5b4006b05a169593ab4548f1878e901d4949a7 | 637c44a409e2343f688b8e0f8d95a246d1fb557d | refs/heads/master | 2021-07-03T16:46:43.669145 | 2020-12-03T07:05:02 | 2020-12-03T07:16:28 | 204,642,819 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | """Run point"""
from .qp_cnl_merger import QuartusCadenceMerger
from .commandlinearg import get_args
def main():
"""Run point for the application script"""
get_args()
QuartusCadenceMerger().mainloop()
| [
"yuravg@gmail.com"
] | yuravg@gmail.com |
4d7cfd0ffccbfd283de36c33f18f12867f841c60 | 480ba90ae43f6ef5072f163fe195f83408cc8842 | /Projects/csbh_stat/csbh_stat/modules/idcs.py | 7a0a6538f74e63c00036a91081bf1bd020e52478 | [] | no_license | raystyle/Myporjects | 04478480700f54038b34edb0f6daeec31078b1a5 | 1892b74fb390c6c61a77d86cc781ee64f512f0b0 | refs/heads/master | 2021-05-21T08:07:31.743139 | 2020-04-02T13:05:25 | 2020-04-02T13:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | #encoding:utf-8
import time
import datetime
from dbutils import MySQLConnection as SQL
def get_idc_info_date():
now_year = datetime.datetime.now().strftime('%Y')
_sql_all = 'select sum(combined) from idc_data where date like %s group by date order by date;'
_sql_alone = 'select date,idcname,combined from ... | [
"cui6522123@gmail.com"
] | cui6522123@gmail.com |
b9e01fd5c696231a6b883b2817e73b84b476dbaa | 1646b3fe9000c3109695e99b4bb75679577906ff | /236.LowestCommonAncestorOfABinaryTree.py | 78bdf6a542e4686bb190fc7b9d792fdb40e9fbeb | [] | no_license | yao9208/lc | 5ecf6720886beb951c9a70433f53a0ec0bcb74dc | 024c1b5c98a9e85706e110fc2be8dcebf0f460c3 | refs/heads/master | 2020-04-03T20:55:40.199637 | 2017-02-10T08:30:46 | 2017-02-10T08:30:46 | 56,478,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
:type p: TreeNode
:type q: TreeNode
:rtype: TreeNode
"""
if not root:
return root
if root==p or root==q:
return root
left = sel... | [
"yao9208@foxmail.com"
] | yao9208@foxmail.com |
38bb3f3e1a953585991861cdece43f807fb18e8a | 267f639b360d1125d89cda14e5c6b699d57f82b6 | /app/app.py | e470c06958a3187b1831a47cb417fc0aaa5e5845 | [] | no_license | DoritaSuarez/DashExamples | cb1a086d792c0bc019f86984ff97b4d9f419557d | c9ab03d29528b9682bf669bfb54266c7b5d520d9 | refs/heads/master | 2021-07-17T03:47:31.689429 | 2020-10-27T14:32:48 | 2020-10-27T14:32:48 | 223,849,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import dash
import dash_html_components as html
class CustomDash(dash.Dash):
def interpolate_index(self, **kwargs):
# Inspect the arguments by printing them
print(kwargs)
return '''
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
... | [
"dmsuarezv@gmail.com"
] | dmsuarezv@gmail.com |
a92e766b88a066359142d4605bea2f9125c68b2d | 0acd8226bb830f291acc5f9ee24b5ef04c51b401 | /mongo-search/main.py | a38702e110fc7b3f5e1d86255b7ee63c65088aab | [] | no_license | jiafangtao/web_programming | f97eb884487afdbe5a0477f7b54d36546ce670db | 33f8943c91330c30677aa0518f21eb823441e344 | refs/heads/master | 2023-08-31T18:11:45.335547 | 2023-08-08T06:36:44 | 2023-08-08T06:36:44 | 90,827,978 | 0 | 0 | null | 2023-08-08T06:36:45 | 2017-05-10T06:19:59 | JavaScript | UTF-8 | Python | false | false | 4,064 | py | import pymongo
import jieba
import pprint
server = 'localhost'
port = 27017
def tokenize_chinese(s):
return ' '.join(jieba.cut(s, cut_all=False))
client = pymongo.MongoClient(server, port)
db = client.stores
print(db.name)
db.stores.drop()
ret = db.stores.insert_many(
[
{ "uid": 1, "name": "Java Hut",... | [
"jiafangtao@gmail.com"
] | jiafangtao@gmail.com |
d554077d56003ee2515bec8fa3d8516a12b6c863 | 20a803a781be4c905c562b041bcd36d3bfb30631 | /google_auth.py | 0325f98582bbf15ae5195d3e16f8f14a88a79a09 | [] | no_license | OnlyInSpace/wtCal | e699260abfc37a9ec9b0d8427d4c7a99ac0781c1 | c846c3758cb8cd3ae620cbf4efd89ada34acd2f9 | refs/heads/master | 2023-04-28T03:16:39.456401 | 2021-05-04T18:55:13 | 2021-05-04T18:55:13 | 243,627,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | import functools
import os
import flask
from authlib.client import OAuth2Session
import google.oauth2.credentials
import googleapiclient.discovery
ACCESS_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token'
AUTHORIZATION_URL = 'https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=con... | [
"lsfite1@buffs.wtamu.edu"
] | lsfite1@buffs.wtamu.edu |
0d397a0c9a42ee5901823546ee716140764467c4 | 74d8510e4c06a015fcd10b4024e8a04cb918fce3 | /video.py | 95a1ae393f87b454070f15c76f577afc99be14c0 | [] | no_license | liuzhida/video_search | d4b0e8092300ef70058034ab9082fbef314639c5 | d0449caf4f2e2d4808118f6ef164ccb6b74a6d7a | refs/heads/master | 2021-01-16T18:31:06.247940 | 2013-05-10T11:21:13 | 2013-05-10T11:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,598 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.options
from tornado import gen
from tornado import httpclient
from tornado.options import define, options
from tornado.escape import json_encode
import database
from mmseg import seg_txt
import... | [
"liuzhida@me.com"
] | liuzhida@me.com |
f41245cd7b6c4c6f51cc20060895c335835d5426 | 893ea9ae53aca0c4aac0ded55a8feb79105aad86 | /Program6.py | b96cc1dac7eb6215950b44914c1f80c539f068ee | [] | no_license | Saifullahshaikh/LAB-05 | 11aa0ad1f1529d08fd190fa21fc39f62c900f17c | 3b98b0f2c95e68d22f93c70ad1c0ca7396413894 | refs/heads/master | 2020-04-16T06:42:23.957993 | 2019-01-12T06:59:19 | 2019-01-12T06:59:19 | 165,357,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | print('saifullah, 18B-092-CS, A')
print('LAB-05, Program 6')
def CubeValues():
lst = list()
for i in range(1,31):
lst.append(i**3)
print(lst[:6])
print(lst[-6:])
CubeValues()
| [
"noreply@github.com"
] | Saifullahshaikh.noreply@github.com |
eb428a52af1d0fa78308e55321bf38abd6dd1f8b | be0c2a4b3258e6e2e43285ef02ddce837260d61c | /2020_03_10/byroncbr_226.py | e01970246fd752e251fbc8df1f02c5baab579725 | [] | no_license | university-of-southampton-1920/qiuzhao2020 | 7da11d87c7ba90b38025d35efde146a32597c875 | c9118186ebdd905607e69d62f9961a6dccf31eeb | refs/heads/master | 2020-12-19T15:42:58.400641 | 2020-06-07T19:33:18 | 2020-06-07T19:33:18 | 235,778,110 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
Name: byroncbr_226.py
Author: bangrenc
Time: 10/3/2020 11:16 PM
"""
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def invertTree(self, root: TreeNode) -> TreeNode:
if root:
root.left, root.right = self.inve... | [
"noreply@github.com"
] | university-of-southampton-1920.noreply@github.com |
1f2424d5b24baaab7fe1c1ce30f92fcfc2ec1dd1 | 7ea5517353f325fc0bcc0e552233b103335bc9ec | /QUANTAXIS/QAMarket/common.py | 143b325f56b9ba86e312c9a8f7bbeee7f3dbd0fd | [
"MIT"
] | permissive | lxqjswa/QUANTAXIS | 304f20c3ba957d51664a8736faca6a777a658583 | a5f89b28a75d1a5094630a4ed166f596840528b1 | refs/heads/master | 2020-03-28T08:45:47.064394 | 2018-09-08T07:15:26 | 2018-09-08T07:15:26 | 147,987,895 | 1 | 0 | MIT | 2018-09-09T02:52:34 | 2018-09-09T02:52:34 | null | UTF-8 | Python | false | false | 5,031 | py |
# shipane
# "申报时间", "证券代码", "证券名称", "操作", "委托状态", "委托数量", "成交数量", "撤消数量", , "委托价格", "成交均价", "合同编号", "委托子业务", "约定号", "对方账户", "参考汇率", "结算币种", "交易币种", "证券中文名", "出错信息
from QUANTAXIS.QAUtil.QAParameter import ORDER_DIRECTION, TRADE_STATUS, ORDER_STATUS
cn_en_compare = {'明细': 'id',
'证券代码': 'code',
... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
e53c50114defbb9001385514940c7f56071976fb | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc032/abc032_b/8108449.py | b7cc2e87327a45202a747c78434008246dab432c | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | S=input()
k=int(input())
import collections
table=collections.defaultdict(int)
for i in range(len(S)-k+1):
table[S[i:k+i]]+=1
print(len(list(table.keys())))
| [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
cb0e122b4c0e9234e1f0f0e11d6affdfaed10c6a | aa0270b351402e421631ebc8b51e528448302fab | /sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_experiments_operations.py | 3447700b37de7b3edc5130e30a769d21572d3f89 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 38,260 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
f085ce927f914d7feac5640390c519859f1df241 | 53e3e676b66e4ed6bbf7941c7e78c2820fcbed59 | /build_isolated/rospack/test/test/utest.py | c5cf969afefe057c5a2c2fca0f9db7480002ba66 | [] | no_license | daichi08/catkin_ws_atPi | 0bdc3e5f2c7073d888a2f6109c0842521c99104e | 9690697e1d432f06c5ee4570a0e7d1a2cc7c44ed | refs/heads/master | 2020-03-22T21:09:04.291933 | 2018-08-02T06:10:41 | 2018-08-02T06:10:41 | 140,661,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,742 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"b1504000@planet.kanazawa-it.ac.jp"
] | b1504000@planet.kanazawa-it.ac.jp |
3a92a8f34525fff96eff72b5761fd50be60140c6 | 4b96315f283542152e54f7adae9cc5469c836277 | /news_blog/urls.py | 0b61538b098944e9f79cdb1d1a1529fe4d18f7a6 | [] | no_license | judekvn/new_blog | 0f64c14f9218eb0782c13338c43c84f2d06e4ad7 | e67f5cb02e93499e628cd28a3d1aa553bf8e9b1a | refs/heads/master | 2020-05-27T20:40:15.815062 | 2019-05-27T06:12:55 | 2019-05-27T06:12:55 | 188,781,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | """news_blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-bas... | [
"47389259+judekvn@users.noreply.github.com"
] | 47389259+judekvn@users.noreply.github.com |
bfef20ad2f7d3b8f758bc11aaea1b4ffe2e29ed0 | bceb2a3d1793ae7852375b1bb96ea70db7859952 | /hackerrank/String Split and Join.py | 43fc2dca7e4245660c738d688b06388960c25905 | [] | no_license | bappi2097/hackerrank-python | 047958955a1d06edb27f6fafccbc99d376e0fa15 | 8d1479a58517714f475b18485b1e5bb37c86c2b9 | refs/heads/master | 2023-04-02T13:47:17.180967 | 2021-04-08T15:49:55 | 2021-04-08T15:49:55 | 268,575,537 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | def split_and_join(line):
line = line.split(" ")
line = '-'.join(line)
return line
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result) | [
"bappi35-2097@diu.edu.bd"
] | bappi35-2097@diu.edu.bd |
00183aec3a7ed337f9c3c77304b469e033ffd08a | b7a244e3f3bb8b0a65d5b66d2af1e1306444b672 | /setup.py | 3cbac0eeeb0a6b32351a6ae3d9bbf59d0641aef7 | [] | no_license | Moose-cmd/alek.library | 297a6420ea73b6a4eecfe05f3f0428c85d062c23 | 4d81e15b726f1b3177a520d3c3047efd5ac54d13 | refs/heads/master | 2023-04-07T23:55:23.936563 | 2021-04-12T23:25:25 | 2021-04-12T23:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from setuptools import setup
DISTNAME = 'alek'
VERSION = '0.1.0'
DESCRIPTION = "Alek Chase's personal python library"
LONG_DESCRIPTION = """
**alek** is a python library that contains useful
functions for Alek Chase
Available functions:
* Hello
* Delay Print
* Clear
* Get int will be working soon... **
Report any ... | [
"alekmani1@gmail.com"
] | alekmani1@gmail.com |
39549461a1c26617b353b75514751656bd458c33 | 9e8a94404a90d8d11dcd8452a9c1da0a71b36970 | /portfolio/migrations/0002_auto_20210526_1040.py | 9570bfdd6ec50fc6b3571ab637485c40cbbeffac | [] | no_license | bridgecrew-perf7/deployEdit | 509d06a1ef96df88ebe2116d07a8f6da8e470d92 | c9794c92544c89239e3786a27e870fb86411910b | refs/heads/master | 2023-06-03T04:00:41.889812 | 2021-06-15T18:09:28 | 2021-06-15T18:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | # Generated by Django 3.2.2 on 2021-05-26 10:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='portfolio',
name='description',
... | [
"naturalflavor1007@naver.com"
] | naturalflavor1007@naver.com |
b36343e337e7ede3b68a7221786c70619ee858b7 | 1ea7facf372df3d712b755a2d7bbb6ce5072f1ad | /MutiThread/TestThread.py | ba74d08277bd324363872f9c9aaaf269eea128c1 | [] | no_license | chunonesoft/pythonCode | 87bd49849979a6476d3fc72d5710dc66ea9dc08b | 7ec2ab76479fe84706bfba83ef66717ff6d05904 | refs/heads/master | 2021-05-08T05:39:38.077403 | 2017-10-11T04:56:37 | 2017-10-11T04:56:37 | 106,498,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | #coding=utf-8
import threading
from time import ctime,sleep
def music(func):
for i in range(2):
print "I was listening to %s. %s" %(func,ctime())
sleep(1000)
def move(func):
for i in range(2):
print "I was at the %s! %s" %(func,ctime())
sleep(5000)
threads = []
t1 = threading.... | [
"chun_soft@qq.com"
] | chun_soft@qq.com |
a570f27a7c1170f47520d0fd62cc5ef08e71442c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/833679/snippet.py | 4ab198d900965b661dbb57b70023f8d4c2106db6 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,067 | py | #
# HashUtils - Simple functions derivated from standard Python hashlib.
#
__author__ = 'Mauro Baraldi (mauro@visie.com.br)'
__version__ = '0.0.2: February 17, 2011'
import re
import hashlib
from datetime import datetime
class Hash:
"""Common facilities using hashlib standard lib. Algotrithm used in all
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
bf35aa5ab817f1d0dcf49a942c19f45e60b83065 | 30de8c6cc36fb2138020bc3f9f2d0fd69c95afa9 | /Bai 18 Bieu thuc pass.py | d43a2675d7b84ce485d1dc2932e7f05c9b8fce18 | [] | no_license | doimoi9191/python4tuan | 915f8f284c1e3706a1d25b73bee262da070cb5f9 | 27ed3ac5f90681846855037438ae8db6aab2374b | refs/heads/master | 2020-03-09T01:13:56.148527 | 2018-05-18T10:19:31 | 2018-05-18T10:19:31 | 128,508,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
Biểu thức pass dùng để dành chỗ lập trình.
Ví dụ bạn biết chỗ đó phải viết nhiều mã nhưng tại thời điểm này chưa làm kịp
ta sẽ dung pass để đánh dấu vị trí đó
"""
a = float(input("Nhập hệ số a: "))
b = float(input("Nhập hệ số b: "))
if a==0:
pass#ta sẽ làm sau, đang mót ị gần chết
else:
x = -b/a
prin... | [
"doimoi9191@noreply.github.com"
] | doimoi9191@noreply.github.com |
45d53ab9a5a80560123d3ca622a745c0f5be0a35 | 5ce4c0df5a1ec1e948a0e870e17f3e035dcf9ece | /app.py | 9ebaddc5b2e5694d19ee57a0dacb27bc301da1fb | [] | no_license | Estudos1/pythonMingodb | f275f5de9a665e38539893b8c28fc0aa26aaa249 | bece09ae4ec7df60b868fee7f3f84c2b9f6415d0 | refs/heads/main | 2023-06-05T00:57:06.393502 | 2021-06-21T00:57:08 | 2021-06-21T00:57:08 | 378,767,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | from flask import Flask, request, jsonify, Response
from flask_pymongo import PyMongo
from pymongo import message
from werkzeug.security import generate_password_hash, check_password_hash
from bson import json_util
from bson.objectid import ObjectId
from werkzeug.wrappers import response
app = Flask(__name__)
... | [
"noreply@github.com"
] | Estudos1.noreply@github.com |
610a51d5b47b4c57f28128ba5e35a1277cae3338 | d99e2102d4b79c31560b5a799eb8ea0b141a409e | /main.py | 80d992f98604c8ca28ac63cc14877097f9ac1321 | [] | no_license | imosafi/DNN_FC | e806fb53c9e6f46e363a3f18c1cfcb69955531b0 | a70b49106abec90e9064edeaf136245110a007bf | refs/heads/master | 2020-03-17T15:28:20.193449 | 2018-06-16T17:27:00 | 2018-06-16T17:27:00 | 133,712,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import os
import sys
from data_loader import DataLoader
from fc_model import FCClassifierModel
from utils import create_confusion_matrix
def main():
data_loader = DataLoader()
train_set, test_set = data_loader.load_dataset('mnist', input_normalization=False)
model = FCClassifierModel([784, 200, 100, 10],... | [
"itai.mosafi@live.biu.ac.il"
] | itai.mosafi@live.biu.ac.il |
a5ba5bef1c1edc9aa06f3fe87232501307f1a1b2 | c61c9bedba1968bfaf571ac3996b696fc35890a6 | /Chapter16/16-3.py | ce29436d126c588d3560f122a3141296ca60d21e | [] | no_license | ArunRamachandran/ThinkPython-Solutions | 497b3dbdeba1c64924fe1d9aa24204a9ca552c5b | 1a0872efd169e5d39b25134960168e3f09ffdc99 | refs/heads/master | 2020-04-01T10:23:20.255132 | 2014-11-07T17:04:52 | 2014-11-07T17:04:52 | 25,806,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | class Time(object):
''' to represent the time of a day '''
t1 = Time()
t2 = Time()
t1.h = 4
t1.m = 185
t1.s = 0
t2.h = 1
t2.m = 56
t2.s = 0
def add_time(t1,t2):
sum_time = Time()
sum_time.h = t1.h + t2.h
sum_time.m = t1.m + t2.m
sum_time.s = t1.s + t2.s
if sum_time.s > 60:
val = sum_time.s / 60
sum_tim... | [
"arunkramachandran92@gmail.com"
] | arunkramachandran92@gmail.com |
c68df435b51439815275e182cb0540bdcb066468 | cfae3e1fc4df3c32d95979525a8742ccf0222b14 | /src/main_split.py | 9d19997b3bd044444d2ee77d9234561bcf79ca26 | [] | no_license | 1hyx/addresssplit | 221a5c112c5d7b8ebfb99284d39c03b52ef2aa5e | d18069ff642509122c7a6f2b1cde3cb43ff394ac | refs/heads/master | 2020-07-12T15:44:16.061727 | 2019-09-04T08:43:23 | 2019-09-04T08:43:23 | 204,855,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,265 | py | """
author: huyuxin
date: 2019/8/28
用于分隔中国收费系统中常见的地址栏信息的规则分词
Use to Separate the words of detailed address information from China bank system, to get key words of different kinds of stores or companies
数据说明:
Data description:
一般存在的类别分为线上和线下消费记录
records divided by channels : online or offline
nowadays, in China, the... | [
"hyx552211@163.com"
] | hyx552211@163.com |
5e875e702c4451a5fc79d1144425698fbc263c61 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_twining.py | 87ddda74e438d11af092105cfd9569d7a62ef7c6 | [
"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 | 238 | py |
from xai.brain.wordbase.adjectives._twin import _TWIN
#calss header
class _TWINING(_TWIN, ):
def __init__(self,):
_TWIN.__init__(self)
self.name = "TWINING"
self.specie = 'adjectives'
self.basic = "twin"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e5a38c5a9fdd07a080234ac8bd5a5abbc1104502 | c1f64beb26fd6c895eaf80c02d23fc5dca932c9a | /main/kerbspaceHack/swagger_client/models/authority.py | d80a972b040279d02621418e007a4e403ed7c5a5 | [] | no_license | jmanchuck/citymaas | 43766bd3311ce90fda39fa66f30b1f8732c660c1 | c5d5c8916210355aabb8d6163a1e34c96e6a10c4 | refs/heads/master | 2020-09-22T03:14:05.827849 | 2019-12-01T23:55:23 | 2019-12-01T23:55:23 | 225,029,484 | 1 | 2 | null | 2019-12-01T23:55:24 | 2019-11-30T15:09:56 | Python | UTF-8 | Python | false | false | 4,408 | py | # coding: utf-8
"""
Kerbside Curblr Api
API for serving kerbside assets. Data is served in CurbLR format https://github.com/sharedstreets/curblr # noqa: E501
OpenAPI spec version: 1.0.0
Contact: tbd@ford.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
imp... | [
"jjcheung0000@gmail.com"
] | jjcheung0000@gmail.com |
26c120e5190fda44553d068bb9c66537bda7f27a | 1e0d2a2b296d70067fc7dd5d6e3280c53a7ca9b3 | /src/network.py | 0383e69400229cd07fe8859a8f46f3b005b42a4d | [] | no_license | gabr/NeuralNetworkDigits | 564ebdcc2bafba3e04e7a91bfc01f10631beb42d | e0af756f49c5960e29657187e0748f037463ad2a | refs/heads/master | 2021-01-10T11:10:33.298078 | 2015-10-26T09:50:44 | 2015-10-26T09:50:44 | 44,958,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,206 | py | """
network.py
~~~~~~~~~~
A module to implement the stochastic gradient descent learning
algorithm for a feedforward neural network. Gradients are calculated
using backpropagation. Note that I have focused on making the code
simple, easily readable, and easily modifiable. It is not optimized,
and omits many desirab... | [
"arkadiuszgabrys@gmail.com"
] | arkadiuszgabrys@gmail.com |
e354add3beb18f533d7157be7068cbf4b7dd45db | 0b5b699459252996f058c8303a1f7093e7951ba0 | /food_delivery_app/restaurants/filters.py | 1c91e8a329ec67287390dbb43fe190d8aa8fe536 | [
"MIT"
] | permissive | MahmoudFarid/Food-Delivery-App | f145293548949618ae47d81f4ee7c35629fdaf5c | 8411ca48497e7347fe0258b720c2d2a566bb6e88 | refs/heads/master | 2020-04-12T04:40:22.129486 | 2018-12-23T21:52:09 | 2018-12-23T21:52:09 | 162,302,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django_filters import rest_framework as filters
from .models import Order
class OrderFilter(filters.FilterSet):
class Meta:
model = Order
fields = ['customer', 'status']
| [
"mahmoud.farid.94@gmail.com"
] | mahmoud.farid.94@gmail.com |
47052e514f5c555a62a656eb1c3f16105d60d88c | 6eaf8375ac7650d8e0ce12e728456ea16d676a01 | /hiprovider_main/wsgi.py | 41c4d33b1f9d03bbb677b23a25bf6219bdf96755 | [] | no_license | alpaolo/hiprovider | c244f4698b6d956ff65bcc1ef1c1f61893604cdf | 80789e466e95748aed97201831d00907b385260e | refs/heads/master | 2023-03-27T18:49:15.624619 | 2021-03-19T22:01:39 | 2021-03-19T22:01:39 | 336,100,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for hiprovider_main project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"paolo.alberti@clipart.it"
] | paolo.alberti@clipart.it |
0964ca87b1476b689cf1f886a4e21864d6b7bb07 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/functions/deploy/labels_util.py | 5e9da496f8ef33a5e94a3f93ad396421b5bf7ef7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
641071ee885c66f1169b6eb4763120d62232a689 | 87ff3c015865940b53e2faac03b8f40c6ae153c0 | /cleancowdiyadic.py | f6ab043d6ebbe7e5eddb1eb15d3724dae85efd96 | [] | no_license | karimn/Colonialism-Database | d6460a4dcceee1fbce00995673036dcc90c6ad5a | 470a89e190d7aaadde49c9994a31267393a1ca62 | refs/heads/master | 2021-01-23T00:10:07.143778 | 2011-08-17T14:57:08 | 2011-08-17T14:57:08 | 660,145 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/python
import migtools
from django.db.models import Q
from colonialismdb.economics.models import BilateralTradeDataEntry
if __name__ == "__main__":
for bidata in BilateralTradeDataEntry.objects.filter(Q(exports = -9) | Q(imports = -9), Q(source = 3393)):
if bidata.imports == -9:
if bidata.exp... | [
"karimn@bu.edu"
] | karimn@bu.edu |
4374e0f6d09d3fac569ee903abba1a0b69fc1c4a | da7740e0d20dc7dd9775d4a53da7c0f7779834e1 | /MultiPlanarUNet/logging/logger.py | 4147e6a51aeb3f3ead32053006a4c39614f4c56e | [
"MIT"
] | permissive | xiaochengcike/MultiPlanarUNet | ca8fa35a8372b8d107bb16b29018e2413c108075 | 99c73ba2936b63282338cf31fe27086d414d2e62 | refs/heads/master | 2020-04-18T19:25:51.699311 | 2019-01-10T09:39:59 | 2019-01-10T09:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,492 | py | import os
import inspect
from MultiPlanarUNet.utils.decorators import accepts
class Logger(object):
def __init__(self, base_path, print_to_screen=True, active_file=None,
overwrite_existing=False, print_calling_method=True):
self.base_path = os.path.abspath(base_path)
self.path = o... | [
"mathias@perslev.com"
] | mathias@perslev.com |
8c3066bff82b46c81a174a93eb7efe733a51dd55 | 87b1320bcd8f1c1efc68995a1e0f259df41e9c3f | /PythonDjango/Django/BeltReviewer/apps/LoginReg/models.py | 99da55601ed5c057aea2634b11026688d1e3b5ef | [] | no_license | colbehr/DojoAssignments | 52690968e3c7796ea5c81de4a62e8c829131aa3c | 8d4dcc9797e37d8563c1e6272ba8b2f7351c3b48 | refs/heads/master | 2021-01-22T23:26:15.564702 | 2017-07-15T05:28:22 | 2017-07-15T05:28:22 | 85,636,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from django.db import models
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def validateUser(self, postData):
print "__________ validateUser (models.py)___________"
response = {}
... | [
"colbehr@gmail.com"
] | colbehr@gmail.com |
45c917e699a0c7c93ca8e95bc3cab10d8f4ce7dc | 475dfa3b84617602a34b7d49ebafae47b792d08e | /SQL/job09.py | 1a31a219229986aa0d63bbee303319ed0f44f75a | [] | no_license | BrunoSimonDGTL/DGLPython | 168cfbe28389d670d2d298dd171f413d8971da75 | d47ca2b6ae0d098922406a6658ea5f87b3632be2 | refs/heads/main | 2023-04-21T13:35:07.853093 | 2021-04-20T20:36:42 | 2021-04-20T20:36:42 | 358,612,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import mysql.connector
print("connexion")
dbname = "laplateforme"
mydb = mysql.connector.connect(
host="localhost",
user="Bruno",
password="",
database=dbname,
)
mycursor = mydb.cursor()
query = """
SELECT name
FROM job;
"""
mycursor.execute(query)
myresult = mycursor.fetchall()
#job = input("Donne u... | [
"bru.sim.bs@gmail.com"
] | bru.sim.bs@gmail.com |
0637d34c345649b17b190752d77694ce2c4b4bb1 | 57c697ffebe2e9b3f5bd5da8122638152e4d0e9f | /contrib/seeds/makeseeds.py | 4b8d889c83c3bb295de84aab0658b5cb0d5ef45c | [
"MIT"
] | permissive | Globycoin/glbcore | 4039ddb98dec19dadebf8b2d583f27e6c083d9cd | d5dd9b5475915956849658373d8658286a08781b | refs/heads/master | 2020-03-22T20:02:44.733133 | 2018-11-15T00:42:39 | 2018-11-15T00:42:39 | 140,569,343 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 615801
#... | [
"you@example.com"
] | you@example.com |
b02a1a6ec159f73cb3daa2185c99104551f47d45 | e12812df28879cc051c8ca6abe1c1aa07b8bf4dc | /deps/wslay.gyp | 82ee743afa610ed6433829c09d9b3b2526899055 | [] | no_license | lhecker/libnodecc | 714438b63ab4ed090ce60b151da73b9e5c830129 | 655953fad2cc9c20aa9daa0b22af0504bea6ff89 | refs/heads/master | 2021-01-02T08:20:30.073453 | 2015-11-27T14:51:23 | 2015-11-27T14:51:23 | 20,214,879 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 494 | gyp | {
'targets': [
{
'target_name': 'wslay',
'type': 'static_library',
'include_dirs': [ 'wslay/lib/includes' ],
'defines': [
'WSLAY_VERSION=0.1.1',
],
'sources': [
'wslay/lib/wslay_event.c',
'wslay/lib/wslay_frame.c',
'wslay/lib/wslay_net.c',
'wslay/lib/wslay_queue.c',
'wslay/l... | [
"leonard@hecker.io"
] | leonard@hecker.io |
f886c22e0fbc3e0a268193239c53656c2954fcc7 | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/pyobjc-core/Lib/objc/_category.py | acfb9a48e26e38dd13712137c8517c88b442e532 | [
"MIT"
] | permissive | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | __all__ = ['classAddMethod', 'Category']
from _objc import selector, classAddMethods, objc_class, ivar
from types import FunctionType, MethodType
def classAddMethod(cls, name, method):
"""
Add a single method to a class. 'name' is the ObjC selector
"""
if isinstance(method, selector):
sel = s... | [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
506f301480830f167a526326889a863364457fd4 | 181ddb2aedae6f4b63d16e22e36b679c200471a5 | /model/model.py | 93a2160f35c678f22ce85328efc749100a9a1bb0 | [] | no_license | eraander/Analyzing-Trump-Tweets | 6beef8de9ed78e1a2801d226e1d0f3d1d2e394a8 | f9b2420194fa8f812ad0c969fed0bb1adf4c5b62 | refs/heads/master | 2021-12-30T05:35:33.739018 | 2021-12-13T06:26:38 | 2021-12-13T06:26:38 | 217,989,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,785 | py | '''
Name: model.py
COSI 140B
30 Apr 2019
'''
from sklearn.linear_model import LogisticRegression
from sklearn.linear_model import Perceptron
from sklearn.metrics import accuracy_score
from sklearn.svm import SVC
from sklearn.metrics import classification_report
from sklearn.feature_extraction import DictVectorizer
fr... | [
"shaymann@brandeis.edu"
] | shaymann@brandeis.edu |
df8997965cfb07252c3ae7b36952fb4c2e5ce507 | 3e6b9ebde135f7f9fbc98816807d16819ac5d51b | /Homework/hw3/top10.py | 5d9d461217e0da8e9c61da5e2dddc51e2b475165 | [] | no_license | ZepeiZhao/Data-Management | e9d821204a88067e56c5d0be7f295d3ae2f82b9e | 5081d5e7e611bf3cb35f6f0d811c8d48b8644ac8 | refs/heads/master | 2022-07-17T22:28:36.335630 | 2020-05-16T23:01:38 | 2020-05-16T23:01:38 | 264,057,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | import csv
import sys
import datetime
# running time:0.010792 Seconds
# duration time of mysql execution: 0.0062 sec
# using mysql is faster than using python
# The time complexity of my code is o(nm),
# n and m are the length of table(dict) c and cl
# since there are at most two 'for' loop.
# In cltable function, I ... | [
"noreply@github.com"
] | ZepeiZhao.noreply@github.com |
3d03c774171e77126bf51389e5039db694b2f43b | 08ff8a541fb2c71e30924e9de33413f3f1406ea6 | /Clases/CsvConverter.py | a261127315ea2d9b58e5d27a02d94ce43aa0a615 | [] | no_license | mkiro/PythonScrapping | e3fd9291aa6bc2567fd1f859acf44ae9ce3649d7 | 91772e466833dad721e5ab5a746373343232e834 | refs/heads/master | 2023-04-07T18:57:57.555101 | 2021-04-10T18:57:33 | 2021-04-10T18:57:33 | 356,667,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | class CsvConverter(object):
"""description of class"""
| [
"maribel.quiros@redarbor.csccsl.com"
] | maribel.quiros@redarbor.csccsl.com |
a46baff93c270cf4f95319ea20ee6ee192bffbaf | 941bdecc9a2889dded7c3aad579d8f0882423335 | /ideal.py | c87889cc06be4261979e1bb49b7d4f78713899eb | [] | no_license | MaratZakirov/playground | 3dd17ec121972d715de0964ec2d28b34600cb42d | b58dfe046f102b866f1d0606df72ffa53e34dfd7 | refs/heads/master | 2023-02-10T12:00:53.636256 | 2021-01-12T15:26:28 | 2021-01-12T15:26:28 | 269,359,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,550 | py | import numpy as np
import matplotlib.pyplot as plt
from numpy.linalg import norm
np.random.seed(0)
"""
a = np.array([3, 3, 3, 0, 0, 0, 1, 2, 12])
x,y,z = np.unique(a, return_counts=True, return_index=True)
print(x, y, z)
print(np.repeat(x, z))
"""
from ctypes import cdll
import ctypes
import numpy as np
from numpy.ct... | [
"marat61@gmail.com"
] | marat61@gmail.com |
922e9f1c4c745cffd569797c8f29fb34cb230e41 | 6b720d7bd5237ae2d087ed7c2cd360931ecb9c6b | /incident_response/shell_finder-2.0/shellfinder.py | db6219c1b209944962133e9b92dd408ef0946c9f | [] | no_license | mukareste/utils | 4609409d241c2d82a9c29afdec542d3c66e8bd3e | 39ac095ac747453018590f002134c8430e272a80 | refs/heads/master | 2020-05-17T04:58:43.454412 | 2013-12-03T08:03:20 | 2013-12-03T08:03:20 | 6,629,176 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | #!/usr/bin/env python
from sfutils.helpers.GenOps import *
from sfutils.scanner.Scanner import *
import time
from datetime import datetime
config_file = 'shellfinder.ini'
def main():
""" The main func """
operations = GenOps()
finder = SearchShells()
strings_file, domains_file, report_file, legits, ... | [
"mitchell@tufala.net"
] | mitchell@tufala.net |
cffd4e5f3fa1d886af2822d7b6c077cd4c119148 | 9ecb0245c7b2a35a58e6a16aebcb9b1bf049f78d | /E_Dict/dictionary/urls.py | 2b8c5882d531c2bfc9a654003a496cc3955aec23 | [] | no_license | roshan-ican/english-dictionary | b82e34d4e28075408606acb24d01be0dce5cc1c1 | 59f684612c886e92dd77140a27de54b003c5a3c9 | refs/heads/master | 2023-04-20T07:22:43.004307 | 2021-05-20T15:36:35 | 2021-05-20T15:36:35 | 369,256,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('word', views.word, name='word')
] | [
"roshan-ican"
] | roshan-ican |
0d71d3a4c0162b63e70418d28879460cc7283f4f | 591fb0d8cd5abc0d0407cb60959e12d95f3fd33d | /3.Kod_Graya.py | 6134f670f63a87959824e4b330d606586d10d526 | [] | no_license | macmro7/Algorytmy_kombinatoryczne | 8bace1f877c6d8559328f39ca4664e0b2c1daac1 | 6e9ffc55293894bf31c672b4397467d4df1140e6 | refs/heads/main | 2023-05-06T04:48:35.206834 | 2021-05-18T20:37:55 | 2021-05-18T20:37:55 | 368,659,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | #algorytm generujący wszystkie podzbiory zbioru {1, . . . , n} w porządku minimalnych zmian (Graya), wykorzystujący wagi Hamminga
def gray(n):
A = [0] * n
B = []
print(B)
while True:
B = []
sum = 0
for i in A:
sum += i
if sum % 2 == 0:
A[-1] = ... | [
"noreply@github.com"
] | macmro7.noreply@github.com |
0d410418264ad0e178f4ddc38a54ed8162f11dfa | 00d2862c4913bf2a323d43e95f19c1beac67e062 | /Dictionaries/loop_4.py | 7a3a88705ebcef46b79e31fd9621f317320b4afb | [] | no_license | kamonchat26/workshop2 | 671fbf074b7e85dcae9783adfc410bbf1b8f30de | 2e34c0b402797bc2970f89e7d9eaff731af5f845 | refs/heads/master | 2023-03-09T22:20:31.409693 | 2021-02-20T17:05:28 | 2021-02-20T17:05:28 | 328,288,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | thisdict = {"brand": "Ford", "model": "Mutang", "year": 1964}
# ex4
for value in thisdict.values():
print(value) | [
"kamonchat2607@gmail.com"
] | kamonchat2607@gmail.com |
188d763707a1a28e9d548cc56917af50d3116102 | 1134442ea1c776b45ab623991e4bd85b2a2d51a2 | /animals/__init__.py | 16f5b79d0bbe74927f3b92f09e4229da27804926 | [] | no_license | SLLittrell/Python-server | e88292f40f50a03fe77c5c772a650e7b76814b08 | a4884c04431d3c9090561682b60335633077b2ca | refs/heads/main | 2023-04-09T05:27:29.013986 | 2021-04-15T18:54:04 | 2021-04-15T18:54:04 | 355,966,237 | 0 | 0 | null | 2021-04-15T18:54:04 | 2021-04-08T15:47:09 | Python | UTF-8 | Python | false | false | 270 | py | from .request import get_all_animals
from .request import get_single_animal
from .request import get_animals_by_location
from .request import get_animals_by_status
from .request import create_animal
from .request import delete_animal
from .request import update_animal
| [
"stacey.littrell@gmail.com"
] | stacey.littrell@gmail.com |
9deeaaf0a97dccc45a1a17bcb855fc25264c7087 | ad7c1a49202a12cc1651b0d005247c38f9643652 | /Problem043.py | 6417fbf5e57d26934a06f9a8a5d40b097c833d8d | [] | no_license | Akhunrah/Project-Euler | 9816aaaf614b1368e6e5fd28f2a8e7da30f1ee56 | 979515aa743d4b033c89a20e2d6d2f197955ab65 | refs/heads/master | 2021-01-13T00:46:04.225488 | 2016-02-26T19:01:47 | 2016-02-26T19:01:47 | 52,624,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import itertools
def fitsPattern(perm):
divisors = [2,3,5,7,11,13,17]
for i in range(1,8):
numString = ''.join([perm[i],perm[i+1],perm[i+2]])
number = int(numString)
divisor = divisors[i-1]
if number%divisor !=0:
return False
return True
... | [
"Brendan.Bulthuis@gmail.com"
] | Brendan.Bulthuis@gmail.com |
68ab3b2e8cdb47c37425eeb7c53f64f7351ba1df | c09cdcc83c6d58df3a3619a9a50432d2120d477f | /print_me.py | 11519d4157b30ce88a3fb8010d2c4278db30b582 | [] | no_license | ZSchweyk/Ex-5-Kivy-UI | fa658a844cd8ebecc432c6470fe809565fd65a80 | 9c6284de1809498c6e7f8e2112999c88d1edc2c9 | refs/heads/main | 2023-08-21T05:37:44.337554 | 2021-10-07T20:59:55 | 2021-10-07T20:59:55 | 402,115,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | import os
result = os.system("cat print_me.py")
print(str(result)[:-1]) | [
"zeynschweyk@dpengineering.org"
] | zeynschweyk@dpengineering.org |
c5f0f43335bb7eee33c85bf0f6b602d9f2ade59a | 69ef463375205f06261460a8f3c73895402856d2 | /command_line_demo.py | 4741c5beebca1fe493bd96bf493ed1681b1e081d | [] | no_license | ScazLab/AT-POMDP | fe5b416772fe020fd1cf970e89f46d6c4a807e99 | f97ffaa99c7b09ee52e6f5b0482e55ce64df07e4 | refs/heads/master | 2020-04-05T05:33:39.912945 | 2018-12-17T17:53:57 | 2018-12-17T17:53:57 | 156,600,793 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,975 | py | import sys
import json
import numpy as np
from task_models.lib.pomdp import POMDP, GraphPolicyBeliefRunner
from pomdp_setup_reward_transition_matrices import *
from pomdp_setup_observation_matrices import *
def test_command_line_sequence(param_file):
#read in params
with open(param_file) as data_file:
... | [
"aditiramachandran@gmail.com"
] | aditiramachandran@gmail.com |
471a3f4be2a981c0438a08995be929dfe49177bf | 75882e6c45faa15672fa2a7dc2fe0cf5d0ca1296 | /Project_edge-v01.py | a65c7425d8246081cd50cb676d264f10ba6d3ad7 | [] | no_license | fosdick/map-gen | d2010449a412dbb62fbc9f183dee0e866d05294e | f81b42c3219e31c4a5c38b8b5898d52ec2bb97c8 | refs/heads/master | 2020-06-20T07:54:05.548593 | 2019-07-15T19:02:59 | 2019-07-15T19:02:59 | 197,050,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,006 | py | ##master plan generator
##jarvis fosdick 10-28-05
import math, Image, ImageDraw, random, cmath, os
wi = 320
hi = 108
xsc = 3
ysc = 3
s_name = 'fin_plan_003.tif'
scr = Image.new('RGB',(wi,hi),(0,0,0))
base = Image.open('h:/c_bak/la446/project/landuse/__site-area.tif')
ebldgs = Image.open('h:/c_bak/la44... | [
"noreply@github.com"
] | fosdick.noreply@github.com |
6d0ee70b3304e74e9b3ce46f73f5797a5ccc3185 | 3c10a95924f3c9a07a28ee9919c4c1424e4a27da | /lab-1-2-answer/PlusFirstListener.py | 6443fd381326f67f247d17504b23545118efd6b6 | [] | no_license | cyh-ustc/PB15111656 | 5bcec5e1a53b8bb78c49817c75c814ee22594f3e | 37d1649f82c49fe1d959ce28bf5301e71827571a | refs/heads/master | 2021-08-30T10:02:49.975608 | 2017-12-17T11:22:30 | 2017-12-17T11:22:30 | 104,077,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | # Generated from PlusFirst.g4 by ANTLR 4.7
from antlr4 import *
if __name__ is not None and "." in __name__:
from .PlusFirstParser import PlusFirstParser
else:
from PlusFirstParser import PlusFirstParser
# This class defines a complete listener for a parse tree produced by PlusFirstParser.
class PlusFirstListe... | [
"cyh88888@mail.ustc.edu.cn"
] | cyh88888@mail.ustc.edu.cn |
46a07a08a329faf72677b4ffcea537a2592aa299 | 963d3d12f1f4bef84c1723f6ff84bcd8df1c5c28 | /institute_master/urls.py | c7c51edfe8af1adf7ae202b2b2dca6f4604771fd | [] | no_license | raghu4033/kalaveethi | 1aa287b2b124fc3904a31068abb2ca6e2c3ea3d5 | 698a798461798eca5851737478ea3957b31ed3d4 | refs/heads/master | 2023-01-19T23:29:18.731126 | 2020-11-27T08:27:48 | 2020-11-27T08:27:48 | 310,601,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | """institute_master URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cl... | [
"harshadsatasiya100@gmail.com"
] | harshadsatasiya100@gmail.com |
ab81aec92b4137221d359ec9b7ddacf88e47a00b | 81e008b746f89d144066ee5589fafa370f37e5a5 | /1005.py | 8bf880a472d0444a295f1fb678435685f4c44eb9 | [] | no_license | osmarsalesjr/SolucoesUriOnlineJudgeEmPython3 | 5c43fb37608ff3d8ff042d94e6b897f4b1d6afb9 | 5de3fa39483fd4ff409efa5981e65daba7744809 | refs/heads/master | 2021-01-01T06:40:51.938732 | 2017-08-30T21:46:39 | 2017-08-30T21:46:39 | 97,482,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py |
def main():
a = float(input())
b = float(input())
media = ((a * 3.5) + (b * 7.5)) / 11
print("MEDIA = %.5f" % media)
if __name__ == '__main__':
main() | [
"osmarsalesjr@gmail.com"
] | osmarsalesjr@gmail.com |
ac492aaff24db73e4bcdf97093239025e9388ee9 | 0e063d2614f1c156fd4d180520487905c2e387b5 | /app/core/management/commands/wait_for_db.py | 74ddae437a87be914405f4484bdba60360006aeb | [
"MIT"
] | permissive | ranman034/recipe-app-api | 75a70971ac1defcd81ecb14c60b4ed82efe401a2 | 5c4cda9c50012b66cb74b353cca36e09a8971c80 | refs/heads/master | 2021-04-07T12:27:57.423470 | 2020-04-04T23:44:14 | 2020-04-04T23:44:14 | 248,675,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | """Wait for db command file"""
import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
... | [
"ranman034@gmail.com"
] | ranman034@gmail.com |
23ab00fb5704520dc6bd99fabd951f3fdff77f8c | b9a9ebcafb0dd0921ef6409618b15d7d95cce998 | /python3_learning/operators.py | 799832c4306968e3d700d64b3c2e03283a6007cf | [] | no_license | wickyou23/python_learning | 16f52ba3e0124f9699d20c3f949dfa00fe667194 | 7678d47b9910cb68c9e80d1c4b7daf65d5d4f77e | refs/heads/main | 2023-02-18T20:07:03.715764 | 2021-01-22T08:17:02 | 2021-01-22T08:17:02 | 331,880,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #####Python operators
# x1 = 3/2 #float div
# x2 = 3//2 #interger div
# x3 = 3**2
# x4 = 6%2
# print(x1, x2, x3, x4)
#####Operator Precedence
# x5 = 1+3*2
# print(x5)
#####Augmented Assignment Operator
# x6 = 1
# x6 += 1
# print(x6) | [
"thangphung@homatechs.com"
] | thangphung@homatechs.com |
594f7ee6ba623887c47dbde85e653e5183136971 | f9886d2b57d92186773d73f59dc0a0e9759b8944 | /04_bigdata/02_Standardization_Analysis/2.Excel/10_excel_column_by_name_all_worksheets.py | c9fc988e32e973138146a52d7b0e7546d7aca05f | [] | no_license | Meengkko/bigdata_python2019 | 14bab0da490bd36c693f50b5d924e27f4a8e02ba | a28e964ab7cefe612041830c7b1c960f92c42ad5 | refs/heads/master | 2022-12-12T15:51:21.448923 | 2019-11-08T03:50:15 | 2019-11-08T03:50:15 | 195,142,241 | 0 | 0 | null | 2022-04-22T22:37:59 | 2019-07-04T00:17:18 | HTML | UTF-8 | Python | false | false | 1,894 | py | # 목적: 열의 인덱스 값을 사용하여 특정 열 선택하기
# 라이브러리 호출
import sys
from datetime import date
from xlrd import open_workbook, xldate_as_tuple
from xlwt import Workbook
# 시스템 인자로 인풋/아웃풋 설정
input_file = sys.argv[1] # sales_2013.xlsx
output_file = sys.argv[2] # output_files/10_output_basic.xls
# 워크북클래스, 시트 이름 설정
output_workbook = ... | [
"you@ddd.com"
] | you@ddd.com |
2bf6c9b4565b482f6f3bf591dff52b720de3c933 | 3471dc6d48ba54c7f215148d9a37289d5ace426f | /settings.py | 3ed6dbc9b03a05b0564b5143cc69949af2504203 | [] | no_license | bigguozi/AlienInvasion | a173130d141afd39e63a23b7bc3bff644e79e74c | 350d3e20854d60e81a15306b6fbe070f7c6d3071 | refs/heads/master | 2020-03-15T10:36:42.791491 | 2018-05-04T07:53:28 | 2018-05-04T07:53:28 | 132,102,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | import pygame
import math
class Settings():
"""存储项目中设置的类"""
def __init__(self):
self.screen_width = 1280
self.screen_height = 960
self.bg_color = (230,230,230)
self.enemy_num = 8
self.score = 0
self.bullet_num = 10
self.shot_max_num = 3
... | [
"sunzhengyuan@qq.com"
] | sunzhengyuan@qq.com |
3d21736f1f555dbda1de1de0359172517d5941ef | abca5285baf353f2296aae2ed5e040c89b9019e3 | /auth/tests/__init__.py | decf1a2e36ea8ed3e7b453181c05bef27750ddf1 | [] | no_license | alekLukanen/Cybersecurity_authenticationViaDB | b73f14a12a76f935b5812094d79989d58e511898 | eda76ecfee22faa3f2cb63d61e1c5e90d430319f | refs/heads/master | 2022-12-10T10:33:22.404564 | 2019-04-12T21:47:19 | 2019-04-12T21:47:19 | 179,351,987 | 0 | 0 | null | 2022-04-22T21:05:42 | 2019-04-03T18:59:24 | Python | UTF-8 | Python | false | false | 12 | py | import comms | [
"alukanen@icloud.com"
] | alukanen@icloud.com |
254cbcb490b5f78744401d276bf2b8db5c0150b2 | 123869c3d22fa3512653c9ff4bbe1692e21d11f4 | /CS320/hw2/interpret.py | 4d21df039deb2840431a780c3b00f668a159f6f3 | [] | no_license | Pgomes94/School | 3b915bfeec397688f8dd8ccaf3dee2b405d1e865 | da5344be0efe3e26d7f6d2dca386fc834c3a9357 | refs/heads/master | 2021-03-24T12:16:52.719193 | 2016-07-30T03:57:47 | 2016-07-30T03:57:47 | 46,447,077 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,015 | py | from math import log, floor
import re
import parse
def tokenize(terminals, characters):
terminals = [re.escape(t) for t in terminals]
terminals = '|'.join(terminals)
terminals = '(' + terminals + ')'
tokens = [t for t in re.split(terminals, characters)]
return [t for t in tokens if not t... | [
"pgomes94@137-21-41-155-wireles1x.bu.edu"
] | pgomes94@137-21-41-155-wireles1x.bu.edu |
cf78d60fd3af2bcc76145207d4dd89cda7938994 | 13710f5fff99f4225956b705bb81b7055f119b7c | /homework1-1.py | 235731744a6e018d3c389d8aa58dfb045e0f5a31 | [] | no_license | QzP-QD/UAI_homework | a94f6a6176a29bdd6b4b56ce8fca52f2fd0728ca | 860b0b74f0e928405a98095c067d86cb6dfc6d2d | refs/heads/master | 2023-01-14T08:34:38.908896 | 2020-11-16T13:30:19 | 2020-11-16T13:30:19 | 311,895,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | #画出云模型点阵图和收敛曲线(动态)————He在小于En/3附近有效果
import numpy as np
import matplotlib.pyplot as plt
from time import time
def plot_cloud_model(Ex, En, He, n, num, color=''):
# Ex = 0 # 期望
# En = 1 # 熵
# He = 0.1 # 超熵
# n = 500 # 云滴个数
Y = np.zeros((1, n))
np.random.seed(int(time()))
X... | [
"qzp332@bupt.edu.cn"
] | qzp332@bupt.edu.cn |
ebc12958117ea6b33a4abf6238daca974964b779 | 470f785edde1513341434a8e0bd641bf84341925 | /src/MetadataDbLinker/monkey_patcher.py | 9ee0ec384b0784b5f4ce01931d7f2ec44295aa27 | [] | no_license | Septima/qgis-metadatafunctionality | 6d5a5213e146c5cbeb4cf070b26bcfa66b907357 | c7ec805a54b00eceb610e61d624c66e4877dee6a | refs/heads/master | 2021-05-01T00:26:06.527219 | 2020-05-15T11:21:47 | 2020-05-15T11:21:47 | 55,409,107 | 3 | 2 | null | 2020-05-15T11:21:49 | 2016-04-04T12:23:23 | Python | UTF-8 | Python | false | false | 2,602 | py | # ----------------------------------------------------------------
# Monkey patch the HTML generator for the db manager
# ----------------------------------------------------------------
# http://blog.dscpl.com.au/2015/03/safely-applying-monkey-patches-in-python.html
# https://pypi.python.org/pypi/wrapt
# from db_ma... | [
"bs@metascapes.org"
] | bs@metascapes.org |
e831918416256c25927fb1be5c435b8555f05dc6 | 577a40ff1c84d28b88a9ade84d265587d28ed2a3 | /0707/02.py | 1c05cbec1dfbd4eeaecf48ec375bcfb73a53d48c | [] | no_license | bosl95/MachineLearning_Note | b167c182fcf5186f6466b8b062cde83b076b0b04 | 934714c5a62e4864f2b5338153c3aaeb3363abe9 | refs/heads/master | 2022-12-06T20:58:20.457567 | 2020-09-05T16:18:11 | 2020-09-05T16:18:11 | 279,835,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import struct
name = 'train'
maxdata = 1000
path = 'mnist/'
lbl_f = open(path + name + '-labels-idx1-ubyte', 'rb') # 학습정답파일. 바이너리.
img_f = open(path + name + '-images-idx3-ubyte', 'rb')
csv_f = open(path + name + '.csv', 'w', encoding='utf-8')
mag, lbl_count = struct.unpack('>II', lbl_f.read(8)) # 레이블파일에서 매직넘버와 개수를... | [
"bosl95@naver.com"
] | bosl95@naver.com |
369183498068e8e4659aa370fd0efa60b8a6ebd1 | 72316a1d1a2e0358486d50aeecbac8219ccdf092 | /ietf/bin/send-milestone-reminders | 9ed5d254f74bbac1e2488cb1549dcb81cb5f4510 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | algby/ietfdb | 363541941bd6e806bed70891bed4c7f47c9f0539 | 9ff37e43abbecac873c0362b088a6d9c16f6eed2 | refs/heads/master | 2021-01-16T18:57:50.100055 | 2014-09-29T21:16:55 | 2014-09-29T21:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | #!/usr/bin/env python
#
# This script will send various milestone reminders. It's supposed to
# be run daily, and will then send reminders weekly/monthly as
# appropriate.
import datetime, os
import syslog
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ietf.settings")
syslog.openlog(os.path.basename(__file__), sys... | [
"henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0"
] | henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0 | |
8d3790bbab25bdfb53a435740b4fd7b48ae7f666 | b0e438a81a81593cf73d36d36eb618dc165ff611 | /IISY/iisy_landing/admin.py | af5a259a9a4a2d2d12086b542cb3a1b1198cdc5a | [] | no_license | maxwesterback/public-iisy | 51115934343b4a0b20c201b83129d73fc0a9b052 | b4848dad54963e7fbc8ccef73733bc07c1880312 | refs/heads/master | 2023-08-11T09:08:08.053625 | 2021-09-22T11:50:14 | 2021-09-22T11:50:14 | 401,070,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,809 | py | from django.contrib import admin
from .models import Department
from .models import Entity
from .models import Ticket
from .models import EntityType
from .models import Room
import qrcode
from os import path
from PIL import Image, ImageDraw, ImageFont
import os
import tempfile
import PIL
from django.http import HttpRe... | [
"max.westerback@abo.fi"
] | max.westerback@abo.fi |
2e88ae332259463a4ea2490adb3812b96ea469c8 | 96c40683d019477450394a791054657860051e44 | /projects/陈健/python/homework.py | 5261e7251907af7b128aa3a203ecf97725d195b3 | [] | no_license | HduiOSClub/HduiOSClub | 5bf826ddd05ce092b7c8f15a448b9396b7621772 | 41e59454317242a6c010cca0719c358f36f3e4c0 | refs/heads/master | 2021-08-24T11:08:00.333251 | 2017-11-29T06:19:57 | 2017-11-29T06:19:57 | 109,074,791 | 0 | 11 | null | 2017-12-09T12:27:30 | 2017-11-01T02:07:19 | Python | UTF-8 | Python | false | false | 130 | py | import requests
params={'name':'Sliver','pwd':'123456'}
r = requests.post("http://holen1210.xyz/login.php",params)
print(r.text)
| [
"sliver@MacBook.local"
] | sliver@MacBook.local |
8d4e01d63f029ae4f6264c3ec8a2b1b51bacfbc6 | 0fa51edef92cd07033e7d03aa441ae54d8edad2e | /news_scrapers/epu_scrapy/spiders/deredactie_spider.py | f7aab7c2ba79b7d300fec7f911dcf631998cb515 | [] | no_license | Datafable/epu-index | d86fc108f7e8591cb949fde78f490fd970654bde | 3f9d24448ff85a8ea6736dbf9da0ec954a3b224b | refs/heads/master | 2020-12-25T18:13:53.397154 | 2018-03-28T09:37:53 | 2018-03-28T09:37:53 | 35,040,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | import scrapy
from scrapy.contrib.spiders import CrawlSpider
from scrapy.exceptions import CloseSpider
from epu_scrapy.items import Article
from datetime import datetime, timedelta
from time import strptime, strftime, mktime
import re
import json
import os
def set_start_urls(settings):
"""
Based on the dates g... | [
"bart.aelterman@gmail.com"
] | bart.aelterman@gmail.com |
29db40847985f5a86f1d5fe53a856d1a1b06325a | 7b34296755a3f908f649a2d4da63e3b165ed79c6 | /1.parkir_sederhana.py | f73e040252e2b3568ac5ed9795216f6907287d78 | [] | no_license | elgaridhomaulana/PythonFundamental-DS | 776edd478e92ba7c2e332fec14955e8679df03cc | afce50ae57464047512b7637737bf9c8784d8db9 | refs/heads/master | 2020-07-08T09:10:19.894479 | 2019-10-07T14:53:35 | 2019-10-07T14:53:35 | 203,628,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | #Konfirmasi Nilai Jam Masuk agar diantara 1-12
check1 = False
while check1 == False:
jam_masuk = input('Jam Masuk Anda (1-12) ')
if jam_masuk.isdigit():
jam_masuk = int(jam_masuk)
if (jam_masuk > 0) and (jam_masuk < 13):
check1 = True
else:
print('Inputan Anda ha... | [
"elgaridhomaulana@gmail.com"
] | elgaridhomaulana@gmail.com |
296b032cb7a9c291dade3733fa18bf133ce9ba65 | 33f9558cb3badaebf0a82994645bdf8a1b67a58e | /members/migrations/0004_auto_20210626_1501.py | 6e826d09f0f28b53471df3aee27413f237b07475 | [] | no_license | taziamoma/TazBB | 96096bf507faf092dcac4284057e337b01caf15f | b6bfa09a205f540af9b38b0e926bedb0835e64d6 | refs/heads/master | 2023-06-17T21:01:56.302457 | 2021-07-03T21:05:15 | 2021-07-03T21:05:15 | 345,442,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.1.7 on 2021-06-26 20:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('members', '0003_auto_20210626_1501'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='image',
... | [
"taziamoma@gmail.com"
] | taziamoma@gmail.com |
3957354d65cb0977ccd774d015a5dc5f18eabc6e | ef00062db6ae7a9d6fde0c7b247f3bacd42c78c8 | /models/saloon.py | c07d666afab6741cc96fcec563b7791f2089ffc9 | [] | no_license | feliciah6/hair-care-app-project-db | 697ecce30cd166416042950d775bf5cb02491077 | ecc915c5e0d682fdc7118a6211e5fd1be9d36a7a | refs/heads/master | 2020-04-08T15:47:51.572363 | 2018-11-28T11:35:57 | 2018-11-28T11:35:57 | 159,492,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from peewee import (Model, CharField,TextField, SqliteDatabase, IntegrityError)
import config
DATABASE= config.DATABASE
class Saloon(Model):
name = CharField(max_length=100, unique=True)
business_number = CharField(max_length=100)
opening_time = CharField(max_length=100)
closing_time = CharField(max_l... | [
"feliciahmtoka@gmail.com"
] | feliciahmtoka@gmail.com |
fda9cc328fb86e21aad11a50c0a3bcc5a6313ce2 | bbed71bba2aae9a07b6fa7d3f120c61ce45f0cec | /envFinal/bin/pyrsa-encrypt | 72ed62772d20cc75a1927dcfce8b4c1209d4e549 | [] | no_license | la-ursic/happy-new-reads | 786386e483ed29e77b8b56416a54420ba2798c3b | 8ab95a0d6428b7c93f49921d6229dbbc049c903b | refs/heads/master | 2022-12-13T02:08:19.549173 | 2018-07-11T19:55:11 | 2018-07-11T19:55:11 | 113,936,290 | 0 | 1 | null | 2022-12-07T23:48:41 | 2017-12-12T03:02:27 | Python | UTF-8 | Python | false | false | 300 | #!/Users/marioalbertogalindovalero/Documents/Batch17RojaHNRyMas/happy-new-reads/envFinal/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import encrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt())
| [
"mariogalindo89@gmail.com"
] | mariogalindo89@gmail.com | |
7c5cb06f6368b90e660e8949c002bb5ac0fba60f | d23e182c1b790cbddbb1b5107f65a505b77f864c | /files.py | 0daf981dc42793f8bcbb414bff2354ff1a20d8ff | [] | no_license | orkarma/Python-crash-coarse-refresher | 1fed90343bd88215a1cd39c1f9a43ba8d1187819 | 2447ae8d4f65373e991cc457e8bbb1d5acee61bd | refs/heads/master | 2021-06-21T08:48:18.668524 | 2017-08-17T17:51:22 | 2017-08-17T17:51:22 | 100,592,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #open a file
fo = open('test.txt', 'w')
#get some info
print('Name: ', fo.name)
print('is closed: ', fo.closed)
print('opening mode: ', fo.mode)
#write to file
fo.write('i love python')
fo.write(' and javascript.')
#close file
fo.close
#open to append
fo = open('test.txt', 'a')
fo.write(' i also like PHP.')
fo.close
#... | [
"orkarma@me.com"
] | orkarma@me.com |
2ee08687f24add09aece08977904e71776c2ec35 | aa0122b410936cd77dd79e3e9ff0d007ad4807e1 | /musicbot/exceptions.py | f15008d361e3c4f3eacd728edcf9af2c031c99ff | [] | no_license | peanutcorn/Kyunghee-portfolio | 405bf766727b6ddefe06cf4fd639ba0dd71defcb | 8ad9c6d3d5e773df5118fab9704cfb722e547a5b | refs/heads/master | 2022-12-30T21:11:25.772148 | 2020-10-12T04:40:43 | 2020-10-12T04:40:43 | 299,931,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import shutil
import textwrap
class MusicbotException(Exception):
def __init__(self, message, *, expire_in=0):
super().__init__(message)
self._message = message
self.expire_in = expire_in
@property
def message(self):
return self._message
@property
def message_no_fo... | [
"bamtoto12@daum.net"
] | bamtoto12@daum.net |
fd5aff6a2751058553ded48699d43609293441fd | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/Wooseok J/lesson01/assignment/inventory_management/market_prices.py | 14bc8cc95c2ef01edf3b007859d5f427ba771cc8 | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 185 | py | #!/usr/bin/env python3
# pylint: disable=C0111
# pylint: disable=W0613
def get_latest_price(item_code):
"""
doc string
"""
return 24
return item_code
| [
"noreply@github.com"
] | UWPCE-PythonCert-ClassRepos.noreply@github.com |
45585b168e7f39155dc61008a1d2d7b0e980cf38 | 5f38989326b66309a3a93d8300137b76eb273ddf | /src/train.py | 20c659a47540f1edd949fd30cda65ebfc266551e | [] | no_license | MaoXianXin/convolution-network-natural-scenes | c9ec06fe4c093460c17ff24dada7b0de0009666b | c2d6ad2db09e9325ba2418d16ff40e43a94c5516 | refs/heads/main | 2023-02-16T23:02:36.428524 | 2021-01-14T05:50:40 | 2021-01-14T05:50:40 | 327,226,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,836 | py | import os
import time
import tensorflow as tf
import pandas as pd
import matplotlib.pyplot as plt
from tensorflow.keras.models import save_model
from tensorflow.keras.layers import BatchNormalization
from nets.conv_net import ConvModel
from utils.data_generator import train_val_generator
from utils.image_plo... | [
"qq1044467857@gmail.com"
] | qq1044467857@gmail.com |
ea386863fc4bcc4650983431b032e9c25ddd69a7 | 8ca2c5b9673c9bf9a7b6033ffc7b3aea7008ca91 | /src/gdata/finance/__init__.py | f207b212756b50e71075be803fb53ec064e8dcbe | [
"Apache-2.0"
] | permissive | hfalcic/google-gdata | c3a10f0260002c3d8a8d44686572ec2002e076e0 | 56d49a9915ce51590a655ec5f8aeef9f65517787 | refs/heads/master | 2021-01-10T22:01:52.403803 | 2015-02-17T15:12:18 | 2015-02-17T15:12:18 | 24,432,292 | 3 | 1 | null | 2014-11-30T07:26:44 | 2014-09-24T20:53:59 | Python | UTF-8 | Python | false | false | 15,423 | py | #!/usr/bin/env python
#
# Copyright (C) 2009 Tan Swee Heng
#
# 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 applicabl... | [
"harvey.falcic@gmail.com"
] | harvey.falcic@gmail.com |
5bf6d8e5da9416d75daaa4e067ae7119ca58f647 | c2c6798ced0db33b2669f11f2434596c61496aef | /fastparquet/__init__.py | 38dec432f8c525661a842f3d0a7c473b1fa9f2e3 | [
"Apache-2.0"
] | permissive | PGryllos/fastparquet | e037b0d5e6387746f82e91fd9b4240962f178308 | 07401c501dbfc55c456052413f0c904483c68b50 | refs/heads/master | 2020-04-04T19:09:27.392744 | 2018-10-24T18:31:06 | 2018-10-24T18:31:06 | 156,194,372 | 0 | 0 | Apache-2.0 | 2018-11-05T09:46:52 | 2018-11-05T09:46:52 | null | UTF-8 | Python | false | false | 424 | py | """parquet - read parquet files."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .thrift_structures import parquet_thrift
from .core import read_thrift
from .writer import write
from . import core, schema, conv... | [
"martin.durant@utoronto.ca"
] | martin.durant@utoronto.ca |
786f5b07ccf24aa451d837abb27f2a99e6de36a7 | e9dc636a1a0e10b4593029f647efaf242bf34b9d | /src/7.3.0-TranferLearning-Sound2Vec-AutoEncoder-LSTM/USCData.py | 3bc871aea035bc56d0bede621af074eabc9735a3 | [] | no_license | mehmetpekmezci/urban_sound_classification | e45c2fb5264029ebaca8d1d1f00adac3d56cb783 | 8b3927ff5430df866f6a42af379e68dc6d5c74d5 | refs/heads/master | 2021-06-09T02:02:32.934628 | 2020-05-10T15:30:59 | 2020-05-10T15:30:59 | 114,467,064 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,946 | py | #!/usr/bin/env python3
from USCHeader import *
class USCData :
def __init__(self, logger):
self.logger = logger
self.script_dir=os.path.dirname(os.path.realpath(__file__))
self.script_name=os.path.basename(self.script_dir)
self.fold_dirs=['fold1','fold2','fold3','fold4','fold5','fold6','fold7','fold8','f... | [
"mehmet.pekmezci.32@gmail.com"
] | mehmet.pekmezci.32@gmail.com |
9123640f03d71649f31c4a6740ba9d1d3eca5caf | 52093359b9fe511dbd1e14347e9c176d56443b20 | /17.Hashmap/Mini Project/project_script_generator.py | b73ceff57833a9e9225bac3f1547f8164f375d7f | [] | no_license | Zioq/Algorithms-and-Data-Structures-With-Python | 3e798d463d46cb850b178f6781f46ba3ef529789 | ab582e67fad9c2620f5a7e19fbfddd44fb910d1a | refs/heads/master | 2023-03-26T06:30:25.539176 | 2021-03-12T22:29:13 | 2021-03-12T22:29:13 | 327,744,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | # Application usage
'''
- In application you will have to load data from persistent memory to working memory as objects.
- Once loaded, you can work with data in these objects and perform operations as necessary
Exmaple)
1. In Database or other data source
2. Load data
3. Save it in data structure like `Dictionary`
4... | [
"jr.roberthan@gmail.com"
] | jr.roberthan@gmail.com |
bfeb3a9e5da77ce573c6c811a17aee6d08cdcd5d | 4caef6b907e4aee94d3e1219e600fda16e19c29d | /build_reconstructor.py | afb07a29bbb2e95a131c7b2f78fcc0c5bf73692c | [] | no_license | jizhihang/cnn_vlm | c61c936a50f72ff933a41d9afbf4d6e88e1c7d30 | ab9f37cf46183fc0a38c8eb4af107a46693b4ab7 | refs/heads/master | 2021-05-30T05:05:35.577435 | 2015-11-27T16:06:35 | 2015-11-27T16:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import sys
import cPickle as pickle
import numpy as np
import theano
import theano.tensor as T
import solvers
def run(
model_name='alexnet',
layer_names=['data', 'conv1', 'conv2', 'conv3', 'conv4', 'conv5'],
layer_target=['conv1', 'conv2', 'conv3', 'conv4', 'conv5'],
image_size=(227, 227),
target_... | [
"hiroharu.kato.1989.10.13@gmail.com"
] | hiroharu.kato.1989.10.13@gmail.com |
e844099f0db3fc837e702a914f731dc05126c3c3 | 68fc7e3b57680ecdd58e16fbe9467480c0d1506a | /python/prnr_analysis.py | 36287fa2f02bf24d883ad0029da9bcb6c0ddc7a8 | [] | no_license | paramitamirza/AudiHackathon2017 | 6ccbe4cc6a6a62d9b84e25ff497daeb66131aea5 | e079505bba391b540302458a0adc3b2fdfee1217 | refs/heads/master | 2021-07-07T15:13:38.234328 | 2017-10-05T14:13:29 | 2017-10-05T14:13:29 | 105,838,667 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import csv
import numpy as np
import pandas as pd
csv = np.genfromtxt('../data/prnr_einzeln.csv',delimiter=";",dtype=None)
pnrdata = csv[1:]
#print (pnrdata)
out = open("../data/prnr_clean.csv", "w")
prfam = {}
i = 1
for row in pnrdata:
prnrstr = row[1]
for cols in prnrstr[2:].decode('UTF-8').split("~3L~"):... | [
"paramita135@gmail.com"
] | paramita135@gmail.com |
65cf126f02d6596aa54439c2ab4cebc29efc5218 | 626dbf669672eccd2e97fb225549615289af34d9 | /users/urls.py | 517f1045dc3192ae62d582e105bbd9eae1fc1497 | [] | no_license | dbwei/relationship | 6a0692c92898f24b6445fa20a2a35da5918e70ff | 0174f2da79a90cbfa2d355d7f62d2730748fd941 | refs/heads/master | 2021-05-14T09:38:52.629179 | 2018-01-08T05:01:33 | 2018-01-08T05:01:33 | 116,328,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.conf.urls import url
from django.contrib.auth.views import login
from . import views
urlpatterns = [
url(r'^login/$', login, {'template_name': 'users/login.html'}, name='login'),
url(r'^logout/$', views.logout_view, name='logout'),
url(r'^register/$', views.register, name='register'),
] | [
"13109592605@163.com"
] | 13109592605@163.com |
edd66ab7bc8def989337f3754c6c61175a5435f5 | dba2cf5de4d2b198465674e90c97fd549071857d | /Others/Netsquid_Lib.py | 01913d10815f70d0636027fb563b699e9e035893 | [] | no_license | h-oll/netsquid-private | 80202023d69562c50ea0d738c08a60537770f766 | a894c7c8b1dfc60e70171493991e9cc4f9ac12d3 | refs/heads/master | 2022-04-29T19:45:50.407566 | 2022-04-24T17:03:27 | 2022-04-24T17:03:27 | 224,158,119 | 1 | 1 | null | 2020-12-08T15:11:57 | 2019-11-26T09:56:25 | Python | UTF-8 | Python | false | false | 12,258 | py | #!/usr/bin/env python
# coding: utf-8
# In[16]:
import numpy as np
import netsquid as ns
from netsquid.qubits.qubitapi import *
'''
function:
Generate a GHZ set with customized length and entangled qubits.
input:
num_qubits: Numbers of qubits in a column.
num_sets: Numbers of qubits in a raw.
output... | [
"liao.chinte@gmail.com"
] | liao.chinte@gmail.com |
8bc28737791931b0e85dcc7d9c3af83166098f3e | 7473bb17319b6ae146e64e575b32f273fcdb838d | /pages/views.py | 1a1ec7985137f939f1307685bc8512453b5f843a | [] | no_license | hyperxpizza/blognasterdyach | fd3ec4764065e53bc088b19e407e32189c4715dd | ce2e9138e04c55036bf37e079cd7036a7eac8739 | refs/heads/master | 2020-08-07T00:49:54.199347 | 2019-10-06T19:06:59 | 2019-10-06T19:06:59 | 213,227,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.shortcuts import render
from .forms import ContactForm
def contact(request):
if request.method == "POST":
form = ContactForm(request.POST)
if form.is_valid():
cd = form.cleaned_data
else:
form = ContactForm()
context = {
'form': form
}
return... | [
"wojtek.frackowski@gmail.com"
] | wojtek.frackowski@gmail.com |
89e9601a52fd5d4f0fb45ca1a91716563f0c1b32 | c3a620d09bd447a38f043449d9ccebc09f5cfb2d | /src/src/profile_project/profiles_api/migrations/0003_auto_20200604_0244.py | cf3110064eb257c6516110296556da0997b6470d | [
"Apache-2.0"
] | permissive | gustavoghp87/django-rest-api | a295391fe3cf5da0d9c79a91290a948efc0c38a7 | 3cdd898c05e68d3e07970865cea2b5ea1a81cbd1 | refs/heads/master | 2022-12-11T13:28:20.240376 | 2020-09-11T06:12:39 | 2020-09-11T06:12:39 | 294,594,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.0.6 on 2020-06-04 02:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('profiles_api', '0002_profilefeeditem'),
]
operations = [
migrations.RenameField(
model_name='profilefeeditem',
old_name='sta... | [
"ghp.2120@gmail.com"
] | ghp.2120@gmail.com |
78038690c1b1ca1682b35350e48977d2ec09e397 | 1da52863c3a4b2538f90a87bbd237444dad5f382 | /sram.py | 0ff3e8f44a96099b89ca45e83b28702c6f4a273d | [
"MIT"
] | permissive | AmyBeisel/SRAM_ASSESSMENT | 8c123a428525f9a43b193578e6113836c3e84d17 | eabb73d5f24476e8628723f00d92529d853309cd | refs/heads/main | 2023-03-27T08:54:12.285466 | 2021-03-31T23:39:25 | 2021-03-31T23:39:25 | 350,150,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py |
import click
import requests
@click.command()
@click.option('--list', is_flag=True, help="will print everything")
@click.option('--bike_id',default=False, help="Enter the id of the bike you want to select")
@click.option('--fw_id', default=False, help="Enter the id of the front wheel you want to select")
@click.opti... | [
"amy.beisel@gmail.com"
] | amy.beisel@gmail.com |
e943a0ec91cac2f2974684df1bc400715a012782 | 0a537a35e48bd35cb3ef2ce5c280f778ba59af1e | /bikeshare.py | 04ed6ab4508338662618ec6ffcd74ab4a865493a | [] | no_license | MideOludoyi/pdsnd_github | 94b4b7bc55a48de8ec34e88671a274be9f296c9e | c09c6703807af608ad2c1907683f93f87d6e0d02 | refs/heads/master | 2023-08-06T04:53:15.359234 | 2021-10-10T14:57:46 | 2021-10-10T14:57:46 | 415,579,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,748 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
Returns:
(str) city - name o... | [
"oludoyimayowa1@gmail.com"
] | oludoyimayowa1@gmail.com |
f9f87f36e42fc639ea3a6e5bfc111d52fdd927b0 | cd6f5bc831396005a16247ad9f24bf375daa7a56 | /01-Lists/4.13_Buffet.py | e01345604192a572529303858a7c71028ad71b92 | [] | no_license | fiolisyafa/CS_ITP | dbdb20a03c9a2f79169676b591d98f18f2801b33 | 55743b5f8dfc3f3c440c346e96e67737801322a6 | refs/heads/master | 2020-03-07T03:03:06.168208 | 2018-03-29T03:49:29 | 2018-03-29T03:49:29 | 127,224,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | buffet = ("rice", "chicken", "vegetables", "soup", "fruits")
print("Original menu:")
for food in buffet:
print(food)
'''
buffet[3] = "candy'
print(buffet)
#The above command got rejected
'''
modified_menu = ("rice", "chicken", "vegetables", "noodle", "fish")
print("\nModified menu:")
for food in modified_menu:
p... | [
"fiolisyaambadar@gmail.com"
] | fiolisyaambadar@gmail.com |
bd89296c0898079758feab706b83a4adb776ee0a | d93423d158ce6d504045a8629ea0adce800fd04d | /src/LinearFunctionApproximation.py | 650b8483f23a5361f52a655ccbd613e174485af4 | [] | no_license | kensk8er/easy21 | 5257bf3cba9594a64ecd6c2c4f0e0f3f128c221d | aba945cf918e317207c651c6166c4885e4b9f30f | refs/heads/master | 2020-12-25T17:45:47.928824 | 2014-03-31T21:11:59 | 2014-03-31T21:11:59 | 21,072,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,823 | py | import pylab
from easy21.environment import step, State
from easy21.plot import plot_linear_value_function
from easy21.policy import epsilon_greedy_linear
from easy21.value import ActionValueLinearApproximation, LinearFunction
from utils.util import *
from easy21 import environment
from collections import defaultdict
i... | [
"kensk8er1017@gmail.com"
] | kensk8er1017@gmail.com |
a61f46b84c958263ddc0fbf1afb882fabef4f54e | 74860c9551646a0a82302a0830abbf576a6b3d7a | /crystal/migrations/0001_initial.py | dfe700c16b3257c669ec889d9353b5e94001e5bd | [] | no_license | windcrystal0513/AR_tree | e4cfd632c0d2d52d9361a64497a8b8c6ae2ca927 | a04fef6502ed33c7b7a8e06746dd597cac27545f | refs/heads/master | 2020-06-11T16:43:54.440237 | 2019-06-27T05:19:19 | 2019-06-27T05:19:19 | 194,027,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Topic',
fields=[
('id', models.AutoField(verbos... | [
"wuyunfeng1234123@163.com"
] | wuyunfeng1234123@163.com |
b599e69f4c61b616f7fa40d598b1d7630d4fb187 | c1b415011dbeb625b5724cf1b78fd9d64f32ac07 | /utilities/valid_hdf5.py | 7dc194d25c72e6c5116662eaef8223e405f249fe | [] | no_license | Sunshine352/nag | 2f07a6152503f9a99d8556915d1c4170034f8d00 | 83564eb4a8b5177660e2f6566dd63faa16f76773 | refs/heads/master | 2020-04-05T10:27:46.501267 | 2018-05-24T11:21:18 | 2018-05-24T11:21:18 | 156,799,774 | 1 | 0 | null | 2018-11-09T02:38:43 | 2018-11-09T02:38:43 | null | UTF-8 | Python | false | false | 1,778 | py | from random import shuffle
import glob
import sys
hdf5_path = 'ilsvrc_valid.hdf5'
img_path = '/data1/nithish/WORK/Resources/ilsvrc_valid/*.png'
addrs = glob.glob(img_path)
train_addrs = addrs[0:int(1.0*len(addrs))]
#valid_list = open('full_valid.txt').readlines()
#for i in xrange(len(valid_list)):
# valid_list[i] = ... | [
"noreply@github.com"
] | Sunshine352.noreply@github.com |
e76e45b22d05ad732edaa7f089f4e8d0a857017d | 4cb06a6674d1dca463d5d9a5f471655d9b38c0a1 | /jwr300/Assignment4/problem1.py | e61f2907e4f20e2d9136300c1f17b9ce1bd4b459 | [] | no_license | nyucusp/gx5003-fall2013 | 1fb98e603d27495704503954f06a800b90303b4b | b7c1e2ddb7540a995037db06ce7273bff30a56cd | refs/heads/master | 2021-01-23T07:03:52.834758 | 2013-12-26T23:52:55 | 2013-12-26T23:52:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | #!/usr/local/bin/python
#Warren Reed
#Principles of Urban Informatics
#Assignment 4, Problem 1
#Connects to MySQL and creates three tables to store the boroughs.csv, zipCodes, and incidents table.
import MySQLdb
import csv
def incidentsToSql(cur,db):
incidents_csv = csv.reader(open('Incidents_grouped_by_Address_... | [
"jkr2110@gmail.com"
] | jkr2110@gmail.com |
cff0bec9aecfd57d0a412db2aab431891bcbd23e | 1d38a0799f8df3639df9e2f295700458abdc1dd4 | /PYTHON/Iniciante/uri-1153-fatorial-simples.py | 881dacce0d5ac30469480aebfe33e1d8d6b1b465 | [] | no_license | wellysonmartins/algoritmos-uri-online-judge | 76df1791b6c8ac7512aa7d2de3a885c5673c9580 | 9f826d797948cb75ec78a2bdc7e91532957620a1 | refs/heads/master | 2020-05-01T07:29:33.155118 | 2019-05-08T14:55:38 | 2019-05-08T14:55:38 | 177,353,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | n = int(input())
fatorial = 1
for i in range(0,n):
fatorial *= (n-i)
print(fatorial) | [
"wellysonmartins@gmail.com"
] | wellysonmartins@gmail.com |
9302771d58194193e03bccb929878b0241536387 | 4112156ee55f0f20a4bf38418d29a7cb30f28d7f | /HelloWorldFlask/TestRestService.py | 0a421b99df680af2a8d680bd0d73bfc4193bd3e2 | [] | no_license | joschindlbeck/pyapps | c6cd80ff55407d9eb140fa6620287a604eaefdb2 | 0ce2658925668ce191424f48709056d8408a9e4f | refs/heads/master | 2021-01-22T02:53:51.712720 | 2017-09-03T16:38:58 | 2017-09-03T16:38:58 | 102,255,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | '''
Created on 03.09.2017
@author: josch
'''
from flask import Flask, jsonify, json
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://wutuser:test@localhost/wut4lunch'
db = SQLAlchemy(app)
@app.route("/testrestservice", methods=... | [
"josch@VRONINOTEBOOK"
] | josch@VRONINOTEBOOK |
014c26d3917bb754701cda955118a94a740e21d1 | 78ee4480af76322573bce3a65a30c1439c07af2e | /orders/migrations/0003_remove_dishes_quantity.py | 0aa98057b82f3c6450a40e79d4dea6beadd61d18 | [] | no_license | queensaikia/Canteen_services | 68a89a401ff5f44816e9dcf061b51c1efdb9f9fa | 574f3ff388a7eb511f1368e56021ad5a8715f1bf | refs/heads/master | 2020-04-16T22:45:29.735571 | 2020-01-11T10:55:51 | 2020-01-11T10:55:51 | 162,305,400 | 0 | 0 | null | 2018-12-20T15:35:05 | 2018-12-18T15:05:34 | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 2.1.4 on 2019-01-05 12:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('orders', '0002_dishes_quantity'),
]
operations = [
migrations.RemoveField(
model_name='dishes',
name='quantity',
),
... | [
"queensaikia98@gmail.com"
] | queensaikia98@gmail.com |
21b157508f72a6cad97e88415f909c29e537211a | e077e9a91f5afdbe01977490d23c20d1133c57d0 | /module_week/ex_data_structures/enum/enum_complex_values.py | f3d9856ebdc5dc951160438ec14527b65153b0d3 | [] | no_license | kai0200/PythonST | a645239114c998ab47acc612ab47b6ccd711cfe7 | 64b0424c88d2b026e1881736a94e550ebc7416a6 | refs/heads/master | 2021-01-23T11:49:36.554333 | 2020-08-11T10:01:48 | 2020-08-11T10:01:48 | 14,545,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | #!/usr/bin/env python3
# encoding: utf-8
import enum
class BugStatus(enum.Enum):
new = {
'num': 7,
'transitions': [
'incomplete',
'invalid',
'wont_fix',
'in_progress',
],
}
incomplete = {
'num': 6,
'transitions': ['ne... | [
"wangkai@wangkaideMacBook-Pro.local"
] | wangkai@wangkaideMacBook-Pro.local |
36411eb463c030ab4360eebfa9af78fa62396e0f | 5e434bcedb9cfd14b26d7c8a2dc6ccdf132a8b83 | /test/test.py | 04a91fd7df5dae6a21c2e573a7b2a1b86f8f9d36 | [
"MIT"
] | permissive | mindw00rk/ccxt | 5884e73ac871e66bdfd0e86f6634e141b008b967 | b2f9ee175ea93d70b3699081fd84285f63254fec | refs/heads/master | 2021-07-08T20:12:30.199246 | 2017-09-28T06:58:45 | 2017-09-28T06:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,764 | py | # -*- coding: utf-8 -*-
import argparse
import os
import sys
import json
import time
from os import _exit
from traceback import format_tb
# ------------------------------------------------------------------------------
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(root)
# ------... | [
"igor.kroitor@gmail.com"
] | igor.kroitor@gmail.com |
0a42aef527397154efb2c2a9566601d890371e10 | 2492d9380852ee3d23ec2613a9fd4a7b44f3f70a | /COVID19/corona/data/sars.py | de9c0a257259279885f043401aa4a63b61b29354 | [
"Apache-2.0"
] | permissive | testpilot0/covid | 47dfe44a515e9fd51db8f1290a94246bd6b0d9c4 | c0787e0a5a70d829b69c945fdcdfcd073a30d4d7 | refs/heads/master | 2022-12-24T20:10:35.164587 | 2020-09-30T03:58:21 | 2020-09-30T03:58:21 | 266,587,314 | 2 | 2 | Apache-2.0 | 2020-08-27T20:15:27 | 2020-05-24T17:07:15 | Jupyter Notebook | UTF-8 | Python | false | false | 37,780 | py | sars = """
1 atattaggtt tttacctacc caggaaaagc caaccaacct cgatctcttg tagatctgtt
61 ctctaaacga actttaaaat ctgtgtagct gtcgctcggc tgcatgccta gtgcacctac
121 gcagtataaa caataataaa ttttactgtc gttgacaaga aacgagtaac tcgtccctct
181 tctgcagact gcttacggtt tcgtccgtgt tgcagtcgat catcagcata cctaggtttc
... | [
"noreply@github.com"
] | testpilot0.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.