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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a24dae33a26f6bfc4d530a5ec4d3612d10cb0797 | f24081773b8469959bdb632a13f338f546fc3213 | /data/pubmed/pubmed_random_splits/data/convert_pubmed_data.py | 86390aa053bb7e2d2e6c628ab333a871abe1b07f | [] | no_license | youngflyasd/bootstrapped_graph_diffusions | 163ce462cdab033f96b6c2c598af316961bb9edd | 91a6675084e6f78adff64680af84ae5f9df9e908 | refs/heads/master | 2021-09-16T01:25:09.896784 | 2018-06-14T07:54:49 | 2018-06-14T07:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | import networkx as nx
import cPickle
def get_graph(graph_file_path):
G = nx.Graph()
node_label_to_node_id = {}
current_open_node_id = 0
with open(graph_file_path) as f_graph:
next(f_graph)
next(f_graph)
for line in f_graph:
split_line = line.split("\t")
src = int(split_line[1].split("paper:")[1])
ds... | [
"eliav@eliav-ar-vr.hfa.corp.google.com"
] | eliav@eliav-ar-vr.hfa.corp.google.com |
5be9dc6f2cb68fd7c7c2df8268bcd53e2d499608 | c01e5db0b8477148c409423a43e014d9572f48ec | /app/db_credentials.py | d11ad518a97534222acf0043dd541f0c19dc4a1a | [] | no_license | Terencetang11/RestaurantMgmt | 6cc318fc7ecd66bf79bc7327681038bac65fc0b5 | 4f322c6ade6f2143e2d49601b670a59151c2fd5f | refs/heads/main | 2023-06-01T07:20:43.679815 | 2021-06-24T18:30:45 | 2021-06-24T18:30:45 | 380,018,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # To actually have your app use this file, you need to RENAME the file to db_credentials.py
# You will need to enter your credentials to access your mariaDB instance.
# the following will be used by the db_connector.py and
# in turn by all the Python code in this codebase to interact with the database
host = 'YOUR_H... | [
"terencetang11@gmail.com"
] | terencetang11@gmail.com |
b232b49976fc49f6a6cc56d6f53152a58d22f712 | 8a04c450227a688f495b79a4670fda88e062a1ae | /dev/dev/make.py | 186fcb04b9044d9883c94526b5c104baa2c94fe4 | [
"MIT"
] | permissive | ashleychontos/pySYD | f437505407589a94c3ab7bed801727d5a7d6a602 | fef0060b93da126c31ea9c0768d3c5f23e44e815 | refs/heads/master | 2023-08-18T06:22:00.772019 | 2023-07-28T20:56:41 | 2023-07-28T20:56:41 | 238,135,587 | 33 | 10 | MIT | 2023-08-10T04:43:56 | 2020-02-04T06:06:50 | Python | UTF-8 | Python | false | false | 1,732 | py | # SOURCE PACKAGE ---> DEVELOPMENT BRANCH
print('\n\n COPYING FROM SOURCE PACKAGE ---> DEVELOPMENT BRANCH \n\n')
from pysyd import utils
cont = utils._ask_yesno('continue? ')
if cont:
import os
scripts = ['cli', 'models', 'pipeline', 'plots', 'target', 'utils']
rows, rows_cli = 18, 32
_ROOT, _ = os.pa... | [
"ashleychontos@gmail.com"
] | ashleychontos@gmail.com |
690579990da8d1cbd2a372b1e2f2935da11e6455 | 4437b4e67bba457c93af6b835b210f926e605b39 | /activity/wolearn/xxdgg.py | 27337e1a719bdd2bdb59ad8ab055c14744e23e8b | [
"MIT"
] | permissive | mengniu8/UnicomDailyTask | 4bde161f5aa5046bac3dd47e3b91acff4c6f9adc | 1ee9a1a0efd509dccf541ed14d90be501eb95d14 | refs/heads/main | 2023-08-20T15:11:14.748525 | 2021-11-02T15:29:16 | 2021-11-02T15:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | # -*- coding: utf8 -*-
# import json
from random import randint
from utils import jsonencode as json
from activity.wolearn.wolearn import WoLearn
class XxdggAct(WoLearn):
def __init__(self, mobile, password):
super(XxdggAct, self).__init__(mobile, password)
self.chc = "VXADcwYxB35aH1UfVkZTKAAy"
... | [
"49028484+rhming@users.noreply.github.com"
] | 49028484+rhming@users.noreply.github.com |
1a9ede66ad121db5b32e7f7d98721ccf15c5ec28 | f71193c2d542a88e2e128bc7b39e97b75f4e3733 | /data_prepare/pdf_to_text.py | a6c3658fe186d45e721a4951529ad300b2a670f8 | [
"MIT"
] | permissive | XuJ/CPM-Pretrain | cc8b22ad08b0196e3e5d1ee4bed056ed0d35298a | 44ffc5f553c95d81f54420881150cc117912ba32 | refs/heads/main | 2023-04-25T03:56:13.275929 | 2021-04-28T01:11:30 | 2021-04-28T01:11:30 | 357,814,642 | 0 | 1 | MIT | 2021-04-14T07:30:46 | 2021-04-14T07:30:45 | null | UTF-8 | Python | false | false | 3,725 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/4/16 16:06
# @Author : jiaoxu
# @File : pdf_to_text.py
# @Software: PyCharm
"""
将分布在各个文件夹中的pdf文件,通过pdfminer转化为txt文件
同时剔除长度过短句子,以及按照从后往前的顺序剔除字符直至遇到中文句末标点
"""
from pdfminer.high_level import extract_pages
from pdfminer.layout import LTTex... | [
"jiaoxu@zhejianglab.com"
] | jiaoxu@zhejianglab.com |
a953b53045fbf11744d5b650fd5880dd65899122 | 803b7399a0c34c4896be7a2e1ee07fd796dbfad3 | /QueryAgentClass.py | a34da344f4213566c3e69e1e43dc7fc218428da3 | [] | no_license | vishvardhanreddy/Auto-Remedy | cdf2b896d710280d757cc203af080d2bd7067da9 | e7164977de3f5a9f7ac2b769111a65c433005c58 | refs/heads/master | 2016-08-05T22:30:05.144744 | 2015-05-06T02:01:37 | 2015-05-06T02:01:37 | 35,134,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from pymongo import MongoClient
import datetime
from datetime import date
from time import time, sleep
import re
import os
import time
import json
import socket
import sys
import RemedyAgent
import pConnect
from bson.objectid import ObjectId
sys.path.insert(0, '/home/sharishc')
import Signature
import logging
class Qu... | [
"vishvardhanreddy"
] | vishvardhanreddy |
ad0bf3e872c9058c3bbf4c54ba8bcd066d4b87b4 | 9f7e894bb4000f1e10ee3c970c0659f79965fdc3 | /botXapp.py | 8477655120402eafb2f24eb32e6f65bde7414abe | [] | no_license | superbotx/manipulation_api | 81dee9512fe0b05d30f37679e341131ae020141d | d916a8c52a3022b5cdf78d6659bf3f365eb24c4c | refs/heads/master | 2020-03-12T03:15:28.851238 | 2018-04-21T00:00:40 | 2018-04-21T00:00:40 | 130,420,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from botXsrc.botXexport import botXexport
"""
botXexport is a dictionary containing all the reusable components you
developed for the project, and you will use them in the main program.
"""
def main():
print('starting app ...')
manipulation_api = botXexport['manipulation_api']['module']()
manipulation_api.... | [
"ashisghosh@live.com"
] | ashisghosh@live.com |
a4d5647a8357e0f10ede2a154d0c7d6d0e057021 | 6bdd36ff70922241114f766ce2f702c120d34601 | /src/totwistimage_service.py | 0dc2f6ece5b2a799158342207083df6942baf72b | [] | no_license | slremy/ros_web_service | 961f07f4139caf12656f2d2c030c2bc7a787adf1 | 481897111d247ba24a8ba74b76640006bb5f5ebd | refs/heads/master | 2021-05-16T02:37:10.591812 | 2021-04-03T12:50:05 | 2021-04-03T12:50:05 | 42,208,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,359 | py | #!/usr/bin/env python
'''
Copyright (c) 2013 Sekou Remy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... | [
"sekouremy@gmail.com@a6724ec2-1828-344f-a6e4-dcee8d45cc22"
] | sekouremy@gmail.com@a6724ec2-1828-344f-a6e4-dcee8d45cc22 |
d5f98d617a280930d91a0f7c1d9a2c7cc9b05353 | 39e22b705d4c6d0432f797ea0c64917a77622042 | /src/test_model.py | 0db2b2a56994ae1504df9840f9b86fb0d8f4c4c0 | [] | no_license | gnguilherme/cnn_augmentation | 88807c99a2731f9a0d60ca06b26a05a0b6ed6ed7 | 1671d71085b4fde970c1341d65aad5efe70b4534 | refs/heads/master | 2023-07-22T00:16:45.600617 | 2021-08-14T19:47:42 | 2021-08-14T19:47:42 | 396,009,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import os
import json
import tensorflow as tf
import matplotlib.pyplot as plt
from src.train import create_model, get_dataset
AUTOTUNE = tf.data.AUTOTUNE
with open('src/config.json', 'rb') as file:
config = json.load(file)
MODEL_PATH = config['model_path']
def main():
test_ds = get_dataset(step='test')
... | [
"ggaighernt@gmail.com"
] | ggaighernt@gmail.com |
0e4fb4d8e6191187de574dfc987ebb9d3c4b2dde | 1e0203f40d4cffed0d64449edeaea00311f4b732 | /kth-smallest-element-in-a-bst/solution.py | 90676be9e1d6a3c29f0e0ddcbb74bdaadf0b6205 | [] | no_license | childe/leetcode | 102e87dd8d918877f64e7157d45f3f45a607b9e4 | d2e8b2dca40fc955045eb62e576c776bad8ee5f1 | refs/heads/master | 2023-01-12T01:55:26.190208 | 2022-12-27T13:25:27 | 2022-12-27T13:25:27 | 39,767,776 | 2 | 1 | null | 2020-10-13T01:29:05 | 2015-07-27T10:05:04 | Python | UTF-8 | Python | false | false | 1,682 | py | # -*- coding: utf-8 -*-
"""
https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
Example 1:
Input: root = [3,1,4,null,2], k = 1
3
/ \
1 4
\
2
Output: 1
Example 2:
Input: root = [5,3,6,2,4,nu... | [
"rmself@qq.com"
] | rmself@qq.com |
1e202b85fdedfd6a88dfd652e1045b4d9ba33f44 | c47290c21da82defae5d7414b1e033c2f7467924 | /conf/localhost/bhagirath.django.wsgi | 9951b9692edbd2d5279558f3e9389446bb8716a7 | [] | no_license | pingali/bhagirath | 6131f9d7851bf2897dac8e893860c4b338e01b4a | 3dfebed61ab648f5219f61cc7170288b8265dd6c | refs/heads/master | 2021-01-01T20:00:30.915387 | 2012-06-14T10:47:38 | 2012-06-14T10:47:38 | 3,169,330 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | wsgi | import os
import sys
def findpath(path):
return os.path.abspath(os.path.join(os.path.dirname(__file__),path))
# put the Django project on sys.path
sys.path.insert(0, findpath("../.."))
sys.path.insert(0, findpath("../../bhagirath"))
os.environ["DJANGO_SETTINGS_MODULE"] = "bhagirath.settings"
from django.core.ha... | [
"pingali@gmail.com"
] | pingali@gmail.com |
dbf6571352bec851779cf0163b411cd9fe08a94d | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenPercent/rank_4eo5_D.py | 31ce4561eaa828c73dc0d6070c6dfb3b46635e36 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
6e2e5297aadfe98a277c072463a0258f5aaa0bf9 | 079cde666810d916c49a9ac49189a929ad19e72f | /qsbk/qsbk/spiders/qsbk_spider.py | 62ee357ad9cf341e9300040d34c3c4bc1cbae5d8 | [] | no_license | jokerix/demo | 82d01582a9882ac361766516d07c9ad700053768 | 7c0d7666f82ec78e9562956bb0f4482af8531ebb | refs/heads/master | 2021-07-14T02:47:28.686827 | 2020-07-03T15:16:32 | 2020-07-03T15:16:32 | 179,784,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
import scrapy
from qsbk.items import QsbkItem
class QsbkSpiderSpider(scrapy.Spider):
name = 'qsbk_spider'
allowed_domains = ['qiushibaike.com']
start_urls = ['https://www.qiushibaike.com/text/page/1/']
base_domain = 'https://www.qiushibaike.com'
def parse(self, response):
... | [
"1215774897@qq.com"
] | 1215774897@qq.com |
0ad84d45a028072cb09d4a2c559789b516455b30 | e3dc8227b11a0de7f7a21c12b28f4cb7b6d7add1 | /Real_time_identification_1.4.2_for_imaging_ver.3_gui_fixed/module/cnn_processing.py | be7b6e8786977bea67ad9aa2edf3d9b631088f14 | [] | no_license | yt050297/Realtime-Identification | b8d2965e26ac3f405e33da83980ed8f76a289271 | 297b7e4773b3a65d698502db3fccf89aabc0b485 | refs/heads/main | 2023-09-02T20:59:44.490194 | 2021-10-12T07:57:12 | 2021-10-12T07:57:12 | 384,337,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,675 | py | import os
import keras.backend.tensorflow_backend as KTF
import tensorflow as tf
import keras
from keras.models import Sequential, model_from_json
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.layers.core import Dense, Dropout, Activation, Flatten
import matplotlib.pyplot as plt
from module.sho... | [
"yt050297@gmail.com"
] | yt050297@gmail.com |
de32c1537bc409be6ed69442f08c736abee41bbd | d13f8cb91c56b30ee886fcba7e28ab3054d50c2f | /ProjectQ/projectq/setups/decompositions/time_evolution.py | a0897af9433a414fbb7aa5bd8fd1775524cc031c | [
"Apache-2.0"
] | permissive | cowanmeg/501-proj | 05f548a14a895f0eeb8dd544fcec43f1dac9da56 | 109102726db668fbfb963c6f0d884bdef9699bfc | refs/heads/master | 2021-03-22T05:21:55.393992 | 2017-06-09T06:46:02 | 2017-06-09T06:46:02 | 92,208,588 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | [
"cowanmeg@magnesium.dyn.cs.washington.edu"
] | cowanmeg@magnesium.dyn.cs.washington.edu |
43251bc844c701e640866b166aa62235285ec8b4 | e87075083ebda6e736f1b5fbc8d3bbf5b0ed7da0 | /p4-5/p5p4.py | 9dfd24e67c5756dfcd7417ea6656cdc7a478e438 | [] | no_license | kiwi-33/Programming_1_practicals | 20ec7841cd03d6cf17cae6c4424e377d71cb8675 | 880aa7bc563f69010661fb1f8b404fde5148bd7a | refs/heads/master | 2022-05-30T09:18:22.347044 | 2019-03-23T16:37:17 | 2019-03-23T16:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | number = int(input("Enter a number: "))
if number =0:
print ("Number is equal to 0")
elif 0<number>=20:
print ("Number is greater than 0 and less than or equal to 20")
elif 20<number>= 40:
print ("Number is greater than 20 and less than or equal to 40")
elif 40<number>= 60:
print ("Number is gre... | [
"noreply@github.com"
] | kiwi-33.noreply@github.com |
6bf5263858b5f7cef53615ff86a31774d5e8b2a9 | 40f3cf474854076bbfaefa232f57b99ebc15ae76 | /Cercle1.py | 8692e3653cca8c9693bacad4d39368afe551c7fc | [] | no_license | Loemba-Dieumerci/ProgrammationPython1 | 686497faaa86dbd237dd8bbcd73088cb0c82e1c1 | ab2bf8e9b0c95f27f0360edd885eb596034c7180 | refs/heads/master | 2023-01-07T03:57:11.660153 | 2020-11-05T07:59:12 | 2020-11-05T07:59:12 | 307,408,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from pylab import *
#LOEMBA
#Cercle de rayon 1
x=linspace(-1,1,100)
#print(x)
y=sqrt(1 - x**2)
plot(x,y, 'r')
#Pour obtenir la symétrie
plot(x,-y, 'r')
#Forcer le graphique d'avoir la mm échelle en x et y
axis("equal")
grid()
show()
| [
"loembadieumerci1965gmail.com"
] | loembadieumerci1965gmail.com |
26abee7d9d7583207b928017fd3a2a412326189d | b3db0c8aac2eb3cb098c9b4e811747684617534e | /food_rec/models/guideline_directive.py | ede432eac6dedab12ff250bc63d67f174717cba9 | [] | no_license | solashirai/FoodRec | 814c58431c134a1e561414dbfe2c64f842cd53fd | a14fcf2cafaf26c5bb6396485a16052c6925aa6f | refs/heads/master | 2023-04-07T04:40:13.249868 | 2021-04-19T02:29:36 | 2021-04-19T02:29:36 | 359,238,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | from typing import FrozenSet, TypeVar, List, Set, Callable, NamedTuple
from food_rec.models import FoodKgRecipe, FoodKgUser, RecipeCandidate
from frex import DomainObject, Explanation
from frex.models.constraints import ConstraintType
from frex.utils.common import rgetattr
class GuidelineDirective(NamedTuple):
""... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
4605e6446b4acdec8d2635b068107bdcb22c73b0 | 288757e602b561c482e0b5053945b42de0ed5692 | /code/008.py | df7560cb6d4ff633e9780e7f48727b497dd6b475 | [] | no_license | ByoungJoonIm/Algorithm_Practice | 2cddd0bf353fe386f70bcfdb089f094fabb61d63 | 56f12a66ae8bb924df5fcbc27d3a6bf3365c1e82 | refs/heads/master | 2021-06-28T02:13:44.418822 | 2020-10-10T23:24:59 | 2020-10-10T23:24:59 | 174,338,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | T = int(input())
# 여러개의 테스트 케이스가 주어지므로, 각각을 처리합니다.
for test_case in range(1, T + 1):
N = float(input())
rs = ''
for i in range(1, 13):
t = 1.0 / (1 << i)
if N - t >= 0:
rs += '1'
N = N - t
else:
rs += '0'
if N == 0:
... | [
"noreply@github.com"
] | ByoungJoonIm.noreply@github.com |
37177fa4bbedd726b7f981728d3ae8f145a2d283 | ac842f300f8799af001bc3262fe208edc5a54eeb | /src/Trees/list_tree_implementation.py | cdf71e6bf1f1eb28b32fc8802a0f7f5bb9c82022 | [] | no_license | anatulea/PythonDataStructures | ba3b1c0e7dd19a9762d7f5686f053bdb4e02e9fd | c20fdbff051eb94ca0a5835927be4e81b10fe60b | refs/heads/master | 2023-01-20T07:53:15.835808 | 2020-11-25T23:41:20 | 2020-11-25T23:41:20 | 300,012,953 | 0 | 0 | null | 2020-11-25T23:41:21 | 2020-09-30T18:18:34 | Jupyter Notebook | UTF-8 | Python | false | false | 667 | py | '''
Below is a representation of a Tree using a list of lists.
'''
def BinaryTree(root_node):
return [root_node, [], []]
def insertLeft(root,newBranch):
t = root.pop(1)
if len(t) > 1:
root.insert(1,[newBranch,t,[]])
else:
root.insert(1,[newBranch, [], []])
return root
def insertRig... | [
"anatulea@Anas-MacBook-Pro.local"
] | anatulea@Anas-MacBook-Pro.local |
9ac13e29a99269814658650420dcf1a6270aae21 | a55bf34082c0f1eafe58d4a39d1088963f75575c | /Chapter8_recusion_dp/robot.py | a3930d685b5048daea0b80abb51df31caac17328 | [] | no_license | Kaiton7/Cracking_CodeInterview | 69bf3d4e83feaf75b79d7429bca97c9f9e392cfe | eb8a63315a71813a87db360e7a5396bc552e8e5d | refs/heads/master | 2020-04-26T17:47:55.262995 | 2019-03-09T08:47:22 | 2019-03-09T08:47:22 | 173,724,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | '''
def Solve(Matrix):
s_r,s_c=0,0
t_r,t_c=len(Matrix),len(Matrix[0])
dp=[[0]*len(t_c)]*t_r
detect_path(s_r,s_c,t_r,t_c,Matrix,dp)
def detect_path(s_r,s_c,t_r,t_c,Matrix,dp):
if(s_r==t_r and s_c==t_c):
return dp[t_r][t_c]
direction=[[1,0],[0,1]]
for i in direction:
dx=i[0]... | [
"kituemr@gmail.com"
] | kituemr@gmail.com |
b19d5f776040bab37179c45779dbfeb452cb61df | ffbf721d15d74ad330b4558328ea60ba2f7ba8f6 | /前程带.py | 61c8e5bcf300d0b12b7e8f67747cfff9402ec354 | [] | no_license | WangXu1997s/store | b15dee06cd034175650de68f4d59c7f889f21369 | f975e8786b98ff1611879ff68b20b8f358f293a1 | refs/heads/master | 2023-09-04T13:18:09.630779 | 2021-10-18T01:31:59 | 2021-10-18T01:31:59 | 403,526,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | # 实现前程贷项目:
# 注册
# 认证:(实名认证,修改手机号,修改登陆密码)
# 添加银行卡
from time import sleep
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('http://8.129.91.152:8765/')
driver.maximize_window()
driver.implicitly_wait(10)
# 注册
driver.find_element('link text', '免费注册').click()
driver.find_elem... | [
"noreply@github.com"
] | WangXu1997s.noreply@github.com |
ae12f240764d9abe6f5a80dabfb0dfe4c7e71b71 | 3e8127b4729d9c9a6cd7e860f3d3393531e4f90e | /myenv/bin/easy_install | c8d16faf20f20e7bbf427803b6f8b61546d94352 | [] | no_license | artourkin/djangoblog | cf166720677b8cf24bc2a86719b111cecd3a695c | 4ea7cdafb2a9d24db9a96a6dc56adfe17ebba4b2 | refs/heads/master | 2021-03-16T10:26:18.242940 | 2015-04-13T23:00:12 | 2015-04-13T23:00:12 | 33,897,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/artur/rnd/pythonProjects/djangoblog/myenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"artur.kulmukhametov@tuwien.ac.at"
] | artur.kulmukhametov@tuwien.ac.at | |
002575641f813e42d7fbfaaf1ca2c95938890e0a | 680ac920cb7a9d8ed648b020cfd71e13318dfbed | /processors/__init__.py | 28d922a026e4516fa417ae1f815c054310df2807 | [] | no_license | wyangla/toyEngine_operator | b944302ac09605ca9834522a42d5c25a0c237985 | 049446aa141bb84a9b5c52b280371741b87946b1 | refs/heads/master | 2021-06-23T16:46:30.622767 | 2019-08-17T09:50:45 | 2019-08-17T09:50:45 | 153,284,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # processors provide the raw information of documents
# the advanced information is generated by unit_generator
from processors.Doc_processor import Doc_processor # cls
from processors.processor_plugins import Processor_plugin_ch, Processor_plugin_en # modules | [
"wyglauk@gmail.com"
] | wyglauk@gmail.com |
2f8d820a94da8660f390c2e97f539e82dd401658 | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/torch_ddpg_sweep_cheetah.py | c95ba21ef1cea5e5d7d3a9402afdea9802e7c4a3 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | """
Run PyTorch DDPG on HalfCheetah.
"""
import random
from railrl.exploration_strategies.base import \
PolicyWrappedWithExplorationStrategy
from railrl.exploration_strategies.ou_strategy import OUStrategy
from railrl.launchers.launcher_util import run_experiment
from railrl.torch.networks import FeedForwardQFunct... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
b01ed93edf28ecb19f6574b1fd27d9de19182b42 | dd1795abeffc5994b619af8182d536315116e619 | /Don/migrations/0003_auto_20201113_2034.py | d78a4e770489b5b9ac5c4d6941e99c06d0d5fb65 | [] | no_license | clinton01-cr7/GestDonCovid | 3c5c0f43f95b5d87c504961ad81b6d795dc123ed | a4822a9695c41b3f13729fe5f3ef042293b061ef | refs/heads/master | 2023-02-17T04:37:55.103131 | 2020-12-22T20:48:25 | 2020-12-22T20:48:25 | 311,063,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | # Generated by Django 3.1.2 on 2020-11-13 19:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Don', '0002_hopital'),
]
operations = [
migrations.CreateModel(
name='Utilisateur',
... | [
"cmambou06@gmail.com"
] | cmambou06@gmail.com |
804069f5e618909d089754daea39f446f16aaf0e | dd501feff05b5e4378804d4ee6942ee5dac32512 | /simple_controller/scripts/topic/topic_list.py | 999e039cb9ad17289ffb7ee24982db4938e5513d | [] | no_license | OkDoky/capstone | 9dea48ee55a63bbe433f7fc33048a2e2d9c01afc | d9e359dbbb0593c32ae8714c4836944eb6d74382 | refs/heads/master | 2020-05-31T05:42:59.814780 | 2019-06-04T03:54:11 | 2019-06-04T03:54:11 | 190,124,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import rospy
from nav_msgs.msg import Odometry
from tf.transformations import euler_from_quaternion
from geometry_msgs.msg import Point, Twist
from math import atan2
from capstone_msgs.msg import *
rospy.init_node("topic_list")
pub = rospy.Publisher("/point_list",Smartfactory,queue_size=1)
Pli... | [
"ie5630jk@naver.com"
] | ie5630jk@naver.com |
66d162ad84e8d022e18dc5d934f72d4611d318ac | 5bf60b36f8f9c88556c74194939061654c16c7ab | /ops.py | 292f87e6dad14c4605b675967f0a8694c5db73f7 | [] | no_license | Sangwon91/ESGAN | 938446852650f86425f1838ebae7f6123baeb7b1 | 0ff14cf431022e0837790e85ae00ab8c06d90c2d | refs/heads/master | 2022-10-21T17:44:49.353645 | 2020-06-17T04:51:16 | 2020-06-17T04:51:16 | 114,627,613 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | import math
import functools
import tensorflow as tf
kernel_initializer = tf.random_normal_initializer(0.0, 0.02)
dense = functools.partial(
tf.layers.dense,
activation=None,
use_bias=False,
kernel_initializer=kernel_initializer,
)
def pbc_pad3d(x, lp, rp, name="PBC"):
with tf.variable_scope(n... | [
"integratedmailsystem@gmail.com"
] | integratedmailsystem@gmail.com |
202bb1a25b00db27401572fe9e313abab8437597 | ea2616ba021c04e704eaba635d208b51282e695f | /tools/math.py | 137b2400e98d9e3db6a313ca6f7b9cb4b8336161 | [
"MIT"
] | permissive | ZhangAllen98/DAPPER | c5a8f1dbf606c0dae92f9da6e01576ac8224f965 | a60b02ff1934af36fa4807429de65c7103087553 | refs/heads/master | 2020-04-09T23:50:14.715721 | 2018-11-17T16:40:20 | 2018-11-17T16:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,168 | py | # Misc math
from common import *
########################
# Array manip
########################
def is1d(a):
""" Works for list and row/column arrays and matrices"""
return np.sum(asarray(asarray(a).shape) > 1) <= 1
# stackoverflow.com/q/37726830
def is_int(a):
return np.issubdtype(type(a), np.integer)
def... | [
"patrick.n.raanes@gmail.com"
] | patrick.n.raanes@gmail.com |
a72b82041d226086037c79f94f44aa365b69f193 | 12cb93fbc6dc83f2574df4c5b612e8a701aed310 | /sprint12/1/121H.py | 4e3245d3565d21f81d7a90192f00e8a07f00c238 | [] | no_license | dzanto/algorithmics | 85b871ea72069b42d2771b021d0ba02adbd2f021 | 462f4837818eb4f654228e051fcbff0902cad658 | refs/heads/master | 2023-01-09T04:58:06.280813 | 2020-11-11T10:41:38 | 2020-11-11T10:41:38 | 303,316,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | text = input().lower()
bad_chars = [';', ':', '!', "*", " ", ",", "."]
for i in bad_chars:
text = text.replace(i, '')
text = list(text)
if text == text[::-1]:
print('True')
else:
print('False')
| [
"dzanto@gmail.com"
] | dzanto@gmail.com |
83ad61d2619bb1ca26fad05f73878abaf6e94822 | 57cf004cb7b63dd371753608b51261a56e830780 | /anthracite/model.py | a280fbf99820895f0c78669a55e1b115cc59a527 | [] | no_license | seanbhart/anthracite-python | 7cc88f660f98e1f13fcc7738768df82ccd6bdb55 | 50a6d028545d46f62ee94a188f40cc33cb2e996d | refs/heads/main | 2023-03-10T10:55:23.597728 | 2021-02-28T16:25:21 | 2021-02-28T16:25:21 | 332,944,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,660 | py | import logging
from google.cloud import firestore
from db_local import db
from language_analysis.language_analysis import sentiment_analysis
from utils import settings
class Ticker:
"""A db object to retain settings regarding
which and how to search for Ticker symbols in text.
"""
def __init__(self,
... | [
"sean@tangojlabs.com"
] | sean@tangojlabs.com |
f32d758b89677311a4b99f70012e646fba66a3b3 | 589227ce144742ec2bc1ee3bfdb9aad5ac446a9e | /market/models.py | 440740691d747226920d62d2855ed507633e07a4 | [] | no_license | amrtito91/Web-Market-by-Flask | 112a5d30c1244efe3735d342df812f5297e9e732 | 8640755323461d7465ed11002b3ecccb8cd354f3 | refs/heads/main | 2023-08-02T01:57:03.091293 | 2021-09-26T10:23:37 | 2021-09-26T10:23:37 | 410,519,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from market import db, login_manager
from market import bcrypt
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer(), primary_key=True)
username = db.Column(db.String(length=30... | [
"noreply@github.com"
] | amrtito91.noreply@github.com |
19e5e6f78c097f1a9d427f933c66f574af8e9f14 | e5989154160f6317ad3edc1a046119500a25bfd2 | /torrent/bencode.py | 1d9f7d4ce460dbee17acbcd987a0f5fa757dfb5d | [] | no_license | terasaur/pyterasaur | e77c178a8c9e95d0c80c249e1c5bf90831841b31 | bbd5821aa9c952d18421a88b2ec73b8129061a9b | refs/heads/master | 2021-01-13T02:08:39.491272 | 2013-03-20T15:03:34 | 2013-03-20T15:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | # Written by Petru Paler
# see LICENSE.txt for license information
def decode_int(x, f):
f += 1
newf = x.index('e', f)
try:
n = int(x[f:newf])
except (OverflowError, ValueError):
n = long(x[f:newf])
if x[f] == '-':
if x[f + 1] == '0':
raise ValueError
elif x[... | [
"john@ibiblio.org"
] | john@ibiblio.org |
463d11f29fc762a44190a6bedf244c7519e0506f | c97f544e5d6b06288cf84d12fb627601ee97e6b3 | /03templates.py | 44b75d67cc96b0ac35412193eaa4b718853462f7 | [] | no_license | 13794521695/tornado_kj | 667c68efce3fd9a6b32fdc3b729dd6fbffe9cc49 | 5ddcba1dbaa2aa1b45f3e1122b4843c86a2948c5 | refs/heads/master | 2020-04-07T13:21:23.237277 | 2018-11-20T15:20:16 | 2018-11-20T15:20:16 | 158,401,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | import time
import tornado.web
import tornado.ioloop
import tornado.options
import tornado.httpserver
from tornado.options import define, options
define('port', default=8000, help='run port', type=int)
class TemplatesHandler(tornado.web.RequestHandler):
def get(self):
self.write('templates') #依然会在跳转页面上... | [
"704213848@qq.com"
] | 704213848@qq.com |
2ee4eb2074f9a863cac205aa5fa3493321175eb7 | 91bbc1674278092f912d9a336f294ec585512616 | /commodity forecast/DCMecha_temp/StockCalculation.py | f029d96bf4ae9e21d3b26a843cd1d5d60b08dc31 | [
"Apache-2.0"
] | permissive | qingyinji/python_tool | 5688273290df5313ffa37f208663b6cf9b537369 | a06be8c8dc45055be4a9426585837465b40b7f91 | refs/heads/main | 2023-04-03T13:49:36.406981 | 2021-04-09T13:19:11 | 2021-04-09T13:19:11 | 355,482,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | from DataPond import Pond
import DataChange as Change
from DataPoly import Poly
from MysqlApl import DB
from copy import deepcopy
def cache(fun):
cache_data = []
def wrapper(self, data):
if data[0] == 0:
cache_data.clear()
return None
cache_data.append(de... | [
"js.liang@tuya.com"
] | js.liang@tuya.com |
8932948d9d1d5868adc9b5aa6521f1a754b82aac | 79eae6db52c55c1946c01dead460422904b003c7 | /msgs_stack/kraken_msgs/src/kraken_msgs/msg/_orientActionFeedback.py | 8d1e3c07a148865152437c75c8c8b72e4ef5cf7e | [] | no_license | VishnuDuttSharma/kraken_3.0 | 8fed84f31d73968258623d30f65e0790e7c5f5dc | 69ccddaa9b226d03b2c67ea0e7a3bd0be581899c | refs/heads/master | 2021-01-20T21:52:47.681347 | 2014-05-23T20:11:01 | 2014-05-23T20:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,660 | py | """autogenerated by genpy from kraken_msgs/orientActionFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import kraken_msgs.msg
import genpy
import actionlib_msgs.msg
import std_msgs.msg
class orientActionFeedback(genpy.Message):
_md5sum = "... | [
"dharmana.prudhvi@gmail.com"
] | dharmana.prudhvi@gmail.com |
d4f41b77c08a549a9e2c0ff2fe0e97fb8cc167dc | 202bb7c5e37d3f117315e8bba3bd21e84b48fe6b | /alpha/WHSTINKER14.py | ecf708db7cd0ffe9bbb46120197ab0f16ebfd832 | [] | no_license | haishuowang/work_whs | 897cd10a65035191e702811ed650061f7109b9fa | b6a17aefc5905ad9c11dba4d745591ed92b1e386 | refs/heads/master | 2020-07-03T10:30:14.231858 | 2020-06-09T08:47:18 | 2020-06-09T08:47:18 | 201,877,822 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 39,569 | py | import numpy as np
import pandas as pd
import os
import sys
from itertools import product, permutations, combinations
from datetime import datetime
import time
import matplotlib.pyplot as plt
from collections import OrderedDict
import sys
sys.path.append("/mnt/mfs/LIB_ROOT")
import open_lib.shared_paths.path as pt
fro... | [
"1612255875@qq.com"
] | 1612255875@qq.com |
d7852839eba89e6a94266098418f2bc2f8fc6002 | df9f83a5134d0eac8f259ebd3243d5494adde21d | /app/main.py | 387ddcd17e595f33befd93b58ac088ae6b774841 | [] | no_license | alexgorin/coolapp | e40af20bbd96567092de1766e9e611178b6abba0 | 32e8462a44d1b3eabe45556b46d99366cf75800f | refs/heads/master | 2021-08-28T11:22:42.376675 | 2017-12-12T04:01:50 | 2017-12-12T04:01:50 | 113,939,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from flask import Flask
app = Flask(__name__)
def do_something():
return 'Hi!'
@app.route('/')
def index():
return do_something() | [
"saniagorin@gmail.com"
] | saniagorin@gmail.com |
3cade65d4539e0f2b810f0bf64bcc272eb017652 | df927bcec54171297b04ffab0dbffe79d0ca46c2 | /tests/conftest.py | 40cb50c13d36cf7228924db93666defdea2eba23 | [] | no_license | nickmflorin/portfolio-drf | d7645f31033320811af1b83c83ed9610331e1332 | 995549569e320d8f3deec020dc68baceef5b436e | refs/heads/master | 2022-12-23T20:58:18.611580 | 2020-04-29T23:30:28 | 2020-04-29T23:30:28 | 247,204,266 | 1 | 0 | null | 2022-12-08T09:32:01 | 2020-03-14T03:26:28 | Python | UTF-8 | Python | false | false | 1,392 | py | import pytest
from rest_framework.test import APIClient
from tests.factories import factories
@pytest.fixture
def api_client(monkeypatch):
"""
Custom API Client that we will use to monkeypatch around edge cases if we
need it. We will most likely need to do this so this is a good starting
point.
... | [
"nickmflorin@gmail.com"
] | nickmflorin@gmail.com |
41fb7efe3801ee32639dc732194460721a482b4f | 6ff66d3c3fbd10bbd7b6d07ddc83c486eabc2cc2 | /paluck-networks-load.py | 530a63b0fd04902e2f9412ffb736788c08d38565 | [] | no_license | anuragdutt/informationDiffusion | c75f74b1bbf478832cd6154438116b5f075831ce | 372d993bea6283504527af0fb409560ad2ebb121 | refs/heads/master | 2023-04-06T09:27:13.130947 | 2021-04-06T09:47:20 | 2021-04-06T09:47:20 | 341,443,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import networkx as nx
import pandas as pd
edgelist = pd.read_csv('paluck-edgelist.csv')
G = nx.from_pandas_edgelist(edgelist, source='ID', target='PEERID')
print(nx.info(G))
print(f'connected?\t{nx.is_connected(G)}')
print(f'# of connected components:\t{nx.number_connected_components(G)}')
components = nx.connected... | [
"anurag2709@gmail.com"
] | anurag2709@gmail.com |
458891471f25b96114bd5c3c58984aa705e66b96 | 9ddac00c5c9e51bc4426f58a7b829896cd52b13a | /Forums/stores.py | ed3e2fac82f22722381501123527691a90331d5e | [
"MIT"
] | permissive | omarkamel02/firstBEproject | ed401167b58aa898c03e43ebf0d274efb35d6216 | 47dd1d2841348dd2fe9f8a0bd6208593847f9d8f | refs/heads/master | 2020-03-06T21:00:21.544531 | 2018-04-03T11:19:59 | 2018-04-03T11:19:59 | 127,067,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | import copy
class BaseStore(object):
def __init__(self, data_provider, last_id):
self._data_provider = data_provider
self.last_id = last_id
def get_all(self):
return self._data_provider
def add(self, item_instance):
item_instance.id = self.last_id
self._data_provide... | [
"omarko.kamel@gmail.com"
] | omarko.kamel@gmail.com |
d033d51fe930009bccfebf3e180769e52865363c | 248147c355e452e069eb19723b5653cdfab69830 | /semlog_mongo/semlog_mongo/analysis.py | f6c68d90b388e63e4e0e63a6040be0f7204ccd68 | [
"BSD-3-Clause"
] | permissive | robcog-iai/semlog_web | 2c8bea5e317826dca034be45ae946ac553efcc90 | dde8478f8fc2a273c94ce8f55faf8b0b80a8213c | refs/heads/master | 2023-03-12T18:22:47.617150 | 2021-02-28T14:51:00 | 2021-02-28T14:51:00 | 192,709,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import pprint
def get_image_information(client):
"""This function is used for data analysis.
Retrieve image information (num_entities, average linear/angular distance and timestamp).
Args:
client: A MongoClient to search for.
Returns:
A list of dicts contains average information.... | [
"584827526@qq.com"
] | 584827526@qq.com |
65fe0b5c35c39628317e1ccdffd321edb9536df9 | ba81110b54feba9e33127ed6f04c08cbe6a8252e | /sloth/parsers/SLComp18Visitor.py | a58d39778ac82c1eb5d9ee83eed7324ef4afa24d | [
"MIT"
] | permissive | katelaan/sloth | cd7285a8e64981c15b327707f552243e9e6f38a1 | f487911c4e6850253c592cf65280390f39e24a87 | refs/heads/master | 2021-04-09T10:19:28.233758 | 2019-02-05T12:22:00 | 2019-02-05T12:22:00 | 125,380,933 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,051 | py | from antlr4 import *
if __name__ is not None and "." in __name__:
from .SLComp18Parser import SLComp18Parser
else:
from SLComp18Parser import SLComp18Parser
from functools import partial
from itertools import groupby
from .representation import *
def cmd_not_supported(cmd, args):
raise NotImplementedErro... | [
"jkatelaan@forsyte.at"
] | jkatelaan@forsyte.at |
be1157870c26bc3810058e7505760fd7df952ee4 | 4b5f417838de6480211ec16c0494c5aec563a2bb | /rpsGame.py | 85a3531aa49fb11b10e5c04f9ee7da8045b81aaa | [] | no_license | srujrs/tkinter-progs | 6bf55df48887a284b69d8a73fa714124443b4467 | 4108a84aa9248502b1c79472ab0dcaa543d2bb13 | refs/heads/main | 2023-03-13T22:00:34.411169 | 2021-03-08T16:35:40 | 2021-03-08T16:35:40 | 345,722,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | # Author : Srujan
# Rock Paper Scissor game with computer
import random
from tkinter import *
userScore = 0
userChoice = ""
compScore = 0
compChoice = ""
dict = {'rock' : 0,'paper' : 1,'scissor' : 2}
def getNum(str):
global dict
return dict[str]
def result(user,comp):
textArea.delete(... | [
"noreply@github.com"
] | srujrs.noreply@github.com |
e4173d511f0f3aa063805b42819eb5acad11131f | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190420213415.py | bf727139b9c19455bfebad0f1f1137e7d248627c | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,909 | py | # Jiaxi Zhang
# George McAlear
# If you run into an "[NSApplication _setup] unrecognized selector" problem on macOS,
# try uncommenting the following snippet
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import cozmo
import numpy as np
from numpy.linal... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
ef5607adbade8757f40dac6af98f55570129501b | bf3cad5b0a7c9b85d0ed40d2378ae6b0d341fd76 | /Syntax of Python/02.자료형/02-7.불.py | c1341622c8183bad9bb961774903d92225357f99 | [] | no_license | yallyyally/algo-moreugo | c57bc64898aab3de3ea995fffa6b20285fb8aa5f | 6a33413fb05c1518616074344c404fb718a1a4a5 | refs/heads/master | 2023-07-05T17:46:39.634173 | 2021-08-10T12:40:27 | 2021-08-10T12:40:27 | 278,123,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #02. 파이썬 프로그래밍의 기초, 자료형
######################### 02-7. 불 #########################
a =True
b = False
print(type(a))
print(type(b))
#<class 'bool'>
a = [1,2,3,4]
while a:
print(a.pop())
print(a)
b=0
print(bool(b)) #False
a=3
print(bool(a)) #True | [
"jhshin0028@gmail.com"
] | jhshin0028@gmail.com |
c35818a73275b8029d65f14dd6a85a000569aa56 | 2c48935ad23cd36baadce15f977356dc6f32ff57 | /wafw00f/plugins/safedog.py | f8604835d911b64888c3451958dcf4a5fa7d0e19 | [
"BSD-3-Clause"
] | permissive | j0k2r/wafw00f | d051e2e37a5f65a1ee5bdc64064f3652c4e0c4be | bac59a6a5aadaa057855c2d28ab410f88fc85ba0 | refs/heads/master | 2020-04-27T13:15:50.060366 | 2019-03-07T14:47:00 | 2019-03-07T14:47:00 | 174,363,017 | 0 | 0 | NOASSERTION | 2019-03-07T14:43:22 | 2019-03-07T14:43:21 | null | UTF-8 | Python | false | false | 293 | py | #!/usr/bin/env python
NAME = 'Safedog'
def is_waf(self):
if self.matchcookie('^safedog-flow-item='):
return True
if self.matchheader(('server', '^Safedog')):
return True
if self.matchheader(('x-powered-by', '^WAF/\d\.\d')):
return True
return False
| [
"bcoles@gmail.com"
] | bcoles@gmail.com |
8edc52df94f88d7fe727961adda4b8cefc9e6b23 | 5a2aa4fb7ad9dac4460ce2280c67a5a6ba853bcf | /mysite/settings.py | d22b0f70d235867fa459b1dd587b6f7593a747fd | [] | no_license | Cori1999/Harp2.0 | 4052e2cafc977ee77393708b40e4b0cd92445178 | 1ef27db6ee2f6702f6655026367ac3c27a7fb2be | refs/heads/master | 2023-04-19T04:50:20.155217 | 2021-05-05T03:50:15 | 2021-05-05T03:50:15 | 363,473,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
""
] | |
2ae57b1496df2ac45b96d5c3abe297952b513ea4 | 74494eea24815967e542f78e3d8c63e937d3f5e4 | /zappit-project/posts/views.py | 31cabd71eade0eeeb210c326a903c60bc1c8cb42 | [
"MIT"
] | permissive | madhav06/Create_API_using_Django | aa99b69f9a039302a5eca85f65098045d51f797c | f779fe7aae0de5f8680e9dbac8e7980b98ece2ad | refs/heads/master | 2023-07-01T06:05:58.723307 | 2021-08-05T08:32:30 | 2021-08-05T08:32:30 | 390,591,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | from django.shortcuts import render
from rest_framework import generics, permissions, mixins, status
from rest_framework.exceptions import ValidationError
from rest_framework.response import Response
from .models import Post, Vote
from .serializers import PostSerializer, VoteSerializer
# Create your views here.
class P... | [
"mnandan06@gmail.com"
] | mnandan06@gmail.com |
3a377cf04afa094b2440a2248de30b8b17054650 | 0e934cb0ec2ff10718eb7013792f9cf9a78d660f | /cloudformation/lambda/timestamp/index.py | fe2b5abe62423c10d40d812a9b4fd0c0f458eaae | [
"MIT"
] | permissive | youngvz/youngvz-aws | 2fc5b7d64328da5ac168aa1872a52b7ef8ac04ee | b5678322805b4b6bcae592d1971999ebf5a21a7c | refs/heads/main | 2023-02-27T12:01:52.255791 | 2021-02-03T18:50:48 | 2021-02-03T18:50:48 | 335,713,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import boto3
from datetime import datetime
def lambda_handler(event, context):
# get current time as string
datetime_string = datetime.now().strftime("%d-%m-%Y %H:%M")
encoded_string = datetime_string.encode("utf-8")
bucket_name = "youngvz-python-code"
file_name = f'{datetime_string}.txt'
s3_p... | [
"shah.a.viraj@gmail.com"
] | shah.a.viraj@gmail.com |
6751196599c1a572e8ac765e4df76c7401f33e18 | 260aff137c7fc6891b5bea32823148bf7cf85186 | /main.py | c69cfce3af6ac80d45f46e727c7f37635794f330 | [] | no_license | sebastianmorta/IntroductionToComplexSystems | 0a714588a4e17e344c5e3d1ede2f4af06cf5489a | 3925cc5da25774943249d2cf83540152e2718f71 | refs/heads/master | 2023-06-02T22:03:13.162302 | 2021-06-19T23:18:45 | 2021-06-19T23:18:45 | 369,873,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | import csv
import random
from copy import deepcopy
from random import randint, choice, random
import pandas as pd
import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
from classes import Graph, Node, Edge
# def equality(a):
# edge_list = []
# l = int((a / 10) ** (-a)) + 10
# tmp = [x *... | [
"mr.mchaker@gmail.com"
] | mr.mchaker@gmail.com |
d5cc78f1f9ce550f7696afd11ed547102002b36f | 939ca419e7bcfda248bdc6636f88971a14bd1a1f | /pytests/eventing/eventing_n1ql.py | dc01ecfb77b276fd075c1c842512c47c13b77207 | [] | no_license | ritamcouchbase/secrets-mgmt | 061515c4a3c100f42ca2ce57f63d4a1acf85745c | 03641bdb63e298a7c966789559ea22e7129fb7d3 | refs/heads/master | 2022-11-20T06:22:09.954115 | 2019-10-03T10:12:26 | 2019-10-03T10:12:26 | 98,027,382 | 0 | 1 | null | 2020-07-24T07:11:59 | 2017-07-22T11:35:37 | Python | UTF-8 | Python | false | false | 16,752 | py | import copy
from lib.couchbase_helper.documentgenerator import JSONNonDocGenerator
from lib.membase.api.rest_client import RestConnection
from lib.testconstants import STANDARD_BUCKET_PORT
from pytests.eventing.eventing_constants import HANDLER_CODE,HANDLER_CODE_ERROR
from pytests.eventing.eventing_base import Eventin... | [
"ritamcouchbase@gmail.com"
] | ritamcouchbase@gmail.com |
21a332cdab9c0dde86a5d4a415767c5dcd351fe7 | f2658c4bd7f833ace25ac2b63e88317b05f4602d | /2017 July/2017-July-11/st_rdf_test/model2/NodesZipcenter.py | ec4e6e0e8b2b4e87d7d17653e800ce6df9f09575 | [] | no_license | xiaochao00/telanav_diary | e4c34ac0a14b65e4930e32012cc2202ff4ed91e2 | 3c583695e2880322483f526c98217c04286af9b2 | refs/heads/master | 2022-01-06T19:42:55.504845 | 2019-05-17T03:11:46 | 2019-05-17T03:11:46 | 108,958,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,638 | py | #-------------------------------------------------------------------------------
# Name: NodesZipcenter model
# Purpose: this model is used to mapping the ...
# columns: [ ]
#
# Author: rex
#
# Created: 10/12/2015
# Copyright: (c) rex 2015
# Licence: <your licence>
#--------------... | [
"1363180272@qq.com"
] | 1363180272@qq.com |
2f7bef7463a93a09d17ac89ae059f7c287ebeb2b | 3374e63c2df581e00182e3786c8e12e004d48bc7 | /pillshere/urls.py | 501e1b6c5eac37332629e1f5f7ef27bd2f9ac5a6 | [] | no_license | RCiv277/To-Delete | 7e8d45410712b8212fe35b5163a45d3cb0fdb083 | 568ada8a5e123013460a5c48ec15950a2747de05 | refs/heads/master | 2020-11-26T02:07:03.518010 | 2019-12-18T22:38:45 | 2019-12-18T22:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """pillshere URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"zfero277@ymail.com"
] | zfero277@ymail.com |
51aa322351e2e79e427670a82ad73537dac8b463 | 3df0af6186df880e5e0c3667a04adc38f8af5806 | /grumblr/migrations/0003_profile.py | f557c0d53548e795604e796b1b8d4b547c550a4c | [] | no_license | NatureLLL/18738 | 9e43d78df0a5853410668e4276d5058cbfd2e655 | 157b3f55bdab8c6cda05fe9b126c2d5c0edd0caa | refs/heads/master | 2020-05-01T00:16:18.404181 | 2019-03-28T13:41:36 | 2019-03-28T13:41:36 | 177,165,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # Generated by Django 2.1.1 on 2018-09-27 17:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grumblr', '0002_auto_201... | [
"leiyuqia@gmail.com"
] | leiyuqia@gmail.com |
ad3e20b93f0a0facb1cc91b818e0a416f7b39170 | 48b57de1b4cf6f1858ac88e17699ca8dbc99ec83 | /project/settings/dev.py | cf596d65b5e13251eabf580f7942aa32f8974d7f | [] | no_license | rooeydaniel/cc-ecommerce | 2316250005b6a91a0d76cdeb27c44677a45e21ff | 4afd694550cfe315249f322ceb81b1bae66d9ce8 | refs/heads/master | 2016-09-09T17:32:26.732734 | 2014-04-06T22:06:38 | 2014-04-06T22:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | """Development settings and globals."""
from base import *
########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
TEMPLATE_DEBUG = DEBUG
########## END DEBUG CONFIGURATION
# SECURITY WARN... | [
"dan.stephenson@gmail.com"
] | dan.stephenson@gmail.com |
835c037622f6c3e7b9571630c5a72946f03a6886 | 88de1212fa9b5e723f960c700769841010095c89 | /app.py | 66cdb10cdc5ac936f20dbea648e1e1332d848cc0 | [] | no_license | hitheshini/HeartDiseasePrediction | d2657e7cc7ce4321ae4129ca6d145fcc2f45481c | cdb8ba547a7f6ef0004e68edb2f55eed6a584193 | refs/heads/main | 2023-06-20T15:59:11.353949 | 2021-07-18T21:20:59 | 2021-07-18T21:20:59 | 387,406,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import numpy as np
import pandas as pd
from flask import Flask, request, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods=['POST'])
def predict():
input_features = [f... | [
"hitheshini.1si18cs020@gmail.com"
] | hitheshini.1si18cs020@gmail.com |
fc04a0caccf658546cfbbf93482cc3c97c9e9425 | 370122fb062e84d1f439586ba47013f8394aea79 | /ejercicio6_curso.py | 2327eabfb13a63e3455978b77cd23ddc103dcf21 | [] | no_license | alexcaxtro/intro_python | 89cb96521dd5a523867dcb8ebefe9478fcae8520 | f675c475757cad83dc45edb7b2ad2b18a4a7cd5c | refs/heads/master | 2023-07-13T05:54:58.428486 | 2021-08-11T20:24:34 | 2021-08-11T20:24:34 | 395,106,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #Determinar si un número es par o impar
numero = input('Coloca un número y te diré si es PAR o impar ')
number = int(numero)
if number % 2 == 0:
print('El número es PAR')
else:
print('El NúMERO es iMpAr') | [
"oscar.castro21@inacapmail.cl"
] | oscar.castro21@inacapmail.cl |
a58d0e15227f824cf975cf043251a109d90716a5 | 27681781bbc5a790a4e951dfce7394d7a25c45f2 | /test/corrtab.py | 7ea87966079ccc8c4e4b78b42b2ca2540f114177 | [] | no_license | xyzw/stieltjes | 74b1288026faf68e57264a27461e3b680147e6e7 | 50bb0b8d4487eef88499f74ece9403af2b387be5 | refs/heads/master | 2021-01-01T16:20:23.302222 | 2012-09-24T11:47:04 | 2012-09-24T11:47:04 | 2,294,049 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,818 | py | import sys
sys.path.append('../lib')
import time
import argparse
from recurrence import *
from decomp import *
from quad import *
from sti import *
from itertools import product
from poly import *
from ppoly import *
from fea1d import *
from egrhs import *
from aposteriori import *
def average(x):
assert len(x) > ... | [
"csirik@gmail.com"
] | csirik@gmail.com |
e773b2dbd7a43207f92aa9696cde9dea110e4f90 | 0405f4d68185e6f8574e9c1d557b2bf1f9538ea8 | /blog/migrations/0003_comment_useremail.py | 8070d60d75ff450c76d0c4094b6e948aa683aab9 | [
"MIT"
] | permissive | WolfWW/django-simple-blog | f7e13a57d3df294e1e8e2581bf700a65a3c209e0 | 18cc2f62efc2ff1405c83a89d05fecf685ded8b0 | refs/heads/master | 2021-01-19T21:47:27.442633 | 2017-04-25T06:37:56 | 2017-04-25T06:37:56 | 88,706,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-25 04:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20170419_1945'),
]
operations = [
migrations.AddField(
... | [
"ww45908757@gmail.com"
] | ww45908757@gmail.com |
f510140ce86e0004f9de5690e470a58ef766254f | 9731214d2d7c1b8a09392c5c257efc4ac6eb2879 | /userbot/plugins/alive.py | 3695334bca880cf097ddc92d00eab8289a0b85b6 | [
"Apache-2.0"
] | permissive | LIMITLESS-IO/X-tra-Telegram | 42f6ad9604142285c7b90e5fe98f852a3245badb | 1c81c82cc51863bbf0989e3a6048006f402be099 | refs/heads/master | 2022-11-13T21:18:19.448133 | 2020-07-02T20:49:06 | 2020-07-02T20:49:06 | 276,730,400 | 0 | 0 | Apache-2.0 | 2020-07-02T19:34:13 | 2020-07-02T19:34:12 | null | UTF-8 | Python | false | false | 796 | py | """Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you."""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from platform import uname
from userbot import ALIVE_NAME
from userbot.utils import admin_cm... | [
"noreply@github.com"
] | LIMITLESS-IO.noreply@github.com |
8bcf316682b3a0cb98ced94ef57f7ff6d0167144 | 87837f5dc02c11907c8f921d84de4ee73784f687 | /GIS MAPS.py | c043e0f9172859397637aa847462a7f00826f6e4 | [] | no_license | nhingorany/nei-scrape-rev.2 | ce80d5fa22b10dda61203737392338130854ac92 | 940059500860efbb8a74801880ba3f13225a3126 | refs/heads/master | 2020-03-16T05:05:45.177286 | 2018-05-07T23:02:16 | 2018-05-07T23:02:16 | 132,525,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | #gis maps
import time
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.keys import Keys
import time
from time import sleep
import datetime
from PIL import Image
import re
import os
from selenium.webdriver.common.by import By
f... | [
"nhingorany@nei-cds.com"
] | nhingorany@nei-cds.com |
5ae5dec9f0f5637993704be56516bdd59dc07a12 | cf19b96eb917eca1208627edc27c698d249e859b | /build/my_robot/catkin_generated/pkg.installspace.context.pc.py | 1bb9da82786351df9f08ed8d41efa5effb23bfc8 | [] | no_license | Shubham-Tandon/ROBOND_WhereAmI | 82865453acd7f345e4890770728de8b66cbaf183 | c18fa676b7cdf3cc2e7f0381631b276b3da48b65 | refs/heads/master | 2022-07-31T04:00:14.208578 | 2020-05-22T21:29:55 | 2020-05-22T21:29:55 | 265,763,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "my_robot"
PROJECT_SPACE_DIR = "/home/... | [
"standon@ncsu.edu"
] | standon@ncsu.edu |
04785185c6a79bfd8c3fc3be0905894947987228 | ad5a9e3f3b0c5be34fd8d3881f0411c6dba04df4 | /gen.py | 08365569737adb0bd8710198ea849d9973507f2c | [] | no_license | Igor-chest/Labirinth_project | 29d929537cd218d105c4a2511872d48f4a26ce53 | d2f25b234917326997e939e30689ced41091331a | refs/heads/master | 2020-08-08T01:50:35.712910 | 2019-12-17T06:49:37 | 2019-12-17T06:49:37 | 213,665,560 | 2 | 1 | null | 2019-10-13T07:44:45 | 2019-10-08T14:28:32 | Python | UTF-8 | Python | false | false | 10,533 | py | import random
# КОНСТАНТЫ
green = '\033[92m'
grey = '\033[90m'
end = '\033[0m'
ways = [[0, 1], [1, 0], [0, -1],
[-1, 0]] # соответствует 4 направлениям вокруг клетки при прибавлении к координатам(const)
angles = [[1, 1], [1, -1], [-1, 1],
[-1, -1]] # дополнение к ways. соответствует 4 углам вокруг ... | [
"noreply@github.com"
] | Igor-chest.noreply@github.com |
94c72bf81a4cebf053d1787963b219571fdb5425 | 1a7adc0e05c953c2d97b897adb074b8745108608 | /train_ofa_net_cifar10_simple.py | e2b736c16099360aab1b36ec165f4d0e264da2dc | [
"Apache-2.0"
] | permissive | twice154/ofa-for-super-resolution | 61992049d6c7ac381130b4cd2df8ba48aa237a9b | cc3b4e129c7e92f7a16eb669db24aac120be1431 | refs/heads/master | 2023-06-19T22:04:12.215389 | 2021-07-01T07:30:27 | 2021-07-01T07:30:27 | 277,010,250 | 13 | 5 | null | null | null | null | UTF-8 | Python | false | false | 8,437 | py | # Once for All: Train One Network and Specialize it for Efficient Deployment
# Han Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang, Song Han
# International Conference on Learning Representations (ICLR), 2020.
import argparse
import numpy as np
import os
import random
# import horovod.torch as hvd
import torch
from ofa.... | [
"terranada@naver.com"
] | terranada@naver.com |
30c35d3899226c779a020dab23727f1b0f1ac4e5 | 1922dadca6c0afac668cd738ba30418ed59faaa2 | /bench/unitbench.py | 5f34376031eebdaed00061236cb4b3dfebb1d58f | [
"MIT"
] | permissive | timgates42/python-jwt | ba25c6112fa5a9188dc8918f0dd5b334af9d50c5 | fedc67701cceaa9d0756352fab9f09d04ff21dca | refs/heads/master | 2023-03-18T11:14:57.023652 | 2021-12-27T14:00:57 | 2021-12-27T14:00:57 | 509,876,946 | 0 | 0 | MIT | 2022-07-02T22:51:32 | 2022-07-02T22:51:32 | null | UTF-8 | Python | false | false | 10,548 | py | '''
Copyright (c) 2011, Joseph LaFata
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 copyright
notice, this list of conditions and... | [
"dahalls@gmail.com"
] | dahalls@gmail.com |
9497e99fc516832e4639221b33df7bf3d1d5c5c6 | 7b92157818d1d4f05a74fcc3e373eebeab4897cd | /algoritms_cormen/sorting/heap/max_priority_queue.py | 360f0cbca1d1a8045b2c61e7c651900f6b231bbe | [] | no_license | SabinoGs/algorithms | cc32ec1538c00a04166a77e8458b987227f0a386 | 326688e9e3e790134809092e4b7f9f5a217e28e9 | refs/heads/master | 2022-12-05T18:41:41.252629 | 2020-08-11T20:49:25 | 2020-08-11T20:49:25 | 281,818,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,262 | py | import math
class MaxPriorityQueue():
"""
Implementa uma fila de prioridade baseada na propriedade de max_heap.
"""
def __init__(self, initial_array):
self.heap = initial_array
self.heap_size = len(initial_array)-1
self._build_heap()
def _swap_index(self, a, b):
... | [
"gustavo.sabino.contact@gmail.com"
] | gustavo.sabino.contact@gmail.com |
ddeab8c52230720ee2a47828e57178f8851cb9b0 | 0dabc76a258156ea069a41556afa38656c0cb909 | /basics/data_json_people.py | 06e6269793a166beeb421f209ba16dc2c39e0c4c | [
"MIT"
] | permissive | chen0040/pyspark-advanced-algorithms | 11d1422e39266b38fce4752c7f88b9518d0f9519 | 3a140767447769a7cdae59c5a28bd0e1b03c5bc6 | refs/heads/master | 2020-03-17T05:10:03.834489 | 2018-05-23T12:41:37 | 2018-05-23T12:41:37 | 133,304,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from pyspark.sql import SparkSession
import os
import sys
import logging
def patch_path(*paths):
return os.path.join(os.path.dirname(__file__), *paths)
def main():
sys.path.append(patch_path('..'))
from pyspark_alg.os_utils import set_hadoop_home_dir, is_os_windows
from pyspark_alg.spark_utils impor... | [
"xs0040@gmail.com"
] | xs0040@gmail.com |
07f48f1cd98ec22a17566c42cef8557cb36bb84c | 5c7cea50c43742ed80c9cd20d231390e9bfe6b4c | /runfiles/eval_DAVIS_graph_memory.py | d898520d6a01841a7914f195009ee3641760ddcc | [] | no_license | zxforchid/GraphMemVOS | dd9f01e6c503ece39f4a76c824c0984648a5e4c5 | a3487bcf67ce479c3774890403362170f275095f | refs/heads/master | 2022-12-14T23:59:18.425541 | 2020-09-10T06:10:10 | 2020-09-10T06:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,512 | py | from __future__ import division
import sys
sys.path.append('/media/xiankai/Data/segmentation/OSVOS/ECCV_graph_memory')
import models
import torch
from torch.autograd import Variable
from torch.utils import data
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
import torch.utils.model_... | [
"noreply@github.com"
] | zxforchid.noreply@github.com |
8f7c24bafbcae08fdd2c6e3e957913095fa47a2e | 53d55a3123e6d2546e14033fbd3194eee2ec202e | /anyconfig/mdicts.py | b0b3cd31d959525fc402f8f42bf23dd9b8a1d568 | [
"MIT"
] | permissive | ajays20078/python-anyconfig1 | 28cc37c3987d5d6b3ba0c6030546646d9a2b6ed8 | 019c1e76ab824278b39c61718ec534c16ee7bba4 | refs/heads/master | 2021-01-22T17:43:05.819147 | 2017-03-15T05:49:11 | 2017-03-15T05:49:11 | 85,033,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | #
# Copyright (C) 2011 - 2016 Satoru SATOH <ssato redhat.com>
# License: MIT
#
# pylint: disable=unused-argument,unused-import
"""Wrapper of m9dicts.
.. versionadded: 0.5.0
Swtiched from mergeabledict to m9dicts
"""
from __future__ import absolute_import
import m9dicts
from m9dicts import (
MS_REPLACE, MS_NO_R... | [
"ajays20078@gmail.com"
] | ajays20078@gmail.com |
6574ae1fcbc11e6bf70d5a25731690dbd28be356 | 69deed959c51503f6c04837f2dced99d97a00904 | /Facebook/linked_list/merge_two_sorted_lists.py | d180af856c5db249c1b3579369e9509a410f2a8d | [] | no_license | AbhinavPelapudi/leetcode_problems | 2d9ca9609d0be57750ed8fb19743e6654cafd466 | 012690bd407dd387dcc248442a5eb8d1d140a0f8 | refs/heads/master | 2022-02-21T22:38:38.656265 | 2019-08-06T04:22:21 | 2019-08-06T04:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # Merge Two Sorted Lists
"""
Input: 1->2->4, 1->3->4
Output: 1->1->2->3->4->4
*
1->2->4
*
1->3->4
new_ll = 1 -> 1 -> 2 -> 3 -> 4 -> 4
"""
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
if not l1 or not l2:
return l1 or l2
head = None
... | [
"inas.raheema@gmail.com"
] | inas.raheema@gmail.com |
9492aeca9ddde4f4843955387c6b1b6a608ccd9c | 5e391906360e0d401e230b78a024bc2538dc2ed8 | /catalog/apps.py | a012accb9ac0b7486269d5cae6c4c832cba62682 | [] | no_license | spiritEcosse/clavutich | 0588d618082c31de7b1da3b914bca0b97253c902 | 592447e0f06d8eed153e1216e74de8f69cc2abb9 | refs/heads/master | 2020-04-22T10:00:02.251387 | 2015-12-03T16:08:31 | 2015-12-03T16:08:31 | 170,290,479 | 0 | 0 | null | 2019-05-21T08:45:28 | 2019-02-12T09:32:25 | JavaScript | UTF-8 | Python | false | false | 170 | py | # -*- coding: utf-8 -*-
__author__ = 'igor'
from django.apps import AppConfig
class CatalogConfig(AppConfig):
name = 'catalog'
verbose_name = u"Каталог" | [
"shevchenkcoigor@gmail.com"
] | shevchenkcoigor@gmail.com |
b9fa4175fed2e6e5719cb8fc0fc582c3f52a31c7 | 81a6ffe0e91a9baf57ad88e2c16f882729bf63cf | /project/RMSE/read.py | d3858e0944605c9f3fec2b7eebd10ba854bffeb6 | [] | no_license | Lovingmylove/python.sc | a5014438288aefb5cbf581ff54421cc1fe493994 | 970451d3e12d3d68ea199de844e6cb8a39f1a861 | refs/heads/master | 2021-01-17T06:03:26.918849 | 2016-06-28T08:30:05 | 2016-06-28T08:30:05 | 54,813,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import numpy as np
f = open(r"C:\Users\tudan\Desktop\example\datax.txt","r")
arrx=[]
flag = 0
for lines in f.readlines():
lines=lines.replace("\n","").split(" ")
arrx.append(lines)
flag += 1
if flag > 3000:
break
f.close()
arr_x =[]
for i in np.arange(0,len(arrx)):
arr_x.app... | [
"kejinlong@bupt.edu.cn"
] | kejinlong@bupt.edu.cn |
68d3ebad1df4b47b9795363c08a16b6765abd3f7 | 879b2ab2bebda775def40b2c1ee48c08f87c1fb0 | /aiokraken/rest/schemas/kopenorder.py | 4e4668789d5bfa51e7f242ff3fbd1eef94c52aa2 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | asmodehn/aiokraken | daf5c9dabd256189621abb89831cdf595c58a891 | b260bd41d5aa091e6a4f1818328426fbe6f625c0 | refs/heads/develop | 2023-09-03T11:15:54.237448 | 2020-08-18T15:11:54 | 2020-08-18T15:11:54 | 203,133,738 | 1 | 0 | MIT | 2023-09-14T02:14:38 | 2019-08-19T08:45:13 | Python | UTF-8 | Python | false | false | 8,129 | py | import typing
from datetime import datetime
from decimal import Decimal
from enum import (IntEnum)
from dataclasses import dataclass, field
from hypothesis.strategies import composite
from marshmallow import fields, post_load
from hypothesis import strategies as st
if not __package__:
__package__ = 'aiokraken.re... | [
"asmodehn@gmail.com"
] | asmodehn@gmail.com |
416d5e8ac61ea615442a2dda82737cb000a0f902 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/23.merge-k-sorted-lists.py | 4479a50997da222d2d91ddbef1ace9cd7299a4ff | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #
# @lc app=leetcode id=23 lang=python3
#
# [23] Merge k Sorted Lists
#
# https://leetcode.com/problems/merge-k-sorted-lists/description/
#
# algorithms
# Hard (36.88%)
# Total Accepted: 488.2K
# Total Submissions: 1.3M
# Testcase Example: '[[1,4,5],[1,3,4],[2,6]]'
#
# Merge k sorted linked lists and return it as o... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
bc34256d74c603736a6f0f555db4848bc14ff7ae | b3d954416dabd441425f193a8470f8f6d518a47a | /tests.py | 7c54ffc1bcf8547bf7b5e497af64b9c1a3437379 | [] | no_license | amirul-ifty/Online-Food-Order | 9d5bcd6d991210aad8516d25fb9aa6e466b5cc94 | 97d7211d6a6eef6f3ce69ab24c35dff29d81087a | refs/heads/master | 2023-08-18T07:58:39.467248 | 2021-09-20T19:17:27 | 2021-09-20T19:17:27 | 402,524,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,802 | py | from django.test import TestCase
from .models import Item, Reviews, CartItems
from django.contrib.auth import get_user_model
from django.urls import reverse
User = get_user_model()
class ItemModelTest(TestCase):
def setUp(self):
item = Item()
item.title = 'Kacchi Biriyani'
i... | [
"noreply@github.com"
] | amirul-ifty.noreply@github.com |
f3a4fc09049854e9e1c48dbab9ad03c5c8b70db2 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/forecast/testcase/firstcases/testcase5_017.py | 211171842908b66ac53a7f862282173896e1cad3 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
cb143e8129e5caef36df3289be6a72ec78d5faa7 | a111218bccd887548d3b0bb18527c41fb4ea83bf | /forloop.py | 32c261e06a3729d9f8dca6970770741b91de5eed | [] | no_license | kollasailesh/python_webcrawler | 46dd546db0cc293b09c505d7f569a864dea71cab | 7177517720b173a5547909b0b09aa876cd153a24 | refs/heads/master | 2016-09-06T00:00:11.034732 | 2015-06-20T23:01:12 | 2015-06-20T23:01:12 | 37,297,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | foods = ['pizza', 'cereals','burger', 'rice' ]
for f in foods:
print(f)
print(len(f)) | [
"saileshkolla91@gmail.com"
] | saileshkolla91@gmail.com |
c301b38049c9eedd7ac711e88586d0d9e5632fc5 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/teams/tests/test_serializers.py | e8e1fc25549a798bab497111566d7c284eb3018a | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 11,073 | py | """
Tests for custom Teams Serializers.
"""
import six
from django.core.paginator import Paginator
from django.test.client import RequestFactory
from common.djangoapps.student.tests.factories import CourseEnrollmentFactory, UserFactory
from lms.djangoapps.teams.serializers import BulkTeamCountTopicSerializer, Member... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
b3d2c5e9f3ecb1506079e9b38cf5443f24647f86 | 1d9f5feed8da4885513ef110d417e04cfe579880 | /Python/FileDirectoryTools/scanfile.py | 7f3adc71c092001d994a364ddff55d90ef65d410 | [] | no_license | hkailee/CodeBase | 4ebf810c24b8ffe8246253fe170fdd8237380d21 | 12b1ac4a9522e5d7a0c35d84cf86eea595dc82aa | refs/heads/master | 2021-01-20T22:55:14.185372 | 2017-09-12T09:55:43 | 2017-09-12T09:55:43 | 101,830,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | ########## First scanner ##########
def scanner1 (name, function):
file = open(name, 'r') # create a file object
while True:
line = file.readline() # call file method
if not line: break # until end-of-file
function(line) # call a functi... | [
"leehongkai@gmail.com"
] | leehongkai@gmail.com |
756bbcefaf60cdc7a71558cc6c6476b8acca64cd | e1e7db1eb2f07dc5421f98bb1ce941aab0165b39 | /ImportTradeRecord/db.py | 62215d4d418e6a4c27f4455ea44734a005c87e6f | [] | no_license | muqingliu/trade_tool | baae112c780e941e100e677dfe2e6367f3378383 | d295f1c484b5eb5832850b35ba4b6912ec11f0f8 | refs/heads/master | 2022-12-02T07:15:52.625980 | 2020-08-17T22:04:47 | 2020-08-17T22:04:47 | 288,291,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py |
import MySQLdb
import log
import time
class DB(object):
cursor = None
conn = None
table_name = None
def __init__(this, host, user, passwd, db, table='', charset='gbk', port=3306):
this.host = host
this.user = user
this.passwd = passwd
this.db = db
this.ta... | [
"tidusfantasy2008@sina.com"
] | tidusfantasy2008@sina.com |
dfad732ae9c63eb450d71b27f699c22f04fdb892 | cbd48050b3f8473fbb4828acbe0e1f97d56ed0e7 | /products/migrations/0001_initial.py | 0292f3a8fc0942fac371f142d4c3b66dfc1a9dc1 | [] | no_license | Harithaskcet/FindMe | eb49711d45cd82983736abf5778c9b96c4ec694b | 2f6c398c8adeec0196945b17e49ae5d17f4468e5 | refs/heads/master | 2022-12-10T23:16:10.820916 | 2020-09-13T15:44:31 | 2020-09-13T15:44:31 | 295,168,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Generated by Django 2.2.15 on 2020-09-13 09:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Products',
fields=[
('id', models.AutoFiel... | [
"haritha.msk@mrcooper.com"
] | haritha.msk@mrcooper.com |
1a7d9392657ac30b419bd70da409e4ad4a9ebfc8 | 46eb68af43312656254983e783cbdfd21c3a5176 | /squad/util.py | 9765be07ccede3ee44c76d9c2fbd44dbbf765dd5 | [] | no_license | sk3391/CS224N | 1cbb1eb4c8c172415f207c6e3aa6119a313bebe3 | 1071758de53645263246598b74a04f4c113f0f19 | refs/heads/master | 2022-04-14T06:15:59.767641 | 2020-03-28T15:00:51 | 2020-03-28T15:00:51 | 169,329,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,430 | py | """Utility classes and methods.
"""
import logging
import os
import queue
import re
import shutil
import string
import torch
import torch.nn.functional as F
import torch.utils.data as data
import tqdm
import numpy as np
import ujson as json
from collections import Counter
class SQuAD(data.Dataset):
"""Stanford Q... | [
"simerjotkaur@Simerjots-MacBook-Pro.local"
] | simerjotkaur@Simerjots-MacBook-Pro.local |
8a5406e704c94bdc160a359c06d1a7a15a74b5d5 | 4a3d5904441535e77d39e1f6d9552433d297ce0a | /gcd.py | 5daaec225885f7ed23f4af84a2f16cf3195aee13 | [] | no_license | Rinkikumari19/codechef_questions | b2a5d3b483f3aa8ef70d4af963f7315dca308e6e | 2b1f991d3e2faad4ca5d7ce9af4fad0c35e7b087 | refs/heads/master | 2022-11-23T19:00:21.589006 | 2020-08-02T18:22:38 | 2020-08-02T18:22:38 | 280,680,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | T = int(input("any number"))
for i in range(T):
A,B = map(int, (input().split()))
if A>B:
z = B
else:
z = A
gcd = 1
while 1<=z:
if A%z==0 and B%z==0:
gcd=gcd*z
break
z=z-1
p = A/gcd
q = B/gcd
lcm = gcd*p*q
print(gcd,int(lcm)) | [
"ravina18@navgurukul.org"
] | ravina18@navgurukul.org |
20240383cc09fbf52e4e7e8987d198d63ca29fe4 | ec0e3b6188a527f0a61df96160ada9e1ab25bf03 | /Øving 1/helloworldpython.py | 9b627cb6501fb965e791a3cc6548d9cfdd840ccc | [] | no_license | basbru/sanntid | cf0c6f820b6c67b611c32edaa863e5d578c80b80 | 94d040569fc52ac329bcc46e5168f4c61b97ef0a | refs/heads/master | 2020-04-17T18:17:04.114920 | 2014-01-24T10:38:11 | 2014-01-24T10:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Python 3.3.3 and 2.7.6
# python helloworld_python.py
from threading import Thread
i = 0
def adder():
global i
for x in range(0, 1000000):
i += 1
def subtractor():
global i
for x in range(0,1000000):
i -= 1
def main():
adder_thr = Thread(target = adder)
ad... | [
"tompersen@gmail.com"
] | tompersen@gmail.com |
dffca74d8efb61356362ea3eddd03076cd1dc1e6 | 30d30f6ee90db2a6ff001d58308d4ac1630ce5c4 | /python-and-django-career/django-course/platzigram/posts/models.py | 1952a5f981b71ac9312c6636188ea30690c6be63 | [] | no_license | mijaelrcf/Courses | 1aafa84ac02f11fc461d5fb7bc6d837cda47dee7 | f247d709b728acf73fbda2dad2a1d0a26a6c9c9a | refs/heads/master | 2023-01-19T00:07:46.081216 | 2021-06-08T02:13:00 | 2021-06-08T02:13:00 | 241,657,673 | 0 | 0 | null | 2023-01-07T21:06:38 | 2020-02-19T15:57:47 | Python | UTF-8 | Python | false | false | 626 | py | """Posts models."""
# Django
from django.db import models
from django.contrib.auth.models import User
class Post(models.Model):
"""Post model."""
user = models.ForeignKey(User, on_delete=models.CASCADE)
profile = models.ForeignKey('users.Profile', on_delete=models.CASCADE)
title = models.CharField(m... | [
"mijael.rcf@gmail.com"
] | mijael.rcf@gmail.com |
5d4572cad2e5848b95323c91c66820696b05e2f6 | 0b0abc06caa25dd269e1855d3cc6c72d34dc436c | /escuela/visitante/migrations/0002_recomendacion.py | 245192f93bc17068dd4fc06196c491f630661924 | [] | no_license | escuela2021/escuelagithub | 0130589214681d1ff9da36ffafd8aafb99c9b96d | f35897d1918af3a22d66b163153fc72a927516e8 | refs/heads/master | 2023-09-03T21:36:00.513263 | 2021-11-11T18:38:08 | 2021-11-11T18:38:08 | 427,109,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 3.2.4 on 2021-11-04 16:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0007_alter_curso_disciplina'),
('visitante', '0001_initial'),
]
operations = [
migrations.C... | [
"gjangoinminutes@gmail.com"
] | gjangoinminutes@gmail.com |
aa6f00f4d750aab07794d8848be0b5b24c905cfd | 40da1c35e2b181947b38188e0661f9df763f1d23 | /step2/step2.py | c467dab0c089089bc2c8a24abb5c6fb2aa33c018 | [] | no_license | tnakaicode/jburkardt-fipy | bff70cb8e891b4ea7593b90aad12841db1c78d99 | 77c57da29dc06bf91253af6e90a91e561a3ac413 | refs/heads/master | 2021-02-17T22:12:19.694733 | 2020-03-06T20:48:41 | 2020-03-06T20:48:41 | 245,130,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,194 | py | #! /usr/bin/env python
#
from fenics import *
def step2 ( my_grid, my_degree ):
#*****************************************************************************80
#
## step2 solves a Poisson equation with piecewise constant diffusivity K(X,Y).
#
# Discussion:
#
# Use the mixed DPG method to solve a Poisson equation... | [
"t.nakai.office@gmail.com"
] | t.nakai.office@gmail.com |
00b25d2276786b6b8244c897fb30ad536921c44b | 7801b0356b60de5a4fa6b214717a1c04942b5b62 | /rbac/migrations/0002_remove_role_url.py | 63539615dd84c16bdceb6e7d87e57c28cf76ff41 | [] | no_license | hqs2212586/CRM_demo | 365652c61c991a2098d32b5db318d55cf29baa0b | 941a896aef598d81750a96074bc63ccfaaadf0a5 | refs/heads/master | 2020-03-27T17:43:40.110992 | 2018-08-31T09:20:01 | 2018-08-31T09:20:01 | 146,869,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # Generated by Django 2.0.6 on 2018-08-09 13:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rbac', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='role',
name='url',
),
]
| [
"443514404@qq.com"
] | 443514404@qq.com |
cba227d0538ffeaf8902eb489c3d21ca075255b1 | 85e1d38268bff735ccb1962e6649a97bfd890d21 | /ReturnConfig/GetSlidingAndDoorConfigVersion/GetSlidingAndDoorConfig20191231_celery.py | 6394db502dbd0c27c9664f5620c79e6a4ab47128 | [] | no_license | Thewolfinsociety/ServerCode | 6e28d4c4c8e92f4c8db4d8afa5a24043efa870aa | 596b90656edce9738d976109d587713bd916ed2d | refs/heads/master | 2021-03-10T11:17:29.603364 | 2020-03-18T09:52:50 | 2020-03-18T09:52:50 | 246,447,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105,477 | py | # -*- coding: utf-8 -*-
'''
服务器版
功能:返回趟门掩门配置
vesion 1.0.1
2019/11/19
author:litao
'''
# logging.basicConfig(level="DEBUG")
# _logging = logging.getLogger(__name__)
from xml.dom import minidom
import xml.etree.ElementTree as ET
import logging
import os
import sys
import math
import pypyodbc
import traceback
from lupa... | [
"15179462795@163.com"
] | 15179462795@163.com |
e5048fb4de365e7dc3b5ed83587cbced09461960 | 11f0e2f1024faf420dfbc792d059dff29aa262d3 | /laonlp/corpus/__init__.py | 2ea0730bb20442e0bb034941d9d534802f16a641 | [
"Apache-2.0"
] | permissive | shun-liang/LaoNLP | b90ee16308299cb356a457c7a12293f3d822feaf | 8a710eba2a53a303cd3e76899aaed13805f4da55 | refs/heads/master | 2022-12-03T12:54:42.867507 | 2020-07-09T05:04:22 | 2020-07-09T05:04:22 | 288,761,105 | 0 | 0 | Apache-2.0 | 2020-08-19T14:56:41 | 2020-08-19T14:56:40 | null | UTF-8 | Python | false | false | 212 | py | # -*- coding: utf-8 -*-
import laonlp
import os
laonlp_path = os.path.dirname(laonlp.__file__)
from laonlp.corpus.lao_words import *
__all__ = [
"lao_dictionary",
"lo_spellcheckdict",
"lao_words"
] | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
c691925ca055e6e7c7e960285a93de90a244254d | 88a10b94803b42e5cd2407006ce88e40b9aaca06 | /test/helpers.py | 13ea5b29f1442c1a9f5d73a49945e78364b8128c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | adamfranco/pyosmium | 8c12f02481808b279dec71f24ded454955ea2e01 | f36fa2e8fa8bf80539e6124cc7c0bed7ccca2097 | refs/heads/master | 2020-03-29T08:04:28.076205 | 2018-08-27T18:56:46 | 2018-08-27T18:56:46 | 149,692,981 | 0 | 0 | BSD-2-Clause | 2018-09-21T01:32:38 | 2018-09-21T01:32:38 | null | UTF-8 | Python | false | false | 5,771 | py | """ Provides some helper functions for test.
"""
import random
import tempfile
import os
import sys
from textwrap import dedent
import osmium
from datetime import datetime
if sys.version_info[0] == 3:
from datetime import timezone
def mkdate(*args):
return datetime(*args, tzinfo=timezone.utc)
else:
... | [
"lonvia@denofr.de"
] | lonvia@denofr.de |
5a2487e6c8f54b59281e91ac2ee701473fac8a33 | 56550cc0ac59b205cef0e3f69e273f10d33b393e | /venv/Scripts/pip3-script.py | 957e70887db0b75572eb95b8b4eb0cd4e19cea15 | [] | no_license | sujon13/DRF-Token-JWT-Authentication | 59eec047fc5cbfa0cd1a0d8e98fa807063372f2e | 88260cdbff1443f0c05e840e79d383c9781f40ac | refs/heads/master | 2022-04-27T13:48:42.219943 | 2020-04-18T06:03:09 | 2020-04-18T06:03:09 | 256,677,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!E:\projects\tutorial_account\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sy... | [
"arifurrahmansujon27@gmail.com"
] | arifurrahmansujon27@gmail.com |
4deb0056120bc6883484b9faa69fa227f8b1c28c | 28773eb2bd842cfc0e0461923c84ca6788d002a4 | /yysg/yysg/settings.py | e4de0592b6f936f2d2f2ca603a62757fe63aeecf | [] | no_license | wuji13/test | b59d613dfa997f392a9974a0cd01c2cab575e531 | 835ff1e1efb83526c716d5c0ac8064652666fd1f | refs/heads/master | 2021-01-24T07:55:42.599102 | 2017-12-29T03:59:47 | 2017-12-29T03:59:47 | 93,363,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | """
Django settings for yysg project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
impo... | [
"liuyunqiang@yunjinkj.com"
] | liuyunqiang@yunjinkj.com |
bd32a4d78a2861d4d1f28e8225333e81ec07a769 | 95c1d0121c0e041a4f8f5e2b880af94f05cbdc8a | /pygame_example.py | fd6ae250197c37d27c53ebf312cda238088c004c | [] | no_license | gooseboard/physics_engine | 1d8e0f66dac8211e8b6e70dbdb1ebc2f681e4005 | 7eeadf4003eaf3b353a3bd34da1017bd76cb9c9d | refs/heads/master | 2021-01-17T17:24:26.694916 | 2016-10-12T03:04:31 | 2016-10-12T03:04:31 | 70,361,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py |
"""
Simple graphics demo
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
"""
# Import a library of functions called 'pygame'
import pygame
# Initialize the game engine
pygame.init()
# Define some colors
BLACK = (0, 0, 0)
W... | [
"goose@Sufficients-MacBook-Pro.local"
] | goose@Sufficients-MacBook-Pro.local |
b2441d178dd2c1c70d071daf48f48b12a962f190 | 6181fcd4a266d963a0ee85971768c97922ca77cd | /src/garage/examples/tf/trpo_gym_tf_cartpole_pretrained.py | 2704f0aabd28acfbb53756e5995b612e5fa89852 | [
"MIT"
] | permissive | rlworkgroup/garage | 5d215bbecb3a4e74b504988d6684a7b04df69a80 | 2d594803636e341660cab0e81343abbe9a325353 | refs/heads/master | 2023-08-21T22:58:49.338034 | 2023-01-04T06:06:27 | 2023-01-04T06:06:27 | 136,846,372 | 1,832 | 363 | MIT | 2023-09-11T11:36:40 | 2018-06-10T21:31:23 | Python | UTF-8 | Python | false | false | 2,666 | py | #!/usr/bin/env python3
"""An example to train a task with TRPO algorithm."""
import tensorflow as tf
from garage import wrap_experiment
from garage.envs import GymEnv
from garage.experiment.deterministic import set_seed
from garage.np.baselines import LinearFeatureBaseline
from garage.sampler import RaySampler
from ga... | [
"noreply@github.com"
] | rlworkgroup.noreply@github.com |
1b73123dd77c203780bf626b96384f887a31b859 | 009477e7c41aed4af8d2d031bf72d58e42144cc2 | /utils/saver.py | 2b7e707634821769a463db880bf0f8791b2266c0 | [] | no_license | yonghyeokrhee/KnowledgeExtraction | 186506e0c6ed0bc81ebe6d584ddd56aaab729a27 | 81dcc53647bf58330d78b3ec986eb07a6e3ac612 | refs/heads/master | 2022-11-23T03:14:06.119129 | 2020-07-22T14:06:43 | 2020-07-22T14:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import torch
import torch.nn.functional as F
import torch.nn as nn
import h5py
class VCRSaver():
def __init__(self, path, file_name, number, embedding=False):
self.path = path
self.file_name = file_name
self.saver = h5py.File(f'{self.path}_{self.file_name}','w')
self.number = numbe... | [
"wodbs9522@gmail.com"
] | wodbs9522@gmail.com |
f3628d9a0e62a2f1395208e3abd318fdf019c825 | 8d5d7fc535c190bab13993ebe983c10d292e9e52 | /snakethree/demo3.py | c934ba16982f3591eeb88f283e792bf5b8f7db77 | [] | no_license | songxiaowei/coding | 58f5e8c2be3adcd8acad53ed6b43fd2d9759b270 | 273b8046d39b6d1ccc2d757b0f9272deb4cc5c7a | refs/heads/master | 2021-01-12T17:18:07.566394 | 2016-10-01T09:56:13 | 2016-10-01T09:56:13 | 69,480,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | #coding=utf-8
import re
import urllib
import MySQLdb
#升级版本
#插入爬取的价格到Mysql中
#2016-09-25
conn = MySQLdb.connect(
host = 'localhost',
port = 3306,
user = 'root',
passwd = 'root',
db = 'villa',
)
cur = conn.cursor()
#cur.execute('create table money_20160925(id varchar(20))')
def getHtml(url):
page = urllib.urlopen... | [
"1033712089@qq.com"
] | 1033712089@qq.com |
a4b8ac47d62d25126dcdb5fdc2dd5d5017084d08 | 2869808c9f4fdb820281a8521a62208766a0aa43 | /pythonLeetcode/94.二叉树的中序遍历.py | d5bf7b7d06ea2a4be74ddb58f0f52a78effddc89 | [] | no_license | BaoziSwifter/MyPythonLeetCode | 03dcfa0705ad87a1b727fe2f924fabb7184c4ca1 | 0e8f0d902a379c07c386aedc6d10d7a2aa6d1b4a | refs/heads/master | 2023-01-09T08:15:23.154464 | 2022-12-25T02:35:16 | 2022-12-25T02:35:16 | 220,202,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | #
# @lc app=leetcode.cn id=94 lang=python
#
# [94] 二叉树的中序遍历
#
# https://leetcode-cn.com/problems/binary-tree-inorder-traversal/description/
#
# algorithms
# Medium (68.81%)
# Likes: 315
# Dislikes: 0
# Total Accepted: 75.2K
# Total Submissions: 109.2K
# Testcase Example: '[1,null,2,3]'
#
# 给定一个二叉树,返回它的中序 遍历。
#
... | [
"duanlongfed@126.com"
] | duanlongfed@126.com |
74be7fccb83335d781e061b0705580fca8b880b1 | 202180e6b7109e9058cce442054d6532c44c796d | /example_crm/dev_test.py | 12ec85a8bafb5505e957738fa0e222fccc2dd04d | [
"Apache-2.0"
] | permissive | pkimber/old-crm-migrated-to-gitlab | 230d4eec0cfa794c90fff8c75154d98699820093 | 835e8ff3161404316b7da35cf61e3851763b37b9 | refs/heads/master | 2021-06-15T22:07:08.207855 | 2017-04-27T21:05:53 | 2017-04-27T21:05:53 | 12,544,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'temp.db',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
| [
"code@pkimber.net"
] | code@pkimber.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.