blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfd2f57ade3b18556861fc73ac6feeca514adc38 | e4d39c514c8f555a706d4d293b91e253a23614aa | /manage.py | 572ea681f23fba520e85784690e8183a78c12971 | [] | no_license | shubhamjain31/AskForum | ddda79528026ed027e2268b99cfc5cb9ea412c54 | f234f9ad1fb8d55520ced6987b1aec5d74fc7c08 | refs/heads/main | 2023-03-10T21:41:25.559793 | 2021-02-26T16:52:58 | 2021-02-26T16:52:58 | 309,034,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AskForum.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"sj27754@gmail.com"
] | sj27754@gmail.com |
35070cb9c1e4ec9c2da3a592b991588268d723ec | 5203a064da7c7155402421ef471c83e21cebac18 | /labtronyxgui/application/include/ResourcePages.py | 63b5f73624182ac9d9d0aaf9dba324b9a6bb2844 | [
"MIT"
] | permissive | protonyx/labtronyx-gui | 43c6c1a81c7d0ee9adbf22072e5d10296c353e8a | c2c1ad2005259006a64053acd2d3813b62e187f1 | refs/heads/master | 2021-01-18T00:26:49.063545 | 2015-10-14T21:41:16 | 2015-10-14T21:41:16 | 37,354,078 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,893 | py | import Tkinter as Tk
import tkMessageBox
class a_AppletSelector(Tk.Toplevel):
def __init__(self, master, applets, cb_func):
Tk.Toplevel.__init__(self, master, padx=2, pady=2)
# Store reference to parent window callback function
self.cb_func = cb_func
self.applet = Tk.S... | [
"protonyx@users.noreply.github.com"
] | protonyx@users.noreply.github.com |
10d3c353d4005396de5db390f25d1386081f9e95 | 2c979dd16516a76ce541b30b75cf790438ad25a0 | /starter_repo/mysite/myapp/migrations/0002_article.py | 037de5954de6085bc4ce21e1bdb13b451e0f5b14 | [
"MIT"
] | permissive | Krebrov001/web-dev-project | 717f19d8ccebaeed8f5b7847c011f994517cadec | 682c91f8301f89eab09170624f02f47458249b23 | refs/heads/master | 2022-01-08T06:18:01.164484 | 2019-05-21T02:58:15 | 2019-05-21T02:58:15 | 187,594,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # Generated by Django 2.1.7 on 2019-04-22 01:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', mo... | [
"noreply@github.com"
] | Krebrov001.noreply@github.com |
f4440770a165003e26a1fe82ab270ff926180faa | b822fd48d109c59a07cfef5196888c3f22c792b3 | /aae/train.py | 0c434501c97952da300c1a76736c15a79a31d1cb | [
"MIT"
] | permissive | cupOJoseph/drawlikebobross | 2e179f24bc59303be2782d95880235c57995a460 | e4c33745c605d17ea6b9e5bea3cf339eb875a58a | refs/heads/master | 2022-05-05T12:18:45.504161 | 2018-07-05T02:21:40 | 2018-07-05T02:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import os
import sys
import argparse
import torch
import torchvision.transforms as transforms
sys.path.append(os.path.dirname(__file__))
from trainer import gan_trainer
from loader import BobRossDataset
# Params
parser = argparse.ArgumentParser(description='GAN trainer')
parser.add_argument('--epoch', default=500, ... | [
"kendricktan0814@gmail.com"
] | kendricktan0814@gmail.com |
c45a3d1399c1798d5ef9cccc8a359ce12f0a9130 | 3c72927bffb799ce245d0b632fb3e10de2ab35d5 | /RightHandedTri.py | a6d41de1c045ddf72b5b6b3605399a2d77d31778 | [] | no_license | thatothupudi/Katas | 315072e4aed3b899b4332ab220ef4c5c2bb33308 | cd9e8b87da816356a9339d49f6bd05cf2075dee8 | refs/heads/master | 2020-12-29T13:24:11.795663 | 2020-02-13T08:09:12 | 2020-02-13T08:09:12 | 238,621,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def RightHandTri(num):
return_result = ''
for column in range(num):
for row in range(column + 1):
print('#', end = '')
print()
return return_result
triangle1_result = RightHandTri(2)
triangle2_result = RightHandTri(4)
print(triangle1_result)
print(triangle2_result)
| [
"thato.thupudi@umuzi.org"
] | thato.thupudi@umuzi.org |
8076ceb3309f8f6f0a5777d2c282759f86d4e2f4 | f4dbc34bba455ec10b9656e20f4a20f63b6c82e8 | /run_tests.py | a3d97cb30aaad6f5ee9d893c93c435964fe435a8 | [
"BSD-3-Clause"
] | permissive | apeterson139/django-redis-cache | 0772d9aec55dc993a87dfd9b2d61a0a5ddd1ea85 | 092290b7707dcc7b40a92ad54952505900044d02 | refs/heads/master | 2021-01-15T21:34:35.525765 | 2012-06-27T18:14:55 | 2012-06-27T18:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,275 | py | #!/usr/bin/env python
from __future__ import with_statement
from optparse import OptionParser
import os
from os.path import dirname, abspath, join
import sys
from django import VERSION
from django.conf import settings
from django.template import Template, Context
from django.utils import importlib
from redis.server imp... | [
"sebleier@gmail.com"
] | sebleier@gmail.com |
a177732813b9a52fe01d5d1e9ff9d13ee8947cc9 | f3725f246e58e33b85874dcbebe65200c90b919c | /models/BasicLSTM/train.py | fd5d5a49505d86461b3e2c8c51c6172c21e72285 | [] | no_license | WOWNICE/LanguageModel_AutoEncoder | ebe6e9134b84bc3d4a3e02c1d3109fbadfc23c01 | fd868816d1e5e5561d9f5cee45222082218581f0 | refs/heads/master | 2020-03-26T05:07:30.576849 | 2018-08-15T01:20:32 | 2018-08-15T01:20:32 | 144,538,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"rose@MacBook-Pro-3.local"
] | rose@MacBook-Pro-3.local |
40232b916fe4f4f03235eb599f4830697a65d0e1 | 2a03d611f83932f1e400fe8828af6546b945447d | /idea_app/migrations/0006_idea_i_date_sold.py | 8e6c8439db3ad81dbeddd50be0f1194457321ff6 | [] | no_license | ggabunia/ThoughtShare-Django | b354d1724472b9bb43df9a324d9856f1285cb340 | a9fee6a1bba430ffe49bc2e1c2fd74db10bc2a19 | refs/heads/master | 2022-11-26T05:28:51.544298 | 2018-12-03T16:54:49 | 2018-12-03T16:54:49 | 158,215,699 | 0 | 0 | null | 2022-11-22T03:07:04 | 2018-11-19T12:05:10 | Python | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.1.3 on 2018-11-25 21:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('idea_app', '0005_remove_idea_i_picture'),
]
operations = [
migrations.AddField(
model_name='idea',
name='i_date_sold... | [
"ggabunia91@outlook.com"
] | ggabunia91@outlook.com |
70ec233bc6dea14e82e83d774498d74354e96eb3 | 765a692897fac9a91518604cd55d1ff15b2d68a4 | /src/px4_move.py | 82a4e3ebb892b9acb97cf17a92e295653b8b8b40 | [] | no_license | DarkcrusherX/indoor_nav | a82521e147ecfc6066c30e78829fc01e4d5c60f3 | a24f9da24a3b4427c78cfcba4a80379cc8846efe | refs/heads/master | 2022-11-05T05:45:56.805848 | 2020-06-23T06:54:18 | 2020-06-23T06:54:18 | 274,138,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py |
import sys
import copy
import rospy
import actionlib
from nav_msgs.msg import Path
from geometry_msgs.msg import PoseStamped
from armf import armtakeoff
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
msg = Path()
current_position= PoseStamped()
rospy.init_node('points',anonymous=True)
def movebase_clie... | [
"noreply@github.com"
] | DarkcrusherX.noreply@github.com |
318c1e9d2da46b58b7ad1c6f8984526ebf711e5a | 07b5b31fdaf26f53616e0fce6838780bdd6fb1a6 | /create_faiss_index.py | c0574d59953fc8f2fcbe92d43fa393ed2b83fd1f | [
"Apache-2.0"
] | permissive | jplu/visual-search-scripts | 0a6f34105434afcf7640a33b7359f6dc05b9b598 | 624398cb482129ac60180e09ca6b8f2960961442 | refs/heads/master | 2023-06-01T04:37:32.301571 | 2019-09-24T09:08:03 | 2019-09-24T09:08:03 | 210,385,763 | 2 | 0 | Apache-2.0 | 2023-05-22T22:16:47 | 2019-09-23T15:09:53 | Python | UTF-8 | Python | false | false | 2,506 | py | import numpy as np
import faiss
import multiprocessing
import glob
import os
import sys
import tensorflow as tf
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
NUM_CPU = multiprocessing.cpu_count() // 4
manager = multiprocessing.Manager()
features = manager.list()
class Network():
def __init__(self):
from class... | [
"julien.plu@schibsted.com"
] | julien.plu@schibsted.com |
75302cb9e4d1e3d5f8bf29b9814776112b3b0823 | ab0f2794733a129d4073542a1c9315f95f1b7ca8 | /hello.py | ddddd1c76ee9aebeeffa87a41cc017b685828c26 | [] | no_license | krishna-prasath/guvi | d0fbe631e932888ba426f77ba4feaa32d4e66781 | 98fd72ffa03e5d8e7a9fe68989924b690cd92c1b | refs/heads/master | 2020-04-15T04:59:38.243149 | 2019-06-12T19:32:59 | 2019-06-12T19:32:59 | 164,404,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | a=int(input())
if a==0:
print(" ")
else:
print("Hello"*a)
| [
"noreply@github.com"
] | krishna-prasath.noreply@github.com |
693191fb9ab124fb913b3adfbb4b088fb608acaa | c1a6fcf57aa4384f81ef82d2da8b4805a49fbadf | /mypythonapp/web/html.py | a8b52c817012d7a7f9f3bb5227c5e7002aece04b | [] | no_license | psytronica/zigrax | 52e51415fce3e5fb30eae8fa323fbe6aecd41eb7 | 799140570e206091601e75fb95191bd64bb12210 | refs/heads/master | 2020-12-24T18:55:12.704013 | 2016-04-24T07:59:12 | 2016-04-24T07:59:12 | 56,959,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | # -*- coding: utf-8 -*-
def default_page():
print("zasdasd") | [
"zygopterix@gmail.com"
] | zygopterix@gmail.com |
3fe9792527c2102bca402abc85ec35083bc105b7 | b385f96bf019b5963c871614cbfb5deacddacbc1 | /quadratic.py | e01e69f231fe511316b1a343de15e23ad92921d5 | [] | no_license | emorri08/ITC110 | 7d4dfa498adb51a74096878d07866e6d63be9669 | 69cecb7c68c4adb115bfb3f22e439180830bf1b4 | refs/heads/master | 2020-04-09T03:31:57.200519 | 2018-12-11T04:00:52 | 2018-12-11T04:00:52 | 159,986,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | #quadratic.py
#compute the real roots of a quadratic equation
#the program will crash if the equation has no real roots
from math import *
def main():
print("This program finds the real solutions to a quadratic")
print()
a = float(input("Enter coefficient a: "))
b = float(input("Enter coefficient b: ... | [
"noreply@github.com"
] | emorri08.noreply@github.com |
428f590f1df538a492bd7a601fcb55bf5ce4ee3b | 81fff1188c6918fbe7ccbcd9e61b62456f0abef5 | /backend/settings.py | 4531b84a2b3ef8fe367cd5479e52c1a85a274c8d | [
"MIT"
] | permissive | mugash/cookbook-graphql-backend | 2742087f3e6c4012f5c99c17c0518c27a8b30078 | 116e9dc2e5b0d63a2e4429a5c6f192cd0c43508d | refs/heads/master | 2020-12-02T16:13:25.043539 | 2017-07-07T09:02:42 | 2017-07-07T09:02:42 | 96,519,903 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"mugagambi@gmail.com"
] | mugagambi@gmail.com |
e64c6519f2023a3e9eaa0d3e89c2abd70015537f | 4f7ff1e74e19e4b2d9e61dcd44e4b3488d90b4da | /random_word_generator_assignment/random_word_generator_assignment/settings.py | 29f235a27f3c0c01ea82716309b40023b1ed323a | [] | no_license | Maxbetsmanda/Python-Django_Fun | cd806f375f3ef9b443c6b8512c7650dbf0a67fb1 | 4ea409a2c43963e104a10ab11db35731b8f2aa41 | refs/heads/master | 2021-07-05T03:50:18.026063 | 2017-09-25T03:19:03 | 2017-09-25T03:19:03 | 104,293,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | """
Django settings for random_word_generator_assignment project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref... | [
"noreply@github.com"
] | Maxbetsmanda.noreply@github.com |
ab0e6e84ae744c194e09271a8ba6afdce8e6c941 | f18185e64a7c75e55b7ec6b1fe40fbdf660d94c7 | /maze/maze.py | 5aff43b96519130047b841cbb0d6217b862bde5f | [
"MIT"
] | permissive | grypesc/DSAIMinorProjects | e70c0683f0b7318b4b4eac5d9832f744df380f06 | 935a3d2e41d177599b16c740cfd57e273e50ad7a | refs/heads/master | 2020-05-24T20:33:24.790900 | 2019-05-19T09:48:54 | 2019-05-19T09:48:54 | 187,457,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,817 | py | from turtle import *
# Simple class
class Point:
def __init__(self,x,y):
self.x=x
self.y=y
class Line:
def __init__(self,p1,p2):
self.p1=p1
self.p2=p2
SUCCESS_LEVEL = 110
# Drawing maze
turtle = Turtle()
turtle.shape('circle')
paths = set()
tracer(0,0)
# I... | [
"noreply@github.com"
] | grypesc.noreply@github.com |
effd461a8a348cb967ff1e775d0027ee7244d32f | a5b5f3f6df1e53c52730835fde80f116483a237f | /app/tests/unit/test_util.py | e20c02691467f46a7f0a48853849f6999636e057 | [
"MIT"
] | permissive | LIhDi/python-atendimento-agendamento-back-end | 9db16c9df051c03be8a061775b4c2bda11b8a96f | affb722440678415d1d6293e84be3f1743c915b7 | refs/heads/main | 2023-05-26T09:55:09.527356 | 2021-06-02T00:45:24 | 2021-06-02T00:45:24 | 342,554,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from util.status import HTTPStatus
def test_status_internal_server_error_when_missing():
status = HTTPStatus("None")
assert status == HTTPStatus.INTERNAL_SERVER_ERROR
| [
"lihdi@aline.diogo"
] | lihdi@aline.diogo |
abc24fb1a2d224e5ce351a3c7c1e216546bed8fa | e6208febf7e34d4108422c6da54453373733a421 | /sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_gcs_artifact_repository.py | 721344cf443c2cbdacfa8ae5df74a17003b32c37 | [
"Apache-2.0"
] | permissive | wreed4/argo | 05889e5bb7738d534660c58a7ec71c454e6ac9bb | 41f94310b0f7fee1ccd533849bb3af7f1ad4f672 | refs/heads/master | 2023-01-22T05:32:12.254485 | 2022-01-27T21:24:45 | 2022-01-27T22:02:22 | 233,143,964 | 0 | 0 | Apache-2.0 | 2023-01-17T19:04:43 | 2020-01-10T22:56:25 | Go | UTF-8 | Python | false | false | 12,162 | py | """
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from ... | [
"noreply@github.com"
] | wreed4.noreply@github.com |
14a580c2cd1afa544a2df7d57b1bbe721744555a | c8c1e7073e8b0ec37437516be022d1ca65764dda | /venv/bin/rstpep2html.py | e9869b50a7ad8eafcc4543aa5baceef0bd17f460 | [] | no_license | sushanbaniya/Ping-Pong-App | fe0e17795ee952c47f52224812c7825396207f40 | 2acc7284c341729ab576e00012396a1c64a492a3 | refs/heads/master | 2022-12-22T13:43:45.684263 | 2020-06-19T07:01:55 | 2020-06-19T07:01:55 | 273,427,383 | 0 | 1 | null | 2022-12-21T01:09:43 | 2020-06-19T07:03:41 | Python | UTF-8 | Python | false | false | 713 | py | #!/Users/sushanbaniya/Desktop/PYTHON/SelfKivi/venv/bin/python
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhance... | [
"sushanbaniya@gmail.com"
] | sushanbaniya@gmail.com |
50ef32c94d5e5aee734232dd3e61fc70bf587629 | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0113.py | 0b8fdc5ce3434443cc3611041a335ba30d4bcad7 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 13:23:08 2019
@author: Tianqi Guo
"""
class Solution(object):
def pathSum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: List[List[int]]
"""
# deal with trivial case
if not root: ... | [
"tqguo246@gmail.com"
] | tqguo246@gmail.com |
e6a826c859b0466dac824829bb95d7f77d7ac101 | 4069115e4ae3cc051b82e3ae5ec94f9fa95e930e | /JZ51.py | ea95105db62a7a531c4298ad5b028a6166f651e8 | [] | no_license | yhbian/niuke | 45c09ccb28ce18702348085e51d4551e10a55421 | 1100e3a2cc486673b1892f1223bbf7b6444a1d08 | refs/heads/main | 2023-02-12T14:58:58.562210 | 2021-01-10T06:42:13 | 2021-01-10T06:42:13 | 324,090,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # -*- coding:utf-8 -*-
class Solution:
def multiply(self, A):
# write code here
from_start = []
from_end = []
B = []
s, e = 1, 1
for i in range(len(A)-1):
s, e = s * A[i], e * A[-i-1]
from_start.append(s)
from_end.append(e)
... | [
"yhbian@mail.dlut.edu.cn"
] | yhbian@mail.dlut.edu.cn |
7cfb93f0c677a7f90e2fc20b7b0c8f89639525c0 | 806e589a1fb9ae4eecb9a2e5b58023abe8198679 | /pokergui/hello.py | ea0b1ecb1aad866798078c3556870da6e3169f09 | [] | no_license | robotkabob/Porker | df35a35caaa13676c870ce252fd807481571f304 | a70ffd7149a47d9b8bfc485f653ee8890e22065a | refs/heads/master | 2020-05-17T10:41:55.654455 | 2013-02-05T16:35:07 | 2013-02-05T16:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from flask import Flask
from flask import render_template
from flask import url_for
import sys
sys.path.append('../libpoker/')
import poker
app = Flask(__name__)
@app.route('/')
def index():
return 'Index Page'
@app.route('/chentrainer')
def chenTrainer():
chenDeck = poker.qDeck()
chenDeck.shuffle()
chenCard... | [
"mike@thales.local"
] | mike@thales.local |
c4202ad0a261720ba857ec2c6a3f3f1b9444f5af | 80c9219bd1d738bd412c9171e0ec1df945cddd97 | /weibo_spider/writer/mongo_writer.py | ded49366d2a735fc81883858708a5ecd704065e8 | [] | no_license | dash-remi/weiboSpider | 79f6d8cd9647c1d288e630667b2065d1ea84ec5f | 0dc0fbec4e9b5135f29d84c1dce1213e1a921067 | refs/heads/master | 2022-10-08T05:44:59.737534 | 2020-06-11T12:09:32 | 2020-06-11T12:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | import copy
import sys
from .writer import Writer
class MongoWriter(Writer):
def __init__(self):
pass
def _info_to_mongodb(self, collection, info_list):
"""将爬取的信息写入MongoDB数据库"""
try:
import pymongo
except ImportError:
sys.exit(u"系统中可能没有安装pymongo库,请先运行 ... | [
"songzy_thu@163.com"
] | songzy_thu@163.com |
faa0232a40c211a3852add071f93ba865508361c | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002186.py | 828488582f050dee16fc5a1431eafefa81c4dca2 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
261dec3f90539812e5217ce63516c77f371351a6 | e34eb7b07472ed8bcddc62c7abd15a4c24c8b819 | /object_detection_v2/predictors/convolutional_box_predictor_test.py | 7478634bac4a4651982a975130402023952e920f | [] | no_license | JyotSaini/SudokuSolver | 9e0b7ab5533ea34d6278d51d2ca728f2125a4c7c | 30caa0828596ea407a3a8be3bc5dbb0eb16e687b | refs/heads/master | 2021-01-07T01:20:40.383838 | 2020-03-08T00:38:06 | 2020-03-08T00:38:06 | 241,537,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,744 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"jyotsaini@icloud.com"
] | jyotsaini@icloud.com |
1b2b7cd0d80e8d6b2a6d7449a0e4edf680bf250a | 343dee73f8b5643c9f6f0c32458cc02e59d5bf95 | /blog/migrations/0001_initial.py | fa8a68c75a0631ef8a539154f359074b47ff436d | [] | no_license | HusseinA1998/personal-portfolio | 81c7262fe0d69f3d72c251e414ac63a6a4d1f2d8 | dbc6a2fd002ae12c92bc2a6f5132851cb3720e3c | refs/heads/master | 2023-02-24T12:29:19.954411 | 2021-01-22T16:02:32 | 2021-01-22T16:02:32 | 331,900,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 3.1.5 on 2021-01-18 21:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"husas1998@gmail.com"
] | husas1998@gmail.com |
608f2c7107e99080c3a3bd0c4a0401e6e8497745 | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /aws_marketplace/creating_marketplace_products/algorithms/src/metric_definitions.py | 72f46b16de7d86e2c20e7b8532883467d2ccee18 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 114 | py | class MetricDefinitions:
def __init__(self, name, regex):
self.Name = name
self.Regex = regex
| [
"esterhaz@amazon.com"
] | esterhaz@amazon.com |
2bcda3dc6ac1efe13fb2121c33d463b5bfd8643a | bf57b880463f0ff34a771dba34b1647333b7c0b0 | /ner_evaluation/utils.py | a01d1bcc9c4f6aec243d3c24df7fbcfda469f29d | [
"MIT"
] | permissive | saharghannay/CLEF-HIPE-2020-scorer | 1cebf0a7cf76ae31d94cea96f6d2a6862e591584 | 28b2b34af784617c9840c1ef729bcf1388b3b8b4 | refs/heads/master | 2021-02-12T12:22:41.288288 | 2020-02-29T10:10:12 | 2020-02-29T10:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | #!/usr/bin/env python3
# coding: utf-8
import csv
from collections import namedtuple
import logging
Entity = namedtuple("Entity", "e_type start_offset end_offset")
class TokAnnotation():
def __init__(self, properties):
self.fieldnames = [col for col in properties]
# columns are set as class var... | [
"alex.flueckiger@gmail.com"
] | alex.flueckiger@gmail.com |
67c3f9ec9c939f9d356a5fd38f10e6df68ba4e5e | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2016/4/test_filesystem.py | e96039d394100b3efa36fe17417d2f22b8d73151 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 2,471 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import shutil
import tempfile
from celery import states
from celery.backends.filesystem import FilesystemBackend
from celery.exceptions import ImproperlyConfigured
from celery.utils import uuid
from celery.tests.case import Ap... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
6127053660627a2dde6c74165c90c823c64c299b | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations/_ddos_custom_policies_operations.py | eac7c4ae02f97170fa3e3be18ebca8027cc97483 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 22,058 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
1b8b41ea96d36f86c0c7f00081bfae12c0c8a34b | 2c25d0c0f40b2ebdebc06e2a336cb63dcda1b920 | /SCFInitialGuess/nn/descriptors.py | 614211368d0921cf37dc7728381053a8a9cc4584 | [
"MIT"
] | permissive | jcartus/SCFInitialGuess | 35a56377db69980abb831b08d60cf1cee4b67e8b | e4a9280e8cbabb126946e47affa652243b74753c | refs/heads/master | 2021-05-06T04:21:19.867589 | 2019-05-18T09:19:07 | 2019-05-18T09:19:07 | 114,927,230 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,863 | py | """This module contains everything related to descriptors (i.e. mapping from
the environment to network inpurs)
Author:
Johannes Cartus, QCIEP, TU Graz
"""
import numpy as np
from SCFInitialGuess.utilities.constants \
import number_of_basis_functions as N_BASIS
class AbstractDescriptor(object):
"""An ab... | [
"cartus@student.tugraz.at"
] | cartus@student.tugraz.at |
31b93d15e3fa33125b4a16f7c8343052e5935225 | 18a5587ba80c5e28c25572875dda3fa4c6238a8e | /lesson4/second.py | adf930819379803648e0ef563a2c51cb931b74ff | [] | no_license | Herasymov/GoIT_solutions | 7aa0e8b662641e58d6a70d05d8ac71f31fda5254 | 3423443035174ed6e00fe2e6cea31f3e9a7d16fd | refs/heads/main | 2023-06-27T18:06:00.499316 | 2021-07-29T19:24:17 | 2021-07-29T19:24:17 | 373,929,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from collections import Counter, defaultdict
# d = {1:2, "hello": "world"}
# print("<------keys------->")
# for i in d.keys():
# print(i, end=", ")
#
# print("\n<------values------->")
# for i in d.values():
# print(i, end=", ")
#
# print("\n<-------items------->")
# for key, value in d.items():
# print(k... | [
"slava.herasymov@gmail.com"
] | slava.herasymov@gmail.com |
280adf132eb21c675220580398784b4a6fc4a0eb | bd149e195fbe5fa2aa0ca2dd88989e4f0b6bac5c | /appium_wework/page/personinfoedit.py | 70c0f2fcaa55043a81ed09be63e449f2932bda9a | [] | no_license | sanjidaoli/pytest1 | b0f9c59663146cdce72049598c00d68f07c05de8 | 39ef6ae2c2935c800672cbe4bf4664c2595c6c51 | refs/heads/master | 2023-07-26T19:47:01.563951 | 2021-09-12T15:35:22 | 2021-09-12T15:35:22 | 348,737,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@Description :
@File : personinfoedit.py
@Project : pytest1
@Time : 2021/7/25 16:44
@Author : LHQ
@Software : PyCharm
"""
from appium.webdriver.common.mobileby import MobileBy
from appium_wework.page.base_page import BasePage
class PersonInf... | [
"123903159@qq.com"
] | 123903159@qq.com |
77ae966b6ba38d84c328b5ddb5c7eaceb41ed78a | 594c17b42bb9e7c967abb8968b721c067f144cd1 | /src/main/py/com/ezb/jdb/post/topic.py | ef7848cad06dc95c8505c8d7f188cd89cffb1637 | [] | no_license | sam-0301/jdb | be82ce8df234f2f67bdde8e6943410d708541b06 | 691a9f949bee584c3c197dc404d6972bc39b9de7 | refs/heads/master | 2021-05-30T17:26:23.981024 | 2016-03-30T03:13:06 | 2016-03-30T03:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author : liufeng
# Create : 2015/8/12 16:51
import urllib, urllib2,user
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
def createTopic(token):
"""创建话题"""
register_openers()
params = {"content": "创建话题", "topicTyp... | [
"biwuts@cn.ibm.com"
] | biwuts@cn.ibm.com |
37ec8231587eda9a2df9ede1cf5ec2282956d8c1 | d4d3b859f136154427c36924f87525590853873a | /Tools.py | b104a92fdf8abdde26ffeaa6ddae63c1d381c369 | [] | no_license | lijiunderstand/Semantic_Segmentation_RefineNet | 46b002f53254d5cc0bb4b9565382d2386a1d01c9 | ec7ea477096dafc2052fa74fdb3277199251a35f | refs/heads/master | 2020-04-18T10:16:16.303654 | 2018-07-11T16:41:18 | 2018-07-11T16:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | import time
import os
from tensorflow.python import pywrap_tensorflow
import numpy as np
from matplotlib import pyplot as plt
import cv2
class Tools:
def __init__(self):
pass
@staticmethod
def print_info(info):
print(time.strftime("%H:%M:%S", time.localtime()), info)
pass
# 新... | [
"woxinxie1234@163.com"
] | woxinxie1234@163.com |
feb5e81dff37b3e59bb6b25fe4a2ad1dd53ee5f0 | 4591684136ac81244d5337197e97f58864d7fff3 | /keras/keras18_ensemble1.py | afb0ad3b17ce43849797d7ecfda41ba1b2a9b692 | [] | no_license | marattang/AI_training | 4b15e9d9734d77ae04beaae078749c85d832c9c5 | f7f1a2b762dcf770335b62ee668ad1c54ccf1ceb | refs/heads/main | 2023-06-20T19:05:10.385238 | 2021-07-26T00:29:10 | 2021-07-26T00:29:10 | 383,965,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Input
import numpy as np
from tensorflow.keras.layers import concatenate, Concatenate
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
x1 = np.array([range(100), range(301, 401), range(1, 101)]... | [
"tlawlfp0322@gmail.com"
] | tlawlfp0322@gmail.com |
9b927d12b250c22b8bd2df99c64713c67c92f100 | 36e8a937aea714219536557613fed59e715c1ff0 | /working_files/tools.py | dcbb5fd28fded08cba56f18d94fac2aa81e633d8 | [] | no_license | QFinUWA/2021-Momentum-Trading-Doms-Team | 15d57ad831ba5ce9a9962a0ee8dac3bdc9146ed3 | 7efa8f7ee26fb0049277bc5c3d9b26896efd5e76 | refs/heads/main | 2023-07-05T00:25:47.941123 | 2021-08-20T06:43:36 | 2021-08-20T06:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- coding: utf-8 -*-
"""
csv_tools
~~~~~~~~~
merge CSV files
Log:
20210819
"""
__version__ = '0.1'
import os
import math
import pandas as pd
class Res:
"""
merge
"""
def __init__(self):
self.df = None
@classmethod
def file_adapter(cls, file_path):
... | [
"jessiexieee@gmail.com"
] | jessiexieee@gmail.com |
d15c23fcb5259e40197ee8e25afa111af92e5b6e | a7bd9cc059b0b963b7e6d06c664f5459ace8f2ff | /RPI/Software/app copy.py | 449d39b265c8b15b6de06946a7329b5b4082bb2d | [] | no_license | AlejandroMinaya/JanUSB | b50671417cf5d96f893e29006489cc9ebcfe0294 | 24173292b09f710f7439c3b923f819a38127bcc2 | refs/heads/master | 2020-12-05T18:08:45.468498 | 2020-01-06T23:27:53 | 2020-01-06T23:27:53 | 232,200,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,110 | py | #!/usr/bin/env python
# -*- coding: cp1252 -*-
## ~ LIBRARY IMPORTATION ~ ##
from os import * #Bash commands
from subprocess import * #Bash commands
import curses #Terminal display
import math #Math Operations
import RPi.GPIO as GPIO
#############################
## ~ START SUDO - DO NOT TOUCH ~ ##
sudo_password = '123... | [
"j.alejandrominaya@gmail.com"
] | j.alejandrominaya@gmail.com |
27ce6e52af529cb7f1a572f2255e122b6129e434 | b0baa0bfb228fb96ea19061a9ead7d12a8b50585 | /python-mosh/car_game.py | c395368c846b121bf95e1edd62b9a7ad7f964d43 | [] | no_license | LuisFuenTech/hello-python | 3c93e320ea1edeb8767267261dac85d761c79331 | a90711b5bce750417004983b8118ce60797c6f4f | refs/heads/master | 2020-12-03T23:01:07.393468 | 2020-01-05T16:52:42 | 2020-01-05T16:52:42 | 231,514,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | command = ""
started = False
while True:
command = input(">").lower()
if command == "help":
print("""
start - to start the car
stop - to stop de cart
quit - to exit
""")
elif command == "start":
if started:
print("Car already started")
else:
started ... | [
"luisfuentes.au@gmail.com"
] | luisfuentes.au@gmail.com |
98c5c2282e0a3228d51cef98a11cffdb80d4fc80 | da180a6c4da6af6df903ec6598f8e8f7e6172727 | /Other/a/ls.py | 45ca4de8d3f3998d9e24723fdd5361affe6b45c1 | [] | no_license | seldoms/Python-spider | 632225ecdf20de18918c6adb2c443c240f0ea7ea | 78ae0ae6a63f78fe910cd504af720771fed23b86 | refs/heads/master | 2020-12-24T12:00:37.448459 | 2016-11-07T17:38:07 | 2016-11-07T17:38:07 | 73,104,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | i = format(1,10)
print(i) | [
"seldomsheyd@msn.com"
] | seldomsheyd@msn.com |
5433604f82dfd62de3850ae0198c482aedae79fb | c7fe0c8552c72e9163be37804c4781f438b5b6ee | /Web_Dev/Web_Dev/wsgi.py | 539e3d38581d9f5768ac29eaa0a8fc2270a71d83 | [] | no_license | kewlnes1000/django-reactjs | a5f39917712a9f1b41679ba3b9709f98a44af0ee | 1d40771a0e44c9ecaed4a3f0d8ed417626714cd8 | refs/heads/master | 2022-12-08T22:45:31.295056 | 2019-06-20T16:29:42 | 2019-06-20T16:29:42 | 133,917,662 | 0 | 0 | null | 2022-12-08T03:28:56 | 2018-05-18T07:14:01 | CSS | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Web_Dev project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"kewlnes2000@gmail.com"
] | kewlnes2000@gmail.com |
500990579c5b235622b0dc1bc8a24ca02394aca1 | 9bd272c1147d1d81ab6624608f400b8b1d488fb5 | /schema_migration/clickhouse_engines/url.py | 21c3344996be2b2eb45297c37e818ea3cb4626c3 | [] | no_license | azolotukhin/python-data-tracking | fe03e926d2af72c5445b51bbff72d8a39b4837c5 | 3c99d1f52a1536e67cf242d70013dee0f23b4312 | refs/heads/master | 2020-12-21T04:37:44.591862 | 2020-06-24T13:13:00 | 2020-06-24T13:13:00 | 236,308,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from schema_migration.clickhouse_engines.base import Engine
class URL(Engine):
@property
def url(self) -> str:
return self._table_meta.URL
@property
def format(self) -> str:
return self._table_meta.Format
def create_table_sql(self):
return f'ENGINE = URL({self.url}, {self... | [
"zolotukhin89@gmail.com"
] | zolotukhin89@gmail.com |
0f3da19ef132cb988e110899dddde85ca8f4d144 | a5cd7896d91cf67ede7aec721e73c837a4328d01 | /0015_not_in.py | 78fee8d3ca43f60a855548eda76437568e2fd338 | [] | no_license | DonCastillo/learning-python | 8bdb6e4bfebefa5a428a89c739db6f7142a759db | a5d803642d435f806209f1b9c5803672e89bf06d | refs/heads/master | 2023-04-08T13:26:59.506073 | 2021-04-17T03:38:29 | 2021-04-17T03:38:29 | 330,097,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | activity = input('What would you like to do today? ')
if 'cinema' not in activity.casefold(): # casefold ignores the case of the string. cinema and Cinema are valid
print('But I want to go to the cinema')
if 'Don' in ['Don', 'Peter', 'Michael']: # true
print('okay!')
| [
"don.qcastillo@yahoo.com"
] | don.qcastillo@yahoo.com |
1cae0cd3f2a28583b7c04cd055ffcbf38a68726f | e379f8154ee6d8ba3c38f447f941df8ce441ee7a | /particles.py | a6e5242c69c49ad87c8f5a6c2563e430ea68b9e4 | [] | no_license | floridatechcse5694sp19/WallBayesianNetwork | 8d28feb82c96249010b0745090880a993480e80f | c54491b90dbf44e4e2ba45604e4f3e39c9c7deb8 | refs/heads/master | 2020-04-27T19:01:59.072671 | 2019-04-30T03:46:31 | 2019-04-30T03:46:31 | 174,598,760 | 0 | 0 | null | 2019-03-08T19:43:25 | 2019-03-08T19:43:25 | null | UTF-8 | Python | false | false | 1,440 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 17 18:56:55 2019
@author: kh222
"""
from numpy import *
from numpy.random import *
def resample(weights):
n = len(weights)
indices = []
C = [0.] + [sum(weights[:i+1]) for i in range(n)]
u0, j = random(), 0
for u in [(u0+i)/n for i in range(n)]... | [
"noreply@github.com"
] | floridatechcse5694sp19.noreply@github.com |
2292443652cea6d273626b6745a3a05921161576 | 8fdad0867a520dd76cd5ee297bb19f448132de01 | /bikeshare (1).py | c0f1c4c61444f7e3d176bf9602b033da4fe60566 | [] | no_license | dspriyanka/REDME.md | 204863da5c987df111b83687a980772ee1c744a4 | d2ea73eed16415bbc95451b88279277e0a6f76a3 | refs/heads/master | 2022-07-15T13:08:19.187268 | 2020-05-16T07:53:45 | 2020-05-16T07:53:45 | 263,582,258 | 0 | 0 | null | 2020-05-13T13:35:22 | 2020-05-13T09:18:47 | Python | UTF-8 | Python | false | false | 7,440 | 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... | [
"noreply@github.com"
] | dspriyanka.noreply@github.com |
e3879067a4c7557f4a32a5c90e27c7a47a1c333a | 7b01713bd341bf20f65c5688951c65681f248317 | /api-test/test.py | c47d12942e8882cd9bb6cd9db93cbf2253a3bc3f | [] | no_license | jihwan9675/ourgg-project | 49bd808dc74c9c98a06bfe92c484f8c2e1a04aec | 7542b4b39e89c9b950d0a5a4b568ff27c310aaf6 | refs/heads/main | 2023-04-23T15:44:41.567592 | 2021-05-09T15:32:35 | 2021-05-09T15:32:35 | 361,068,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | py | from riotwatcher import LolWatcher, ApiError
import pandas as pd
#qNNMCFXnnNdbzjLVonD5LaYzZ7o9K-E0lf5ODQ_PacmiPUs
# golbal variables
api_key = 'RGAPI-38bc37b7-06f5-499b-9e16-86ff595c4019'
watcher = LolWatcher(api_key)
my_region = 'kr'
champ = []
champdic = {}
gamemode = {}
gamemode['420'] = '솔랭'
gamemode['430'] = '일반'... | [
"jihwan9675@gmail.com"
] | jihwan9675@gmail.com |
863c2adca08d7ac438a25cd7f544499cc44e9cd9 | c1a526662031cc5623db5593c210cc44708151c4 | /Data Crawling/lianjia.py | beb84e7891bd9e4b49f59fca84fb8357d3f7ac0f | [] | no_license | zc-zhai/Forecasting-Model-of-Housing-Price-in-Shanghai | 5286d0621a8f1e60a0ae473c6f09e8ff358b42fb | 412e9cdb54cc0937e85ed64a6a5c68fdb4868f59 | refs/heads/master | 2020-03-22T15:54:19.130644 | 2018-07-13T03:11:29 | 2018-07-13T03:11:29 | 140,288,266 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | # coding=utf-8
import requests
from parsel import Selector
import pandas as pd
import time
#############################################################
'''''
爬取链家网的二手房信息
'''
###########################################################
# 需要爬取的区县
areas = ['pudong','minhang','baoshan','xuhui','putuo','yangpu','changnin... | [
"834523474@qq.com"
] | 834523474@qq.com |
a6e2b69a7dd2c15bf8f960ee53cf86c2fca9e9cd | 9eb35d6df7b0490d556623f84dba12bb05f30ee2 | /models_and_validation/cross_validation.py | 6b2524e4812c1b21e05c66400b87e28df0741375 | [
"MIT"
] | permissive | FelSiq/statistics-related | 0b4442bd19338c5b0da7dcf5ecd53eb304dcd3f8 | ee050202717fc368a3793b195dea03687026eb1f | refs/heads/master | 2021-11-24T12:31:08.660652 | 2021-11-03T23:42:39 | 2021-11-03T23:42:39 | 211,089,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | """Tests with cross-validation.
General and simple method used for estimating unknown parameters
from data.
General algorithm:
1. Randomly partition the data X of size n into X_{train} and X_{test}
Let m = X_{test}.size
Therefore, X_{train}.size = n - m
2. Fit the model using X_{train}
3. ... | [
"felipe.siqueira@usp.br"
] | felipe.siqueira@usp.br |
9d12a804190337836e997d0e7f88d8a22da76e8b | 84147502b81451a2f9bcaabc00a35789afe132f0 | /fastapistudy/test_chapter08.py | abf3208c284c9c77487e9a7b074f1a6fe1c9b59a | [] | no_license | teng-tt/Fastapi_Study | bfdb3ca9f97cf8e2a928f56a77d0fc17c5bb9692 | 946decd07b0de98ce353d4008c7920c778a94a6f | refs/heads/master | 2023-06-01T14:57:43.811721 | 2021-06-13T03:50:55 | 2021-06-13T03:50:55 | 360,474,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # !/usr/bin/python3
# -*- coding:utf-8 -*-
# __author__ = "Teng"
from fastapi.testclient import TestClient
from run import app
""" 测试用例 """
client = TestClient(app) # 先安装pytest
def test_run_bg_task(): # 主义不是async def h函数test开头是一种pytest规范
response = client.post(url="/chapter08/background_tasks?framework=FastAp... | [
"admin@example.com"
] | admin@example.com |
521e700c83957ba72f4807ab70b013da0904e846 | 18afc92e22ccab778dc834dc4f11cf9e8b197e5b | /blog/migrations/0001_initial.py | e9452a5b76d37b98aac0b46de661d4200afd83ab | [] | no_license | pjakhar7/my-first-blog | 64ae937130a9ca8b49d494c143c4b86261390dd1 | bc2aad180d112b509fc71dd0d64d4f88cc94b81c | refs/heads/master | 2021-09-23T23:41:42.334152 | 2018-09-29T10:43:04 | 2018-09-29T10:43:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.8 on 2018-09-26 09:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"pabloprime07@gmail.com"
] | pabloprime07@gmail.com |
35eaf6f37a440c779589652f8638f5d8cebb2d70 | 306e6bf6bd1ab9a6b6a7ea50af38b158accb2d26 | /src/interpolate.py | 307cdd97a0c8433aaf222d717edd71262dea9af6 | [
"BSD-3-Clause"
] | permissive | nickaplan/precip-interpolator | fe7ae1ec3f1f900399fcc254f47b155868717b20 | ff457c0dcdcd9d873bb830ab4b8f0d33e4969e9a | refs/heads/master | 2022-11-14T10:28:00.391167 | 2020-07-09T20:41:02 | 2020-07-09T20:41:02 | 263,759,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,480 | py | #!/usr/bin/env python
######### WORKFLOW DOCUMENTATION of FUNCTIONS #############################################
# First *InputArrays* to output 2 arrays (ppt value and xy values)
# Second *Run_IDW* for interpolation of the ppt-values, note has daughter classes
# Third *classify* classification of precipitation
# Fo... | [
"nicole.e.kaplan@gmail.com"
] | nicole.e.kaplan@gmail.com |
e23cff71c1b73f9b5b94aefde10c99cbf6be3d6d | 66fb1005aaeb25735a1ae9197ab7dd371862bbf2 | /sysadmin_scripts/mongodb_data_model_3/updateDB.py | 4cd67377a565ab4d07f01bf4870f41dc2df64706 | [
"MIT"
] | permissive | jfnavarro/st_misc | 8a8d87df9e059dbd2a037d4267acd4e21593e7c4 | bb8c1f2c4f05343f6dd5cc8b8cd8f405d825bd31 | refs/heads/master | 2021-01-01T17:13:58.540991 | 2017-08-22T13:04:26 | 2017-08-22T13:04:26 | 98,029,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,714 | py | #! /usr/bin/env python
"""
Script to convert ST API database model 2 to model 3
@author: Jose Fernandez
"""
import argparse
import os
import sys
try:
from pymongo import MongoClient
from pymongo import errors
from bson.objectid import ObjectId
except ImportError, e:
sys.stderr.write("Pymongo was not f... | [
"jc.fernandez.navarro@gmail.com"
] | jc.fernandez.navarro@gmail.com |
73b62e138ecf6573b546b46684fcbb4ba35796c3 | 7e0282f94d7cad02f069e71aaf8febb6f2462d1a | /utils/data_loader.py | 6c366ba2c5fa5c0e191c670073b831c7bfe28efe | [] | no_license | Doragd/FewShotJoint | 2181157dc12f35ded1de76208cbe5cc8319af5d2 | 49196c588fff61c1f19fae54a693f177351a22b7 | refs/heads/master | 2023-08-25T06:17:56.590016 | 2021-10-25T15:40:01 | 2021-10-25T15:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | # coding:utf-8
import json
import collections
import random
from typing import List, Tuple, Dict
import torch
class RawDataLoaderBase:
def __init__(self, *args, **kwargs):
pass
def load_data(self, path: str):
pass
DataItem = collections.namedtuple("DataItem", ["seq_in", "seq_out", "label"])... | [
"438630875@qq.com"
] | 438630875@qq.com |
aa63cbc31d840d1cd28c08ea40d2899c0ea1fe58 | a5da64252cc9c8a2b77a48541b84746c24170bf2 | /code/propositions/semantics.py | 64d229811c205d681b60d69e3e1d804d2388d856 | [] | no_license | yonilip/cs_logic | ee86cdcc842204dffd3ae30a233c44aab7a50fbb | f4b61a0d2b360f64290e335386f50b7e52ef36e6 | refs/heads/master | 2021-09-05T10:06:01.695686 | 2018-01-26T08:41:51 | 2018-01-26T08:41:51 | 110,412,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,749 | py | """ (c) This file is part of the course
Mathematical Logic through Programming
by Gonczarowski and Nisan.
File name: code/propositions/semantics.py """
import itertools
import string
from propositions.syntax import *
non_pipe_chars = string.printable.replace('|', '')
def _evaluate_constant(s):
if s ... | [
"johnnyhalen@gmail.com"
] | johnnyhalen@gmail.com |
d5eb9a98be34358f94e0bc9807443ed9ea1e0fa3 | 87362787932ea64e784dde220b3c62c8770781cf | /Spectral_Analysis.py | 2fd5335973400f931252d82fd3a6d3764d2c0c20 | [] | no_license | anaskizou/Hyper | 5310549bf9754df47976be8dd78fa55cde1909d3 | 69044676a7afd040944f90c0c9d7e48cd690eb21 | refs/heads/master | 2022-10-16T21:57:25.340579 | 2020-06-05T22:27:37 | 2020-06-05T22:27:37 | 268,283,971 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 34,338 | py | import numpy as np
import scipy as sp
import spectral as spy
import spectral.io.envi as envi
import matplotlib as mpl
from matplotlib import pyplot as plt
import os.path
from os import path
import math
import cv2
## !-- need to install wxpython with : conda install -c anaconda wxpython --!
## !-- need to ... | [
"39739471+anaskizou@users.noreply.github.com"
] | 39739471+anaskizou@users.noreply.github.com |
17a6c9ddf935320104df3abd777b2f5426819464 | 0510209de8402fd69bb0f5c62e6cced702fe5c0c | /form.py | 10d9b5a11f5197bc4ec07d5a40625235ad38cb51 | [] | no_license | densuke/bottle-json | c5b99f46ef046f4fae6652ac9b773f8cc26cf832 | e1da4b131dcd71fd6c4febe6179345367fd5d553 | refs/heads/master | 2020-12-12T21:23:41.908892 | 2020-01-16T03:55:54 | 2020-01-16T03:55:54 | 234,230,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from bottle import route, request, response, template, run
@route("/")
def index():
return template("form.html")
@route("/send", method="POST")
def send():
if request.headers['Content-Type'] == "application/json":
return request.json['data']
else:
data = request.forms.get("data")
r... | [
"densuke@fuga.jp"
] | densuke@fuga.jp |
b0a4eaabb5ac8a0fbcc6c8266ba143827102a7db | 6b98eeaf6eb485e1cc4d56c3eda15b6482f21296 | /app/grandchallenge/evaluation/migrations/0003_config_new_results_are_public.py | d09b3fcc4484ec754dc2e22c6730305c3811c093 | [
"Apache-2.0"
] | permissive | cnbillow/grand-challenge.org | ef2db96c7bc6919aa7ee993d43978f8c3185a71f | de90bd01ca6aa883dcb47c4d005bd15f38549752 | refs/heads/master | 2020-03-28T03:07:41.905924 | 2018-09-06T04:45:57 | 2018-09-06T04:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-03 10:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("evaluation", "0002_config_submission_page_html")]
operations = [
migrations.AddField(
... | [
"jamesmeakin@gmail.com"
] | jamesmeakin@gmail.com |
5643d80009ca522d75e1fd33817dc2dc2ec6ea52 | 1816491de3a4a1ca6e00428d35b8715133cca91f | /Python/Trop fort le mat/main.py | 46e81595824a305de878295e1b67e08e766c2843 | [] | no_license | maxime-peim/star2021-ctf | 1550fe51c90918b71cc2e05a5c817a9995503c31 | 531d81de65b9310c3b2d23f7b2c04ef34f9e8710 | refs/heads/master | 2023-08-15T03:39:26.718922 | 2021-09-18T09:44:38 | 2021-09-18T09:44:38 | 407,816,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | import socket
import threading
from secret import flag
class Dindon():
def __init__(self):
self.__glou = flag
def __str__(self):
return "glouglouglou"
def __repr__(self):
return self.__glou
def dis_bonjour(self):
return "Glouglouglouglouglou"
def dis_padaccord(s... | [
"maxime.peim@polytechnique.edu"
] | maxime.peim@polytechnique.edu |
53754401911a43ca70116a4e2a949417127f3bce | caffbe41855f20a842d761f29aa7b78942300133 | /software/oralInteraction/stateMachine1.py | 981b23efc72e16feef1da36937dff8b5b1016745 | [] | no_license | carlosquinterop/CocktailParty-DARwIn | b7db77c32702d9513150e3d3f3c03cc1c935e0b5 | 282ad336850c02a242426f09fd94f06f40fc3498 | refs/heads/master | 2020-03-31T23:37:11.422074 | 2018-10-30T02:44:56 | 2018-10-30T02:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | from OralInteraction import OralInteraction
from Cliente import Cliente
DictionaryStates = {'start' : 1, 'introduction' : 2, 'waitingPerson' : 3,'requestName':4, 'listeningName':5, 'verifyName' : 6, 'requestDrink' : 7, 'listeningDrink':8,'verifyDrink':9, 'requestPerson':10, 'waitingNewPerson':11, 'exit':12, 'apology' :... | [
"fab.perez@yahoo.es"
] | fab.perez@yahoo.es |
25901eb4746bde899cc2b41588f21da0d665c13b | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/E/elleryq/haodooscraper.py | 7afbaca75ca4d510bc65104eb77ff5d74af43eac | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,488 | py | # For scrape Haodoo (http://www.haodoo.net)
import scraperwiki
import simplejson
import lxml.html
import sys
from urlparse import parse_qs
from urllib import urlencode
import traceback
base_url = 'http://www.haodoo.net'
def parse_books_from_html( html ):
"""
Parse the url of each book from the book list page.... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
8b289affabf9146ddebb23f6bd781a948a79674f | 2cbb6019f067f9a48b3f1ea0c3fc0faeaa7eaa33 | /src/parser/PyxellVisitor.py | 423455fc6a25838e1b07bea35dadc4040321795d | [
"MIT"
] | permissive | ThatXliner/Pyxell | be6a5e6976589273454636fdc254bd2dbfc6ca6a | 72c58fd26fe1eded038ba5bf11c327c9b33cdd31 | refs/heads/master | 2023-03-14T16:46:56.383103 | 2021-01-30T18:40:20 | 2021-01-31T18:36:31 | 336,136,781 | 0 | 0 | MIT | 2021-02-05T02:05:04 | 2021-02-05T02:05:04 | null | UTF-8 | Python | false | false | 12,753 | py | # Generated from Pyxell.g4 by ANTLR 4.9.1
from antlr4 import *
if __name__ is not None and "." in __name__:
from .PyxellParser import PyxellParser
else:
from PyxellParser import PyxellParser
# This class defines a complete generic visitor for a parse tree produced by PyxellParser.
class PyxellVisitor(ParseTre... | [
"adam27.sol@gmail.com"
] | adam27.sol@gmail.com |
1f2bf2bb1a0cc1373790977657c4684480eba73f | 75f5a01d88cafbe86a0d7cffa1c3a1a511e78e03 | /1.requestsmodel/request之药监总局相关数据爬取.py | e388369ea524cb5f878e38e07aeb88252c9cf048 | [] | no_license | lqx-bubble/python- | 9bfab81209dcb92bec8d71b9a9487ca4d97558bd | 82dc130f7d7ddf83278aacc92b84ca1792e86648 | refs/heads/master | 2023-01-15T07:11:59.464288 | 2020-11-19T07:14:19 | 2020-11-19T07:14:19 | 314,166,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | # -*- codeing = utf-8 -*-
# @Time : 2020/8/8 16:40
# @Author : 卢其鑫
# @File : request之药监总局相关数据爬取.py
# @Software: PyCharm
import requests
import json
if __name__ == '__main__':
headers = {
'User-Agent': 'Mozilla/5.0(Windows NT 10.0; Win64; x64) AppleWebKit/537.36(KHTML, likeGecko) Chrome / 84.0.4128.3Safari... | [
"2580942497@qq.com"
] | 2580942497@qq.com |
08b1ad2d5ea99dc8421735d0adf8304da9738e3f | a9249f5f12d531d189c4d839a79b3da16ccf8149 | /JarakAPI/admin.py | d4dcff3a9cf580643d4d1c28cfe55153ff9b2bf0 | [] | no_license | Sparksys98/Jarak-DRF | 44dfebaf6e2a4c55fecb70735746d7863d11de6b | cc92097ddd4073ac5ea90309d5cf8d7a8182f564 | refs/heads/master | 2022-04-25T20:37:18.669840 | 2020-04-27T07:26:08 | 2020-04-27T07:26:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.contrib import admin
from .models import Product, Profile
admin.site.register(Product)
admin.site.register(Profile)
| [
"ahmedealsalman@gmail.com"
] | ahmedealsalman@gmail.com |
7769ca57c2a35c49ab7b7ceca57132a9eae8e498 | 82f0d97c81250e6f946338d543a61afe99fd49bb | /tic_tac_toe.py | ed6e1f2ba463b0418cd13cf21647a7bfb6bc477f | [] | no_license | Niko55/tic_tac_toe | 2b70df0ef392814cfde4b1941f820d4529151990 | a40282f2f4de3e502c117a2aaffdbd9774e5af43 | refs/heads/master | 2020-03-13T04:48:59.160575 | 2018-04-25T07:54:58 | 2018-04-25T07:54:58 | 130,970,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,927 | py | """
Reference implementation of the Tic-Tac-Toe value function learning agent described in Chapter 1 of
"Reinforcement Learning: An Introduction" by Sutton and Barto. The agent contains a lookup table that
maps states to values, where initial values are 1 for a win, 0 for a draw or loss, and 0.5 otherwise.
At every mo... | [
"noreply@github.com"
] | Niko55.noreply@github.com |
aa620b009579c0384555f668a03809e43558389d | 8652706638ec0f82c8d9ee88a5d1bba14ebabe2c | /app/members/backends.py | 4f5815005059b38d5fc5a3e63b86f2c1fd7303a8 | [] | no_license | rainsound-k/Zirmi-Project | 0fe0093a35143d980ab1d31b0368bd7b986b9a0f | 50414801bf68fdce5256197575f1a827b5cedff4 | refs/heads/master | 2022-12-14T19:25:23.147540 | 2018-08-30T02:36:15 | 2018-08-30T02:36:15 | 133,443,435 | 0 | 0 | null | 2022-12-08T02:41:14 | 2018-05-15T01:45:23 | Python | UTF-8 | Python | false | false | 4,066 | py | import requests
from django.conf import settings
from django.contrib.auth import get_user_model
from rest_framework import status
User = get_user_model()
class APIFacebookBackend:
CLIENT_APP_ID = settings.FACEBOOK_APP_ID
CLIENT_SECRET_CODE = settings.FACEBOOK_SECRET_CODE
def authenticate(self, request, ... | [
"rainsound128@gmail.com"
] | rainsound128@gmail.com |
5ba4cad4c0f578ee5023846bff798403f454451d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03548/s413867262.py | f0f0fea98a3638b5746c91a4b886907789bfdba3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | x,y,z = map(int,input().split())
x -= z
r = x // (y + z)
print(r) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d1d1fba7f206e21df55707bcdfcecdc4c5aa3947 | 9eac7e388265b0c0fdb5d3650119d0fee550d580 | /day30/03 多态.py | 3338526162b51124061e61d34f11bc759bb63b0f | [] | no_license | wintryJK/python_project | 9446e5adc1872ca1cdc5d93ee558fba04aa905d1 | 7ce86c3e7c4d88cc62afe59a0e97f66b008d761f | refs/heads/master | 2023-05-13T00:38:59.538899 | 2021-05-30T15:56:02 | 2021-05-30T15:56:02 | 372,257,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | """
@作者: egon老湿
@微信:18611453110
@专栏: https://zhuanlan.zhihu.com/c_1189883314197168128
"""
# 1、什么多态:同一事物有多种形态
# class Animal:
# pass
#
# class People(Animal):
# pass
#
# class Dog(Animal):
# pass
#
# class Pig(Animal):
# pass
# 2、为何要有多态=》多态会带来什么样的特性,多态性
# 多态性指的是可以在不考虑对象具体类型的情况下而直接使用对象
# class Animal... | [
"786808797@qq.com"
] | 786808797@qq.com |
d8bfda8fb26afb7e89a297e83467956a3e23c994 | d5ef4bee2637e1b821697c33e70abfb2c891451f | /tasksheet/message.py | 74b729320d5d3192c2783abe4e29dff80bc5bcd0 | [] | no_license | vishnukuma6/tasksheet | 5ce03df45d81ed25900f1672e83233af76e350ae | eda6a2de4bb82f105a4ed1edf2d995ae1231b3ff | refs/heads/main | 2023-07-14T06:26:10.576965 | 2021-08-30T09:07:52 | 2021-08-30T09:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import json
class SuccessStatus:
DEFAULT = 'true'
HTTP = 200
SUCCESS = 'success'
ERROR = 'Error'
class SuccessMessage:
DELETE_MESSAGE = 'Successfully Deleted'
CREATE_MESSAGE = 'Successfully Created'
UPDATE_MESSAGE = 'Successfully Updated'
CLOSED_MESSAGE = 'Successfully Closed'
SUC... | [
"vishnukumarrb.tech@gmail.com"
] | vishnukumarrb.tech@gmail.com |
925e04ce6f561c6d0ddadc558f35f5ecb7e0cb96 | 54fc7000b58b98aed69ad87af815d9f819fa3548 | /vio_hw/hw3/CurveFitting_LM/plot_lambda.py | 6d6540e8c623eaa4cbaf089ac39169b3d6257945 | [] | no_license | lisilin013/VO-VisualSLAM-LaserSLAM | b92097da835f3bc15dc81d6bf53e4b0a8ddafad2 | 14d818b9bcd2a9d21a80ee9fc0fa7fae03e0f24b | refs/heads/master | 2021-07-24T14:02:40.663469 | 2020-05-11T09:29:30 | 2020-05-11T09:29:30 | 164,781,354 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # coding:utf-8
# 编码:
# for inputting chinese
# this is comment 行注释
a = 9
'''
segment comment like this
this
is
comment
too
'''
# 使用type函数可以打印数据类型
# print ('我爱你')
# print (type('this is a str'))
# print (type(3))
# print (type(3.4))
'''
data type:
int float str list
1 2.3 'ds' [1,2] ['lisilin', 'bieshuxia... | [
"lisilin013@163.com"
] | lisilin013@163.com |
9876eb16678ce96be23d198fc336a22e7140a48d | e1b9863bc9a63656141ba790827376c9b93a727c | /create_db.py | d02698ef5540b385f3aec73e381e1d3338ee4b4f | [] | no_license | mbasaran77/dbase | d0c2753ae2c2cafb4aca7c928f519e6ba652796c | 31e419cc5ef14c48d36da6d125434e07c0cdd4ac | refs/heads/master | 2021-04-30T16:38:03.527687 | 2019-01-23T09:36:35 | 2019-01-23T09:36:35 | 80,086,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py |
import sqlite3
import time
import datetime
import random
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from matplotlib import style
style.use('fivethirtyeight')
conn=sqlite3.connect('example.db')
c=conn.cursor()
#create table
# c.execute('''CREATE TABLE stocks
# (date text, trans te... | [
"mbasaran77@gmail.com"
] | mbasaran77@gmail.com |
bcff700ebee1397079dd2992789e9bc725b873a8 | 6961f33d78539cfb3e7fec68921231378c4369b9 | /r_main.py | 7245a6abdd9302fc75567d7475f93d023fd48c18 | [] | no_license | jack1806/RDUtil | e6f2bfc263dda807616017b2118f26091bfe6f9d | edb82215d6b670defcd8fb4bfb39895de58fe607 | refs/heads/master | 2023-04-13T05:07:02.223346 | 2021-04-22T12:24:26 | 2021-04-22T12:24:26 | 349,380,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | from rdutil.rditem import *
DATA = RDs()
def print_c(string):
print(MENU_ITEM_FORMAT.format(string))
def printf(fmt, *args):
print(fmt.format(*args))
def modify_rd():
series = int(input(MENU_ITEM_FORMAT.format("Select series : ")))
series_rd = DATA.get_top_r(select_all=True, select_series=series... | [
"atodkar@commvault.com"
] | atodkar@commvault.com |
b2693b09d0c68f35e8b5d2a11a389ac0cb27243b | 1f49924a1a2e475bf3723e2f1aba70d422526342 | /spider/requsts_demo/demo3.py | bcebcd43b875f85b711c32aba8f9540c65b29036 | [] | no_license | lbjhuang/pystudy | d82a67b59982357f2fed84b5a467a5d15a40c218 | 7d13f43376dfe1af9f21f25ee772f5d7ca33a708 | refs/heads/master | 2021-05-06T15:26:31.585706 | 2018-05-19T08:12:50 | 2018-05-19T08:12:50 | 113,552,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import requests
#设置代理服务器(urllib需要构建opener处理器,比较麻烦,这个很简单就可以实现了)
proxies={
"http":"http://127.0.0.1:9743",
"https":"https://127.0.0.1:9743"
}
response = requests.get("https://kyfw.12306.cn/otn/leftTicket/init", proxies=proxies)
print(response.status_code) | [
"867999030@qq.com"
] | 867999030@qq.com |
7291d8ba50828814176f7abb193c7cde1e7ba1c6 | 9d93af3cf4a663fe5e9618061a37d0910c089cea | /tests/test_decompressor_decompressobj.py | 8787afa53b47209b0870bd073017dbb59cd40c88 | [
"BSD-3-Clause"
] | permissive | glandium/python-zstandard | 49bd96daed537169345f8024ead5a4fe599f8b4d | 80c3142f274621d11b1e3c401e17ee4b983ab1a5 | refs/heads/master | 2022-12-07T00:34:01.413940 | 2022-10-29T22:33:35 | 2022-10-29T22:38:08 | 134,373,670 | 0 | 0 | null | 2018-05-22T06:57:46 | 2018-05-22T06:57:46 | null | UTF-8 | Python | false | false | 3,799 | py | import unittest
import zstandard as zstd
class TestDecompressor_decompressobj(unittest.TestCase):
def test_simple(self):
data = zstd.ZstdCompressor(level=1).compress(b"foobar")
dctx = zstd.ZstdDecompressor()
dobj = dctx.decompressobj()
self.assertEqual(dobj.unused_data, b"")
... | [
"gregory.szorc@gmail.com"
] | gregory.szorc@gmail.com |
7e65f2c0f267cf4542cb0fb740a676658599f50f | effc494a6dd72c20bc0fb377bdd397b6b581a34a | /manage.py | 32003a0406a5fc0f01ce5756aa1f65e7aafdd8fd | [] | no_license | hanifaudah/django-forum | 703f393547fec742df9b720f6bf2456f1d3246ab | 1eb348cf9d4a3271172b3a937df37026f6c37e2f | refs/heads/master | 2023-04-27T10:27:04.253998 | 2022-03-31T04:58:44 | 2022-03-31T04:58:44 | 233,619,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | 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', 'django_app.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"hanifarkanaudah@gmail.com"
] | hanifarkanaudah@gmail.com |
b4922344953251b60d5c915c16fcf704c828a4f4 | 74217e968104103957048b4edfb024c8b42edf4d | /hvad/tests/contrib/restframework.py | 7098219d4494b36587a7d8793e6bb0fb4923ae2e | [
"BSD-3-Clause"
] | permissive | trungdq88/django-hvad | 41fcc004419a5f0698791dbd1ce5888f3234b2db | 496aa83553ced45bedbced7b5b364c4436e9c8e2 | refs/heads/master | 2021-01-24T23:51:38.392630 | 2015-12-23T14:20:24 | 2015-12-23T14:20:24 | 48,811,194 | 0 | 0 | null | 2015-12-30T17:10:31 | 2015-12-30T17:10:31 | null | UTF-8 | Python | false | false | 21,664 | py | # -*- coding: utf-8 -*-
from rest_framework.serializers import ModelSerializer, CharField
from hvad.test_utils.context_managers import LanguageOverride
from hvad.test_utils.testcase import HvadTestCase
from hvad.test_utils.project.app.models import Normal
from hvad.test_utils.data import NORMAL
from hvad.test_utils.fix... | [
"julien@etherdream.org"
] | julien@etherdream.org |
e3c7c2958a7f77230ac1a8fc22dc376821545c9b | 007c8d44691dcd0c4801d14cb60d36782ef51292 | /other/kafka_connect_restful/kafka_connect_restful.py | 1847d18a1d9bf822971c9139072b35472962000b | [] | no_license | heyongman/python2 | 736c003304525ae5023b046c4cd379eb0aca9e4d | 096e11be12231d194a39bde2340709e527caf0f5 | refs/heads/master | 2021-06-26T23:01:44.397050 | 2021-03-17T03:43:49 | 2021-03-17T03:43:49 | 222,906,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,537 | py | #!/usr/bin/env python
# coding=utf-8
from optparse import OptionParser
from optparse import OptionGroup
import sys
import urllib
import urllib2
import json
import socket
import traceback
class HttpMethod(object):
def __init__(self):
pass
@staticmethod
def post(url=None, params=... | [
"root@DESKTOP-1898J0G.localdomain"
] | root@DESKTOP-1898J0G.localdomain |
a1927b945691b58d7205d3418bf193be297a46ee | 8573ed6dff6f4a6fed9771eeb5d4b3ee7ef3dae2 | /Sorting and Searching/Sorting Algorithms/bucket_sort.py | 721dd9acc7e3ea0aa844a31c4fd0fe8e376aac63 | [] | no_license | maxthecabbie/LeetCode | 5afac2d6d163523638f5228934161c99336c4d13 | 289a447eee1ae45f990bf62eaeba03890f570a1a | refs/heads/master | 2020-03-24T15:41:29.726522 | 2019-04-29T19:18:07 | 2019-04-29T19:18:07 | 142,798,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | def bucket_sort(arr):
if len(arr) <= 0:
return
min_val, max_val = arr[0], arr[0]
for n in arr:
min_val = min(min_val, n)
max_val = max(max_val, n)
buckets = [[] for _ in range(max_val - min_val + 1)]
for n in arr:
buckets[n - min_val].append(n)
i =... | [
"maxthecabbie@gmail.com"
] | maxthecabbie@gmail.com |
0e376bee201ac7067af3c4fd78a0b6a7f6ddbdaa | 6053bb25f87a01b55660d07acef8a67de76bd179 | /src/py/flwr/client/grpc_client/connection_test.py | 84ea9fc0164e91192f3ee3449722297b61edf97e | [
"Apache-2.0"
] | permissive | GaryYe/flower | 87c352a38698062a5f55aee62a2dc47bff0f89f7 | c47ad4532070f0ac2137a6191151fe39c59f103f | refs/heads/main | 2023-04-30T12:09:47.519081 | 2021-05-24T17:04:37 | 2021-05-24T17:04:37 | 370,049,658 | 1 | 0 | Apache-2.0 | 2021-05-23T12:39:58 | 2021-05-23T12:39:57 | null | UTF-8 | Python | false | false | 3,936 | py | # Copyright 2020 Adap GmbH. 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... | [
"noreply@github.com"
] | GaryYe.noreply@github.com |
9e2f014bf340408a1bf303b5774445c026415329 | 3e3d3c6a0b632d606f0c3036893acb0ab81f6c07 | /FamousAlgorithms/TopologicalSort/python/programm.py | 8626575503089a7a2d95344376c97e8cd17b488c | [] | no_license | ChrisProgramming2018/algoritm | 5575efa05f7aa360219d1eb14ac6b9392c2f251d | 4cd62892ea581c7ebb4163e72349fc21640d368c | refs/heads/master | 2020-11-23T23:29:12.905711 | 2020-06-08T21:35:45 | 2020-06-08T21:35:45 | 227,863,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # Implementation of Topological Sort
class JobNode:
def __init__(self, job):
self.job = job
self.prereqs = []
self.visited = False
self.visiting = False
class JobGraph:
def __init__(self, jobs):
self.nodes = []
self.graph = {}
for job in jobs:
... | [
"info2016frei@gmail.com"
] | info2016frei@gmail.com |
0e688ee0061c5df180a71f4e16541de90c10d0b4 | 39bc099123097e1a183b44437954a3f037125891 | /tests/ext/modeling.py | b4844cc12cbbd9efb8749f282a606990ae3eb1a8 | [
"MIT"
] | permissive | pranaya-mathur/bert-for-tf2 | 81c5f1db765ca6e06651e284f0911ba9099c6f99 | cad915ee9d20802a05181373fe30b716a70bc870 | refs/heads/master | 2020-09-05T18:00:24.987757 | 2019-11-05T16:19:44 | 2019-11-05T16:19:44 | 220,175,286 | 1 | 0 | MIT | 2019-11-07T07:19:26 | 2019-11-07T07:19:25 | null | UTF-8 | Python | false | false | 38,936 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kpe.git@gmailbox.org"
] | kpe.git@gmailbox.org |
d12771020f82de1d9e775528f1e630eb6ee5eb29 | fae4f3a6a95486bd17b713bcf1020dc83e177d9c | /util/make_model | e683df8fc9a266564153bf84315aa188a54b6fc3 | [] | no_license | judy2k/fictionary | 140a1382ac04ef1bd91cc6ffd611c9c0822a78f6 | ec1f24c48f32307f852b7aac931fd310a056e352 | refs/heads/master | 2022-12-24T08:22:13.074336 | 2022-08-05T13:59:29 | 2022-08-05T13:59:29 | 5,230,555 | 4 | 1 | null | 2022-12-09T06:24:00 | 2012-07-30T09:35:34 | Roff | UTF-8 | Python | false | false | 1,440 | #!/usr/bin/env python3
from argparse import ArgumentParser, FileType
import sys
import fictionary
import fictionary.model
def create_model(files):
"""
Read through one or more wordlist files and make_model a Markov object
representing the words and a set of all the words fed into the Markov object.
... | [
"noreply@github.com"
] | judy2k.noreply@github.com | |
c408d5a1f6455044eebd2c08a6faa53ebaa84db6 | 1f0dfe71a206f0c2682d7e40be07d3eb5ea97c47 | /basic_grammer/json/enum3.py | bddc834942faee31b01342c11e6c5d6590ff5357 | [] | no_license | Touchfl0w/python_practices | 76469e72699737acdf27dc6d0d4dd15ed18bf4ac | e45e5b184dc279905135cc978ed2149ff75955af | refs/heads/master | 2022-11-14T08:22:03.102034 | 2018-08-14T14:28:46 | 2018-08-14T14:28:46 | 135,983,480 | 0 | 1 | null | 2022-10-27T19:28:52 | 2018-06-04T06:56:18 | Python | UTF-8 | Python | false | false | 257 | py | from enum import IntEnum,unique
#一般枚举允许value重复,不会报错
class Weekdays(IntEnum):
MONDAY = 1
TUESDAY = 2
WEDSDAY = 1
#加装饰器后禁止
@unique
class Weekdays1(IntEnum):
MONDAY = 1
TUESDAY = 2
WEDSDAY = 3
print(type(Weekdays)) | [
"fu_zhipeng@163.com"
] | fu_zhipeng@163.com |
6ce66c26046f97fecfa1f80b110a7ed87753a78d | 7fe5a81a72bd617d22bbc064fdce480a1f5ede91 | /ebay_scraper.py | e918e1afe1a6d6b42ffbc0daa6b31e113ab858e7 | [
"Apache-2.0"
] | permissive | saisyam/ebay-scraper | 89900a3b01f2097b7f415b04c133ca62ef483a8c | ede9d7fd6e2af37ad4ab618b2327c98266112c14 | refs/heads/main | 2023-04-10T07:23:23.991402 | 2021-04-18T08:18:14 | 2021-04-18T08:18:14 | 358,513,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,734 | py | from utils import *
from bs4 import BeautifulSoup
import sys
import json
import unicodedata
def get_product(url, count):
for i in range(1, count):
html = get_html(url+"?_pgn="+str(i))
soup = BeautifulSoup(html, "html5lib")
maincontent = soup.find("div", {'id':'mainContent'})
section... | [
"saisyam@saisyam.com"
] | saisyam@saisyam.com |
74fe2b6296b0916d5ecb41b8591dfb8ebb76efff | 6a5c449015461cea4576357a63c7ad9832ba361f | /cheidi-pyramid/setup.py | 4842975719287c58e0d546d574d16ec08efe7af0 | [] | no_license | AdCastle/cheidi-pyramid | 88fc1441cbaf25cf2e0cd8c0324112474a2ff6a0 | 9a33881ceb986cddda98caf7679be10cdd9e5d60 | refs/heads/master | 2021-01-13T00:44:37.113922 | 2016-04-17T11:10:36 | 2016-04-17T11:10:36 | 51,696,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_d... | [
"acastle@ripe.net"
] | acastle@ripe.net |
e2d9d1b58fc3e7b80ff18eb365629a28e93ca63c | e4ce552874f261445c57d5aeaaaf9a4efa5a323d | /test.py | 61651f91607890df69e99f41b98168d7a9fd6ab0 | [] | no_license | yuningbie/strust-fintech | 0d70471c0cb96d1441a22200f0c6f1520274b0e7 | 0b25c2655e82900e2e0bd98e714d06eabde3c832 | refs/heads/master | 2020-06-01T07:04:20.055102 | 2019-06-15T21:14:29 | 2019-06-15T21:14:29 | 190,691,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | #!/usr/bin/python3
import sys
import json
import requests
import psycopg2
print("testst")
# baseUrl = "https://xchain.io"
# asset = "btc"
# response = requests.get(baseUrl + "/api/asset/" + asset)
# print(response.status_code)
# print(response.json())
blockchairBaseUrl = "https://api.blockchair.com/"
response = requ... | [
"yuning.bie@gmail.com"
] | yuning.bie@gmail.com |
e9db9818e494f384c844677ae1990294ae528f14 | f406976dc6da185d42f7239bbade3969b375b8a1 | /Kaggle/example 1/Titanic/titanic2.py | 649f8e0921bd606f34d660c0527d15041b7dc9a9 | [] | no_license | nanzhao/Machine-Learning | 785ef305eda44057a3e082c8d7923ae75747a544 | 5289b0d7ea9f4a50cc6a2081429405cba26058b8 | refs/heads/master | 2021-04-29T00:05:33.929450 | 2017-01-22T01:55:31 | 2017-01-22T01:55:31 | 77,718,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,235 | py | import numpy as np
import pandas as pd
from pandas import DataFrame
from patsy import dmatrices
import string
from operator import itemgetter
import json
from sklearn.ensemble import RandomForestClassifier
from sklearn.cross_validation import cross_val_score
from sklearn.pipeline import Pipeline
from sklearn.grid_sear... | [
"nan.zhao@outlook.com"
] | nan.zhao@outlook.com |
296cb9d5028833031c7c18c804f7482b927593e9 | 4c45e0379f238a217931f3402cf7096a1e2cf8cf | /example.py | 33d6f084b9fd6c6ecdeda7c1bbafcfb2edfc456a | [] | no_license | daniel012/palace | c554e410ecfee037d4812460eb1c8b8aaf787501 | 8563e106fa478329ee29ac620b1f0ecc9c8b5c32 | refs/heads/main | 2023-07-10T01:46:14.391719 | 2021-08-20T22:38:13 | 2021-08-20T22:38:13 | 397,007,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from bitsoRequestMethod import requestHandle
# make a order
"""
http_method = "POST"
request_path = "/v3/orders/"
parameters = {
'book':'btc_mxn',
'side': 'buy',
'type': 'limit',
'major':'1',
'price':'501'
}
response = requestHandle(http_method, request_path, parameters)
"""
http_method = ... | [
"oliveros.jesusd@gmail.com"
] | oliveros.jesusd@gmail.com |
db6393a438130ec3da20034f19aea28ed022f5cb | 8cf4c5ac76ee2975bd51fc4b1408e61c4fa81409 | /checker/checker.py | d6550ef16b811a19a54cb5da9e2c521aa055cdf0 | [] | no_license | TetVoid/compiller | de2fec547815c375732f0a5dd246c02f4ab6d6b5 | 8184769a4776ce3ca451620aa88d4f6e0d674f4f | refs/heads/master | 2023-04-24T11:23:38.147932 | 2021-04-27T18:47:13 | 2021-04-27T18:47:13 | 362,217,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from enum import Enum
from termcolor import colored
class Exceptions(Enum):
TYPE_ERROR = 'TypeError'
NAME_ERROR = 'NameError'
VALUE_ERROR = 'ValueError'
ATTRIBUTE_ERROR = 'AttributeError'
COMPILE_ERROR = 'CompileError'
def custom_exception(msg: str, line: int, column: int, error_type: Exceptions... | [
"nikbot58@gmail.com"
] | nikbot58@gmail.com |
6a0aec763b5e253145873cd3bed3a39e26344b7f | 016b7b0cdd60900ca9b2e26f959142c30313e00d | /report/views.py | 1c7bc22d70a1ad296f8eed19d0e4747783cedc6b | [] | no_license | groob/imagr_server | 1e2abdab290b020225359103e72f56ecec7d52b5 | 81dfa968ed48ec719803dd0d53f17b92130e76da | refs/heads/master | 2020-04-05T23:06:40.972867 | 2015-06-11T14:46:15 | 2015-06-11T14:46:15 | 51,090,790 | 0 | 0 | null | 2016-02-04T16:58:34 | 2016-02-04T16:58:34 | null | UTF-8 | Python | false | false | 773 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from models import *
# Create your views here.
@csrf_exempt
def index(request):
data = request.POST
serial = data['serial']
message = data['message']
status = data['status']
... | [
"graham@grahamgilbert.com"
] | graham@grahamgilbert.com |
6c10500f55f6b13bca966eca7cbbe7672a46aa28 | b7a8ec9f3fddcff821d5336be38586e0b9b49734 | /app/main/__init__.py | 45bdd43d9e32c666a68f6f96f3b8f40853fe303a | [] | no_license | kakushawn/kaldi-inspection | 9decdc2cb43e112796179becf6b7af6b6ba686fa | c89fb98e652d594f3a58f26024f8c806f9821bbd | refs/heads/develop | 2023-03-20T03:31:06.881373 | 2020-11-02T03:46:49 | 2020-11-02T03:46:49 | 205,514,486 | 1 | 5 | null | 2021-03-20T03:03:22 | 2019-08-31T07:56:33 | CSS | UTF-8 | Python | false | false | 88 | py | from flask import Blueprint
main = Blueprint('main', __name__)
from . import controller
| [
"kakushawn@gmail.com"
] | kakushawn@gmail.com |
e22c12af68d8e99cdf4e19f688f11d0073375370 | 24e4d280a0305ffc1860aa947c21c31af9039a83 | /acc_users/migrations/0001_initial.py | 98389d42dcb8e209b05a4f227867b8ada0d3ba08 | [] | no_license | budescode/serenity-api | 56b99aa797fb0155fd27f25f8727584d5831c187 | 98b93b650931f2b46d28e6240ae003e0d8341d10 | refs/heads/master | 2023-01-03T23:00:30.936238 | 2020-10-22T07:47:37 | 2020-10-22T07:47:37 | 274,897,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,430 | py | # Generated by Django 2.2.6 on 2020-06-23 16:36
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"gospeltruth18@gmail.com"
] | gospeltruth18@gmail.com |
abc2410379e452e52079d1ed153c7363674b31aa | 1fd8e4c9e08fd2085c69224a11bdbafaea5bfd3b | /src/api/contact/department/depmanagment.py | 00fcf1dee2223f4edfbadc6d4b5df3d30d5b456f | [] | no_license | hellolocus/CorpWechatAPI | 30ee160c5ff95a33a9c3aa7eea9c51b1899c0673 | c2416d979d40e1cf04677aad71812d16dd6cc9d5 | refs/heads/master | 2020-05-07T12:01:47.753025 | 2019-04-10T08:04:18 | 2019-04-10T08:04:18 | 180,486,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | #!/usr/bin/env python
import logging
from src.initialization.sysconfig import sys_cfg
from src.api.baseapi import BaseAPI
class DeptManagment(BaseAPI):
def __init__(self):
BaseAPI.__init__(self)
self.create_dept_url = sys_cfg.get('contact_para','create_dept_url')
self.delete_dept_url = sys_c... | [
"469795236@qq.com"
] | 469795236@qq.com |
57848684f29088f1594e93d18a9cca0f11cda17c | c8781d3dc17202fcc1b5358475071c0a834c7f82 | /ShowAndSearch/utils/parser.py | fe86a895837ffa7cf0261b804c6bb2395d13278d | [
"Apache-2.0"
] | permissive | guchengxi1994/show-and-search | 7b73d4a7a0250a0f70cf07b0de7695d6c8051545 | e955a6677f3cd23b1f7ed247e828a5852ec6ab20 | refs/heads/master | 2022-12-22T06:28:36.601500 | 2020-09-22T05:17:14 | 2020-09-22T05:17:14 | 295,630,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | '''
lanhuage: python
Descripttion:
version: beta
Author: xiaoshuyui
Date: 2020-09-15 15:59:10
LastEditors: xiaoshuyui
LastEditTime: 2020-09-22 11:19:20
'''
import argparse
from ShowAndSearch.utils.logger import logger
class BaseParser(object):
def __init__(self, args: list, method: str):
"""
args... | [
"528490652@qq.com"
] | 528490652@qq.com |
8ecc5ca3019c9853f9e4615b6c69f6f15bcb64b9 | b18c62e2b862d5ba8eb2b678dcc2635259788067 | /py_code/generate_maze.py | 7b10277412b394cd66b171064e4f69edfb13cca0 | [] | no_license | zbwby819/Sensor_network | c93063ae559eb545c432ac53de0d3360313a3e9f | eaf7f7e0b1ba578090ad8cb0e1b833cfc3a1ea64 | refs/heads/master | 2023-06-27T04:19:04.514645 | 2021-08-02T07:53:53 | 2021-08-02T07:53:53 | 352,576,340 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,014 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 4 09:45:31 2020
@author: azrael
"""
############################################################# 随机Prim
import random
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.cm as cm
num_rows = 4 # number of rows
num_cols = 4 # number o... | [
"noreply@github.com"
] | zbwby819.noreply@github.com |
bb70d46207c8377526bd858837308996c3cf0378 | cc3a782369552f4acfe2bb1bcd589773a8521b3f | /view/migrations/0010_auto_20160527_0151.py | 0fa20091788f14f857d6038cabea79fd087e08db | [] | no_license | bartholomaeuskim/cms | cda9edb273f0d1b7b0cefc3e90986c9ec8cf6697 | 38d8ec6c3c0136cd8f83cdbfb7f60a9f79d56dc8 | refs/heads/master | 2021-01-01T03:45:00.166488 | 2016-05-29T18:44:50 | 2016-05-29T18:44:50 | 58,531,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-26 16:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('view', '0009_auto_20160512_1725'),
]
operations = [
migrations.AlterField(
... | [
"bartholomaeuskim@gmail.com"
] | bartholomaeuskim@gmail.com |
7165bd04f05ef777d4328c7437b981ada380a7a4 | 4b2573b10684c08c9bf28eef856f9460d4047523 | /python/file_to_file.py | 9e266464678008777cbf446cb0b31f9a9d19e99b | [] | no_license | chandrakunduru/GIT | 53154793072d0057945e18fe041ce09ac4180af3 | d6fd2e2ddc4f250ec81da97271f87451edebbe0b | refs/heads/master | 2021-01-11T22:56:01.784222 | 2017-03-15T06:42:31 | 2017-03-15T06:42:31 | 78,525,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from sys import argv
from os.path import exists
script, first_file , second_file = argv
print " copy from %r to %r" % (first_file,second_file)
data = open(first_file)
firstdata = data.read()
print " first_file of length %r", len(firstdata)
print "Does the output file exist? %r" % exists(second_file)
print "Ready, ... | [
"c_ckundu@qti.qualcomm.com"
] | c_ckundu@qti.qualcomm.com |
119d315260059b9ae745ebc3791e2647177c0a3e | 7a804eff2596f243565a46ed6275ee0471be8378 | /UMLStateMachine/xmiparser/zargoparser.py | 83d43a97aa1e2314e6ce6d7f8cd4d7c893fdf7b4 | [] | no_license | DanielZorin/uml2ta | 34465ed628d2bf1674f7e57e524ea4338f249263 | 0a0bbcca35dfbd3f3b34e272af278d4bf99813a9 | refs/heads/master | 2022-08-03T09:27:21.814798 | 2020-05-20T15:34:56 | 2020-05-20T15:34:56 | 265,607,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | import os.path
from xml.dom import minidom
def getProfileFilenames(xml_string):
doc = minidom.parseString(xml_string)
filenames = []
for el in doc.getElementsByTagName('filename'):
filenames.append(el.childNodes[0].data)
return filenames
def getProfilesDirectories():
profiles_directories =... | [
"juan@lvk.cs.msu.su"
] | juan@lvk.cs.msu.su |
22ad02957dc454cfefd1bea7d1061892766035c2 | 1d86959582c8d9942334a1496e6c19465b122651 | /boilerplate.py | 7bfff34ca34173d147e7c7d8629b4fde75cb46b1 | [] | no_license | NieeFlatmap/2017-video-streaming | d11b5d07f821053b307ff424a4ceaa89c5d4cd00 | 425a894d51fefc40578c11dcfd2dd74e090e3e3b | refs/heads/master | 2021-04-29T14:37:35.851448 | 2018-02-16T17:24:20 | 2018-02-16T17:31:41 | 121,778,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | from model import *
def read_data(path):
with open(path) as f:
lines = [list(map(int, it.rstrip().split())) for it in f.readlines()]
video_count, endpoint_count, request_count, \
cache_count, cache_storage = lines.pop(0)
videos = {}
for video_id, video_size in enume... | [
"maxadamski@gmx.com"
] | maxadamski@gmx.com |
be701cc78eb6e91ae3642e2723cec154fb26ac3b | 9052be1a6b0af36e7e130fcfd46a4d2e70a3030c | /env/bin/python-config | 3976561887bc45db1a9eaf94ab337e32536fe9f3 | [] | no_license | 2019jrhee/flask_ia_done | dd7eeb329e4aecd2cb2af42077d317190b457ebb | 93093f8dddb95a451cc2792b536a2ec1f3c963e9 | refs/heads/master | 2020-05-07T09:35:00.721062 | 2019-04-09T14:41:20 | 2019-04-09T14:41:20 | 180,381,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | #!/Users/2019jrhee/Desktop/IA_2019_comp_sci/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if ... | [
"2019jrhee@dwight.edu"
] | 2019jrhee@dwight.edu | |
5ef31a9ec18c5448cb0ae51b86e50020a9c725b2 | 28e54666a9d30fee0bfba30e7f0206cb38943ef4 | /정글/WEEK02/10830.py | c00c3d171c9dcd37292921ff7cd11c92a799adda | [] | no_license | SunghyunChoi/Algorithm | 804808b16b1c70f1b52ee55b2a927fd663ea8b48 | 736fd18c1bc6e6c2fed72b01ae67075f8bf0683f | refs/heads/master | 2023-06-05T11:22:17.411474 | 2021-06-24T14:31:23 | 2021-06-24T14:31:23 | 299,884,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | ## 행렬제곱
## 행렬 A를 B번 제곱값을 return해라
## 행렬 A에 1000 이상인 원소가 있을 경우 나머지를 출력해라.
import sys
r = sys.stdin.readline
def arr_pow(a, b):
answer = [[0 for _ in range(len(a[0]))] for _ in range(len(a))]
if b==1:
u_m = [[0 for _ in range(len(a))] for _ in range(len(a))]
for i in range(len(u_m)):
... | [
"chltjdgus99@naver.com"
] | chltjdgus99@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.