blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d28b9591a02b80200b7b5c4108b1294bb6c007c | 273eab596c6c92e23b41b85b358e8e6deb463511 | /lambda_function.py | 824e62f6ff2502b04c351a0f1d25c741970611dd | [] | no_license | khanarbaj/openCV-app | 5f516b6124d6c3a98ad7caa0699e64f8a3af0075 | 9a85419d1e5e3374a679eaf33554e25eae30679c | refs/heads/master | 2022-12-13T00:45:40.491607 | 2020-09-12T19:02:02 | 2020-09-12T19:02:02 | 295,004,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from tkinter import *
window = Tk()
window.geometry("500x500")
window.resizable(0, 0)
# Making lambda fuctions
def show1(e): return window.configure(background="red")
def show2(e): return window.configure(background="green")
def show3(e): return window.configure(background="blue")
bt1 = Button(window, text="... | [
"khanarbaj@gmail.com"
] | khanarbaj@gmail.com |
b92646d2d8bb086be2c6d59e672848ab3b3050cf | 8036b9e0a3ba8c8042e5fb04f67d0b846fb05b1a | /spouts/tdms_spout.py | 4409f2e7f28349d84425b7b6633844bde4d6282d | [] | no_license | shouwang-sun/processing_node | 4b90632f36cf2f0ea0962dbc24820a80ac996ffd | a78ae07a513368fbd43fff4cf3a20ac63a12d3f3 | refs/heads/master | 2020-03-23T04:10:47.420093 | 2018-07-16T00:48:45 | 2018-07-16T00:48:50 | 141,068,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # -*- coding: utf-8 -*-
__author__ = 'SUN Shouwang'
import time
from os import listdir, path
import nptdms
class TdmsSpout(object):
def __init__(self, folder, channel_list):
random_index = [3, 0, 2, 5, 1, 7, 4, 8, 6, 9]
self.file_list = [path.join(folder, listdir(folder)[ind]) for ind in random... | [
"shouwang.sun@aliyun.com"
] | shouwang.sun@aliyun.com |
9e9bd761750fdacff2550f9144c914ddc1e8529c | 7bead245354e233f76fff4608938bf956abb84cf | /test/test_docx_table_cell.py | f1aec4840f9d6c266499020f55fa9f2df8b0c8a9 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Convert | 5ba499937b9664f37cb2700509a4ba93952e9d6c | dba2fe7257229ebdacd266531b3724552c651009 | refs/heads/master | 2021-10-28T23:12:42.698951 | 2021-10-18T03:44:49 | 2021-10-18T03:44:49 | 138,449,321 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
"""
convertapi
Convert API lets you effortlessly convert file formats and types. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudmersive_convert_api_... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
6ec36cea031f3fe6e3bb6b5a147da2fb27a1a303 | f5599ceb7e04828bdd26cb4c27ffd76396d33a72 | /app/datasets.py | c2c1ae86b3f4d6d1fbd68fec7e4ec280d2414096 | [
"MIT"
] | permissive | TLMichael/Acc-SZOFW | 4d41436ff258d6678728fa70f070657632bdcf05 | ed1b0947bf43da02d2648c84e9dca0686fc41976 | refs/heads/main | 2023-01-09T13:57:25.829712 | 2020-10-15T06:32:25 | 2020-10-15T06:32:25 | 238,661,607 | 3 | 0 | MIT | 2020-09-06T03:13:38 | 2020-02-06T10:22:42 | Python | UTF-8 | Python | false | false | 6,972 | py | import numpy as np
import os.path as osp
from sklearn.datasets import load_svmlight_file
import torch
from torch.utils.data import Dataset
from torchvision import transforms, datasets
# DEVICE = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
DEVICE = torch.device('cpu')
PHISHING_PATH = '~... | [
"tlmichael@nuaa.edu.cn"
] | tlmichael@nuaa.edu.cn |
689f7241d4dc56a641bc73e4a10d491e1b16ae55 | a86864b0ca6bc1d4dbdd22c26257340b8131e859 | /forms/contract_award.py | 24bb6668c834f1225f8d923038e604378fd92b82 | [
"MIT"
] | permissive | pudo-attic/ted-xml | 95d00f4f02ce16677da7672d4f40478ef13fac11 | 627c100ba464f574c2c71f7584f05f3aabf480e8 | refs/heads/master | 2021-01-01T05:31:32.156917 | 2013-09-13T13:13:29 | 2013-09-13T13:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,149 | py | from pprint import pprint
from parseutil import Extractor
LOOKUP = {
'appeal_body': {
'std': './/PROCEDURES_FOR_APPEAL/APPEAL_PROCEDURE_BODY_RESPONSIBLE//',
'util': './/APPEAL_PROCEDURES/RESPONSIBLE_FOR_APPEAL_PROCEDURES//',
'mil': './/PROCEDURES_FOR_APPEAL/APPEAL_PROCEDURE_... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
8149ad53008be36f6ec49fd392e43c5a4ce75f24 | 36261c250e1715255b7a22df9b59f3da0d288968 | /app/forms.py | 3e684e1319591d4db5763ec15d03f9e16d00a79b | [] | no_license | karishay/tiny_teacher | 06017c044f7697488c4289d46580c54c4d489d75 | 3918b785511f3551ba67b3aeafae8b7c06d7a3f5 | refs/heads/master | 2021-01-19T20:29:56.700039 | 2015-05-03T00:59:45 | 2015-05-03T00:59:45 | 28,541,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from wtforms import Form, TextField, TextAreaField, PasswordField, validators
class LoginForm(Form):
email = TextField("Email", [validators.Required(), validators.Email()])
password = PasswordField("Password", [validators.Required()])
| [
"kari.shay@gmail.com"
] | kari.shay@gmail.com |
5d5cdb112efb4d4444cc8f3b8bea1c8cfc78507e | fe68647975427e507a21baf0ce59123d9c67cf46 | /myblog/settings.py | cb88e6d40fbf62c00e07a13fb3be986c75b1d694 | [] | no_license | ankitdevelops/blogforcoders | cf923fb1113286f678b86b0bf9a2619d124248a7 | 8bf1746713957afc98944ee7ad1855067c63babe | refs/heads/master | 2023-04-29T14:00:14.960962 | 2021-05-15T04:53:52 | 2021-05-15T04:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"heyankitandrel@gmail.com"
] | heyankitandrel@gmail.com |
30244110794a223bf5bf5b3dc1c1b5ebab399117 | 9ac19ccdfcb0de2b9ec4295e3291cfc2a597e70f | /bert_variant/datautils/configs/base.py | 32c5d241c1f384d54014014c424c9659757ba6df | [] | no_license | pdsxsf/AgriNER | 30ffac831861a3656e2b51e6ee4bc1823a643afe | 766c1e165c77d10956b5a262ebc4b5d75638bcc3 | refs/heads/master | 2023-03-24T03:59:36.687709 | 2021-03-24T06:50:59 | 2021-03-24T06:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
from pathlib import Path
BASE_DIR = Path('datautils')
config = {
'data_dir': BASE_DIR / 'dataset',
'log_dir': BASE_DIR / 'output/log',
'writer_dir': BASE_DIR / "output/TSboard",
'figure_dir': BASE_DIR / "output/figure",
'checkpoint_dir': BASE_DIR / "output/checkpoints",
'cache_dir': BASE_DIR / ... | [
"2838588360@qq.com"
] | 2838588360@qq.com |
aa5650cfa845d0f8a1a8b2048a907d06c2b3d36d | 1061216c2c33c1ed4ffb33e6211565575957e48f | /python-legacy/test/test_custom_profile_field.py | 9c780d683beda23dc85ae0a5a0c376b149184f96 | [] | no_license | MSurfer20/test2 | be9532f54839e8f58b60a8e4587348c2810ecdb9 | 13b35d72f33302fa532aea189e8f532272f1f799 | refs/heads/main | 2023-07-03T04:19:57.548080 | 2021-08-11T19:16:42 | 2021-08-11T19:16:42 | 393,920,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | # coding: utf-8
"""
Zulip REST API
Powerful open source group chat # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.cus... | [
"suyash.mathur@research.iiit.ac.in"
] | suyash.mathur@research.iiit.ac.in |
aa75e48a6f029780cc486fc33fe08e38602e0b2b | eb1896359cd718ba86f2e0657872710e914c6161 | /app/admin/invite_view.py | 27f6c07094b2bc383d60e4f37371fb2999ae1793 | [
"MIT"
] | permissive | dwcaraway/govly | 575333c6a5cb4cad6c2615e5d4152330d85ff72b | c3a134c2d8ae911c0ab05d9b96014a7c18bfac45 | refs/heads/master | 2020-12-26T04:37:39.642750 | 2015-12-22T02:08:21 | 2015-12-22T02:08:21 | 34,965,531 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | __author__ = 'dave'
from . import MyModelView
from ..models.users import Invite
from wtforms import form, fields, validators, ValidationError
from flask_admin import expose
from flask import current_app, url_for, render_template
from flask_security import current_user
from urlparse import urljoin
from ..framework.util... | [
"dave@fogmine.com"
] | dave@fogmine.com |
013a8c17bd649838df798ceb7233a19105545f6b | 1f269060150f19de1b123589037ca0cde82cbca6 | /task2.py | 6aa9db3b93a6e8bdace68504ec6032dbed93a64d | [] | no_license | ndk03/Image-Filtering-and-template-matching | d6b9298971f14e8428d015afd8156974990f70ef | a3c116db68a3196189bc7579080102aaf736f40b | refs/heads/master | 2022-12-10T03:22:18.783343 | 2020-08-31T18:32:35 | 2020-08-31T18:32:35 | 291,792,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | import argparse
import json
import os
import utils
from task1 import *
def parse_args():
parser = argparse.ArgumentParser(description="cse 473/573 project 1.")
parser.add_argument(
"--img-path",
type=str,
default="./data/proj1-task2.jpg",
help="path to the image")
parser.a... | [
"noreply@github.com"
] | ndk03.noreply@github.com |
804db3ce7450bad877259edbd96312fba3b9df27 | 6cb9f81432fd3f4b3f98c7df293acd5bb6829cbf | /cookiesDemo.py | 774092f8c17cc38643221b936a8b0ec5eea098b3 | [] | no_license | ruivers/Flask_on_date | ae69b7c2c37020486e9a4adbafb3bcecfb372d1a | 19884abe2d5e1b3033771fd9e9d87f2a1e966bda | refs/heads/master | 2020-03-18T05:28:21.096446 | 2018-05-29T05:42:49 | 2018-05-29T05:42:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from flask import Flask
from flask import request
app = Flask(__name__)
@app .route('/')
@app.route('/')
def index():
resp = make_response(render_template('home.html'))
resp.set_cookie('username', 'the username')
return resp
if __name__ == '__main__':
app.run(host='0.0.0.0')
| [
"ruiweilai@163.com"
] | ruiweilai@163.com |
b7c41240fa74e52ba4534e26961d3cbf7322a0d6 | 43ed422113d58b27d5012f5ccf405700a46fc0f2 | /MaskRCNN/model/loss.py | eb4cb8a2d3d03b016b3857b3071a40cc1977da99 | [] | no_license | wprazuch/DeepLearningPlayground | 99a86945818e8a42e77408369e566b793ac612b9 | 53859fb4fd7bfc314121c85870afabd47627ce73 | refs/heads/master | 2022-12-16T05:50:22.757434 | 2020-09-03T09:23:26 | 2020-09-03T09:23:26 | 187,896,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,227 | py | import tensorflow as tf
import tensorflow.keras.backend as K
from utils import batch_pack_graph
def smooth_l1_loss(y_true, y_pred):
"""Implements Smooth-L1 loss.
y_true and y_pred are typically: [N, 4], but could be any shape.
"""
diff = K.abs(y_true - y_pred)
less_than_one = K.cast(K.less(diff, ... | [
"wojciechprazuch3@gmail.com"
] | wojciechprazuch3@gmail.com |
fde928b59f07ba939d51ffedbd226a131c7d7bf2 | da496ed0de7c5a768ddd42241363c82e15133b7f | /api/coachApi.py | b9538d3618e3bfd32ec24b6dc352b4a14b776cca | [] | no_license | benwong9832/SoccerAnalysisAndPrediction | ffb5e592f267f1d15db5618488e4309a71f3a4f9 | b4e2bc584723a6c1cb5b82b89549a7923cb7dc70 | refs/heads/main | 2023-03-09T16:16:23.434848 | 2021-02-13T06:26:11 | 2021-02-13T06:26:11 | 329,558,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | import api.config as cf
import requests
import json
import os
from datetime import datetime
import codecs
import time
# f = open("C:/Users/kenpe/PycharmProjects/soccersApi/data/teams/primite_leayg/teams_primite_leayg_2013.json", "r")
# print(f.read())
config = cf.config()
seasons = config.seasons
leagu... | [
"kenpetere@gmail.com"
] | kenpetere@gmail.com |
388a367dcb7a39b2bc2e59de0a6af9923be7e32e | 91a549716b68535644814e46f8d4fcf8b714b496 | /node_modules/sharp/binding.gyp | 3a1893849fa97075fce86029e22b2f48262dde25 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | KishanMaurya/personal-portfolio | 837d4c0b075a414b5bf85477e39fe9a9134ad0c1 | 2df0f228e6fe494b795381d45ae39ddc18095c44 | refs/heads/master | 2023-02-19T15:28:24.326898 | 2020-08-01T16:56:47 | 2020-08-01T16:56:47 | 284,300,267 | 3 | 0 | MIT | 2021-01-06T08:28:21 | 2020-08-01T16:47:37 | JavaScript | UTF-8 | Python | false | false | 6,787 | gyp | {
'targets': [{
'target_name': 'libvips-cpp',
'conditions': [
['OS == "win"', {
# Build libvips C++ binding for Windows due to MSVC std library ABI changes
'type': 'shared_library',
'defines': [
'VIPS_CPLUSPLUS_EXPORTS',
'_ALLOW_KEYWORD_MACROS'
],
... | [
"kkmaurya.0095@gmail.com"
] | kkmaurya.0095@gmail.com |
00f4f432b42195fe0d5718333d4fea31f17c3546 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /layout-blt/configs/bert_layout_publaynet_config.py | c468d18d59fde1f6a87c790cc4dbb6815ec3e80b | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,219 | py | # coding=utf-8
# Copyright 2023 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
482518e8aa5babb705a3fb0fb72f1cd3ebccfe8f | 2f02494259ddd45ad0b961a14364a70eb78994a6 | /exam-review/9/clark-bains/problem9-tester.py | e333239558760ce6b5a9fb6979af73a4e116a3b6 | [] | no_license | malcolm-smith/1405-practice | 331a513795494d21d52597b54ab91e7c535f2f2e | 6265bf4a13f1b21b51c184c5c092f3b8557e0804 | refs/heads/master | 2022-03-24T15:15:11.948946 | 2019-12-18T04:55:40 | 2019-12-18T04:55:40 | 209,166,774 | 2 | 6 | null | 2019-12-23T19:41:37 | 2019-09-17T22:19:12 | Python | UTF-8 | Python | false | false | 3,247 | py |
import copy
import importlib
modname = "problem9"
funcname = "isvalidseries"
information = [[[[8, 4, 8, 3, 1, 2, 7, 9], 3, 19], False], [[[2, 4, 8, 3, 1, 2, 7, 9], 3, 19], True], [[[2, 4, 8, 3, 1, 2, 7, 9], 3, 16], False], [[[5, 5, 5, 5, 5, 5, 5, 5], 3, 19], True], [[[5, 5, 5, 5, 5, 5, 5, 5], 4, 19], False], [[[5, 5,... | [
"clarkbains@gmail.com"
] | clarkbains@gmail.com |
a737506c9c92729017569ef7d60e7a6f191776fd | 06de6ed71aa33d99b11bb1176c2db8244e9a93f7 | /Driver/RightHand_NS.py | 14b4d2b51d46a17243a6cadaa490dbb78ff98524 | [] | no_license | janenie/MCM_c | b646b0586aaca6cee118a443d20053c53b454d23 | 6148bae0189949630329e3f9932a3d88650e3770 | refs/heads/master | 2021-01-22T07:27:25.542793 | 2014-02-10T21:08:12 | 2014-02-10T21:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | import random
from system import *
class FSA(object):
def __init__(self):
return
def decideLane(self,driver):
driver.lane = "Right"
def judge(self,driver):
velocity = driver.velocity
accelorate = max(1 , driver.maxa - driver.roadFc)
moderat... | [
"janlovefree@gmail.com"
] | janlovefree@gmail.com |
65ef2c35a54d445ef9cd2c14e351b654783cbda1 | 8799db59af87cc332a26aabb7082e89d812d3c0d | /venv/bin/django-admin.py | f4ed5fa8883ae9e6a801faca212daaa66ab060e0 | [] | no_license | kureLeGrill/telegramBotGanna | fbbb7de887de3f9eb4c5319f512d3dfb551d65c2 | cff4be229ab57975d9dea22b3d1911394e844450 | refs/heads/master | 2022-12-13T22:01:59.490215 | 2020-09-07T17:24:50 | 2020-09-07T17:24:50 | 292,842,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/home/ed/PycharmProjects/HannaTelegramBot/venv/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was... | [
"vetok88@gmail.com"
] | vetok88@gmail.com |
2ba209f565ab992e4ee4495511470584b0b781b0 | d19f6d677f1598f2840822d53f7217fbca0bc77c | /additional files/hand_rank.py | a832f1d1b71303c7ba87308d670340cd64d28677 | [] | no_license | molex/Python_Scripts | ec11f800e79ee515ed15d1929d29ddac726bf488 | 134ea6407e744fb5cf9f8b02f16ce612e52ebc19 | refs/heads/master | 2021-01-21T12:10:52.206371 | 2016-04-20T14:05:47 | 2016-04-20T14:05:47 | 5,499,911 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | # -----------
# User Instructions
#
# Modify the hand_rank function so that it returns the
# correct output for the remaining hand types, which are:
# full house, flush, straight, three of a kind, two pair,
# pair, and high card hands.
#
# Do this by completing each return statement below.
#
# You may assume the fol... | [
"molex333@gmail.com"
] | molex333@gmail.com |
140bcc017ac11e31a04350b4432b9f9da84b34d4 | a0b048e4f5c3bc8db7bf3ce2c39ae5387d74d99f | /nnet/nn_models/Parser_biaffine.py | d11f1b78f32df5e7e56e2661c6e0f321a25a1f59 | [] | no_license | AndreiC9/SRL_DEP | 49ce8d985b9290fb23a264b3b46b354be3138021 | 231a2533bb84e24d7eb0681b3d1190809faafeb8 | refs/heads/master | 2021-03-04T17:05:42.179139 | 2020-04-13T13:45:03 | 2020-04-13T13:45:03 | 246,051,575 | 0 | 0 | null | 2020-03-09T14:03:51 | 2020-03-09T14:03:50 | null | UTF-8 | Python | false | false | 12,986 | py | from __future__ import unicode_literals, print_function, division
from io import open
import unicodedata
import string
import re
import random
from nnet.util import *
import nnet.decoder as decoder
import numpy as np
import torch
import math
import torch.nn as nn
import torch.autograd
from torch.autograd import Variab... | [
"Rui.Cai@ed.ac.uk"
] | Rui.Cai@ed.ac.uk |
b0852cf85d9083b3a78990c4c4ecb96b24190dc2 | 191d18fae52df2b10fc3c78676612ce0828c1ad8 | /essentials/multi_server.py | b345cfc321697ef93d206779c4ae5ae4b88e165c | [
"MIT"
] | permissive | yada-yoda/pollmaster | 1e44ef42f68bf971e67b75c84842556d2ef2d687 | c7431d6b952599671c6408209528dceaad19116e | refs/heads/master | 2021-10-19T14:32:24.222515 | 2019-02-21T18:57:07 | 2019-02-21T18:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,061 | py | import time
import discord
from essentials.settings import SETTINGS
from utils.paginator import embed_list_paginated
async def get_pre(bot, message):
'''Gets the prefix for a message.'''
if str(message.channel.type) == 'private':
shared_server_list = await get_servers(bot, message)
if shared... | [
"matnad@gmail.com"
] | matnad@gmail.com |
3e5c4ac18106af76ebc63078c8b44562469ecb48 | 91fbfa52c5eea1f3d0df8fc7c634eedf0fe67c68 | /Python/pythonREST.py | 719a206bcd12191a8748cdc4d2a541fd36f05dbc | [] | no_license | M-Anwar/ARGEL | 57e54e887ffc82f9abe712a33aa2822a4cf47aba | 2d779f5da65d043cd94b46822b619fd11259abdc | refs/heads/master | 2021-01-21T04:31:40.242700 | 2016-07-15T03:14:00 | 2016-07-15T03:14:00 | 50,461,572 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import requests;
import json;
print("hello world gonna make a REST call\n");
# Replace with the correct URL
url = "http://localhost:3000/api/helloworld"
myResponse = requests.get(url)
print ("Response: {0}".format(myResponse.status_code))
# For successful API call, response code will be 200 (OK)
if(myResponse.ok):
... | [
"muhammedshabbeer@hotmail.com"
] | muhammedshabbeer@hotmail.com |
c3902da83d4bbf653f3646329166df8e9cb6ac8a | afe6819d7b22d1023ca05356ac16bbb059936a45 | /venv/bin/pytest | 85e15de5a4aacad50194ac120c96c29ad163de1c | [] | no_license | MaximkaKash/todo | 91a518fa314c232794292bf1dc299d646b7f2167 | ab5c1c5f045bfe0dd4cb778d67081888e67a4fe7 | refs/heads/main | 2023-07-23T13:34:37.169958 | 2021-09-11T08:29:06 | 2021-09-11T08:29:06 | 404,414,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/maksim/python/todo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pytest import console_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(console_main())
| [
"kanashitsusu@gamil.com"
] | kanashitsusu@gamil.com | |
d65909b61cd0a46b411ee9e6d5f181c7f00dbd42 | 454c0564acc5d6b194603985a5dcb792651661dc | /manualDrive/__init__.py | 798ed7c79ce972c1abc398024d90e358beb9414c | [] | no_license | rsoome/Digi6RX2017 | 64eed9be3f2202e9d5bf00e96af232a1b3104563 | 26bcb2e6169c90b71cfa23f29e27f4c51c0936e1 | refs/heads/master | 2021-08-24T02:27:18.708506 | 2017-11-26T22:13:10 | 2017-11-26T22:13:10 | 104,649,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | import manualDrive.ManualDrive | [
"rsoome16@gmail.com"
] | rsoome16@gmail.com |
0f64588d8eabb24d126ca11a7baf5283462f158f | ebd1e49fc405d6711c36c1aa16450682176f622f | /Snake Water Gun.py | 7e48498b5554b0b51a248e0c32c873f40db05603 | [] | no_license | lokesh2509/Snake-Water-Gun | 332b775984cc5849cce35f97fd5be86cb71769f5 | cd5b6f53aa1bc1bb832c5b6612c8b2367585c846 | refs/heads/main | 2023-07-04T14:16:23.839595 | 2021-08-19T06:40:12 | 2021-08-19T06:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | #Snake Water Gun
"""Create a program using while loop or for loop and use random module. take input from user and also use random. If
the inut and random value mathecs show you won. The game willl continue till 10 times and then shows the score"""
"""Following are the rules of the game:
Snake vs. Water: Snake dri... | [
"noreply@github.com"
] | lokesh2509.noreply@github.com |
921548cdfb11ada7eb5d4be07398294bf09ce197 | b9963ffb80aad7e057bc375edb85ac7ed5a837d0 | /adventofcode2017/03b.py | 44f43305774184f644e62bce54dfc526c453e223 | [
"MIT"
] | permissive | matslindh/codingchallenges | a2db9f4579e9f35189f5cdf74590863cf84bdf95 | a846e522f7a31e988c470cda87955ee3ef20a274 | refs/heads/main | 2022-12-23T15:56:19.776354 | 2022-12-15T21:03:37 | 2022-12-15T21:03:37 | 76,491,177 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from itertools import repeat
from math import floor
map = []
s_y = s_x = 1001
for y in range(0, s_y):
map.append(list(repeat(0, s_x)))
x = y = floor(s_x/2)
map[y][x] = 1
x += 1
dir = 'R'
written = 0
while written <= 289326:
if dir == 'R':
if not map[y-1][x]:
dir = 'U'
else:
... | [
"mats@lindh.no"
] | mats@lindh.no |
0a77cc0e157849e364d05eba2e50154cbdd20923 | 6db36a7bc7a45d8a5dfd53d3660d45ac475d5c03 | /mysite/main/migrations/0010_auto_20190612_1728.py | f9b7c212467546b24b3722a9fde6226caab4a0e7 | [] | no_license | matimontes/Grupo47 | f63c52a3533d8f5ad35f4ae2e2cbcd0dea32eb4e | 1ca077a2563aec8d5052565e8aa854ee15797758 | refs/heads/master | 2020-05-04T17:11:58.792406 | 2019-07-18T02:44:18 | 2019-07-18T02:44:18 | 179,302,112 | 2 | 1 | null | 2019-06-16T19:58:43 | 2019-04-03T14:00:37 | Python | UTF-8 | Python | false | false | 361 | py | # Generated by Django 2.2.1 on 2019-06-12 20:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20190610_1706'),
]
operations = [
migrations.AlterModelOptions(
name='puja',
options={'ordering': ['subast... | [
"mati.montes@hotmail.com"
] | mati.montes@hotmail.com |
1bd3328dc8166ab5d74439832d739adbdd69d664 | 206123d13078ae1d08aa20f98b76349210165c17 | /trees/binary_tree/main.py | 6613b96cc99d8342504d3b5b07d749f089d94455 | [] | no_license | Avinashgurugubelli/python_data_structures | b29e13bafd3190abe7c93102705d01f41a8d411f | 7141d237112e13fc90dc81702263d121779036d1 | refs/heads/master | 2022-12-18T23:49:56.137001 | 2019-08-01T19:04:07 | 2019-08-01T19:04:07 | 157,427,278 | 0 | 0 | null | 2022-06-21T21:37:53 | 2018-11-13T18:31:48 | Python | UTF-8 | Python | false | false | 629 | py | # Below os and sys imports required to match the custom imports
import os, sys
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(CURRENT_DIR))
from binary_tree_node import BinaryTreeNode
from binary_tree import BinaryTree
from .utils.binary_tree_traversal_types import BinaryTreeT... | [
"avinashgurugubelli@gmail.com"
] | avinashgurugubelli@gmail.com |
e1606654ea93653cb2dce8ceff18357e12273bfa | 5112b951c8bf666a16c00f238a469a015453598a | /src/models/blog.py | 90ed237ebe726bda13addbb2205ae39e99402edc | [] | no_license | jushita/web-blog | c99172e5b3a4b05554565b84056cee8997deae69 | b0ff36036c66e145922be1ae8d546622391a4208 | refs/heads/master | 2021-01-01T20:21:08.127012 | 2017-07-30T20:41:41 | 2017-07-30T20:41:41 | 95,841,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import uuid
import datetime
from src.models.post import Post
from src.common.database import Database
__author__ = 'jrahman'
class Blog(object):
def __init__(self, author, title, description, author_id, _id=None):
self.author = author
self.author_id = author_id
self.title = title
... | [
"jushitaa@gmail.com"
] | jushitaa@gmail.com |
c02f87454674133188c46ec524fb31ff09fa867f | 245ab7db202f911acdf3c8091c204c485f6745ae | /parse_players.py | e1bc63030cd746589a989c8c8a271ec0483acdd3 | [
"MIT"
] | permissive | AVirolainen/football_guess | 2c4fd54b41fe6be748940a3729bf72b890bfac68 | 86c8c5ef2b428a9bde4d98e00df70ed08b1f89fd | refs/heads/main | 2023-04-08T07:07:04.657425 | 2021-04-08T22:11:27 | 2021-04-08T22:11:27 | 356,186,003 | 0 | 0 | MIT | 2021-04-09T07:56:27 | 2021-04-09T07:56:26 | null | UTF-8 | Python | false | false | 340 | py | from bs4 import BeautifulSoup
url = 'example.html'
players = open('players.txt', 'a')
soup = BeautifulSoup(open(url), 'html.parser')
table_wiki = soup.find('table', {'id': 'playerTopList'})
for td in table_wiki.find_all('td', {'class': 'name'}):
players.write("_".join(td.text.replace('\n', '').split(' ')) + '\n... | [
"jackshendrikov@gmail.com"
] | jackshendrikov@gmail.com |
2bb7dd33ca94ab0010891f6b17ba99ddfad25061 | 0911ccd808776b1e1e1ebaffcf0b77162653621b | /1_Intro_to_Python/2_Variables.py | 3b6b06c14a15a0e907b197525fe06145be9bb9c1 | [] | no_license | harfordt/Python-Lessons | 088494e3eaa204705df7fb021ba74eb7eba6741b | 885c871f2192b4abbf52ea8f1159bc1b13158e0d | refs/heads/master | 2020-09-25T17:54:48.662540 | 2019-09-10T08:46:19 | 2019-09-10T08:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | ####################################################################################################################################################
# This lesson is to store some information in a location on the computer called a Variable. A Variable can change over the course of the program. #
# We will then print t... | [
"pravinvaz@gmail.com"
] | pravinvaz@gmail.com |
48439c3e69fc5c2270951aa9ecbeed3a36dac1ef | e66e30711887a8bad38deeaa0da2558b333deb1c | /ship.py | 06d8fa89d7afa4fa043532042d692fea175fcaa5 | [] | no_license | Duanhs/Alien-Invasion | 9012de22fec46975f0ccefd734598b7572f327b5 | 8f44669c3e82e6e8ad4457ee7d8277c75f1d80f3 | refs/heads/master | 2020-04-10T12:46:57.514041 | 2018-12-09T11:29:37 | 2018-12-09T11:29:37 | 161,032,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import pygame
class Ship():
def __init__(self,screen):
self.screen = screen
self.image = pygame.image.load('images/ship.bmp')
self.rect = self.image.get_rect()
self.screen_rect = screen.get_rect()
#将飞船的位置设置到屏幕底部中央
self.rect.centerx = self.screen_rect.centerx
... | [
"duanhongsi@meituan.com"
] | duanhongsi@meituan.com |
5d1f9fac5630919623b5c3ad9f7d43e77f63a1a3 | 275f85955acabac247fe306b0161a6d758f4d057 | /ArielZurita/tests/test.py | 52e515731976567f27fef1d1405f7c5ada8f8990 | [] | no_license | mauricioZelaya/QETraining_BDT_python | 295bb58a99a36b0b973afd153109c510191b4ec7 | d7cc798e7063ab32e5002e4deda3ddec8a8a0c59 | refs/heads/master | 2021-05-08T05:01:13.181273 | 2017-11-24T21:53:46 | 2017-11-24T21:53:46 | 108,473,352 | 0 | 0 | null | 2017-11-24T21:53:47 | 2017-10-26T22:43:32 | Python | UTF-8 | Python | false | false | 954 | py | def listMonths():
monthEntered = str(input("Enter a month \n"))
months = ["january", "february", "march", "april", "may", "june", "july", "august", "september", "octuber", "november", "december"]
days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if monthEntered in months:
index = months.i... | [
"Ariel Zurita@jalasoft.local"
] | Ariel Zurita@jalasoft.local |
1055aa3e500f07c7be0eca6e0c57b8bee6333395 | 68329275022f3a392161b7746caf899e2516d547 | /10. HAFTA ODEVI AMIRAL BATTI.py | b6ac42ae3962c3e2410678e7b78ee2d2c2d19535 | [] | no_license | Osmandursunn/10.Hafta-Odev | 32e2f75870a0b4085190dc8443162987b90dd517 | 1f3a0ad4642a7818ac8aa3cec919b040bd178f52 | refs/heads/master | 2020-07-09T21:29:31.590476 | 2019-08-24T00:31:51 | 2019-08-24T00:31:51 | 204,088,061 | 0 | 0 | null | 2019-08-24T00:30:31 | 2019-08-24T00:30:31 | null | UTF-8 | Python | false | false | 8,894 | py | import random
import time
print('\u272A'*16,"AMIRAL BATTI",'\u272A'*16,sep="")
print("""
*******************************************************
*******************************************************
AMIRAL BATTI OYUNUNA HOSGELDINIZ
*******************************************************
****... | [
"noreply@github.com"
] | Osmandursunn.noreply@github.com |
5a04ed0ab197d53e561347947e8dc56c871128b9 | 7365ae430024c039e3079e9cc0cc2fcb6079ee22 | /zshprompt2.py | d5c18461a73ad013cee929509fa085472b5ceab6 | [] | no_license | jedamus/zsh-config | fef7757b9302ae45920948f4232829aea89ef61c | 0c6eda9a604095ea14493835bca0ad7dd5919114 | refs/heads/master | 2023-01-21T11:03:08.620219 | 2023-01-09T08:22:44 | 2023-01-09T08:22:44 | 42,779,306 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,418 | py | #!/usr/bin/env python2
# coding=utf-8
# erzeugt Mittwoch, 11. März 2015 21:01 2015 von Leander Jedamus
# modifiziert Samstag, 13. August 2022 08:49 von Leander Jedamus
# modifiziert Montag, 02. Mai 2022 20:27 von Leander Jedamus
# modifiziert Montag, 07. Mai 2018 22:24 von Leander Jedamus
# modifiziert Montag, 21. Sep... | [
"ljedamus@web.de"
] | ljedamus@web.de |
f829374ecf93d80a724d38e00dff9ecc2cb9c16b | f68065baf489013c926dcfea9994878716d19586 | /accounts/views.py | 323deb2d9a062d75f066d39db1854285279ddd21 | [] | no_license | groyce/pots | 06667fdc686b74a897c42879cbed5803e9efb154 | ac839943c84c3135cb4596a8f734e4a061086e10 | refs/heads/master | 2020-04-10T01:42:55.863071 | 2018-12-06T19:47:18 | 2018-12-06T19:47:18 | 160,723,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth import authenticate, login
from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm
from django.contrib.auth.decorators import login_required
from .models import Profile
def user_login(request):
... | [
"groyce@unomaha.edu"
] | groyce@unomaha.edu |
305a52c242ec94adeaaf52fb037f2f4072fe2272 | 8961efe29765a8093bcd669adb3fa6ca186eadfd | /toolbox/attacks/FGSM-Attack/run_all.py | de63948e966ad6a4eb5ec4441dfcdcc3b516de03 | [] | no_license | JayceeLee/adversarial-toolbox | 12bfe720fd0984b6dc1c10d61486b2e36f22fde9 | 01d624d995d3c55d220cdf570ca00510f32cc43a | refs/heads/master | 2020-03-27T04:22:55.631986 | 2018-02-06T01:25:27 | 2018-02-06T01:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | python fgsm_inception_v3.py
python fgsm_inception_resnet_v2.py
python fgsm_resnet_v2_101.py
| [
"nealeratzlaff@gmail.com"
] | nealeratzlaff@gmail.com |
8cd85855d175d322e73f636de7aed0b6850bdf52 | 2f233b31ea7ffefad4b901b561f341fabe3bbb1f | /2017/02a.py | 77f9ee8c4d1e176ea1331fdbdd314eff205802e3 | [
"MIT"
] | permissive | cz-fish/advent-of-code | 066b63c3ac2e3b13bf88ae86843a7a9a7b687e96 | ecbcef544e8d89ec019464811760ce86f84dbc6e | refs/heads/master | 2023-08-03T19:41:23.186666 | 2023-03-14T08:59:04 | 2023-03-14T08:59:04 | 226,355,674 | 0 | 0 | MIT | 2023-07-20T02:51:13 | 2019-12-06T15:17:10 | Python | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/env python3
grid = []
with open('input02.txt', 'rt') as f:
for ln in f.readlines():
grid.append([int(x) for x in ln.strip().split('\t')])
print(sum([max(l) - min(l) for l in grid]))
print('-----')
s = 0
for ln in grid:
srt = sorted(ln)
stop = False
for i in range(len(srt) - 1):
... | [
"filip.simek@gmail.com"
] | filip.simek@gmail.com |
95e084e2db2796dd5bfa76335cfa156cdae7f351 | 71cea814dcf5ceb6d2b3a86f33273e532f5a9b77 | /simpa_tests/automatic_tests/TestPathManager.py | 554e50fb7053f0a7d56d466388f64b2150d14285 | [
"MIT"
] | permissive | mschllnbrg/simpa | 7744bba073f9c01b7a60f076a49fe80b5e6d12fa | 2ca2b81039a7252da7c618d8ba69527f2d6f240f | refs/heads/master | 2023-06-19T18:59:02.301717 | 2021-06-24T12:47:55 | 2021-06-24T12:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,862 | py | """
SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ
SPDX-FileCopyrightText: 2021 VISION Lab, Cancer Research UK Cambridge Institute (CRUK CI)
SPDX-License-Identifier: MIT
"""
import unittest
import os, inspect
from simpa.utils import PathManager
from pathlib import Path
from dotenv imp... | [
"janek.grohl@cruk.cam.ac.uk"
] | janek.grohl@cruk.cam.ac.uk |
7b971f292708ee7e0c19c8b4c0113acc5eaa8c75 | 07d110e3350b42982c493be12fbdce0d5b6acdd3 | /users/migrations/0002_auto_20200819_2130.py | bdcda405b91eeddfc0baf8726df33e2862574693 | [] | no_license | AlissonS47/django-challenge | 387f99067e4b478db20de27e7922abe96e79555b | 2ca67ac0696bd30f94236832514641374347a73e | refs/heads/master | 2022-12-08T07:19:16.718695 | 2020-09-05T00:09:22 | 2020-09-05T00:09:22 | 287,840,861 | 0 | 0 | null | 2020-08-15T23:29:22 | 2020-08-15T23:29:22 | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.1 on 2020-08-20 00:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='naver',
name='admission_date',
... | [
"tec.alisson47@gmail.com"
] | tec.alisson47@gmail.com |
2909402b00fb3a6e6b883535089989ab85eb7e84 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py | 766e46a49d072ae53fadbf9814e540e8ef7dfdbb | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 8,471 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "mesh3d.legendgrouptitle"
_path_str = "mesh3d.legendgrouptitle.font"
_valid_props = {"color", "... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
f6066d060c195e6f9ef837b859b666ab4f30bdb8 | 096167807fa625681beae7e25919357c90b89e75 | /emails/models.py | 1fb86f349ab69c1489f2ef26d7c95be401ff5b2d | [] | no_license | bussiere/Sumomo | c849484fbae37490998bcc44e232bf6a252fe9d7 | ac3efc46014e66e193c5f852d121a25dd0a9ec5e | refs/heads/master | 2021-01-19T11:34:42.645970 | 2012-08-31T04:15:32 | 2012-08-31T04:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from django.db import models
# Create your models here.
class Contact(models.Model):
Emails = models.TextField(null=True, blank=True)
class Email(models.Model):
Sender = models.ForeignKey("Contact",related_name="Sender", null=True, blank=True)
Recepter = models.ManyToManyField("Contact", related_name="Re... | [
"bussiere@gmail.com"
] | bussiere@gmail.com |
bd51f7d2254adf5b66b9f623b6a902a082b95b74 | 52bd6040667388c1cb25802feeaa78260d870858 | /finalscripts/fit_lines_4triangles.py | 4456c45b406ef44ae98b5229d27ab8c10ea46bc7 | [] | no_license | mainCSG/DotTuning | 837bb418618b6df4e15db8190953a0456094f856 | b2cb52cdd343ea64d39c6e75fd8f340d2b709198 | refs/heads/master | 2020-07-02T08:32:20.558372 | 2019-08-09T19:43:01 | 2019-08-09T19:43:01 | 201,474,350 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,492 | py | # it takes 5 vertices as the input along with the cluster. It first finds the boundary points and
# puts the point into 5 groups based on which edge it is closest to. Then fits a line through these groups
import matplotlib.pyplot as plt
# from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import pandas as pd
# ... | [
"51793790+zachparrott@users.noreply.github.com"
] | 51793790+zachparrott@users.noreply.github.com |
119d5dd6903d69bdfa649d76ecd2c0552b636918 | 5099e029c341e6111a331c66a49c8ef2a295d441 | /common/encryption.py | c6c087cdd4eb2cc808303177e9ae97091aa4778a | [] | no_license | cherrishes/weilaiDemo | 6abfcd8260f0ca515fa8a92aef53546362f28b34 | c6e3a6341630de0f7906055e4120f1bb0f258d64 | refs/heads/master | 2021-01-10T13:40:43.437971 | 2016-04-05T11:06:11 | 2016-04-05T11:06:11 | 54,546,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # !/bash/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'rdy'
import hashlib
def md5(val):
"""
字符串MD5加密
:param val:
:return:
"""
if isinstance(val, str):
m = hashlib.md5()
m.update(val.encode('utf-8'))
return m.hexdigest()
else:
return ''
if __name__... | [
"rendy@56iq.com"
] | rendy@56iq.com |
dc543898fee01c7ed58926a7c5f42df05801e873 | 9cf369ce8ea40142917e0fae6dd0dae7d60667ed | /Blog/apps/blog/models.py | c2ba5823d8771f31d2476275e125bf9e399a106c | [] | no_license | wcleonard/interview | ef60b5a2bec36bc3a077b54ceb88ea43a30ab3d2 | bf396556d1a65fbae536373967e2d1bf6de52b4d | refs/heads/master | 2022-11-30T17:12:18.545996 | 2019-07-10T08:51:53 | 2019-07-10T08:51:53 | 187,006,175 | 0 | 0 | null | 2022-11-22T03:49:12 | 2019-05-16T10:29:38 | JavaScript | UTF-8 | Python | false | false | 3,042 | py | from django.db import models
from django.utils.timezone import now
class Tag(models.Model):
name = models.CharField(verbose_name='标签名', max_length=64)
created_time = models.DateTimeField(verbose_name='创建时间', default=now)
last_mod_time = models.DateTimeField(verbose_name='修改时间', default=now)
# 使对象在后台显... | [
"wancanin@163.com"
] | wancanin@163.com |
c108208bc9db3256a41319f9146f6ee3f21eaa0b | 34edc8b21515817caa87aedeb07b87515c33ebd0 | /basket/migrations/0020_auto_20180522_2041.py | 2124680ee2ea695b05fe1a93fcea0fe017647183 | [] | no_license | waelbeso/Ftrina | b20c277030132b195af621d9e739040d42943a9b | 449868f8c095bb920a2aef2e2dc4cb80de8ec82a | refs/heads/master | 2022-09-06T16:34:40.391965 | 2018-05-27T12:19:05 | 2018-05-27T12:19:05 | 134,336,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-05-22 20:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basket', '0019_auto_20180522_2035'),
]
operations = [
migrations.AlterField... | [
"waelabbas@live.com"
] | waelabbas@live.com |
85f6c6841803ce1581908c6771d2ce379cf2641b | 5937db09510fecf857f4e6064a5edef84d30fb5b | /cracker.py | 89cf7604776722567a37bd38085753fcda325ef3 | [
"MIT"
] | permissive | ak9999/dict-bruteforce-unix | c32d24d9bc8117622a726eaf248f23b6b2767d84 | a5a5c38a2502434f51b3a3ca3f98bb7a31c81fcc | refs/heads/master | 2020-12-21T17:22:17.237691 | 2016-07-04T21:04:00 | 2016-07-04T21:04:00 | 60,309,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | #!/usr/bin/env python3
import sys
import crypt
import spwd
'''
Author: Abdullah Khan
Program: cracker.py
Description: Dictionary-based /etc/shadow file cracker.
Usage: cracker.py <path/to/dictionary/file>
'''
def crack(username, enc_password, dictionary):
if not dictionary:
exit(1)
salt = enc_passwor... | [
"khanabdullahj@gmail.com"
] | khanabdullahj@gmail.com |
d39213359879393713f56cfeaab771126b841676 | ec205806d24c256cb276534b9fc2cdc80fb728b6 | /16_user_name.py | cd328a7bf9482113d4eeb6c49092a69c05729904 | [] | no_license | siddhusalvi/basic-python | a4094665f8c22fa164f749b8bc6884970922abb9 | 8b637a9a468110c95f02871f2bb947913b495014 | refs/heads/master | 2020-12-12T03:47:54.803601 | 2020-01-16T11:53:46 | 2020-01-16T11:53:46 | 234,035,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | """
Write a Python program to get the current username
"""
import getpass
print("Current username is :", getpass.getuser())
| [
"siddheshsalvi525@gmail.com"
] | siddheshsalvi525@gmail.com |
2cf4e7801619ee837dad4b3378ec60eb0aef2667 | 444468f946f906063b79e381cba03f8027553024 | /tools/demo.py | 89fdcc9c70324c0b877086fb8b77e9f2a5508c19 | [
"MIT"
] | permissive | neuqgz/modify-faster-rcnn-tf | ea0af9f42b986373db64b723b5295c31aed3f047 | e935660d7645d405be309843d1778adc6cd57332 | refs/heads/master | 2020-03-21T23:49:16.571284 | 2018-06-30T10:29:27 | 2018-06-30T10:29:27 | 139,207,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | #!/usr/bin/env python
# --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Xinlei Chen, based on code from Ross Girshick
# --------------------------------------------------------
"""
Demo script showing detections... | [
"1072464610@qq.com"
] | 1072464610@qq.com |
8c2130f6ba303911b5d6f295829119020fd3ec10 | f4927e1b2ad87cff185a9d6a5100c40ffcf85ffd | /blog/urls.py | 18a04bd99c32e5a1a9735ba30accbc1160739c29 | [] | no_license | abhitechno01/my-first-blog | e930d184b6ee6e4c3075be85a8a41c7e5a00d6f7 | a14163e98735674b6b6338d7daeea3893bd9240d | refs/heads/master | 2021-01-10T14:47:57.687645 | 2017-03-05T09:21:33 | 2017-03-05T09:21:33 | 47,018,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>[0-9]+)/edit/$', views.post_edit, name='post_edit'),
... | [
"abhi.techno01@gmail.com"
] | abhi.techno01@gmail.com |
c9272ab9ce25ad997cef0881159ae4bc9c13e0ef | e0d9844e123fa0706388814b9f29758258589487 | /torch/distributions/distribution.py | 33c48de39d91713f0e5c6f65b31cd98687ac56d8 | [] | no_license | pigpigman8686/seg | b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c | 61c3816f7ba76243a872fe5c5fc0dede17026987 | refs/heads/master | 2023-04-10T22:22:35.035542 | 2021-04-22T06:24:36 | 2021-04-22T06:24:36 | 360,398,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,229 | py | import torch
import warnings
from torch.distributions import constraints
from torch.distributions.utils import lazy_property
from typing import Dict, Optional, Any
class Distribution(object):
r"""
Distribution is the abstract base class for probability distributions.
"""
has_rsample = Fal... | [
"952361195@qq.com"
] | 952361195@qq.com |
69e047b18d45718a8b61d0b513fee6d2958265d9 | 9c371b80b2b0cc610ba53c1d719f9ccf6150ea32 | /Task-2/codeforces/cf-71A.py | 55e74f433fc43d154cbb83ab9f037b4c9596ceef | [] | no_license | praveenjm2000/amfoss-tasks | cd329021fdd67cb86ceccceaa364c425bf2f3c40 | 3509c578b55e9f0154b2eeb646cac7de2473f4b9 | refs/heads/master | 2020-06-28T14:44:41.777644 | 2019-09-18T17:25:44 | 2019-09-18T17:25:44 | 200,258,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | s=input('Enter the word: ')
l=len(s)
print(s[0],l-2,s[l-1],sep='') if(l>10) else print(s)
| [
"noreply@github.com"
] | praveenjm2000.noreply@github.com |
4a83f922a050991ffa8ce57cd3a8290bb54b295d | 95501489b913ca04f3756edff53ab1dd1eb22595 | /keras_contrib/backend/theano_backend.py | 8195937327b5621395fd14643009ac68e04c1c79 | [
"MIT"
] | permissive | mustgoplay/keras-contrib | 5c6965c923e3a579fbac3fc62b89445623c38bd8 | d1f0eed42441ec1e83bbf6b2d005588bab54c0f3 | refs/heads/master | 2020-05-30T03:18:02.649351 | 2017-02-21T03:16:01 | 2017-02-21T03:16:01 | 82,624,770 | 0 | 0 | null | 2017-02-21T02:06:22 | 2017-02-21T02:06:21 | null | UTF-8 | Python | false | false | 4,543 | py | import theano
from theano import tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from theano.sandbox.neighbours import images2neibs
from theano.tensor.signal import pool
from theano.tensor.nnet import conv3d2d
from theano.printing import Print
try:
import theano.sparse as... | [
"noreply@github.com"
] | mustgoplay.noreply@github.com |
698b0601027480d0838e9463b081837db17caabc | 55631088b41f203027c399a501e9c344d99d7dae | /app/routes/route.py | 10c6bf047ce1e8f1b929d235addd7ce365157c0e | [] | no_license | subham2126/Rest-API-using-Flask-and-Cassandra | 89f5e4885b3b0ed28e35fc6f8eb472f1e341333d | 0fb8a9f828a0fcb39d2f99c97fbca79c8e96ef29 | refs/heads/master | 2021-08-22T03:38:50.863931 | 2017-11-29T05:12:06 | 2017-11-29T05:12:06 | 112,316,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | from flask import Blueprint,Flask,request
import json
from cassandra.cluster import Cluster
cluster = Cluster(["127.0.0.1"])
api = Blueprint('api', __name__,url_prefix='/module');
class myClass:
@api.route('/login')
def login_in():
session = cluster.connect('tutorialspoint')
rows = session.ex... | [
"subham.gupta@medlife.com"
] | subham.gupta@medlife.com |
56b112ec026b96dc86c4812ccb51a04bbdb70086 | 9b9e4af541fdf3609fdcd4c4f880cfc04c2de610 | /utils/testing_fashionmnist.py | ace075520517204059a29f98648c2319b4b7a616 | [] | no_license | HeleneFabia/fashion-mnist | e1f279c62197ae7037c09ab39a1042699901aab2 | 3510dfa0af9708088ac17e912d9e4c61913f614b | refs/heads/master | 2023-01-08T02:29:16.187348 | 2020-11-04T07:14:18 | 2020-11-04T07:14:18 | 299,336,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | from sklearn.metrics import accuracy_score
import torch
from torch.nn import functional as F
from torch import nn
from torch.utils import data
from torch.utils.data import DataLoader
import matplotlib.pyplot as plt
from matplotlib.pyplot import plot
import numpy as np
def test_model(net, test_ds, device):
"""
... | [
"noreply@github.com"
] | HeleneFabia.noreply@github.com |
0047d29abf94e16535d124ff7d4ef10ea63e1275 | 0bbddea89877506c12b62137ed77ff47d1bb2f05 | /manage.py | 78234b70a42c1efda4fafcd4a46620f18889214c | [] | no_license | TheHene/owlt | 93fa9df61fccbc5997f433ca1feeae157cf9bbab | c7f4eff9fca87f0116813b04311b7c1bf3052ef3 | refs/heads/master | 2020-03-18T15:24:34.458671 | 2018-05-29T20:32:11 | 2018-05-29T20:32:11 | 134,905,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "owlp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"hendrik.setzer@hotmail.de"
] | hendrik.setzer@hotmail.de |
e9d942313fddaf59f9f83f27c7bc26137e53b214 | 8cd4e38f9cc69f384175458eb308c56a591a782d | /Pulso político por provincias en Ecuador/Script usados/sucumbiosAA.py | 38c0422e6a3dd233455ea3c5eb1ad60e57332c11 | [] | no_license | Jonathan141999/proyecto-analisis-de-datos-JEGY | cb328b57cd51b56c9d13de5da05832770f663437 | 42391badeb510e1a484774a3fd229abe4d5d55f3 | refs/heads/master | 2023-03-23T17:38:14.733267 | 2021-03-19T19:47:44 | 2021-03-19T19:47:44 | 348,162,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py |
import sys
import couchdb
from tweepy import Stream #autentica las credenciales
from tweepy import OAuthHandler #
from tweepy.streaming import StreamListener #hereda la clase
import json
###API ########################
ckey = "X1cHhuKlzjY6eUQ2J6i4MuVUR"
csecret = "kEd5yq95noDC726oYSGYSXkuF4S71kj2IFauS3qmOGIDQHJ7XC"... | [
"jona94alquinga@gmail.com"
] | jona94alquinga@gmail.com |
1c9832b0b85c1b52d6843f79ec2dcb1fa84e81b1 | 68ab00c77312827e522151e6e9f2fff166e85b9c | /mypy_boto3_builder/structures/collection.py | 41b5f2550bb9a33bdb6cd53825ecc814e7734f48 | [
"MIT"
] | permissive | pyto86pri/mypy_boto3_builder | 2cdfb3ed55ea1ff23cdffd5a9ee5400e71562450 | e8132dc4632430e0abd4cd330af51a8b1c82028f | refs/heads/master | 2023-01-25T04:06:11.174287 | 2020-12-03T23:39:06 | 2020-12-03T23:39:06 | 319,283,736 | 0 | 0 | MIT | 2020-12-07T10:29:52 | 2020-12-07T10:29:51 | null | UTF-8 | Python | false | false | 1,280 | py | """
Boto3 ServiceResource or Resource collection.
"""
from typing import Set
from mypy_boto3_builder.import_helpers.import_string import ImportString
from mypy_boto3_builder.structures.class_record import ClassRecord
from mypy_boto3_builder.type_annotations.external_import import ExternalImport
from mypy_boto3_builder... | [
"volshebnyi@gmail.com"
] | volshebnyi@gmail.com |
9b5798055f88b7a1a338ac59202cf9820a91f147 | 48bf18fd4c495aaec8c3c03cb5f56a0cd511dd70 | /todolist/urls.py | c7ad30b772ca89b1f4b40db77d77645b3a0cdc83 | [] | no_license | williampepple1/Todolistwithdjango | c1f587eba8e038f9008a5a444c24296ce4fc90e8 | 0533a775753be74c9b5e30a5c5d6627c68f92293 | refs/heads/main | 2023-04-22T15:37:53.033204 | 2021-05-08T15:35:16 | 2021-05-08T15:35:16 | 364,580,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | """todolist URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"36817380+williampepple1@users.noreply.github.com"
] | 36817380+williampepple1@users.noreply.github.com |
bbb2322ace2b612dcc069fc950c3e1896bb9a0ac | d6659785d05e35daa190470e55fd662bf0235497 | /models/sfrtrans.py | baeb6989667c5c76dd7701a6f1ec54ee6e45ee19 | [] | no_license | fahihdrh/wuliang | 2fc3aae1c729112a7ee85cf2b573ccb197ff29d1 | 949eadacb13856e1d39986404e9d717fe39282da | refs/heads/master | 2023-06-28T04:22:02.836370 | 2023-06-15T01:47:21 | 2023-06-15T01:47:21 | 76,614,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | import torch
from models.utils import SATransformer, CATransformer
import torch.nn as nn
from mmcv.cnn.bricks.conv_module import ConvModule
from einops import rearrange
class SFRTrans(nn.Module):
""" backbone_dim: The number of channels of feature maps output from the backbone (UNet Encoder).
seq_dim: The... | [
"237583937@qq.com"
] | 237583937@qq.com |
5390d4b1ceb14885cc274564814a2e976a44a68f | b7716089291b9f915c326ad43b6df50e286860b9 | /nasa/__init__.py | 2a2ba71fe5345a2a0c07dd7b0015a295b5d71a4b | [
"MIT"
] | permissive | saturnfive050/aio-nasa | bf20110e3a26f9239dba097ded288e82339c6746 | 62fc6dcafb0417e2ec79709fd46d8500652d3ae5 | refs/heads/master | 2022-11-16T03:27:38.445440 | 2020-07-13T19:05:21 | 2020-07-13T19:05:21 | 279,712,917 | 0 | 0 | MIT | 2020-07-14T23:17:06 | 2020-07-14T23:17:06 | null | UTF-8 | Python | false | false | 150 | py |
from .nasa_client import NASA
# from .base_client import BaseClient
from .apod.apod_client import APOD
from .insight.insight_client import InSight
| [
"48489521+nwunderly@users.noreply.github.com"
] | 48489521+nwunderly@users.noreply.github.com |
97876c1143af3c1bbcf63ea5db171555c18fc239 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Gui/Intro/gui3.py | 6617d3e8edd2b088131c50e73653265dc000e795 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import sys
from tkinter import *
def quit(): # a custom callback handler
print('Hello, I must be going...') # kill windows and process
sys.exit()
widget = Button(None, text='Hello event world', command=quit)
widget.pack()
widget.mainloop()
| [
"zui"
] | zui |
033451d08b6344e87d7017977780ce8cefee7dea | 405c89cf9ca91b3bf72c030410afbd7e4ba797e8 | /odl_boke/my_app/migrations/0016_subproject_settime.py | 33eb4fb66496f7ccfd06f24b5d2f0255a6ccf4d1 | [] | no_license | andwang130/django_web | 11941c1cc43314399ab9d487a02836e718c70369 | 85f0adb0f142fdb4dbdd49cb01e0763e74624fec | refs/heads/master | 2021-01-25T01:07:55.892949 | 2018-06-14T01:57:32 | 2018-06-14T01:57:32 | 123,306,749 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.0.1 on 2018-01-20 15:53
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('my_app', '0015_auto_20180120_2300'),
]
operations = [
migrations.AddField(
model_name='subproject',... | [
"627656470@qq.com"
] | 627656470@qq.com |
38249fa8185cebfdb4c30d7dddd3e605bad8b96b | 5bf245e55b756ca3e664d857f36db092855c7a98 | /externals/mne/fixes.py | 399715ee615775de35fa7a26ddf1c8dde4d48d47 | [
"BSD-3-Clause"
] | permissive | kingjr/decoding_challenge_cortana_2016_3rd | b264fabbe8fb2f3788d11dc2c4deebcf217a64a5 | 26c2ebf5200b5a5cd268fa73ac3928d7257d08d3 | refs/heads/master | 2021-01-20T17:54:12.617430 | 2016-07-13T22:31:58 | 2016-07-13T22:31:58 | 63,120,115 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 33,605 | py | """Compatibility fixes for older version of python, numpy and scipy
If you add content to this file, please give the version of the package
at which the fixe is no longer needed.
# XXX : originally copied from scikit-learn
"""
# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varo... | [
"jeanremi.king+github@gmail.com"
] | jeanremi.king+github@gmail.com |
cb8a5a7e749c620eccbb32e9dae70307ab887439 | 6d5a85bb2347f06d5d23ced47fdbcd3966ec9db3 | /resources/tests/test_resource_api.py | 47d0857c50ab918096a48be26e691585124a7025 | [
"MIT"
] | permissive | City-of-Lappeenranta/Respa | e3224a469fb175b22f79cad4f4f96fe658f892bb | 6559359e4ad800d582bb19b9a421d78500b272e8 | refs/heads/master | 2022-12-12T12:10:14.323868 | 2022-04-04T06:43:21 | 2022-04-04T06:43:21 | 165,219,424 | 0 | 0 | MIT | 2022-12-07T23:55:22 | 2019-01-11T09:45:47 | Python | UTF-8 | Python | false | false | 22,999 | py | import datetime
import pytest
from copy import deepcopy
from django.core.urlresolvers import reverse
from django.contrib.gis.geos import Point
from django.utils import timezone
from freezegun import freeze_time
from guardian.shortcuts import assign_perm, remove_perm
from resources.models import (Day, Equipment, Period... | [
"andrey.aleksandrov@octo3.fi"
] | andrey.aleksandrov@octo3.fi |
a1c2a87889a40ad080a4ee6a9d04be8cc1ac71a4 | bd6bf1f587cce6ecf9088f6e97034c5a45ea968b | /write_file.py | b81b15175e6473c09d3585c802bcf7aa2c7dd9dc | [] | no_license | daisykha/pythonSimpleProgram | b4d6670c53b7dd36f4310fa149df3cacb3348d48 | 02835eaaeee473dbc6e2f47c081a05c5e759dd2c | refs/heads/master | 2022-03-21T17:24:11.531308 | 2022-02-08T19:40:14 | 2022-02-08T19:40:14 | 213,254,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | #Q1
#a_word="abc"
#file_name=open("text.txt","w")
#file_name.write(a_word)
#file_name.close()
#Q2
#def saveListToFile(sentences, filename):
# filename = open(filename,"w")
# for i in sentences:
# filename.write(i)
# filename.write("\n")
# filename.close()
#file_name=input("Enter file name: ")
... | [
"noreply@github.com"
] | daisykha.noreply@github.com |
4fd2db085bebdf0fb2594d570603ecce95d71f50 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03227/s459999028.py | 03236a4d5fabd077163769a4c50f0ed805cccd94 | [] | 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 | 146 | py | def main():
s = input().rstrip()
if len(s) == 2:
print(s)
else:
print(s[::-1])
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
082dec6b6de5e27366fa56a22a7a33984dbdfd45 | b851b6db51b0948d3a2a1c27d4616ecc451bcbe0 | /PetriDish/ConcurrentTransition.py | 8299dc50bd8347b66aece27f93d567607bec1d4a | [] | no_license | jomondogu/petri-dish | 321bb90d0084b357b6f8e52667d243bea45d7b0c | 5098e1baf4d35dd61e9eaad34777b7e292f614cd | refs/heads/master | 2020-04-11T10:17:49.442439 | 2018-12-14T00:22:08 | 2018-12-14T00:22:08 | 161,710,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import sys
import time
from threading import Thread
class Transition(Thread):
def __init__(self, id = 0, inputs = None, outputs = None, position = [0,0]):
super(Transition, self).__init__()
self.id = id
if inputs is None:
self.M = 0
self.inputs = []
... | [
"noreply@github.com"
] | jomondogu.noreply@github.com |
6fb95dced758154aad6d1a944de9536f17a0b428 | 1a2cc414889af45a08af88e30253761fc9a804b1 | /scripts/fastest-infra-wheel-mirror.py | 4c75acfa79263972d9b05dc3332a181089101e2b | [
"Apache-2.0"
] | permissive | jimmy42/openstack-ansible | eb098ff8ca360ce712c692084f7cbe34cd18e9b2 | 77cd6b1d3fc67bff4936b793e7949bf757a6f31c | refs/heads/master | 2023-01-08T18:20:11.333027 | 2016-06-02T15:25:50 | 2016-06-02T15:25:50 | 60,303,603 | 0 | 0 | Apache-2.0 | 2022-12-24T00:58:30 | 2016-06-02T23:17:57 | Python | UTF-8 | Python | false | false | 5,668 | py | #!/usr/bin/env python
#
# Copyright 2016, Rackspace US, Inc.
#
# 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 applicab... | [
"jesse.pretorius@rackspace.co.uk"
] | jesse.pretorius@rackspace.co.uk |
8332c450f1334adc650c3da9b9cf8c44f36cac49 | 7e1079b46b08bbe60a66e105c73bb9ab10397743 | /src/bin/tlvfyrule | 8737cfe35a28c7e166a5d9446573079e2f67225b | [] | no_license | ppjsand/pyteal | f810697e59ecb393e3d7c3b9eb69b5150f7f7f70 | eba6c1489b503fdcf040a126942643b355867bcd | refs/heads/master | 2020-05-17T22:44:18.135207 | 2012-08-01T14:38:56 | 2012-08-05T02:02:56 | 4,961,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,150 | #!/usr/bin/env python
# begin_generated_IBM_copyright_prolog
#
# This is an automatically generated copyright prolog.
# After initializing, DO NOT MODIFY OR MOVE
# ================================================================
#
# (C) Copyright IBM Corp. 2010,2011
# Eclipse Public License (EPL)
#
# ================... | [
"psanders@riven.rchland.ibm.com"
] | psanders@riven.rchland.ibm.com | |
e2e77603dceef720d9b2f0d2b691e2c6403a7e9c | f5bb79f7925d53ccaf21d2c98334222a8aa9a377 | /Hackerrank/06. Itertools/maximize-it.py | 6b8675cd3f6adf041adbe3ad186ab97932d8929f | [] | no_license | StanislavRadkov/python-learning | 511b1d8b80fb1eff500739d0c24b42af84948e75 | 46268b3107510b4a7ad9fbc868372de22b7459ae | refs/heads/master | 2021-03-24T12:12:51.303476 | 2017-09-11T12:27:26 | 2017-09-11T12:27:26 | 101,641,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import itertools
k, m = map(int, input().split(" "))
arrays = [map(int, input().split(" ")[1:]) for _ in range(k)]
def f(*nums):
return sum(x * x for x in nums) % m
print(max(itertools.starmap(f, itertools.product(*arrays)))) | [
"stanislavradkov@skyscanner.net"
] | stanislavradkov@skyscanner.net |
d807abdc220d8649a4f546bf8715b4be597aec77 | 5a71ca1f5c964f803350e3c1238cb48986db565c | /coinlibbitfinex/tests/test_bitfinex_streamapi.py | 25331ab7bbc5c1144c8083305e500db7203b9b85 | [] | no_license | tetocode/coinliball | fd644cbc16039ecad7e43228ea4e287ead5c8e5f | 41ebbac13c1fbba98aedaa766b9a505cb157f374 | refs/heads/master | 2022-09-28T21:58:08.130006 | 2020-06-04T03:00:56 | 2020-06-04T03:00:56 | 269,247,318 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | import time
from queue import Queue, Empty
import pytest
from coinlib.datatypes.streamdata import StreamData
from coinlibbitbankcc.streamapi import StreamApi
WAIT = 3
N = 10
def test_subscribe(stream_api: StreamApi):
xrp_usd_params = {
'event': 'subscribe',
'channel': 'book',
'pair': 'X... | [
"_"
] | _ |
d8bef9d2257e646945921eef2184ee0089672dc5 | dabc9c7ec7cce125a12c6243ff67fd91e620d636 | /tap/line.py | 2784be13d982350342f9cef81eb316a081153234 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Mark-E-Hamilton/tappy | 7634209c2862c9e837b58602d4b59636fd9a8e89 | 62c1a4ef1d9e724d3c7bbb31361c17c3bf071d04 | refs/heads/master | 2021-01-15T09:04:09.813683 | 2016-03-21T04:51:45 | 2016-03-21T04:51:45 | 53,630,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | # Copyright (c) 2016, Matt Layman
class Line(object):
"""Base type for TAP data.
TAP is a line based protocol. Thus, the most primitive type is a line.
"""
@property
def category(self):
raise NotImplementedError
class Result(Line):
"""Information about an individual test line."""
... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
1412f35638ca0ea7b9a84f157d78d221431a2524 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /small_programme/crawler/crawling.py | e445437136947a14712e6ade780429dd6b18b819 | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,379 | py | import asyncio
import collections
import logging
import re
import time
import urllib
import cgi
import sys
import aiohttp
from reporting import report
LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
FetchStatistic = collections.namedtuple(
"FetchStatistic",
[
"url",
... | [
"hjlarry@163.com"
] | hjlarry@163.com |
b11986b3974295a315c63bf1ec08b07e1e0e3087 | dde9442399c78414c05f7f36803c861638065ca3 | /Multidimensional-Lists-Exercise/Radioactive-Mutant-Vampire-Bunnies.py | a22c9f63fe0ef1c68063385ce0f936bf2bfc334d | [] | no_license | Vigyrious/python_advanced | 6778eed9e951b5a11b22f6c6d8ea5b160c3aa00d | 67db470e78b194aea1f9a35283d5a88b0f6ab94c | refs/heads/main | 2023-03-23T12:24:59.688699 | 2021-03-12T20:53:04 | 2021-03-12T20:53:04 | 347,192,305 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | row, col = map(int, input().split(" "))
matrix = []
[matrix.append(list(input())) for _ in range(row)]
movements = list(input())
player_row, player_col = [[row_index,col_index] for row_index in range(row) for col_index in range(col) if matrix[row_index][col_index] == "P"][0]
is_dead = False
has_won = False
while not is... | [
"73179295+Vigyrious@users.noreply.github.com"
] | 73179295+Vigyrious@users.noreply.github.com |
2784c3c98d088cdfd95b608f240655a8d740bc7e | f59e084cc1dc682cabd2ccb2bc33815f7163fcf7 | /modelo_oo.py | 756784a68d95351cda9a0d43535819734c5520ae | [] | no_license | jolubanco/locadora-filmes | 77614d737c39add79f4393ebf16997d3c9072a13 | ed9195702ed28e5d1841c41bd51445b8853acda0 | refs/heads/main | 2023-03-17T11:33:05.156560 | 2021-03-20T20:28:08 | 2021-03-20T20:28:08 | 348,409,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | class Programa: #super classe ou classe mãe
def __init__(self,nome,ano):
self._nome = nome.title()
self.ano = ano
self._likes = 0
@property
def likes(self):
return self._likes
def dar_like(self):
self._likes += 1
@property
def nome(self):
return... | [
"jolubanco@gmail.com"
] | jolubanco@gmail.com |
0a18a36b0b379bb71c4592b344cbbe3866ef6924 | 23cdddefa2eaaed538e1b8131adb139299d29768 | /framebuffer.py | 48b357ee6fc1e44eae64f845c2fabf5323f47d12 | [] | no_license | samuelpetersson/photobooth | 02c46bdd22a975c2813da76d235e61f42bf2dc40 | 81c5c8de879a0bf2d3a90a5ca44fa0c57ae95e6c | refs/heads/master | 2021-01-17T07:33:57.888031 | 2016-06-07T10:16:58 | 2016-06-07T10:16:58 | 37,460,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import os
import pygame
def createScreen():
"Ininitializes a new pygame screen using the framebuffer"
# Based on "Python GUI in Linux frame buffer"
# http://www.karoltomala.com/blog/?p=679
disp_no = os.getenv("DISPLAY")
if disp_no:
print "I'm running under X display = {0}".format(disp_no)
# Check which frame ... | [
"sam@f09.org"
] | sam@f09.org |
d81279866b63a11b890694dcb86e0d92f04ccedd | 26fcacb804565222c566e9e661ea3850c4c36f69 | /tmp/test_streaming_f1.py | 87a3fc85d00c2a848a3adff81733b64fa39a7ab3 | [] | no_license | entrepreneur-interet-general/tf-han | 84052f96f5abf3f1b7ce09c22dc2d9e29921b412 | f745942dd56209cf4b81b95ccc830fff8e7487ba | refs/heads/master | 2022-12-12T01:50:03.544882 | 2018-11-30T09:08:49 | 2018-11-30T09:08:49 | 128,797,777 | 2 | 1 | null | 2022-12-08T01:15:14 | 2018-04-09T16:00:13 | Python | UTF-8 | Python | false | false | 9,291 | py | import tensorflow as tf
import numpy as np
from tensorflow.python.ops import variable_scope
from tensorflow.python.ops import array_ops
from tensorflow.python.framework import ops
from sklearn.metrics import f1_score
def metric_variable(shape, dtype, validate_shape=True, name=None):
"""Create variable in `GraphK... | [
"vsch@protonmail.com"
] | vsch@protonmail.com |
b221bd8d3a7663132e3024e8df731bbba6327505 | eb1ff39da7264fb48274bb6f21d894317e69f499 | /TLS_Extended_Master_Checker.py | 66d3a958fe85a378677f82d3d613a1e64045d0ff | [
"Python-2.0"
] | permissive | princeofdarkness76/TLS_Extended_Master_Checker | fb0fe511a5cefcbdd20eaca98279c67c956d4bdf | 7a78dde5d5898ca8a29bf2a41d9184741f305459 | refs/heads/master | 2017-12-02T21:40:11.490326 | 2015-11-11T01:17:35 | 2015-11-11T01:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,914 | py | #!/usr/bin/env python
import sys
import socket
import time
import struct
strTitle = "Tripwire VERT TLS Triple Handshake Detection Tool (Extended Master Secret Extension Checker) v0.1"
if len(sys.argv)<2:
print "%s by Tripwire VERT (@TripwireVERT)\nUsage: %s <host> [port=443]" % (strTitle, sys.argv[0])
quit()
e... | [
"cyoung@tripwire.com"
] | cyoung@tripwire.com |
369add1f2e8ed2f7a86b91b166f88feef21733e3 | 63b79eb44cf682ece74be1fc866f7651837db448 | /powerplay/models/game_content_media.py | cc2654fda4508741a4901f39caab2b020b8b674c | [] | no_license | bclark86/powerplay-py | c8cc4df8acd9ada91299706b7a7113ab9c963645 | 584d754629936a93d95157356ff806a5c68438dc | refs/heads/main | 2023-07-19T04:23:16.510338 | 2021-09-02T13:17:12 | 2021-09-02T13:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | # coding: utf-8
"""
NHL API
Documenting the publicly accessible portions of the NHL API. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GameContentMedia(object):
"""NOTE:... | [
"saiem.gilani@gmail.com"
] | saiem.gilani@gmail.com |
d81ce2cfdfb74c318af7a42b753a9cef7c42c4b3 | eef542a3d8eddf7f9e496817f2346179ef45ff4b | /utils/__init__.py | 7b36f56ec2c5aeca576045143a222496527edca5 | [
"BSD-3-Clause"
] | permissive | cwheel/gather | 1b82b3fd421e209b7f384fef35074cc326911891 | b6eab474a0550f008a243cd5add074bff04086b4 | refs/heads/master | 2021-01-19T14:00:44.832430 | 2017-08-20T17:47:44 | 2017-08-20T17:47:44 | 100,875,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | import jsonPath
import resolve
| [
"cameron@scelos.com"
] | cameron@scelos.com |
e52c8ee0663d70cbdeced042476008e6cc432727 | 6a42ddc432ee0a62cf52df21b9306f24177cc3f9 | /planet_prop.py | c1c1b53aeecfb841ef1b747c107f3bf55ad1352a | [] | no_license | jo276/MESAplanet | a42b9a27f35b7aa156466abbd67a56f187862563 | 4da81e113f6c6466597256aded6ff51e722abf1c | refs/heads/master | 2023-03-16T13:29:16.708571 | 2021-02-27T09:40:21 | 2021-02-27T09:40:21 | 293,260,759 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # python script containing info and functions for planetary calculations
import math as mt
# constants
msun=1.9891e33 #grams
rsun=6.955e10 # cm
lsun=3.846e33 # erg/s
mjup=1.8986e30 # grams
rjup=6.9911e9 # cm
mearth=5.97219e27 # grams
rearth=6.371e8 # cm
mneptune=1.0243e29 #grams
rneptune=2.4622e9 # cm
au_to_cm=1.4... | [
"james.owen@imperial.ac.uk"
] | james.owen@imperial.ac.uk |
2439b71785d57c53f36a960340c033738e810909 | 198778d08e008e75407bb10bb01e49899311a6d6 | /utils/liquid_nitrogen.py | 04ceee00239872661af4ba716476d68901d1c157 | [] | no_license | kate-v-stepanova/B250_lab_monitor | febf6934a016e0ac1d05e061a57bb6320432aa85 | c2ab87999fdcfb13da091abbe7609eac526364fd | refs/heads/master | 2021-11-15T05:44:37.417199 | 2021-09-27T15:42:47 | 2021-09-27T15:42:47 | 186,001,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | import os
import click
import pandas as pd
import redis
import json
localhost = "172.22.24.88" # local
remote_host = "172.22.25.100" # remote
remote_host = "172.22.54.5" # windows
home = "192.168.0.157"
port = "6379"
@click.group()
def cli():
# do nothing
pass
def rows_from_range(row):
df = pd.DataFrame... | [
"kate-v-stepanova@github.com"
] | kate-v-stepanova@github.com |
83924ae8dfe91ebcbd4034577b0faf83e5a30402 | 6a2cc7f9e8e0cbcfa85e81272bd507c5226534af | /profile.py | 50c5db32803fc549822f107dfee1837780112b6e | [] | no_license | 20171CSE0726/pytax | 348d83465c1bac1c4c85eef47e91c31333d8a81d | 188f6ac0c1dcc395620b3acd2fa3c832cf3064b7 | refs/heads/master | 2021-02-17T13:18:56.105583 | 2018-11-04T18:31:48 | 2018-11-04T18:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import taxjar as jar
client = jar.Client(api_key='36e5eb69d62562d468b07da2ef8252e4')
class TaxProfile:
def __init__(self, state, city, zip_code):
self.zip_code = zip_code
self.state = state
self.city = city
def get_rate(self):
rates = client.rates_for_location(self.zip_code, {... | [
"brennengreen@outlook.com"
] | brennengreen@outlook.com |
48e1ea0a076abcf635500cd6452dcecf62b3ab6f | 65a18a1aec95c4691e7a35d5005e4bdc63994f0c | /node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build/config.gypi | efecf0382afd8201b747d76c0df1ec8737899a8c | [
"MIT"
] | permissive | lizine/voting-client | a51e7d59f114c2012516df161ee9318080ee8b40 | 14bd0e931271f264ba578d7f617172c34e6f48da | refs/heads/master | 2021-01-10T08:11:37.926410 | 2015-11-09T15:08:27 | 2015-11-09T15:08:27 | 45,112,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.23",
"host_arch": "x64",
"icu_data_file": ... | [
"nina.liljeblad@gmail.com"
] | nina.liljeblad@gmail.com |
150e94de46fd36d8894916a2e55dd739f19740e3 | 7105658942c1fc03b2540f37f099e8e55c6ded85 | /28.implement-strstr.py | 08845cf34a071bfadeaecad2e683d50e7bf09338 | [] | no_license | luyao777/leetcode_python | a2c60f3df4688e8bd0209553d834fa68e1e0dc62 | 7df7bd1a6cb0c8590684f8600414fdcc9f0b8070 | refs/heads/master | 2021-07-04T17:11:46.932373 | 2020-09-21T10:03:20 | 2020-09-21T10:03:20 | 172,448,639 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | #
# @lc app=leetcode.cn id=28 lang=python3
#
# [28] 实现strStr()
#
# https://leetcode-cn.com/problems/implement-strstr/description/
#
# algorithms
# Easy (37.47%)
# Total Accepted: 35.1K
# Total Submissions: 93.7K
# Testcase Example: '"hello"\n"ll"'
#
# 实现 strStr() 函数。
#
# 给定一个 haystack 字符串和一个 needle 字符串,在 haystack ... | [
"luyao777@vip.qq.com"
] | luyao777@vip.qq.com |
3cb3be8a872fd8a7f21d7372025d4bd859d75b2a | d594ae226c00f78259520e5c9f4b7872c050359c | /day18/demo06.py | eb782b904bdf108af3f68322d0d0fb1cf5bf6982 | [] | no_license | mangodayup/month01-resource | abebc13827498b96257f83387f6d205f8f5c7c04 | b194de4a6affc651c5a631970adc02429f0b2b5c | refs/heads/master | 2023-03-11T13:58:05.920374 | 2021-03-02T09:27:25 | 2021-03-02T09:27:25 | 343,714,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | """
装饰器-使用方式
返回值
将旧功能返回值作为内函数的返回值
"""
def new_func(func):
def wrapper():
print("新功能1")
result = func()
# 将旧功能返回值作为内函数的返回值
return result
return wrapper
@new_func
def func01():
print("功能1")
return 100
@new_func
def func02():
print("功能2")
... | [
"chenjingru@chenjingrudeMacBook-Pro.local"
] | chenjingru@chenjingrudeMacBook-Pro.local |
36c5182c5a293eab5a8bde749d483b6198bb717a | 75ba9b6d2f700061b936666cbc5c2db03c7712f2 | /p45_triangular_pentagonal_hexagonal.py | 3c4397b72ac819f2c0e1932734bbae99f310a847 | [] | no_license | yansenkeler/pyApp | 9f401a14fe3c10fd54b8bbc424c09d05130bf8a4 | 2666767b6c3d6a3a222cfbe27a2d2daad3f2d4f0 | refs/heads/master | 2021-01-12T10:20:58.380209 | 2016-12-21T01:50:48 | 2016-12-21T01:50:48 | 76,427,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:
# Triangle Tn=n(n+1)/2 1, 3, 6, 10, 15, ...
# Pentagonal Pn=n(3n−1)/2 1, 5, 12, 22, 35, ...
# Hexagonal Hn=n(2n−1) 1, 6, 15, 28, 45, ...
# It can be verified that T285 = P165 = H143 = 40755.
# Find the next triangle numbe... | [
"qianyuxinjustone@gmail.com"
] | qianyuxinjustone@gmail.com |
f484cfaede76ca9e2378408414f754d0bdd1778b | 0cd5763307766ce063d01a497dc20a49ebb52215 | /mysite/settings.py | d0f801feefa66e16fabe08128f81f55dd697a8be | [] | no_license | kuzur/my-first-blog | 903b5a4ed344fa47eed1bb64b695d63f35063514 | b48f723cbd2db7f3be027ab82d5d3825a298a552 | refs/heads/master | 2020-03-21T05:37:24.696260 | 2018-07-09T08:54:53 | 2018-07-09T08:54:53 | 138,169,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.13.
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... | [
"a5816028@aoyama.jp"
] | a5816028@aoyama.jp |
8d999821adab2f90c1385a6dd5e14875c3fc2216 | f085eeb8315b310032d93756f1fc60cb3b9539c4 | /Compare_Boolean/1.py | f02d6b8e0385cb12bc6ae489cd1330c689d3fd81 | [] | no_license | dongho108/python-ruby | 0fe538d8c70afe66bff256aecd33bf6bf306f6e4 | 158c34063fc8415310b27134994b329e62318728 | refs/heads/master | 2021-01-05T03:13:53.636301 | 2020-03-05T11:36:11 | 2020-03-05T11:36:11 | 240,858,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | print(1==1)
print(1==2)
print(1>2)
print(True)
print(False)
| [
"noreply@github.com"
] | dongho108.noreply@github.com |
72002c248848b5d46a7f14d3d0f222a47809859d | 455885bbf49a83ae3e31f20bbd1bd1b8c7185f0a | /data/xlreaderweeks.py | 5017579d846451067a8553ed3972fa395c28d7bb | [] | no_license | eivankin/pulkovo-flex | 6acb22847f3a8338f41aa6c3ec56c6e0526f6cc9 | 6400eda9f7d5a01e77949b9b3cdcc8543992f30b | refs/heads/master | 2022-12-09T05:40:16.762301 | 2020-08-25T17:32:59 | 2020-08-25T17:32:59 | 287,484,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py |
from glob import glob
import os
import pandas as pd
if __name__ == '__main__':
paths = glob(os.path.dirname(os.path.abspath(__file__)) + '/Расписание по неделям.xlsx', recursive=True)
bigdata = []
for path in paths:
xl = pd.ExcelFile(path)
for sheet_name in xl.sheet_names:
m... | [
"69670642+DanteTemplar@users.noreply.github.com"
] | 69670642+DanteTemplar@users.noreply.github.com |
b457bebee7fa5e0ee5d2b272b11cfbb9d94bea0a | 71f202160b4b0655586334385d5534fef8de87a8 | /node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | d5402abadccbf7d64c721b596d82741eb26bca6d | [
"MIT"
] | permissive | allisonwmoss/devdo-frontend | 03b7ae9a971660a9fb38dd4ab144eb84d5b9e526 | 9e295953f60b527fb72496544da667f60f0326d0 | refs/heads/main | 2023-08-24T04:16:42.218294 | 2021-10-25T13:46:08 | 2021-10-25T13:46:08 | 416,338,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,834 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"allisonwmoss@icloud.com"
] | allisonwmoss@icloud.com |
d7b4e049f95736c4a3a270a0a6e326a8bc7e03d5 | 887b9fd5f4fd4b9448f32750788b138b2e94be3e | /stock/futu/import_requests _income.py | 6411f1232d8b5870521859d6a0da9b07f5f729fa | [] | no_license | hong0396/hotwind_git | 8fa11b3bc46aadd0b83b297cb6c6919102b7b920 | 544d984d8a8cdc42b422792a5064d19d24e0c831 | refs/heads/master | 2020-04-04T01:11:50.010424 | 2018-11-03T07:24:59 | 2018-11-03T07:24:59 | 136,184,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import requests
headers={
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Connection': 'keep-alive',
'Cookie': 'UM_distinctid=165fa9285fb762-07c06f613d5cac-8383268-e1000-165fa9285fc20a; cipher_device_id=1537507232150902; tgw_l7_r... | [
"hong0396@126.com"
] | hong0396@126.com |
16518bf24c2f192812f3d6ef3df3a7f824e8a741 | 264c19e525926110eaee703680eed9dddf0d948b | /untils/__init__.py | 952b02a1660763dfcc5e0022b1eb6f27298956a7 | [] | no_license | sunny-xiabo/Appium_py3 | 424b224cfa111fb994aa5405327e802c0a7df229 | 499fabc0db7727db748b3fd648ee09c0d467017f | refs/heads/master | 2023-05-27T14:31:06.758117 | 2021-06-23T03:59:40 | 2021-06-23T03:59:40 | 379,110,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | """
# coding: utf-8
# @Author:xiabo
# @File : __init__.py.py
# @Date :2021/6/16 下午5:17
"""
'''
公共的工具模块
''' | [
"xiabo@xiabo-MacBook-Pro.local"
] | xiabo@xiabo-MacBook-Pro.local |
1f433819a3c1afa8f824679e2a7ef418890153d1 | 5e671191f33500cf0f6f92e7795cfa5eb8fd528a | /UTAGL-AIML-Project5-Q5.py | e059cab652aa0f6048e55fb58fe92b6a8537f7d3 | [] | no_license | GreatLearningAIML1/gl-pgp-aiml-uta-intl-may20-dhavalbbhatt | 5b8dac4c6859d5ad8dd0172760e0da8c44702c17 | 25a540199ef3f280d1af089f04f0cbb9b1a2896f | refs/heads/master | 2022-12-17T20:17:47.400264 | 2020-09-19T15:26:22 | 2020-09-19T15:26:22 | 272,688,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.stats import zscore
from scipy.spatial.distance import cdist
from mpl_toolkits.mplot3d import Axes3D
from sklearn.metrics import silhouette_score
from scipy.cluster.hierarchy import fcluster
from scipy.cluster.hiera... | [
"noreply@github.com"
] | GreatLearningAIML1.noreply@github.com |
7e7b3fe43e3b8ca055aef0f1d5fb529379d0015f | 49bf93024f1a4f501a627e1fe965fb99477de779 | /main.py | e6d42edfaa5ca1f52d92dba19f097cc6bc23c1b6 | [] | no_license | Nazmus-Sakib-1987/git-tutorial | 88a016176dbff7936d9e5d082c853b0e29f7ad80 | a33c709da6d7066cbe4049404d4f32425abe3815 | refs/heads/master | 2020-05-24T01:47:13.475718 | 2019-05-16T15:38:42 | 2019-05-16T15:38:42 | 187,041,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | day = 'friday'
if (day == 'friday')
print("Hell") | [
"sakib@tb-bd.com"
] | sakib@tb-bd.com |
d55793fb609d3a3e4998700541371e7831f39f4d | a978460896c2d81f009dd96f7601403b01e1cb50 | /Code-Fun-Do-18-tried-django/yt_comment.py | 222ff59587a55a30b6e14a427552b98196b68b23 | [] | no_license | ankusht/Django_project | 717b6483db6d212292a56079a8888a58dfdf3ff6 | 2153edc5753af2ff119c4db97aa54a542e73f575 | refs/heads/master | 2021-04-06T18:05:52.108748 | 2018-03-15T10:33:20 | 2018-03-15T10:33:20 | 125,348,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import yt_comment_api as yt_api
# # # # #
ITERATION_CALL = 10
# # # # #
def get_videoId(url) :
tmp = url.split("?")[1]
video_id = tmp.split("=")[1]
return video_id
def process(video_id) :
response_raw = yt_api.init(video_id)
return response_raw
def init(url) :
video_id = get_videoId(url... | [
"noreply@github.com"
] | ankusht.noreply@github.com |
e6599d6bb43f7f48a41f3ba72d4313610e4c2643 | 07c427042a83fb823c78646fcd50d5522afec797 | /url_manager.py | 5ff908eebb479be7a9bab451f1bab4f18f8c24b6 | [] | no_license | ZXShwan/Python_Web_Crawler_BaiduBaike | ebc7b2a6cc9cc7bd012bcaf2bf6ffbd75a509143 | c534f6284af2e041308dde3d4be8217bca4c2f69 | refs/heads/master | 2021-01-23T10:19:38.865100 | 2017-06-01T10:58:44 | 2017-06-01T10:58:44 | 93,044,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # -*- coding: utf-8 -*-
__author__ = 'zx'
__date__ = '6/1/17 12:14'
class UrlManager(object):
def __init__(self):
self.new_urls = set()
self.old_urls = set()
def add_new_url(self, url):
if url is None:
return
if url not in self.new_urls and url not in self.old_urls... | [
"xz1661@nyu.edu"
] | xz1661@nyu.edu |
d7d20ba482b4a4e2eb22989f1522607e4cf5c0db | 80cd47d959c2d17672cc4a79eed6a476c4dc5e6f | /binding.gyp | 505430e66ca3202fb6d2f3b69b2e2b57cff357a6 | [] | no_license | KTXSoftware/kit-git | 5ad520a94e681a18431de48a21f343903e3cb1c8 | 622266935528a0d1cd9bf517906481c6a5a346f5 | refs/heads/master | 2021-03-12T19:53:44.133880 | 2014-02-06T02:44:32 | 2014-02-06T02:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | gyp | {
"targets": [
{
"target_name": "git",
"include_dirs": ["libgit2/src", "libgit2/include", "libgit2/deps/http-parser", "libgit2/deps/regex", "libgit2/deps/zlib"],
"sources": [
'<!@(ls -1 libgit2/src/*.c)',
'libgit2/deps/http-parser/http_parser.c',
'libgit2/deps/regex/regex.c... | [
"robert@ktx-software.com"
] | robert@ktx-software.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.