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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01d0e72016da46d391601df674992e03cde1592e | c02fa471348a8839fe021cd5c08180b4bf1db9bf | /21.05.12/mootube.py | e726f34cb64061ca452a028f57103bd5abb9cb54 | [] | no_license | kangsungsu/python3_coding | 75da0c1648c5a6bfa9a9aa92907ff2e43c8739ca | c9f26faaabd7e113440afa62a43ecc8dc1db34d8 | refs/heads/main | 2023-04-23T16:55:59.317901 | 2021-05-16T04:29:44 | 2021-05-16T04:29:44 | 352,661,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from collections import deque
n,g=map(int,input().split())
board=[[] for _ in range(n+1)]
#print(board)
for _ in range(n-1):
p,q,r=map(int,input().split())
board[p].append((q,r))
board[q].append((p,r))
def bfs(board,start,visited,distance):
queue=deque()
queue.append((start))
#distance[start]=... | [
"tmdtn0312@naver.com"
] | tmdtn0312@naver.com |
bcbd72200497efbfa37d4aa594662a472c482df3 | 63d500150c735bd82a1c50dd8f07120ad9e81023 | /cirrus_py/__init__.py | 7694eda6c44a0baf80ba255b23a9da787abbd725 | [
"MIT"
] | permissive | elbow-jason/cirrus_py | 49321a23793c72994a524812e8df133d4999f965 | 5ea41518a168709de40b1e1dcd4378acbd72e88d | refs/heads/master | 2021-01-20T01:25:21.099025 | 2017-04-24T22:02:41 | 2017-04-24T22:02:41 | 89,276,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py |
import cirrus_py.credentials
import cirrus_py.google_jwt
| [
"jlgoldb2@asu.edu"
] | jlgoldb2@asu.edu |
a42a9c55720280e1d5a817ef39c97018f2d3d454 | 84e4430be61a6925e41f6fb1792228f7e4c048d5 | /chapter_09/06_zoom_augmentation.py | 41c8134036e9bb848f4755f282bc05d5e4ea3ba0 | [] | no_license | athertahir/deep-learning-python | 193d7f493554223887040fc1752ea11151a50d9f | 4d9f5df1f8e79382b5c045bcbb095344e22b6fce | refs/heads/master | 2020-08-18T12:48:21.749587 | 2019-10-17T16:36:24 | 2019-10-17T16:36:24 | 213,608,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | # %%
'''
## Random Zoom Augmentation
A zoom augmentation randomly zooms the image and either adds new pixel values around
the image or interpolates pixel values respectively. Image zooming can be configured by the
zoom range argument to the ImageDataGenerator constructor. You can specify the percentage
of the zoom as a... | [
"ather.tahir@bentley.com"
] | ather.tahir@bentley.com |
1984b2372353e09b81adc9d1fa2e823147e69195 | 42c3a5c6ace14aea23a9c130a7fd0f83b08ee727 | /data_management/megadb/sequences_schema_check.py | 1f5cae1a1e44367b674566136f2e748719871512 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | CoreyJaskolski/CameraTraps | cc9bf8d8f235cd3fdfae68a27675bf2a3fe66480 | 290dcca3f93cc2e6160d3c6e8ad08ab2ff23ba9d | refs/heads/master | 2020-07-03T16:06:14.447998 | 2019-11-01T20:46:27 | 2019-11-01T20:46:27 | 201,962,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | import argparse
import json
import sys
import os
import jsonschema
"""
This script takes one argument, path to the JSON file containing the entries to be ingested
into MegaDB in a JSON array. It then verifies it against the schema in schema.json in this directory.
"""
def check_frame_num(seq):
# schema already ... | [
"noreply@github.com"
] | CoreyJaskolski.noreply@github.com |
3c44b9336e437dbabe651550049f02b4222540bb | b1e4c744e37ae2cda707c2319ccc5eca4dfc94d0 | /tensorflow/ไฝฟ็จC++ๅฏผๅ
ฅๆจกๅ็ปไน /model_test.py | 575d70c57d9b6e16c5df09ab07513070135c7922 | [] | no_license | 1124418652/deep_learning | 671da50c1651d1d791b32b736de80c88eda0c8f5 | df16bd59cdbe9d3606d7f6863b46a37c2803251f | refs/heads/master | 2020-04-07T17:19:10.538036 | 2019-05-23T14:06:18 | 2019-05-23T14:06:18 | 150,749,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
import os
import cv2
import numpy as np
import tensorflow as tf
def recognize(imgname):
if not os.path.exists(imgname):
raise ValueError("Don't have this file.")
img = cv2.imread(imgname)
if not isinstance(img, np.ndarray):
raise ValueError("Can't open this image.")
img = cv2.resi... | [
"1124418652@qq.com"
] | 1124418652@qq.com |
24ab81ff2c511dd5587eebf58083e235fd9bdec7 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/apinninglbl.py | f7b4c92b96d82adacf7230e8ed621d61e9384b9f | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
655eeceaa52781e8ac09c4a52121849fed89947f | eb5049f543d2a50b8bce5f13d25d9688fccc52d7 | /make_lerp_positions.py | e5bdf9dda742fc3547b5bc39e038e2fbc324eb0a | [] | no_license | migroble/gan | 196a146806a9c5a66b0780cbaa813dccd3b7cc0d | b8480e886b3256a51da4727b04c52926cf42dd96 | refs/heads/master | 2021-09-13T12:00:29.595347 | 2018-04-29T17:20:36 | 2018-04-29T17:20:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import numpy as np
STEPS = 64
INPUT_DIM = 150
TYPE_DIM = 5
A_p = np.random.uniform(-1, 1, size=INPUT_DIM).astype(np.float32)
B_p = np.random.uniform(-1, 1, size=INPUT_DIM).astype(np.float32)
A_t = np.random.uniform(0, 1, size=TYPE_DIM).astype(np.float32)
B_t = np.random.uniform(0, 1, size=TYPE_DIM).astype(np.float32... | [
"miguel.robledo.casal@alumnos.upm.es"
] | miguel.robledo.casal@alumnos.upm.es |
7052f55ba468cdaa47d8f6f5976593ac13e75505 | 47a973b2c17797221d282d8782d5743163b53d6a | /omni/libs/cmdb/host.py | 2d4f2dada4118d3a972d923a0676068fb424e954 | [
"Apache-2.0"
] | permissive | cathywife/omni | f944785e1ed3b712a199f697c979dfe53a972c0f | 9a681b38ec552d5d2f5fc129bb7f2551c00424d8 | refs/heads/master | 2020-12-03T05:13:13.990415 | 2017-06-02T11:47:48 | 2017-06-02T11:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | # -*- coding:utf8 -*-
"""
Created on 16/8/17 ไธๅ1:05
@author: fmc
"""
from __future__ import nested_scopes, generators, division, absolute_import, with_statement, print_function
from . import cmdb_client
from cmdblib.client import RequestFailException
import logging
log = logging.getLogger(__name__)
server_logic_s... | [
"xiaofei4915@163.com"
] | xiaofei4915@163.com |
31212698b833a9003fd16b7a5fc99096aa8e5d13 | b39b0625795b0640a6a68151f2012ce139f423b8 | /iaas/test/test_flavor_profile_api.py | 095a47c5a2b57f517a3c35c6945e5b54508299a9 | [] | no_license | darrylcauldwell/casCodegen | 8e82b1f08e8260482996aec3d8be10934a65dd03 | 1f1ff9ab8a33102bcfcb8be276d51992d96bcb61 | refs/heads/master | 2020-07-27T14:42:28.550855 | 2019-09-17T18:30:28 | 2019-09-17T18:30:28 | 209,127,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # coding: utf-8
"""
VMware Cloud Assembly IaaS API
A multi-cloud IaaS API for Cloud Automation Services # noqa: E501
OpenAPI spec version: 2019-01-15
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_cli... | [
"dcauldwell@dcauldwell-a01.vmware.com"
] | dcauldwell@dcauldwell-a01.vmware.com |
76192db2b7c2eca6eb3abce5f4eae8f3e2ff6e73 | fbae6d84b4a8a38dca677c3874ef54b29083837b | /timewalk/packages/pygments/lexers/capnproto.py | 203523a1adf126b3394768e418ba7a32921a26f7 | [
"MIT",
"BSD-2-Clause"
] | permissive | desmondlzy/timewalk-core | 9de1457694956b8009af65a6e63d9b25f66736eb | e7ec9e8cd23e15ff49b2344d1c9142230b9c7b43 | refs/heads/master | 2021-05-24T13:06:53.201462 | 2020-04-17T04:40:53 | 2020-04-17T04:40:53 | 253,576,060 | 12 | 0 | MIT | 2020-04-17T04:40:54 | 2020-04-06T17:59:02 | Python | UTF-8 | Python | false | false | 2,188 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.capnproto
~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Cap'n Proto schema language.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, default
from... | [
"lzy7155@gmail.com"
] | lzy7155@gmail.com |
b01d8bfad69f8575908aeed12be474261228dc12 | 1f7e89bf8fa33caf834d62a2f88bbd36f7ca2c17 | /่่ฉฆๆชๆก/week2/ubike_practice-2.py | bd54cba37ebf1f96be50c3ca5ee8d48499444fe0 | [] | no_license | yachiwu/python_lesson3 | 31626e1b26fc50e01a3b6563be56918ef3d23cb0 | f0d63593a4680d2bbffe3b79d50c155dad4eba27 | refs/heads/master | 2020-05-18T12:14:02.900439 | 2019-05-01T10:47:06 | 2019-05-01T10:47:06 | 184,401,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | import csv,os,datetime
import matplotlib.pyplot as py
f = open('ubike.csv','r')
station = {}#่ฉฒ็ซๆๅนพๅฐๅฏ็งๅ็่
ณ่ธ่ป
count = {}
lat = {} #็ทฏๅบฆ
lon = {} #็ถๅบฆ
capacity = {}
for row in csv.DictReader(f):
time = datetime.datetime.strptime(row['time'],"%Y/%m/%d %H:%M")
hour = time.hour
if hour==17 or hour==18: #ๅจๆไธ5~7้ป้
id = int(row... | [
"n0975116268@gmail.com"
] | n0975116268@gmail.com |
5ddbce86bfe417238560aa950da65547d45e964c | 99f384a7e8981f39b84dfb6b153827d7676074f1 | /serve.py | eb67e9b6f5eecf856e0630342017b9d2dbb0862d | [] | no_license | vivym/mmkg-demo | f5fc2daa15d890d2bd3f52c19922150d3fe89aa8 | 8bb5e6888ca4b3339fdd63bb848529d53b9844be | refs/heads/main | 2023-08-16T05:21:49.348743 | 2021-10-15T04:29:05 | 2021-10-15T04:29:05 | 416,675,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | import requests
from flask import Flask, request
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app, resources={r"/*": {"origins": "*"}})
@app.route("/", methods=["GET"])
def index_page():
return app.send_static_file("index.html")
@app.route("/structuring", methods=["POST"])
def structuring():
... | [
"ymviv@qq.com"
] | ymviv@qq.com |
afeaf8646f38274d9f263158e4701dcf223226c8 | 1f24c959106eede5c810c93e66cd1d7c74cc145f | /algorithms/arithmetic/lcm.py | 9dfa71126b583570ed2b8ae2696c057f80e842b0 | [
"MIT"
] | permissive | mchao409/python-algorithms | deae48aa12d5022e28fbb61d887d9fe0c1d8097b | acadeaf8e584737ec308442d03812179a2315ac5 | refs/heads/master | 2021-04-27T11:40:25.402064 | 2018-02-23T06:04:40 | 2018-02-23T06:04:40 | 122,567,163 | 0 | 0 | MIT | 2018-02-23T03:11:58 | 2018-02-23T03:11:57 | null | UTF-8 | Python | false | false | 1,139 | py | """
The least common multiple, lowest common multiple, or smallest common multiple of two integers a and b,
usually denoted by LCM(a, b), is the smallest positive integer that is divisible by both a and b. [Wikipedia]
"""
from functools import reduce
from algorithms.arithmetic.gcd import gcd
def _lcm(integer_a: int,... | [
"arseny.antonov@gmail.com"
] | arseny.antonov@gmail.com |
0b0317bb35cdd5fb0d298371e67cf8604ce45cb0 | 22da469a6083d3c1d9979e26186e1c14a39c2b6a | /gan_training/metrics/inception.py | a45b4e519fa992992b4d33b6978bb0495d0704e6 | [
"MIT"
] | permissive | ErikValle/controllable_image_synthesis | 5b5971c267bf3505a13b1fcc4bb3ba9a87bc3a66 | 296fd5115ec385f9fcb94529afff2c138abae3c8 | refs/heads/master | 2022-11-22T09:58:39.698623 | 2020-07-23T15:48:23 | 2020-07-23T15:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,649 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision import models
try:
from torchvision.models.utils import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
# Inception weights ported to Pytorch from
# http://downlo... | [
"yiyi.liao@tue.mpg.de"
] | yiyi.liao@tue.mpg.de |
4e8fe94dd07a1e37a8e67ef1573b73d710893ce4 | 47b1f12ce4c4de419d2e080eb881fe2f30808984 | /pages/locators.py | 7c606edf788ad3aec5d4d5e0d83bde3d5f9f6ad9 | [] | no_license | twymyn/stepik-selenium-project | e8fca3c5cab8c7f0305b9b975a6e0ad1a274126c | 4f8595a705b3aea5f89d1532b5eb7c0040621ba7 | refs/heads/master | 2021-08-08T14:39:48.544599 | 2021-04-20T19:35:19 | 2021-04-20T19:35:19 | 252,729,207 | 0 | 0 | null | 2021-06-02T01:21:30 | 2020-04-03T12:40:50 | Python | UTF-8 | Python | false | false | 1,500 | py | from selenium.webdriver.common.by import By
class BasePageLocators():
LOGIN_LINK = (By.CSS_SELECTOR, "#login_link")
VIEW_BASKET_BUTTON = (By.CSS_SELECTOR, ".basket-mini .btn-group > a.btn-default")
USER_ICON = (By.CSS_SELECTOR, ".icon-user")
class BasketPageLocators():
BASKET_ITEMS = (By.CSS_SELECTO... | [
"lc.tinatran@gmail.com"
] | lc.tinatran@gmail.com |
56a9b5a8d7698086474480fadc0fb87b5ffcfba8 | 9e6c133ff440426d16c21699e2176fd185d12d6d | /data/Xe133/result_xe133_tripleRun4.py | 7d6d9f4b193d3d00c8331205085baa3200bd824e | [] | no_license | MarielleAkser/Master_thesis | 1e8c0596d2b7ba7f9667e9ec94eb208bf1f88ffd | ee415c2af23b60094d573d53641624656a547953 | refs/heads/main | 2023-06-01T09:39:59.985406 | 2021-06-17T14:46:37 | 2021-07-01T08:56:30 | 339,763,134 | 1 | 3 | null | 2021-03-10T08:13:59 | 2021-02-17T15:13:07 | C++ | UTF-8 | Python | false | false | 10,333 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
from numpy.lib.function_base import average
import pandas as pd
import seaborn as sns
# Opens the corresponding files, Run5 has 10 000 events
eDep_file_t0 = np.genfromtxt('xe133_tripleRun4_t0.csv', delimiter=',')
eDep_file_t1 = np.genf... | [
"marielle.akser@gmail.com"
] | marielle.akser@gmail.com |
31504abdd5dddc46c6321a982a457d1e55bcb295 | 758b6ecb4783b26d172c41bbec961e3691c009d5 | /blockchain_poc/blockchain.py | 5208d30ebb86d14d976ad8bf6ba30a817a78c0bc | [
"MIT"
] | permissive | jmcph4/blockchain-poc | 605d02295349ba9034ab6137fa351b68494d4381 | 252b4ce4cd8b23a8b196e154a1091d210b95eb2d | refs/heads/master | 2020-06-22T13:05:38.563328 | 2019-07-23T23:42:55 | 2019-07-23T23:42:55 | 197,719,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,234 | py | from copy import deepcopy
import time
import datetime
import json
from .block import Block
BLOCK_GENERATION_INTERVAL = 10 # 10 seconds
DIFFICULTY_ADJUSTMENT_INTERVAL = 10 # 10 blocks
DEFAULT_INITIAL_DIFFICULTY = 1
class Blockchain(object):
def __init__(self):
genesis_block = self.__generate_... | [
"jmcph4@users.noreply.github.com"
] | jmcph4@users.noreply.github.com |
1ba90dd656c8980eff31b4972d50accaaff84971 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_MovingAverage/cycle_30/ar_/test_artificial_1024_Quantization_MovingAverage_30__20.py | 1d8cd7fcd6989efe67729b85e14bd6887518a581 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 273 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
6c5c0347d432b2582ccdf305067a2b196ad93947 | 41bc01dd5de49ae26ed6fd640a0e75dd197fb34f | /customapp/models.py | 4d5840911f86f8e8519c73bce4ca52f802bf2c2c | [] | no_license | Shilpa106/customumodel.github.io | a7d65b4cabb6a49f281e2aa95c996b67e7484ebd | cd338e331d16818fb3fc417247deb4727fa1b513 | refs/heads/master | 2023-07-07T23:02:48.461391 | 2021-04-24T11:24:26 | 2021-04-24T11:24:26 | 361,143,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.db import models
# Create your models here.
from django.contrib.auth.models import AbstractUser
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from datetime import date
class User(AbstractUser):
username = models.CharField(max_length = 50, blank = True, null =... | [
"shilpayadav108@gmail.com"
] | shilpayadav108@gmail.com |
4856ff37929574d65c945f9fbbda013b668bf9d4 | 17a7c2e28afaf9907de4ffd083358b67d6a6a589 | /blog/migrations/0001_initial.py | bddde1bfd9851a0b80fd753425ca41bc224951ca | [] | no_license | lmdragun/my-first-blog | a07d15ed115852582d4cc2463032f1977c7b550c | 41294980646992a03cb747053e876301dbbe6fd8 | refs/heads/master | 2021-01-19T07:43:37.050287 | 2017-08-17T21:13:57 | 2017-08-17T21:13:57 | 100,645,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-17 20:57
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"lmdragun@gmail.com"
] | lmdragun@gmail.com |
e6343d4aa9ce5e620e7342abeafd3c802ca57978 | 2f5ffdea706074fbff9228078e16f9475fe58f8e | /EXAMEN/examen.py | a43476a12b68cea3f5f870a8e69fbb9ff985744b | [] | no_license | brayner573/examen | 40108359556e226d6445a4afee35882ef713903a | 1c6cbf439cb19ae2da58eb67906ed3cffbd56584 | refs/heads/main | 2023-04-05T19:22:25.287828 | 2021-05-13T00:55:43 | 2021-05-13T00:55:43 | 366,888,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | def notafinaldeprogramacionBAMC():
#Definir variables y otros
print("nota final del curso de Fundamentos de programaciรณn")
#Datos de entrada
n1BAMC=int(input("Nota primera unidad:"))
n2BAMC=int(input("Nota segunda unidad:"))
n3BAMC=int(input("Nota tercera unidad:"))
nf4BAMC=int(input("Nota trabajo fi... | [
""
] | |
22757da163182112c235044cdbd8c35ad87fc018 | ebd491367ca7c12f67b3da31a24ad93c2db552c8 | /main/users/apps.py | 78fc0ee57663f8791315a6ab644f0dc34f7f1f57 | [
"MIT"
] | permissive | shibaPuppy/django-settings | a8159d881a3f9710333ab554b7f9dd0ee798a547 | 82bd08dd4572b3638d3f1ac9095b86b82bbbffab | refs/heads/master | 2023-01-14T00:51:50.400132 | 2019-01-11T06:00:05 | 2019-01-11T06:00:05 | 164,996,737 | 0 | 0 | MIT | 2022-12-26T20:38:51 | 2019-01-10T05:36:01 | Python | UTF-8 | Python | false | false | 270 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'main.users'
verbose_name = "Users"
def ready(self):
"""Override this to put in:
Users system checks
Users signal registration
"""
pass
| [
"dg.kwon@navercorp.com"
] | dg.kwon@navercorp.com |
821b9aab0cbf582c5cbda4874a5061281ad858f2 | b9646a2d58bad4ad0d0e713c277deb530933ffa1 | /Damas/Damas/Draw/__init__.py | e8aa8048b1a5a921dd72fed9c1fd20c907244914 | [] | no_license | CaioBadner/Damas | 244a33512668e9f414b0b651443ebcea5e21f6f9 | ab78bf4d5a164d425646d57ceec3f4d487ebfead | refs/heads/main | 2023-02-18T03:57:53.686316 | 2021-01-22T11:58:04 | 2021-01-22T11:58:04 | 328,147,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | #__init__.py
from .Constants import Constants
from .Objects import *
from .Screen import Screen
| [
"noreply@github.com"
] | CaioBadner.noreply@github.com |
e0d15eea5b6d89432ba750f5c3a61bdb7bd0ce84 | 730103ddecd23142238defe2a2b1ab3c582cdc45 | /onnx2tf/ops/ReverseSequence.py | c2c8dc8337c257539be89abccb5dab2eb3372482 | [
"Apache-2.0",
"MIT"
] | permissive | PINTO0309/onnx2tf | dcfb0fd8a4810ef1262aa565ba42b5124012bdb2 | b0e7d106cc69c0ea0fd464c4dd9064a5b0d6668b | refs/heads/main | 2023-08-30T23:28:56.386741 | 2023-08-29T01:48:40 | 2023-08-29T01:48:40 | 541,831,874 | 345 | 45 | MIT | 2023-09-14T16:53:12 | 2022-09-27T00:06:32 | Python | UTF-8 | Python | false | false | 3,308 | py | import random
random.seed(0)
import numpy as np
np.random.seed(0)
import tensorflow as tf
import onnx_graphsurgeon as gs
from onnx2tf.utils.common_functions import (
get_constant_or_variable,
print_node_info,
inverted_operation_enable_disable,
make_tf_node_info,
get_replacement_parameter,
pre_pr... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
574c54f096735802874cf3f2da7a5862b6a1a07c | 663b0fe7cc6e81586cbdf0baa7daf384f9e0bc9c | /preprocess/components/main.py | 63d5ece5323abcd63714afb43359480a993b85aa | [] | no_license | hvu53/ml | 396a71e41b056a08dcd3fdad1208887a3ef7cf7e | b011404f469c369d9c30c8f589d1e3cfd09802bb | refs/heads/master | 2021-01-10T10:10:03.802914 | 2015-12-10T06:00:51 | 2015-12-10T06:00:51 | 47,584,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,685 | py | import efficiency, sales, products, survey
import convert
import os, sys
# Keywords for splits stored in meats, seafoods, vegetables
# This accuracy depends on the keywords being split on
# We'll split on meat first, then seafood, then vegetarian
Monthly_dir = '../data/Monthly_csv_converted/'
Weekly_dir = '../data/Wee... | [
"hoavt040789@gmail.com"
] | hoavt040789@gmail.com |
979b699a367d604f9353cf9805004d4f0d43b7c5 | 966280ab617298a3ced79bc60189b301c795067a | /Sliding-Window/239_sliding_window_maximum.py | 445ece104ef138fc8ad1d83b3627505908fe52ce | [] | no_license | Rishabhh/LeetCode-Solutions | c0382e5ba5b77832322c992418f697f42213620f | 2536744423ee9dc7da30e739eb0bca521c216f00 | refs/heads/master | 2020-06-10T02:37:42.103289 | 2019-05-29T06:38:02 | 2019-05-29T06:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import collections
class Solution:
def max_sliding_window(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
res = []
q = collections.deque()
n = len(nums)
for i in range(n):
while q and q[-1][1] <= nums... | [
"weihewang2012@gmail.com"
] | weihewang2012@gmail.com |
879ed203a95faf1ad6a9ca1ed7ab98c3695fd4b6 | bd2a975f5f6cd771393f994ebd428e43142ee869 | /new_render_data/input/p/script/abort/kafka/consumer/group.py | 54a3711aeb79c67b8eeaec2a9f8a97e0c5b52feb | [] | no_license | sol87/Pycharm_python36 | 1a297c9432462fc0d3189a1dc7393fdce26cb501 | fa7d53990040d888309a349cfa458a537b8d5f04 | refs/heads/master | 2023-03-16T10:35:55.697402 | 2018-11-08T09:52:14 | 2018-11-08T09:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,351 | py | from __future__ import absolute_import
import copy
import logging
import socket
import sys
import time
from kafka.errors import KafkaConfigurationError, UnsupportedVersionError
from kafka.vendor import six
from kafka.client_async import KafkaClient, selectors
from kafka.consumer.fetcher import Fetcher
from kafka.co... | [
"superdkk@gmail.com"
] | superdkk@gmail.com |
6d42aa8011c6d68079539b9748e2a3c3cd6946e7 | 1cccd3d03a9c63950491121a10030efb122a3926 | /cipherwallet/constants.sample.py | 5de054ff22f36b737c6f0617a3640bf565e5a176 | [
"MIT"
] | permissive | drivefast/pycipherwallet | f21a27ff40d673c914b182310fbcb140a12f53b7 | 04e23f6c4291bf61812d8621238658207e2d70f3 | refs/heads/master | 2021-01-10T21:42:42.293677 | 2015-01-09T02:30:51 | 2015-01-09T02:30:51 | 26,985,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,929 | py |
# your customer ID and API secret key, as set on https://cipherwallet.com/dashboard.html
CUSTOMER_ID = "YOUR_CIPHERWALLET_CUSTOMER_ID"
API_SECRET = "YOUR_CIPHERWALLET_API_SECRET"
# API location
API_URL = "http://api.cqr.io"
# preferred hashing method to use on message encryption: md5, sha1, sha256 or sha512
H_METHOD ... | [
"radu@socal.rr.com"
] | radu@socal.rr.com |
959a82f3526c2ae93838acf4582165b449e6fd6a | 7099d19b54afb3be921aefb164d57beec6cf0f21 | /2445.py | f863c3285a9811de36e18f4ed6e2f5453d32a545 | [] | no_license | kpreference/pythonProject | 8b172d0c5a5bc9fc67b5ea0dd8ec6f8bbc11b983 | 48e71495550ecbd524b83217adce1bec00733b1a | refs/heads/master | 2023-09-04T10:39:50.279412 | 2021-11-17T06:10:03 | 2021-11-17T06:10:03 | 366,012,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | n=int(input())
for i in range(1,n+1):
for j in range(i):
print("*",end="")
for k in range(2*(n-i)):
print(" ",end="")
for l in range(i):
print("*",end="")
print()
for m in range(n-1,0,-1):
for o in range(m):
print("*",end="")
for p in range(2*(n-m)):
pr... | [
"ksh091411@naver.com"
] | ksh091411@naver.com |
c16526cc565c48f7f41dbc963e284d4f5ce44160 | 3e1fcf34eae508a3f3d4668edfb334069a88db3d | /court_scraper/configs.py | 3c97d17d3c3bde34e18c1f667fb59a09be10a102 | [
"ISC"
] | permissive | mscarey/court-scraper | 26d32cb7354b05bb5d5d27a55bf4042e5dde1a4d | e29135331526a11aa5eb0445a9223fc3f7630895 | refs/heads/main | 2023-07-14T20:23:33.488766 | 2020-08-31T14:02:19 | 2020-08-31T14:02:19 | 384,977,976 | 0 | 0 | ISC | 2021-07-11T15:04:57 | 2021-07-11T15:04:57 | null | UTF-8 | Python | false | false | 539 | py | import os
from pathlib import Path
class Configs:
def __init__(self):
try:
self.cache_dir = os.environ['COURT_SCRAPER_DIR']
except KeyError:
self.cache_dir = str(
Path(os.path.expanduser('~'))\
.joinpath('.court-scraper')
)
... | [
"zstumgoren@gmail.com"
] | zstumgoren@gmail.com |
ca23ea32aa269a5daf4fefa0781ef57d55f08917 | 19c2721a24cf763b6783fd3374cacd31a375e965 | /TwosumTarget.py | feb72c99df1acaf81e4fbf7d3e1ac52b6060c8bb | [] | no_license | aliabbas1031/Pythonexercises | 125d424a8661831740ca9268780b88e9c9ae4e8f | e3f0d33fc812c06885c72b7ee23ea19381b3d9d7 | refs/heads/master | 2021-03-27T05:46:26.412311 | 2020-12-17T16:24:52 | 2020-12-17T16:24:52 | 247,792,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def two_sum_brute_force(A,arr):
#A = [1,3,4,2,5,6,9,-2,-4,-9]
#arr = 6
for i in range(len(A)-1):
for j in range(i+1,len(A)):
if A[i] + A[j] == arr:
return [A[i],A[j]]
return [0,1]
print(two_sum_brute_force([1,3,4,2,5,6,9,-2,-4,-9], 7)) | [
"noreply@github.com"
] | aliabbas1031.noreply@github.com |
4686304e5272d38d5559b24f2410068350599bea | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/pylsp/python_lsp.py | 78c538c324a0083a40dd1865f74748fc992446cd | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/aa/42/2f/669662002785de21312365d0e6f7beb46001f06bc2fa9fd2af8f9da7e6 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
5f2aa8ca47d120e199ee3e9b6210bbc7d474e2f3 | 4a0348ccb890c73ebd88feafafc279af26e05f25 | /django/django_intro/first2/manage.py | 9fdc1b41afe7cc2a027d9ccbcbc59b711bd4fda3 | [] | no_license | wadeeeawwad/python_stack | 00936837103b9f78f66961d88ae3a6233adbbea3 | 6d2c3712c40b035e0d43cc7a27b2e2f48d4a8281 | refs/heads/master | 2023-07-11T14:59:02.617899 | 2021-08-23T11:37:15 | 2021-08-23T11:37:15 | 364,533,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first2.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"wadee_awwad@hotmail.com"
] | wadee_awwad@hotmail.com |
a94d4f6646875930d94d09068b21013e8e11c0b4 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/app_info_host_vm_list_in_csv_format.py | c68bd8aec7c8d133e43bc961f5b83387b9a11720 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | # coding: utf-8
"""
NSX API
VMware NSX REST 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
from swagger_client.models.app_info_host_vm_csv_record import AppInfoHostVmCsvRecord... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
1358e9c534f5e5c9bddf63c6019496723641868b | fe57b067d46973b3807e184c385472fa7accac42 | /Django_posgresql/Django_posgresql/settings.py | ab5e126ef6d1eef9825cf82c1e465ae0e1afd493 | [] | no_license | imanursar/REST_APIs_with_Django | 84a6cafe084e7b2e34b8a3994d3dc08a40d4b3bb | c0c3ac35dece0fa528535f9716e65684debbcf93 | refs/heads/master | 2022-12-07T17:40:47.979147 | 2020-08-27T15:49:56 | 2020-08-27T15:49:56 | 286,973,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,565 | py | """
Django settings for Django_posgresql project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"imanursar@gmail.com"
] | imanursar@gmail.com |
6f1ce69f66b79c11989426517bab38e317a3e9f1 | 0b63f38c7fb468e478e5be82c685de1b7ddb87e5 | /meiduo/meiduo_mall/meiduo_mall/apps/goods/serializers.py | 5f87ef206f4094af198abe31f08914950ba75438 | [
"MIT"
] | permissive | Highsir/Simplestore | fcf5ef81a754604c0953a3c1433a7bc09290c121 | 5fc4d9930b0cd1e115f8c6ebf51cd9e28922d263 | refs/heads/master | 2020-09-01T07:55:45.362457 | 2019-11-01T04:55:48 | 2019-11-01T04:55:48 | 218,913,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from drf_haystack.serializers import HaystackSerializer
from rest_framework import serializers
from goods.models import GoodsCategory, GoodsChannel, SKU
from goods.search_indexes import SKUIndex
class CategorySerializer(serializers.ModelSerializer):
"""็ฑปๅซๅบๅๅๅจ"""
class Meta:
model = GoodsCategory
... | [
"highsir421@163.com"
] | highsir421@163.com |
66861fb7bbc255b95f8d51fc314c98a9645eb0c1 | 70b07fb6516bfc6f05ce8ced8796e135fceb34d6 | /transactionid.py | a87080b9c36e3036751cec9c37eda066d9ec2395 | [] | no_license | MirandaLv/Script_Level0 | ebada9080f7a13f4e6db0fe892e5b72588f5dfc9 | 25454a3add5f36c9c4fbed5ad1e06eab2c884f50 | refs/heads/master | 2021-01-10T16:23:35.376122 | 2015-06-04T15:23:57 | 2015-06-04T15:23:57 | 36,877,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Create a UUID for transaction table
# Name: Miranda Lv
# Date: 2/16/2015
import uuid
from pandas import DataFrame as df
import pandas as pd
import shortuuid
inf = r"/home/snowhui/itpir_repo/minerva-colombia-geocoded-dataset/products/Level_0/new/transactions_new.tsv.csv"
outf = r"/home/snowhui/itpir_repo/minerva-co... | [
"zhonghui.lv@gmail.com"
] | zhonghui.lv@gmail.com |
1979d64a1540d510194a1064ab3dd19ceaa3585b | b511bcf3b3c8724a321caa95f381956f56c81197 | /collective/wpadmin/widgets/draft.py | c1c4dd4bfba27029e4bbf9f9d56d38ede2eb8eca | [] | no_license | toutpt/collective.wpadmin | 6957f8fadd5f62a12e4b5cd3eb40794874712cea | b5f2384ff2421f1529f7f844d75c1cb4073ac959 | refs/heads/master | 2016-08-05T00:30:36.097097 | 2013-01-18T10:37:26 | 2013-01-18T10:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from zope import component
from plone import api
from plone.registry.interfaces import IRegistry
from collective.wpadmin.widgets import widget
from collective.wpadmin import i18n
_ = i18n.messageFactory
class Draft(widget.Widget):
name = "draft"
title = _(u"Draft")
content_template_name = "draft.pt"
... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
8a31191831ee69ccd5d9018a724e1d82d3351362 | b4b99a973182a1caf7c4954b7e884365001e7bc8 | /02-create_planet_dataframe.py | 4aec07e78040fbcd19be9053d4439ddf10d370f6 | [] | no_license | DeSouzaSR/Vulcan | 69be92e1b904e1e1d29bf0088628906cf159310f | 37b0d336d30dc4d326a44a048b2aa15bfcc12fb8 | refs/heads/master | 2021-01-23T00:44:54.207114 | 2017-06-13T21:06:53 | 2017-06-13T21:06:53 | 92,839,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | #!/usr/bin/env python
# coding: utf-8
# Import modules
import os
import sys
import yaml
import pandas as pd
import numpy as np
import rebound
from oe2pv import orbel_el2xv
from read_config_file import read_config_file
# Transforms orbel_el2xv in vectorized function
orbel_el2xv_vec = np.vectorize(orbel_el2xv)
def m... | [
"sandro.fisica@gmail.com"
] | sandro.fisica@gmail.com |
309fe09df642bd2ce4d1fa2dc6a854f6a5564c61 | 3b4ba450ed0ae3b52c74d529fefe43210dc49b84 | /example_app/strings_demo.py | 0738a6c8be98ba2f5298cb86003df7b9a1a5899f | [
"BSD-3-Clause"
] | permissive | MongoEngine/flask-mongoengine | 477d3ed7f02be2f9f543c7d54f168facdab95dd6 | d4526139cb1e2e94111ab7de96bb629d574c1690 | refs/heads/master | 2023-08-23T12:14:31.087462 | 2022-08-16T14:02:03 | 2022-08-16T14:02:03 | 4,335,022 | 721 | 234 | NOASSERTION | 2023-08-15T10:52:24 | 2012-05-15T11:33:26 | Python | UTF-8 | Python | false | false | 1,056 | py | """Strings and strings related fields demo model."""
import re
from example_app.models import db
from flask_mongoengine.wtf import fields as mongo_fields
class StringsDemoModel(db.Document):
"""Documentation example model."""
string_field = db.StringField()
regexp_string_field = db.StringField(
... | [
"ashpak@ashpak.ru"
] | ashpak@ashpak.ru |
54586360599e7dd218b73f42c67c23d7636413ad | 3c80fe9029065d47a5c16f4d2f6b55e6d7876c6e | /arrivalAndLeaveMonitor/arrivalMonitor.py | 125e1e78f10f2b752e9bad872f7ccf355a81abb1 | [] | no_license | veagseass/matrix | 6b296373d3773a1925fb5eaab7c09b9fc456cc83 | d65c51e2b32f9d399005f3312d0271b9fe731aec | refs/heads/master | 2020-07-30T06:07:43.072521 | 2019-10-01T12:05:22 | 2019-10-01T12:05:22 | 210,112,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,970 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
**********************************************************************
This moudle can monitor arrival list
and when a new car arrivaes,it pops up a Dialog window
**********************************************************************
version:1.1.0 ๆฐๅข็ๆงไธv6็ธ็ปๅ... | [
"noreply@github.com"
] | veagseass.noreply@github.com |
8133abf5f7c5e4db646298fa6d4710fad9243d12 | ebe68411c9dd36fe86f54325c3b69b2927792c64 | /controlevue.py | 747580e13de47b68105a1eb7e755f393cc991596 | [] | no_license | vernichon/openerp_tools | fc18def18be9e41b31bd0678732e8823ac8b35e4 | 6f88f76e67e85937876e1016fa11441b077ad7cf | refs/heads/master | 2021-01-01T15:50:59.088200 | 2014-03-15T08:46:53 | 2014-03-15T08:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import xmlrpclib
from optparse import OptionParser
from odf.table import Table, TableColumn, TableRow, TableCell
from odf.opendocument import OpenDocumentSpreadsheet
def addcell(tr, val, lestyle):
if val == 'True':
val = "Oui"
if val == 'False':
val = ... | [
"eric@vernichon.fr"
] | eric@vernichon.fr |
f741dcc7d0e9e08af10b0b8fdc7103f4490677e2 | d0c664d31ac71c664101e4984c21fafb77c536f3 | /is103/Project2 (v1.0)/p2q2 -v2 (cluster).py | 62ce483dcf6c03bb798845dff4c3f6b80b443368 | [] | no_license | thao1923/projects | 9562a316e5e07fc3c8169734117ce65466eafe56 | 5c319abc936db6572e0d66af86f3a3d1e6ea6b25 | refs/heads/master | 2023-08-20T22:19:16.370344 | 2021-10-07T18:51:05 | 2021-10-07T18:51:05 | 249,877,492 | 0 | 0 | null | 2021-05-06T20:02:43 | 2020-03-25T03:25:06 | Jupyter Notebook | UTF-8 | Python | false | false | 9,516 | py | # <Your Team ID>
# <Team members' names>
# project 2 Q2
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
import pandas as pd
import numpy as np
# replace the content of this function with your own algorithm
# inputs:
# p: min target no. of points team must collect. p>0
# v: 1 (non-c... | [
"ptbui.2018@sis.smu.edu.sg"
] | ptbui.2018@sis.smu.edu.sg |
d89dd7b8b51d948c8c80287f46f58e498aa2275c | 1f2625b09a851b43f51c6dcbacf4826c68416086 | /rooms/migrations/0004_room_slug.py | 14fe75938b7728178773c4252d3b4c92d072880d | [] | no_license | wbrefvem/conference-room-api | eee0aee0f5f90be799c7f4cf635f234a9fd0e9e3 | 5195db678d361fd6ee0224db65c64051d88e3f82 | refs/heads/master | 2021-01-10T02:14:01.592882 | 2018-02-02T03:55:07 | 2018-02-02T03:55:07 | 36,463,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rooms', '0003_building_slug'),
]
operations = [
migrations.AddField(
model_name='room',
name='slug',... | [
"wbrefvem@gmail.com"
] | wbrefvem@gmail.com |
244cf370ca24c26d0db9a20a8aaa4b735f4021b2 | 8a752dc77828ecbfa6e0c52c382fac8fd0269429 | /neteasenews/run.py | 6f0f73f01f11ae79ce2a2115996ea26549b3057c | [] | no_license | Dpuntu/scrapy | 3f908585b281b2bf78a93ed690b3b7cce359c9b1 | b90f118bf648a91238b9cff0c4b1baaa62c0e721 | refs/heads/master | 2021-04-30T13:58:31.560485 | 2018-02-12T06:11:46 | 2018-02-12T06:11:46 | 121,205,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # -*- coding: utf-8 -*-
from scrapy import cmdline
cmdline.execute("scrapy crawl neteasenews".split()) | [
"fangmingxing@kezaihui.com"
] | fangmingxing@kezaihui.com |
97bf61ba48700eba44b7c4c4a29727d8cf717721 | 22ed4ce6a56a1147332d6fb28638482756f7ed98 | /mybook/settings.py | 420e4ee18c4a9aa0ef29d74d7abea65307487075 | [] | no_license | taikomegane/django-practice-mybook | a8503dfb03473e2e975f98dff88048392eca21c4 | d99f87d2d879f214ba183f4abe57b334346109f1 | refs/heads/master | 2021-05-06T18:19:37.408625 | 2017-11-25T04:09:48 | 2017-11-25T04:09:48 | 111,974,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """
Django settings for mybook project.
Generated by 'django-admin startproject' using Django 1.11.7.
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
... | [
"taiko.megane.gobou@gmail.com"
] | taiko.megane.gobou@gmail.com |
8d86a2ae1826be7472e7ce97855909581605f18c | 7d34c85937d080b08ad6a6ccd08f978f59b3aa04 | /goal_app/migrations/0004_auto_20180414_0105.py | f94e01c59dce9343cde7c36f48da61873e656c71 | [] | no_license | homeahmed2012/life-planner | ba93b19553adceb6c16656d802e3b66574548307 | 8ac7cf4cb4cca930e2fd9ece37473ad4841530de | refs/heads/master | 2022-12-13T15:34:01.475678 | 2019-09-05T13:01:34 | 2019-09-05T13:01:34 | 128,756,085 | 0 | 0 | null | 2022-05-26T21:10:56 | 2018-04-09T10:41:47 | JavaScript | UTF-8 | Python | false | false | 1,041 | py | # Generated by Django 2.0.2 on 2018-04-14 01:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goal_app', '0003_auto_20180414_0038'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='goal_id',
... | [
"ahmed_mohamed_3@azhar.edu.eg"
] | ahmed_mohamed_3@azhar.edu.eg |
f7a396551040d29bf25b4c493b8b32db6133418e | 65ccbf98d87f8e3c61e5df53aba67b542a360499 | /case/migrations/0004_auto_20201214_2234.py | d3252f59b8bd801f90612d3978065bbbb6776a17 | [] | no_license | CMKJwebsite/CMKJ_website | d043499167e3b94cf01af50327e6c3c4c1d774f1 | f5fc8aee606d846427b8df88e85d9b1812702cc2 | refs/heads/master | 2023-02-12T07:32:04.960277 | 2021-01-05T13:29:07 | 2021-01-05T13:29:07 | 318,972,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2020-12-14 22:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('case', '0003_auto_20201213_1722'),
]
operations = [
migrations.AlterField(... | [
"onlyweiyi852951@outlook.com"
] | onlyweiyi852951@outlook.com |
00766e298a33dcae5f92d7859cc87d876ccca112 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2463/60782/304860.py | a0914fcd8b479f7c6f75f9999f2477a83b960f6a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """
้ข็ฎๆ่ฟฐ
็ปๅฎไธไธชๅทฒๆ็
งๅๅบๆๅ ็ๆๅบๆฐ็ป๏ผๆพๅฐไธคไธชๆฐไฝฟๅพๅฎไปฌ็ธๅ ไนๅ็ญไบ็ฎๆ ๆฐใ
ๅฝๆฐๅบ่ฏฅ่ฟๅ่ฟไธคไธชไธๆ ๅผ index1 ๅ index2๏ผๅ
ถไธญ index1 ๅฟ
้กปๅฐไบ index2ใ
่ฏดๆ:
่ฟๅ็ไธๆ ๅผ๏ผindex1 ๅ index2๏ผไธๆฏไป้ถๅผๅง็ใ
ไฝ ๅฏไปฅๅ่ฎพๆฏไธช่พๅ
ฅๅชๅฏนๅบๅฏไธ็็ญๆก๏ผ่ไธไฝ ไธๅฏไปฅ้ๅคไฝฟ็จ็ธๅ็ๅ
็ด ใ
"""
class Solution(object):
def twoSum(self, numbers, target):
"""
:type numbers: List[int]
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
72482de2ffb3429bf4106a937ef0d209a699fabb | 9441d42c40a628111cf8d72734f68c35a4bf0fdd | /src/hurricane/webrpc/api/user.py | de62ee580406d82ae1410909b93ea821310bd0de | [] | no_license | johnson-li/hurricane | 2057557e146af8b0231586b95a6aea4ff5fee0cb | 5a1c6cf6c9f38e857ffd732d9fb58ee9a2b5aac9 | refs/heads/master | 2020-09-28T00:26:36.768353 | 2016-10-05T14:33:07 | 2016-10-05T14:33:31 | 67,291,355 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | def get_user(client, user_id):
user_id = int(user_id)
return client.get_user(user_id=user_id)
def create_user(client, name, email, password, bio=''):
return client.create_user(name=name, email=email, password=password, bio=bio)
def update_user(client, user_id, name=None, email=None, password=None, bio=N... | [
"johnsonli1993@163.com"
] | johnsonli1993@163.com |
a9003fdff24c89d3d9fa50bcfc64c24a0cc79586 | a24a03163cf643249922edc29bc2086517615e53 | /thewema/urls.py | 7bcf11a899a1294d7c8cbb12dff05605f0faab60 | [] | no_license | ErickMwazonga/The-Wema-Academy | 165203e8e337459f6bae4f7178b3bfad715f052a | 61f9b778e423326d8dbd2c04f2dd6ce19e15e2a9 | refs/heads/master | 2021-01-19T14:22:00.568982 | 2017-04-13T10:41:06 | 2017-04-13T10:41:06 | 88,153,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | """wema URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
8be965fe3d91be2e4660755b7aac07fbd420f966 | 8b5f58a8c21cea7d6f4197eeb24fe7d0b836d280 | /src/blog/migrations/0010_auto_20190604_0930.py | 375813330ddcb30a4bd0dd2ebe580ce410c35dbb | [] | no_license | Sabrigan/monsitedjango | c775ac5342f8bb1dc2fd6be5768e56d6f416a5c9 | ba4dbd67e29ce6b4b97c43d2ba2bd9f33b5c53ab | refs/heads/master | 2020-05-31T03:05:16.841475 | 2019-07-02T17:12:19 | 2019-07-02T17:12:19 | 190,073,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # Generated by Django 2.1.7 on 2019-06-04 09:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20190424_1947'),
]
operations = [
migrations.AlterModelOptions(
name='post',
options={'verbose_name_plural... | [
"pierre.dauphin@me.com"
] | pierre.dauphin@me.com |
8041d74cf42e2fd29ead13232244b00460b34b16 | acd57cdb216c10925800d31015ad817ecd17fe5e | /userQuerry/serializers.py | de8731b88fef64fd033f22cdd4bca917bc9ee941 | [] | no_license | vipinbharti121/serverAPIAI | 2521a4d3ee90f083b34412b96fda00fcb14fd5c3 | 099c1896aad2226666626205e7e703a31c144861 | refs/heads/master | 2021-01-22T18:01:43.821693 | 2017-04-06T05:54:21 | 2017-04-06T05:54:21 | 86,451,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from rest_framework import serializers
from .models import UserQuerries
class UserQuerriesSerializer(serializers.ModelSerializer):
class Meta:
model = UserQuerries
fields = '__all__'
| [
"vipinbharti121@gmail.com"
] | vipinbharti121@gmail.com |
6fd03bbe4f4ec5a79c35fd747a1a5b3594f217c1 | 453ce6b8e35ec6993ce40a2793218e629c72bafa | /pymarc/record.py | 614af2d336877030fa2da5c1ab388799820ce086 | [] | no_license | MagnusEnger/Libriotech-GAE | 0eb717112ae5b50675d6b2fccd7f5d691ce8284d | 5d3c2167249d7f76482f3bb374a3d87ac2b78e6b | refs/heads/master | 2020-12-24T14:52:36.455670 | 2010-02-23T10:49:20 | 2010-02-23T10:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,495 | py | import re
from pymarc.exceptions import BaseAddressInvalid, RecordLeaderInvalid, \
BaseAddressNotFound, RecordDirectoryInvalid, NoFieldsFound
from pymarc.constants import LEADER_LEN, DIRECTORY_ENTRY_LEN, END_OF_RECORD
from pymarc.field import Field, SUBFIELD_INDICATOR, END_OF_FIELD, \
map_marc8_field
... | [
"magnus@enger.priv.no"
] | magnus@enger.priv.no |
ad7f049e66ec545ce2f1dbbd918afc7e7508ee08 | 5daef14ee2ff9dc19f5f9c21366f719fd81765e0 | /IBMsite/mysite/views/sign_views.py | dfb123acb833043548b995a376c0711a8ef76c54 | [] | no_license | winter-eighteen/IBMclubBBS | 5427e1ed419c0138aaaca5d86fb3b04911fe19ad | 761d3c83ab14ac60d926b9949da399d32f260b18 | refs/heads/master | 2021-05-10T21:07:51.620283 | 2017-09-19T10:53:58 | 2017-09-19T10:53:58 | 118,216,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | #-*-coding:utf-8-*-
from django.shortcuts import render,redirect
from django.http import HttpResponse
from mysite.models import Sign_Model
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.utils.timezone import now
from django.views.decorators.csrf import ... | [
"632991940@qq.com"
] | 632991940@qq.com |
ebab21e6824750e51b35448b7e8d3f1cfec4b09b | 05d460acd3e15c42c4b1ddd2eead83dc48f5312f | /Web/Spider/spider_prototype.py | cf490101d2c8dfca50d18a1f10d859bbf9b4697e | [
"MIT"
] | permissive | OblackatO/OffensiveSecurity | 992e839c8d966eec0da5f89218772b31f249f18b | 4b2c5f981cf41cc463791f279c3ad0115c28d738 | refs/heads/master | 2021-06-26T16:31:31.973911 | 2020-09-26T11:42:13 | 2020-09-26T11:42:13 | 132,665,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from bs4 import BeautifulSoup
import urllib.request as ur
import sys
urls = []
def get_links(website):
try:
print('im parsing this site',website)
web_page = ur.urlopen(website).read()
bsi = BeautifulSoup(web_page,'lxml')
if bsi == NoneType :
pass
else :
for link in bsi.find_all('a'):
link =... | [
"pegom0896@gmail.com"
] | pegom0896@gmail.com |
eef43fcb87220118201d19d79fc0379b36a3bf3d | 7e9745ba5e3473cd01696ae31162f166ee5cf830 | /time_display/apps/timedisplay/views.py | cd483b7dc69776b399a58142246eb9bfe523249c | [] | no_license | Manzurka/Coding-Dojo-projects-Python-Django- | 34bb07e2d08b72f8c6a707c749edb370f2678cf0 | 0caeaf5d1f949b9309176506b6d72a16ff6ea514 | refs/heads/master | 2020-03-19T00:51:56.592622 | 2018-05-30T23:19:05 | 2018-05-30T23:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse, redirect
from time import gmtime, strftime
# Create your views here.
def index(request):
context = {
"time": strftime("%Y-%m-%d %H:%M %p", gmtime())
}
return render(request,'timedispla... | [
"manzuraz@amazon.com"
] | manzuraz@amazon.com |
97407bac2fdf55befc9a5004ede3f53c605231fc | 4064646d8f333ef2aa1b9dc38e7a61b660188f11 | /python_work/simple_messages.py | f80b752829cafa23b6d1262473e9a7b8b19ee0ea | [] | no_license | OldRice42/PythonCrashCourse2e | 0f2926412e4cb1cc5f7e848b028c04afdf7487b9 | ee6baa2cb54a63e2deb913ce91c2ac75f0400ff0 | refs/heads/master | 2022-12-23T16:34:52.596003 | 2020-10-03T20:44:13 | 2020-10-03T20:44:13 | 298,918,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | fiz = "buzz"
print(fiz)
buzz = "fizz"
print(buzz) | [
"jessica.hylton42@gmail.com"
] | jessica.hylton42@gmail.com |
cd853e8871e7c4001d4bb369d8d185c0a013f170 | 3be1e2f1073e96ce86b6bacc178ea92a890b8f42 | /aplicacion/reporte/bd/db.py | d5548c78af1dccf6d5f3c11ad9e15b86c92eed7b | [] | no_license | eduardouio/sln_control | 48ac3d3bfe3aaa035d8aabffe3d8fd4e7d93bad2 | 2b1d2993dcf1145329f55f04274813fad2939c82 | refs/heads/master | 2020-04-30T20:41:07.429571 | 2013-10-22T19:51:58 | 2013-10-22T19:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,142 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Version 1.0
# Autor Eduardo Villota <eduardouio@hotmail.com> <@eduardouio>
# Package Conexion a la base de datos
# File DB.py
# Ubicacion reporte/basedatos/DB.py
# Copyright (c) 2012 Sรณlidos y Lodos Nacionales S.A. <http://sln-ec.com> <info@sln-ec.com>
from Py... | [
"accxell_ax3c@hotmail.es"
] | accxell_ax3c@hotmail.es |
e58d07b1a06f4053031cf1136c0eb2b006bd01a1 | 9fbf346ce416665593993a274aaea53854a049a8 | /places/migrations/0005_alter_place_category.py | 269a808ce8b8fecac5c52fd55ad353d53c96354d | [] | no_license | crigrande/sei-project-4 | e41f5253904b3ddb1e1726b61cdade5013342dae | fef6c76827c269f0e746d10ddcc6e536955009c0 | refs/heads/main | 2023-07-18T20:30:28.592657 | 2021-09-02T12:25:25 | 2021-09-02T12:25:25 | 388,132,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Generated by Django 3.2.5 on 2021-07-30 09:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
('places', '0004_alter_place_category'),
]
operations = [
migrations.AlterField(
model_nam... | [
"cri.grande@gmail.com"
] | cri.grande@gmail.com |
fcfb1689706e7f8c67e679bad72b3bc338eb3680 | 43931b9c07da0a8e3cafaa4d34d005502259fb36 | /fun.py | 30fdecfc29e4b47d0f0024335f006069a7ed8022 | [] | no_license | Preethi-reddy/Assignment | f23dbfa0debacec054c447be64e36f9159d43902 | b7dcf005b05076526efa303b1a4c474bbb8013d2 | refs/heads/master | 2020-06-05T14:45:59.742455 | 2019-06-18T05:09:01 | 2019-06-18T05:09:01 | 192,463,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
def sum(n1,n2):
res=n1+n2
print('result:',res)
sum(10,20)
def sum(n1,n2):
res=n1+n2
return res
res=sum(299,201)
print('result:',res)
| [
"Preethi Reddy@DESKTOP-I2RJUU0.com"
] | Preethi Reddy@DESKTOP-I2RJUU0.com |
1f29d6713fac5aee3c7a3114a72fe8eb067e1aac | 804189532b58a81bd13c290d0969384eab237a19 | /venv/Lib/site-packages/seleniumbase/fixtures/page_utils.py | 058798a202aa3981cec5fe806ea89e7bc819881b | [] | no_license | georgerobertkplivi/DemoBlazeTesting | 651aa46e24d7aceb83291cc6758162c335cac248 | b2b8d3c4b6c67252ff647425c4980decd0f8b310 | refs/heads/master | 2023-04-30T10:18:22.104743 | 2021-05-19T00:42:10 | 2021-05-19T00:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,393 | py | """
This module contains useful utility methods.
"""
import codecs
import re
import requests
def get_domain_url(url):
"""
Use this to convert a url like this:
https://blog.xkcd.com/2014/07/22/what-if-book-tour/
Into this:
https://blog.xkcd.com
"""
if not url.startswith("http://") and not u... | [
"georgerobertkplivi@gmail.com"
] | georgerobertkplivi@gmail.com |
bd0ba877cb6b849000ce9ea154a7506ab94dbb97 | 2d735cd72f1b2a17e58397a1214d3bcc2b8f113f | /PYTHON_FUNCTIONS/any_all_in_python.py | c4e84d22e60c5fd4da0ce9f654e5655dd7651839 | [] | no_license | shubhamrocks888/python | 3b95b5b53be8e0857efe72b8797e01e959d230f4 | 7313ddd0d09a0b478df928a07a6094930b597132 | refs/heads/master | 2022-12-15T00:03:40.261942 | 2020-08-29T18:00:42 | 2020-08-29T18:00:42 | 279,280,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | Truth table :-
any all
All true values True True
All false values False False
One True(all others are False) True False
One False(all others are True) True False
Empty ... | [
"shubhamrocks888@gmail.com"
] | shubhamrocks888@gmail.com |
7a921265a5aea45921fed6857e46ce0e6166ba03 | 4847088068b303c8c786203474327118738ff45b | /notion/54_spiral_matrix.py | cf2e17811e8a5c5c12ddec3a7b94951696dcf557 | [] | no_license | cukejianya/leetcode | fd0166a83aafbcda036b88c4239170bc7556d287 | 10db2aab180aece1130b8da19094cf74f158e625 | refs/heads/master | 2022-04-27T21:21:30.368378 | 2022-04-08T01:54:22 | 2022-04-08T01:54:22 | 167,761,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | class Solution:
def spiralOrder(self, matrix: List[List[int]]) -> List[int]:
array = []
seen = set()
direction = [(0, 1), (1, 0), (0, -1), (-1, 0)]
direction_idx = 0
cell = (0, 0)
while cell:
row, col = cell
array.append(matrix[row][col])
... | [
"cukejianya@gmail.com"
] | cukejianya@gmail.com |
c22f8acacd79b8afcf53558dbd03b826832af27a | 8580fd92512c236deae692d155bdb5eab2e00508 | /DarkTrails/asgi.py | 7b723533039a12cf02182a7076964bb2881d83f3 | [] | no_license | JackSnowdon/DownDT | d5d7f04acf92b5102cf67c5aa70cda2ebc4062fd | 17924b0b64da39d29c892fee4c7746d09b76fd8c | refs/heads/master | 2023-04-01T00:25:16.382696 | 2021-03-28T16:19:26 | 2021-03-28T16:19:26 | 352,373,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for DarkTrails project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
dedcf30da9c556f6c718f73a63447d0d9386a9e4 | dcc83732ec13c2af53bb86f9ca3d989d2e7ae399 | /Algorithms/scheduler_v1.py | 65d3d9113745a1081e8e937eee3112a7508bb339 | [] | no_license | MondayCat/PLGA | 83cc79bc583744cc58d4a35b6e3cff6449096155 | 6776107f0eebe0b83957ed5193cf4625ef84ab54 | refs/heads/main | 2023-08-16T13:23:45.857359 | 2021-10-05T09:34:42 | 2021-10-05T09:34:42 | 359,085,882 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 11,702 | py | import torch
import os
import json
import numpy as np
import copy
from Algorithms.servers.serverASO import ServerASO
from Algorithms.servers.serverFedAvg import ServerFedAvg
from Algorithms.servers.serverLGP import ServerLGP
from Algorithms.servers.serverPerFed import ServerPerFed
from Algorithms.servers.serverFedAsync... | [
"noreply@github.com"
] | MondayCat.noreply@github.com |
4eb49fd57d25c5ea69c6aa9a83268f4638e6c72d | ce84b74f38e7506cb822379c0438acbbc7eabf55 | /Meetup/migrations/0003_auto_20190331_1645.py | a6cc1c9b896a66e90c54a9c202a029e31c83702d | [] | no_license | BhanuPratapSIngh97/Project | c6543061e964f7d03aca4d9701fd5046dddc0214 | 1dbf82354105e12bdd9804da905b923f197e3907 | refs/heads/master | 2021-06-29T17:00:07.061583 | 2021-06-24T07:37:47 | 2021-06-24T07:37:47 | 181,318,159 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2019-03-31 11:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Meetup', '0002_wpost_upic'),
]
operations = [
migrations.AddField(
... | [
"bhanu.oficial97@gmail.com"
] | bhanu.oficial97@gmail.com |
24446e918c6434db62fb519512d51e55a09fc05a | b426e444308e5787d252692c5d81b075b9af3c79 | /src/serving/application/lib/rsa/prime.py | 97fe632cfa3bb2b5ebc3dfc45c2c8ddbc570267e | [] | no_license | realfranser/MachineLearning-GoogleCloud | bb96142a2ebf7aa8a1ad205417007093bb00b970 | c135f03bccffff98c8bd35d03358eb79ff540fb9 | refs/heads/main | 2023-03-21T11:35:10.789427 | 2021-03-16T23:43:57 | 2021-03-16T23:43:57 | 322,024,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | # -*- coding: utf-8 -*-
#
# Copyright 2011 Sybren A. Stรผvel <sybren@stuvel.eu>
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0... | [
"serranoarresejavier@gmail.com"
] | serranoarresejavier@gmail.com |
d8037dee1bbda982007ee6ed10a916a6955b0877 | 0e316a03af1aa585ecd9525aea499a3988f08c01 | /learning_logs/urls.py | 8c75ed3cb42d1f71d369e05e51ca872cddd6fcd0 | [] | no_license | xioumau/learning_log | 459964e69c837d6a55a1f038fd9a18112b7cffdc | 1f4f210d0ab1d7753f3b42ca75dd905be4c43458 | refs/heads/master | 2023-06-24T13:48:11.322379 | 2021-08-01T21:24:39 | 2021-08-01T21:24:39 | 378,497,167 | 0 | 1 | null | 2021-07-30T21:12:27 | 2021-06-19T20:14:28 | Python | UTF-8 | Python | false | false | 730 | py | """Define padrรตes de URL para learning_logs"""
from django.urls import path
from . import views
app_name = 'learning_logs'
urlpatterns = [
# pagina inicial
path('', views.index, name='index'),
# mostra todos os assuntos
path('topics/', views.topics, name='topics'),
# pagina de detalhes para um รบn... | [
"mauriciocon@gmail.com"
] | mauriciocon@gmail.com |
2bdaf389b5e48d429d1b3b05b8a493621a9a7ed6 | 144d8f2a5a5c751cebaabc73f2e2b82fa23c61c1 | /nebula_sniffer/nebula_sniffer/main.py | 6a4f42627e97abb132cf4cf0da49e18e7fe9ab3a | [
"Apache-2.0"
] | permissive | bradbann/sniffer | f248697cf4b483a7af1e43a08d3cc6e420b21d99 | 3ef3ad5316942669f32cda7d0c96f5a8c441efc2 | refs/heads/master | 2020-04-28T04:38:00.496351 | 2019-03-11T10:56:37 | 2019-03-11T10:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import os
import logging
import traceback
import gevent
import gevent.queue
import settings
from threathunter_common.metrics.metricsrecorder import MetricsRecorder
from nebula_parser.autoparser import get_current_generators
from .urltree import URLTree... | [
"zengjinping@threathunter.cn"
] | zengjinping@threathunter.cn |
1a90a5b9c86f0f8a4bacd30deeeb5b802be1abd9 | 1cd965da612f3f0e4d458935cc60023de942b3a6 | /scripts/kill_servers.py | 19c4f5c5ef47794394cbc709e15195a18f171191 | [
"Apache-2.0"
] | permissive | weld-project/clamor | ad42d001078ceb9e74a4a9389050dc819bf6cdc3 | 72e7a75e608bb3407ab6f7ee47f24f707932b71a | refs/heads/master | 2023-09-03T12:56:48.623120 | 2021-11-04T18:00:46 | 2021-11-04T18:00:46 | 424,517,465 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | import argparse
import csv
import itertools
import json
import math
import numpy as np
import subprocess
import sys
import time
aws_key = "prthaker-slate.pem"
def run_cmd(server_name, script):
cmd = "ssh -A -o StrictHostKeyChecking=no -i %s ubuntu@%s 'bash -s' < %s" % (aws_key, server_name, script)
output = s... | [
"ubuntu@ip-172-31-11-211.ec2.internal"
] | ubuntu@ip-172-31-11-211.ec2.internal |
8b23a3fffb6859b0622210f0f50699c660b3ef3f | 50ee2f4f1a7d2e5ff7ac35118c5ac45f9b923865 | /0x01-python-if_else_loops_functions/1-last_digit.py | c7b28ae9d733661962aa47ddbb2e987589ebc1b4 | [] | no_license | spencerhcheng/holbertonschool-higher_level_programming | b489fbe8eba6109ef1eaa0d9363f3477e7eb16c4 | f8e1dbc24fcf8fb40ca135d2700872eb773e481e | refs/heads/master | 2021-01-20T06:54:35.044899 | 2018-05-20T05:09:59 | 2018-05-20T05:09:59 | 89,943,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
if number > 0:
lastNum = number % 10
elif number <= 0:
lastNum = number % -10
print('Last digit of {:d} is {:d}'. format(number, lastNum), end=" ")
if lastNum > 5:
print('and is greater than 5')
elif lastNum == 0:
print('and is 0')
... | [
"spencerhcheng@gmail.com"
] | spencerhcheng@gmail.com |
2333e797e2e9e2d031e0167063a60eddf093205a | 7f6ea40f4a6acb964a224cf860705ac04b446911 | /CCap.py | 6f4bba5d1eeb6ab548888270c94ca08f4a65bb3d | [] | no_license | ctfu/concernCapture | 65b9cd7a82e699973776579d54c0849718df45ed | 4860857ca67cfc323ea38942a39f47fd6a57ed96 | refs/heads/master | 2020-04-05T13:02:34.156774 | 2017-12-28T07:34:47 | 2017-12-28T07:34:47 | 95,034,303 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,039 | py | from Tkinter import *
import tkFileDialog
import subprocess
from tkintertable import TableCanvas, TableModel
import os
def raise_frame(frame):
frame.tkraise()
root = Tk()
root.title("Concern Capture")
root.geometry("450x380")
# stack fram stack up
frames = []
mainFrame = Frame(root)
aboutFrame = Frame(root)
doc... | [
"cfu@my.bellevue.edu"
] | cfu@my.bellevue.edu |
6aaadd38872c563c7e3b4fd9a31a6d2edfb79945 | 41b73ecc4fa00a58609c1c3b8e717bbbc13cdee6 | /test/test_all.py | d7bd3837fc94c5de55e932b9801ad5547ef409f3 | [] | no_license | ahwillia/sinkdiv | 70c2f689af43cf80dd8c3951199885f3792d9ac3 | 85bd51f369855b78e5c0e1d5bb2aa8928d85c428 | refs/heads/master | 2023-01-31T10:56:08.481608 | 2020-12-18T04:41:26 | 2020-12-18T04:41:26 | 298,928,192 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | import pytest
import numpy as np
from numpy.testing import assert_allclose
from sinkdiv import OTCost, ForwardKL, Balanced
from scipy.optimize import approx_fprime
def test_entropy_increases(make_fig=False):
"""
Check that increasing epsilon increases blur in the
transport plan.
"""
epsilons = (0.... | [
"alex.h.willia@gmail.com"
] | alex.h.willia@gmail.com |
6aca78d446a771d1bdc8bb31bbbc2bb778bacfba | 206c10808b6224f7d8236e27cc555e723af695d9 | /tests/test_empty_service.py | 8ab14bce925b0271890c48c84c359ad361d40e51 | [
"MIT"
] | permissive | xdmiodz/tomodachi | 3280209ae49100ec902e3b15c323b38e7480cdd3 | 7ca998a421dd724df5967d5baa0cf79f5112b79b | refs/heads/master | 2023-03-15T19:22:16.381212 | 2023-01-20T07:34:48 | 2023-01-20T07:34:48 | 200,020,833 | 0 | 2 | MIT | 2023-03-08T00:00:01 | 2019-08-01T09:30:22 | Python | UTF-8 | Python | false | false | 674 | py | from typing import Any
from run_test_service_helper import start_service
def test_empty_service(monkeypatch: Any, capsys: Any, loop: Any) -> None:
services, future = start_service("tests/services/empty_service.py", monkeypatch)
loop.run_until_complete(future)
out, err = capsys.readouterr()
assert "... | [
"hello@carloscar.com"
] | hello@carloscar.com |
cfb9ff1a1089622084ea929a8ceebf87da9d0687 | 45799ccc3a16c785ab3c65f3296d66f8463590dc | /docs/_downloads/b9951f29cd54bc08237c8fb75b9c2476/q1314.py | b487939c8e11b9a0513ff9639257664f5e82d07a | [
"MIT"
] | permissive | odys-z/hello | 9d29b7af68ea8c490b43994cf16d75c0e8ace08e | fedd0aec7273f3170aa77316d0d5f317cc18a979 | refs/heads/master | 2023-08-19T03:25:58.684050 | 2023-08-18T08:07:27 | 2023-08-18T08:07:27 | 154,006,292 | 0 | 0 | MIT | 2023-04-18T22:50:56 | 2018-10-21T12:34:12 | C++ | UTF-8 | Python | false | false | 2,347 | py | '''
1314. Matrix Block Sum
https://leetcode.com/problems/matrix-block-sum/
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is
the sum of all elements mat[r][c] for i - K <= r <= i + K, j - K <= c <= j + K, and (r, c)
is a valid position in the matrix.
Example 1:
Input: m... | [
"odysseusj@163.com"
] | odysseusj@163.com |
bf7761e23bae9a63ca81061aa2aafaf3aff5226e | 48a960fcba752cdd54e8b9bcca26dc9620d8fee3 | /bookmarks/account/views.py | 3dd39a12b1aacaba6737d72ee305ba54976180d0 | [] | no_license | spacemonkeythe/django_social_website | 411172d602b3f0c82e294eb8f5d2001a4edb1016 | c7114a5f4e95e2a4b72a4b1a6055e961b4545b29 | refs/heads/master | 2021-01-19T23:47:05.238568 | 2017-05-14T19:18:53 | 2017-05-14T19:18:53 | 89,026,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,678 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
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
from dja... | [
"mladen.meseldzija@gmail.com"
] | mladen.meseldzija@gmail.com |
17fe19b4e80f15be0aa96d6afc0197167630396f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Yfksxs7kyJf6B3yvK_21.py | 3d96e93dc0ddaedcb2d4e9ec9ecf8a4618a5d7cd | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | """
Given a list of integers, return the smallest _positive_ integer _not present
in the list_.
Here is a representative example. Consider the list:
[-2, 6, 4, 5, 7, -1, 7, 1, 3, 6, 6, -2, 9, 10, 2, 2]
After reordering, the list becomes:
[-2, -2, -1, 1, 2, 2, 3, 4, 5, 6, 6, 6, 7, 7, 9, 10]
... from whic... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
292d693d4951c885d76bf1f7ac7bf0a082ef6351 | 0967216649e468a9031493efccb54a3ca91e0605 | /gui.py | bae3f271b800ccaa12c62af2617dfe0e5ec487d9 | [] | no_license | Cegard/triqui | d6b1256176007326a914176cf4984a71eae6c5e9 | a6347a4a1a7b4a314f84c2eaa8f765a4c0f8bf53 | refs/heads/master | 2021-07-07T09:38:46.722689 | 2017-10-02T07:25:12 | 2017-10-02T07:25:12 | 105,507,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from triqui import *
class Cell(Gtk.ToggleButton):
def __init__(self, position):
Gtk.Label.__init__(self)
self.position = position
class Dialog(Gtk.Dialog):
def __init__(self, parent, message):
Gtk.Dialog.__init__(self, "... | [
"cegard689@gmail.com"
] | cegard689@gmail.com |
3dca2cc757f66f60392a249939a7b606c5bcbaee | ec75e1748d2b2a10dc34cbc5c044132bb7f63bca | /getResolution.py | 5742d0add2d7b37945d9d0fcd33b7491b4758470 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fstab50/conky-system-monitor | 0d9856f1c84c4a2af6cd80130c7ba5163851f6fc | 7195318926e3b4e319517f96dbb691029f8225a0 | refs/heads/master | 2021-10-25T18:52:41.393184 | 2021-10-22T21:16:10 | 2021-10-22T21:16:10 | 211,334,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python3
# modified version of getMonitorInfo.py
# (last line changed "current" monitor info
# change to enable start_conky_laptop.sh capabilities
import tkinter as tk
root = tk.Tk()
cols = root.winfo_screenwidth()
rows = root.winfo_screenheight()
# the screen contains all monitors
print("screen siz... | [
"blakeca00@gmail.com"
] | blakeca00@gmail.com |
7515a1a3a160b48f3077495d86f0d62cfd276aee | b0edf66e8360667f09c5a24a92ddcdeef0f94e99 | /AgeEstimationServer/src/AgeEstimationServer/views.py | 99f42f41a4c481ef7a5990e4ccd6d6da91dc88d8 | [] | no_license | LeslRo/AgeEstimation | 4b7cf374511a0f75ae6e657186eaf68ecc21ae85 | 9045d9cc87704cd8804ca3683970a5a79965b16f | refs/heads/master | 2020-04-12T18:38:56.489503 | 2018-12-21T07:42:01 | 2018-12-21T07:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # -*- coding:utf-8 -*-
from django.http import HttpResponse
from . import services
import json
def hello(request):
"""
test
"""
return HttpResponse("Hello Age Gender Estimation!")
def detect(request):
response_dict = {'successful': False} # handle illegal cases
if request.method == "POST":
... | [
"hu_minghao@outlook.com"
] | hu_minghao@outlook.com |
ce23796651ea87049745a818cb08caafa35cc580 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /packages/dpdprops/dpdprops/__init__.py | c42c51871769928dd028add49df137aafa25b487 | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from .fluid import *
from .dpdparams import (DPDParams,
create_dpd_params_from_str,
create_dpd_params_from_Re_Ma,
create_dpd_params_from_props)
from .membrane import *
from .membraneparams import (MembraneParams,
Kan... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
e27baac6ac5bffe812f3193a959cab81a5c8aff7 | fb71a6543a7c354fb1c60e4e8a99e195316fda5b | /SimpleLevel.py | 3eda15373d49505b9059a51a5f5da6d17b0ad9dd | [
"MIT"
] | permissive | tawnkramer/Adventure | dc9343513b3da9bba7b7b22b3c95bd84e58218e5 | ded25d7b49094c8ca4a79fc0aa18fca3afa394f2 | refs/heads/master | 2022-12-22T11:56:49.006454 | 2022-12-16T18:42:28 | 2022-12-16T18:42:28 | 89,750,955 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | from adventure import *
from shop import *
from util import *
#######################################################
# Here is a simple starter level to start learning with.
# This creates three rooms in a cave and populates with
# some items and gets it ready for an adventure.
# Read the descriptions and y... | [
"tawnkramer@gmail.com"
] | tawnkramer@gmail.com |
c454aa0dcc9b5fa6321a30c46ce20f68da64dc02 | 390b3ea1c01b693e71f7ac0bf8e9d626b084b09d | /luminous/migrations/0001_initial.py | 12a40aa23a0590bfbde41eecdd18a9a920894147 | [
"MIT"
] | permissive | rohithpr/luminous-backend | f409a58fc9d143fbfa0b52444f0fe38adb863d11 | 7aa45989993fcad8aa6d786dc3828691dbb96540 | refs/heads/master | 2020-07-29T05:24:46.676578 | 2016-08-28T10:33:37 | 2016-08-28T10:33:37 | 66,752,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-28 06:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"praroh2@gmail.com"
] | praroh2@gmail.com |
011d6e04d23d555a74207ac5b3c6166e38926413 | 04f614f534471cb4a2ed72a875b3601cba87590a | /final_project/views.py | 103fa32b842c56839f22040e7a6995d4eabf0232 | [] | no_license | harrywoo/Squarrel-Tracker | 35636bfd100309cc4067f1fe5097d1b421b6a78d | 143043978e2089dec0273e242ed438a80a55ef37 | refs/heads/master | 2022-12-01T19:23:15.583090 | 2019-12-10T02:44:35 | 2019-12-10T02:44:35 | 242,660,388 | 1 | 1 | null | 2022-11-22T04:39:45 | 2020-02-24T06:12:09 | JavaScript | UTF-8 | Python | false | false | 93 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return | [
"harryhz@yahoo.com"
] | harryhz@yahoo.com |
e9fb301ce413574e49d9b5dab04e7840eb52ae8b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnetonian.py | 43b62a44c0b174541904a814c37cf4917415a758 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('ClarGE3.py', 2), ('DibdTRL.py', 1), ('DibdTBR.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
ceed057825798d46c509ddab61ac189ced30ad29 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-oms/setup.py | b81b7515b7d134fa9438170ce81a39929b9463d6 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # coding: utf-8
from os import path
from setuptools import setup, find_packages
NAME = "huaweicloudsdkoms"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
DESCRIPTION = "OMS"
this_directory = path.abspath(path.dirna... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d5ddd74869a157b83c40a72dcab563c596578394 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /T083_ๆฑ็จ0โ7ๆ่ฝ็ปๆ็ๅฅๆฐไธชๆฐ.py | 0fb0007220933911a99ceca79ed911aaae9783bb | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # ๅจ่ฟ้ๅไธไฝ ็ไปฃ็ :-)
'''
้ข็ฎ083๏ผๆฑ0โ7ๆ่ฝ็ปๆ็ๅฅๆฐไธชๆฐใ
'''
def tm083():
'''
ใไธชไบบๅคๆณจใ๏ผๆฒก่ฏด็ปๆๅ ไฝๆฐๆๆฏๅฆ้ๅคไฝฟ็จใๅ่ฎพ1-8ไฝ้ฝๅฏไปฅ๏ผไธไธ่ฝ้ๅคไฝฟ็จใ
็ดๆฅ็จๆๅๅฝๆฐ๏ผ็ดฏๅ ็ถๅๅป้๏ผๅฐฑๅพๅฐ็ญๆกไบใ
'''
s = [i for i in '01234567']
import itertools #ๆๆๅไธ็ปๅๅฝๆฐ
arr = []
for i in range(1,9):
a = list(itertools.permutations(s,i)) # ้ฟๅบฆ1-8ๅทฆๅณๆๅ
l... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
5c124166166fe504cf5105f18a3316336ea82e20 | f282fa7a82cc357875acfaa81c37b42890d52972 | /CMPT825NLP/CMPT825-1141-wkrayenh/hw3/answer/smoothing_old.py | e48b5a884a24d02423cda4c477648d76f8412a2d | [] | no_license | wbkdef/NLP | 1d065b60c31d5d6da24b71b8f82f3b614e89341d | 4482525af82128b1be1b246c38cf891a313a6f09 | refs/heads/master | 2020-03-30T11:29:36.110967 | 2014-04-10T07:16:30 | 2014-04-10T07:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | from __future__ import division
from nltk.corpus import brown
from nltk.probability import *
from itertools import islice
from math import pow, exp
from numpy import log2
_NINF = float('-1e300') # log probability value for log2(0.0) = Inf
def crossEntropy(Wt, Pt):
return -(Pt/Wt)
def perplexity(H):
try: val ... | [
"wbrucek@gmail.com"
] | wbrucek@gmail.com |
d3f7083d27ccfd01ba535fcc5502ef199cf4ad4d | 569a4c7b2846e67f25453b2b588d2376d590a057 | /tests/test_unit/test_dynamo_unit.py | 497514c185f82771095cf2abaf3cca395a6d0121 | [] | no_license | sbowers-mdsol/datamigrator | 599e95201539bbbe9849cbcee71c1b29d811a502 | 893df3a693ea718610bb58be387629482118947e | refs/heads/master | 2021-01-22T18:43:21.997882 | 2017-03-22T23:49:33 | 2017-03-22T23:49:33 | 85,109,393 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | import tests.configtests as _config
from mock import patch
from sharedlibs.tools_dynamo import ToolsDynamo
from unittest import TestCase
@staticmethod
def fake_create_table(tablename, keyschema, attributedefinitions, provisionedthroughput):
return True
@staticmethod
def fake_delete_record(tablename, key):
ret... | [
"sbowers@mdsol.com"
] | sbowers@mdsol.com |
736f75070055a99a4a7e584cf66a56af7e7459f7 | 66d176360e17249ab725b6c3dbb4ebcf9006b491 | /lab7/get_browser_history.py | 7a39ec5cd3b0b561a5b9406b6600bff99e4e851f | [] | no_license | otecdima/UCU | 843f9fba3891f106a52c450f19247aa2b749702e | 15ffafdc6831f199f59605ef3bd6698308615be2 | refs/heads/master | 2023-09-04T19:56:49.535973 | 2021-11-24T22:15:28 | 2021-11-24T22:15:28 | 424,571,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | import sqlite3
import datetime
def get_chrome(con: sqlite3.Connection) -> list:
"""
Reads database of Chrome history and process data
:param con: database connection
:return: list of visits
"""
c = con.cursor()
c.execute("select id, url, title from urls")
url_id_tuples = c.fetchall()
... | [
"batko.dima@gmail.com"
] | batko.dima@gmail.com |
647bcede9f2c180ce6a1c4b7aed02d5486d24efc | 2343dd93eca5a82f9d27f2a7f7934ba7ca490ce4 | /exercises/parenthization.py | 873bada00a97c8a6ae986adedff32dce8bd47188 | [] | no_license | AYamaui/Practice | 7ccbbc8ebd08567b8398c5a7f5d74d49f08a6156 | ce51ae7f555eaf9edebcea3a737b14f735c70de0 | refs/heads/master | 2020-05-09T10:32:14.032347 | 2019-04-12T16:50:14 | 2019-04-12T16:50:14 | 181,046,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py |
def parenthization_matrix_multiplication(matrices):
for i in range(len(matrices) -1):
matrices = matrices[:i] + multiplication(matrices[i], matrices[i+1])
if i + 1 < len(matrices):
matrices += matrices[i+2:]
min(parenthization_matrix_multiplication(matrices[i])) | [
"alexandra.yamaui@gmail.com"
] | alexandra.yamaui@gmail.com |
ac835b677a0872f50c7b0ef9002545f8d9ab07f7 | 01578617f46ffd937bd5a40012ccea304bd796ec | /chamber.py | e1525d0cc10567bb9e2e5f2544c7cd17f89a2f6f | [] | no_license | greyson-newton/tbma_simulator | 0ef6010a5472d193bbff916276f503cee6a253f3 | c2ae3da25a5cf5b79b8423df7932601813d77918 | refs/heads/main | 2023-07-10T06:57:11.685593 | 2021-08-16T19:05:49 | 2021-08-16T19:05:49 | 390,780,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | from logging import RootLogger
from matplotlib.cbook import pts_to_midstep
from geometry import *
import math
import matplotlib.pyplot as plt
import time
from mpl_toolkits import mplot3d
class Chamber:
def __init__(self,dim,origin,rotation,actual=None):
if actual==None:
self.design=True
... | [
"greynewt@tamu.edu"
] | greynewt@tamu.edu |
27ca6fd5651d732db9013a6bd495e41fa5579fc9 | 467007783b28376929da1a379480c59f002a1d1c | /.env/bin/easy_install | e2d6af62ee9cc7bf5ccdc713e098c8c20a916d91 | [] | no_license | anotherjoshsmith/personal_website | 26bc0b68f87160a52669d2a043b142c6d776fc31 | c0e1a9a0c4a1fc9a44ba9c741515b2f55ba9ca8a | refs/heads/master | 2020-03-10T09:24:28.716941 | 2018-04-24T17:56:24 | 2018-04-24T17:56:24 | 129,308,493 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | #!/Users/joshsmith/Git/personal_website/.env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools','console_scripts','easy_install'
__requires__ = 'setuptools'
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])... | [
"jsmith07@uw.edu"
] | jsmith07@uw.edu | |
3e3b442ac6a61efc6b2af0a7c01b53aa03dc42bd | ae574b5c99d90bd3e79716c822b9eac067563f8e | /firstpython.py | 1c3a745651ddbd2ff4b5261051aa8ee89734c829 | [] | no_license | salpekarashwin/FirstOne | aa8258b101eb1d126ae23b7ab90e90945d1c98e7 | 9b379812f30e1a6ddc7a1cad271980c16ee1e1b3 | refs/heads/main | 2023-02-22T08:47:34.088153 | 2023-02-19T15:21:59 | 2023-02-19T15:21:59 | 308,248,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print("first python")
| [
"noreply@github.com"
] | salpekarashwin.noreply@github.com |
cdb111ebe746a8b9c8b63bf258b391cd0f925339 | d3febb493aaef14c5da6a15e52c04598eab4e411 | /main.py | 31d6cde7bb461db7693e0cd2e33dc7f9aed9abe9 | [] | no_license | Introduction-to-Programming-OSOWSKI/2-3-comparisons-Ryan-Sandhoefner | 491760ee475efbbd221302d188ab82e47db5e7c5 | 5b73870213238b9300a5b18ca8d94be0f4c180b3 | refs/heads/master | 2023-08-24T20:11:21.115386 | 2021-09-28T14:26:38 | 2021-09-28T14:26:38 | 411,311,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #define function
def greaterThan(x,y):
if x>y:
return True
else:
return False
#define function
def lessThan(x,y):
if x<y:
return True
else:
return False
#define function
def equalTo(x,y):
if x==y:
return True
else:
return... | [
"Mngamer813@gmail.com"
] | Mngamer813@gmail.com |
74b3a0fc7d4eb94c48d81175d59a052e621428e8 | bde5a2024923a025932719068e71f020eba1deed | /Areas.py | b4ace9d88300ed75957d59a4f7b6237c1638f886 | [] | no_license | RosanaR2017/PYTHON | d7b60ec6bf4722f6e1179b1e3cfd02ca934fa58e | eb68fdf3f4adcc580a6b52b6ecafdd7b85c96c4f | refs/heads/main | 2023-01-08T00:15:43.845957 | 2020-11-04T02:31:09 | 2020-11-04T02:31:09 | 306,211,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from math import pi
import sys
def ErrorPrint():
print("Entrada no vรกlida, finaliza el programa")
sys.exit(1)
def num(n):
while True:
try:
n=int(n)
return n;
except ValueError:
try:
n=float(n)
retur... | [
"noreply@github.com"
] | RosanaR2017.noreply@github.com |
2080ffdca8a74c982e7847b40e4f7a44d309aa6a | fb2668cb16b50e252225ed54d85e6dd531dba7e4 | /revip.py | 013b68d89f71fb6aba891b04357bf185b43e41f1 | [] | no_license | zxc2007/revip-1 | a39f387c87190e0fb2f9f40b8a67a78fd6bba71d | 5fdc263f6bf1a68e809c56ceab7f9a7ca789bf3e | refs/heads/main | 2023-06-27T09:24:35.387528 | 2021-07-14T15:19:55 | 2021-07-14T15:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | #Author: r4sso
#Github: https://github.com/r4sso
banner = '''
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ By r4sso|github... | [
"programmernet106@gmail.com"
] | programmernet106@gmail.com |
07c649a37bc085678f51d29d310f245125e33886 | c958c1d13579785b8eea19dccdd205fdc4d4f5d9 | /CODE/Python/Scale UP.py | ec539319055dba09aec0351eb1e90eed5824500e | [] | no_license | Qwerty0525/NOPE-Library | 8c7bce0e5c2e41c2ac1d244bfd0286fabae4b0e6 | 0f262603922e53cb24989cf6242ea0b7d2e65a29 | refs/heads/master | 2022-10-12T01:11:36.347647 | 2020-06-11T01:06:25 | 2020-06-11T01:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import subprocess
import os, sys
# ๊ฒฝ๋ก
PATH = "T:/git/CODE/SKIN/Camouflages"
OUTPUT_PATH = "T:/OUTPUT/"
# ํ์ผ ์นด์ดํธ
filecount = 0
endfilecount = 0
for (path, dir, files) in os.walk(PATH):
for filename in files:
ext = os.path.splitext(filename)[-1]
if ext == '.png':
endfilecount = endfileco... | [
"36913634+ETCOM@users.noreply.github.com"
] | 36913634+ETCOM@users.noreply.github.com |
0ec45d6c192a7103a5a4759e57e7f5068b0498d4 | bff215028de146b87ef725eb36556dcfd7401c56 | /magenta/magenta-tensorflow/magenta/models/music_vae/data_gen.py | f94ec60b42052e6c3a3b701bbafcdd4cf07b586f | [
"Apache-2.0"
] | permissive | Leetre/Graduation-Project | 6dd99ccbb67d0015ac1d81e02316b87a5290a85d | f99da04cddd76140ede66bf35da110c6ebbd6d20 | refs/heads/master | 2022-08-20T09:40:09.075115 | 2020-05-26T07:48:20 | 2020-05-26T07:48:20 | 266,953,578 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,650 | py | import os
import concurrent
from tqdm import tqdm
from magenta.models.music_vae import data_hierarchical, data
from magenta.models.music_vae.configs import CONFIG_MAP
from magenta.models.music_vae.data import NoteSequenceAugmenter
from magenta.models.music_vae.data_utils import generate_files, shuffle_dataset, UNSHU... | [
"823287831@qq.com"
] | 823287831@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.