blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a12f73648f46854614cd7f814a32252da0ca2ac6 | ae6f85863eb6ebecca2950b4fbff394a4edcfca6 | /chataggregator.py | 79fa3b314e31448072f444fc877169aab9c6829d | [
"MIT"
] | permissive | m-henderson/ChatAggregator | 79ee32ae7a851b0ae5136184d55f5ea596eaab85 | 2692e9e5dfd5d78bbf5d658731b57630099ec3e4 | refs/heads/master | 2020-09-12T04:13:47.784589 | 2019-11-17T19:20:39 | 2019-11-17T19:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import tklib
import tkinter as tk
root = tk.Tk()
root.title("Chatbox")
gui = tklib.main.MainWindow(root)
gui.grid()
root.mainloop() | [
"Dogeek@users.noreply.github.com"
] | Dogeek@users.noreply.github.com |
0b9f8c69a516049fee15317748749ab9d00bb152 | e17966d3831e9f99527fb44c50c77c90e08694de | /cmasher/colormaps/cosmic/cosmic.py | 22748307b61c1a4f48607bd8bc7069e7557c2c79 | [
"BSD-3-Clause"
] | permissive | ajdittmann/CMasher | 85e4f94e45f962c247d2f8e04a1e966b01b77248 | 1ad6a5eaa3b473ef5eb3d56dfd3ecb8e887f16cd | refs/heads/master | 2023-03-27T12:46:30.052679 | 2021-03-22T23:56:47 | 2021-03-22T23:56:47 | 277,986,917 | 0 | 0 | BSD-3-Clause | 2020-07-08T04:10:55 | 2020-07-08T04:10:54 | null | UTF-8 | Python | false | false | 13,150 | py | # %% IMPORTS
# Package imports
from matplotlib.cm import register_cmap
from matplotlib.colors import ListedColormap
# All declaration
__all__ = ['cmap']
# Author declaration
__author__ = "Ellert van der Velden (@1313e)"
# Package declaration
__package__ = 'cmasher'
# %% GLOBALS AND DEFINITIONS
# Type of this color... | [
"ellert_vandervelden@outlook.com"
] | ellert_vandervelden@outlook.com |
e459a8bed2ebf847119b43f03585274b9d6d301d | d8ce486989fe13074365a20b77743dc333b37b65 | /python/paradrop/backend/exc/runtime.py | ff7817cab128621782d10a037dca7d526d2ffdfc | [] | no_license | damouse/AnotherParadrop | a1ae8e8d91d54b091a1b8f4d564e4e6339e2c60f | 7c3ca7a149b8e30ba11f6d6b6e4d953374bf8708 | refs/heads/master | 2021-01-17T06:52:55.933794 | 2016-07-11T01:10:00 | 2016-07-11T01:10:00 | 62,856,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | ###################################################################
# Copyright 2013-2015 All Rights Reserved
# Authors: The Paradrop Team
###################################################################
from pdtools.lib.output import out
from paradrop.backend.exc import plangraph
from paradrop.lib import config
... | [
"damouse007@gmail.com"
] | damouse007@gmail.com |
69e938ae8597f11320f9ad83b8e276f8401c8d4a | 074dcf2274f2864710264db115b840c838b64ffd | /leet_0985_sum_of_even_numbers_after_queries.py | 32e67b96e33cb9081f2f1c235692f83e8e231335 | [] | no_license | kkaixiao/pythonalgo2 | 212da2dac8d3a38fd06b0d1f5895cb9a768da43e | 92b4b7c6b69d39bf79a9e20a9fc947304c2a1de5 | refs/heads/master | 2021-06-23T07:20:13.659422 | 2021-05-10T05:16:30 | 2021-05-10T05:16:30 | 224,455,645 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | """
e have an array A of integers, and an array queries of queries.
For the i-th query val = queries[i][0], index = queries[i][1], we add val to A[index]. Then,
the answer to the i-th query is the sum of the even values of A.
(Here, the given index = queries[i][1] is a 0-based index, and each query permanently modif... | [
"show-key@qq.com"
] | show-key@qq.com |
8a69e7b744e52b3f84dd74831ee475bb703574fe | baacad8007b78f105b41030fd48d643820142ba1 | /hw-pca.py | 22172f834d3d4ddc3c6bcb97c164458cb32c3d54 | [] | no_license | baoaya/point-cloud | b31ef7ca19eb3f2255876a0ed08fc0ccd67e5e6a | 6c35cf38bfcfafbf25b5725ce2b13d0e8f0153c6 | refs/heads/master | 2023-03-21T03:21:56.844632 | 2021-03-07T11:42:07 | 2021-03-07T11:42:07 | 344,090,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import numpy as np
import open3d as o3d
from matplotlib import pyplot as plt
# PCA
# x是点云矩阵,返回排序好的特征向量
def pca(x):
x_mean = np.mean(x, axis=0)
normalize_x = x - x_mean
normalize_x = normalize_x.T
h = normalize_x.dot(normalize_x.T)
eigen_values, eigen_vectors = np.linalg.eig(h)
return eigen_vec... | [
"wuhaojie@gmail.com"
] | wuhaojie@gmail.com |
1a8f7f2c0353ac2b624f1e8636896917b3309abb | d62e60b26fdb5373f72c2cf5ddcd7ad99b835f23 | /eee/koans/about_control_statements.py | 40b5444ef520f4ae763da2e1a9980d390e85d91f | [] | no_license | glambertation/Paper | 4cf6e605235eb0bbe7e6ebe24a916e5a34935e3d | 7a4945490a53cc409641720621c7710b7ab9f2ae | refs/heads/master | 2021-09-04T13:23:06.385324 | 2018-01-19T04:45:25 | 2018-01-19T04:45:25 | 105,601,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutControlStatements(Koan):
def test_if_then_else_statements(self):
if True:
result = 'true value'
else:
result = 'false value'
self.assertEqual('true value', result)
def test_if_... | [
"songhaiyun@bytedance.com"
] | songhaiyun@bytedance.com |
33d4076089c5e19b3838fc02d813cc695a5951d3 | 9c8ab08d961dcc8087c34f90561f4e3d304f6bf8 | /Exotag_SW_uploader/sw_uploader.py | a5a9a92cf05de66925c9fde56a7d175082c0d5ea | [] | no_license | kdubovenko/eclipseRepo | 230e249749175a7fb4e3e30308aca2ba378ff2d4 | 081eb845dc5e8328ed2b7454003506bcb0b79c16 | refs/heads/master | 2021-01-16T21:14:19.890046 | 2020-05-13T22:57:39 | 2020-05-13T22:57:39 | 100,223,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py |
#!/usr/bin/python
from __future__ import print_function
import sys, binascii, serial, time, getopt, io, struct
from intelhex import IntelHex
def main(argv):
inputfile = ''
port = ''
split = 1024
usage_string = 'huzzah_exotag_firmware.py -i <inputfile> -p <comm port:/dev/ttyUSB or \\\.\COM12>'
try:... | [
"kdubovenko@gmail.com"
] | kdubovenko@gmail.com |
058c007c891929098cb59e8d6ed13d88a8135a36 | 668188a66168ae01a84efa03a3a08d0618885e86 | /classify/utils/d_process.py | 353563784d96da27f4457ed499cd6518332d8600 | [] | no_license | Xie-JunWei/lstm-network | c59c939765c9362750922374083a827cf32a8671 | 3f4cc841e41e3b48a4cef427a5fe373355f38d1b | refs/heads/main | 2023-02-26T02:20:53.668018 | 2021-02-07T14:13:55 | 2021-02-07T14:13:55 | 336,803,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # 预处理 加随机噪声,归一化
import numpy as np
def dp(traj_,max_len_):
x, x_v, y, y_v ,z ,z_v= [],[],[],[],[],[]
ini = 0
# count = 1201
for line in traj_:
if ini==0:
x_0=line[0]
y_0=line[1]
z_0=line[2]
ini+=1
else:
rand_r... | [
"noreply@github.com"
] | Xie-JunWei.noreply@github.com |
2aad664b1d1fb518045bd6f2279ab4277a41eb31 | f2e3b1181c13bded5baaedda0813129838118971 | /IOT-Web-Services/src/config.py | 99f9f24404dd4126034502428ed1b7477644670f | [] | no_license | zubairshakoorarbisoft/iot-api-usama | bf1627131c58a106139755d75e26a48de8a38219 | d623745e35b24cf00f5d95389193045b16ef4f5a | refs/heads/main | 2023-08-31T10:09:29.785934 | 2021-09-26T20:36:29 | 2021-09-26T20:36:29 | 410,654,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from pydantic import BaseSettings
class Settings(BaseSettings):
pgsql_host: str
pgsql_dns: str
pgsql_port: int
pgsql_user: str
pgsql_password: str
pgsql_db_name: str
class Config:
env_prefix = ''
env_file = '../.env'
settings = Settings()
| [
"noreply@github.com"
] | zubairshakoorarbisoft.noreply@github.com |
2b17eb37f580aae31898a48853bef496335a74aa | bfe3c294db999eb46af04f1c3c6451c974a4a7eb | /PyPoll/main.py | 16d95d67b9b898a4e524d21261092d068e2c12c5 | [] | no_license | diazdez/Python-Challenge | 5fb06331a4edae06254169e3396496ab09e19d93 | 1a753dd82a91ca52563fb0d4fd9422dd68865e15 | refs/heads/master | 2022-12-22T10:16:40.641322 | 2020-09-22T21:51:54 | 2020-09-22T21:51:54 | 296,190,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | # PYPOLL: Homework
# PyPoll CSV File: election_data.csv
# CSV has a header with 3 categories: "Voter ID", "County" & “Candidate”
# The total number of votes cast
# A complete list of candidates who received votes
# The percentage of votes each candidate won
# The total number of votes each candidate won
# The winne... | [
"69435783+diazdez@users.noreply.github.com"
] | 69435783+diazdez@users.noreply.github.com |
0b9ad678fafff5f6858e34778dcf49f9e2da81f1 | dcf1478d7a3c2338f5daa04240ac6e90f6e6cce2 | /application/routes.py | 5af5ae553545eb5cbaa1778edd19170c79cf9e0c | [] | no_license | LeoKnox/flask_py | 555968ad90cb092e6ba383cb76c47931f8d49c98 | 68e8cc9159584bab33220177dc2003c699489095 | refs/heads/master | 2023-03-25T08:21:37.124324 | 2020-05-25T05:50:58 | 2020-05-25T05:50:58 | 260,389,671 | 0 | 0 | null | 2021-03-20T03:40:42 | 2020-05-01T05:53:14 | HTML | UTF-8 | Python | false | false | 1,653 | py | from application import app, db, mycol
from application.models import Room
from application.forms import CreateRoomForm
from flask import render_template, request
@app.route("/")
@app.route("/index")
def index():
return render_template("index.html", index="active")
@app.route("/dungeon")
def dungeon():... | [
"noreply@github.com"
] | LeoKnox.noreply@github.com |
a6db7fdd687e1c3b4a48e8e4f97344c121c8d0c1 | 3eb0d7197bbbb5f4677ce30620eda571decedf12 | /pygbif/registry/__init__.py | 00e3d4ea2ee4eabc0c402754a4534355c57f24d9 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | faroit/pygbif | f38e34571639f8135b15c749da51778ff36c0d01 | 4bfdb7bc87c372c59f1f0e81843a18585a3056f4 | refs/heads/master | 2023-01-22T11:10:40.686527 | 2020-09-29T23:41:18 | 2020-09-29T23:41:18 | 297,910,320 | 0 | 0 | MIT | 2020-09-23T08:53:46 | 2020-09-23T08:53:45 | null | UTF-8 | Python | false | false | 637 | py | """
GBIF registry APIs methods
* `organizations`: Organizations metadata
* `nodes`: Nodes metadata
* `networks`: Networks metadata
* `installations`: Installations metadata
* `datasets`: Search for datasets and dataset metadata
* `dataset_metrics`: Get details/metrics on a GBIF dataset
* `dataset_suggest`: Search that... | [
"myrmecocystus@gmail.com"
] | myrmecocystus@gmail.com |
afdb85dbdce3a8016eb733c7a9673913e4f8feb2 | a6c12a2790c7fb7b032f43eeafb12a79138376c2 | /app2/views.py | 6aeedd991680e7f96036e4e6272d08673b6bd703 | [] | no_license | karthi-chala/pro22 | 12fbb735b23acfea1bc017c86a7f91dad9d4cb00 | 52b913c8f865cee63a73910910983f18c22b53f8 | refs/heads/main | 2023-03-31T11:56:13.018840 | 2021-04-03T12:24:28 | 2021-04-03T12:24:28 | 354,331,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('<h1>welcome to index of app2</h1>')
def sample(request):
return render(request,'app2/sample.html') | [
"karthi.sacred27@gmail.com"
] | karthi.sacred27@gmail.com |
6dd5ad61bfdc032115e548d265370f29b51aac01 | 6e51ff71f150ff964caaaba3af6550f8258e975a | /news_scraper/spiders/inside.py | 9ea59a93668ebb232a848afc399fa679186f243b | [
"MIT"
] | permissive | yungjr/news-scraper | 289fbab2f2c37f515016f346ece8953c669b0fc3 | f10c7a7f4c456ec950cd5f8c12ee202e2d0be793 | refs/heads/main | 2023-03-16T01:03:24.146905 | 2021-02-28T09:01:31 | 2021-02-28T09:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import scrapy
class InsideSpider(scrapy.Spider):
name = 'inside'
allowed_domains = ['www.inside.com.tw']
start_urls = ['https://www.inside.com.tw/tag/ai']
count = 1 # 執行次數
def parse(self, response):
yield from self.scrape(response) # 爬取網頁內容
# 定位「下一頁」按鈕元素
next_page_url ... | [
"mikekuforgit@gmail.com"
] | mikekuforgit@gmail.com |
3b01306425299986ae69ee9a5f0da7376a8f7ff7 | a920c8dfcbf789c37b0207987070b81512217136 | /graph.py | 6c7db432592baa9a3e3d1c4c20cc6ee7650e83da | [] | no_license | carter-yagemann/BeijingAir | affc7cdfbaf53fc5d1ea3dcf42758219a97821df | c08061382f968569fad7d77090012be85f7d7deb | refs/heads/master | 2021-01-11T21:51:35.778990 | 2015-03-10T04:05:34 | 2015-03-10T04:05:34 | 78,866,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | #!/usr/bin/python
'''
BeijingAir
graph.py
Copyright Carter Yagemann 2015
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | [
"yager.code@gmail.com"
] | yager.code@gmail.com |
a9d30b879ccaabca5abc2e5f1cbc6ca98d86d3c3 | 9d39f6ec24ea355ee82adfd4487453172953dd37 | /tao_detection_release/configs/baselines/untitled.py | 8638d6ce39fea718525ea919f636993395a6144e | [
"Apache-2.0"
] | permissive | feiaxyt/Winner_ECCV20_TAO | d69c0efdb1b09708c5d95c3f0a38460dedd0e65f | dc36c2cd589b096d27f60ed6f8c56941b750a0f9 | refs/heads/main | 2023-03-19T14:17:36.867803 | 2021-03-16T14:04:31 | 2021-03-16T14:04:31 | 334,864,331 | 82 | 6 | null | null | null | null | UTF-8 | Python | false | false | 9,591 | py |
_base_ = '../detectors/detectors_htc_r101_64x4d_1x_coco.py'
model = dict(
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='DetectoRS_ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
... | [
"feiaxyt@163.com"
] | feiaxyt@163.com |
701944f9a0da6fa0588f63bf6e177d303b98160d | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200420170220.py | c2d708f28a6dde0df64200c0ef45ffffb76e08f1 | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,545 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una part... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
11f52d314437ea29e602494b2f3a7ab5684aebbd | 9681736f96d9fd8e402600272f8a8b58fce20694 | /melspec.py | aaac9b56fe678e438c386c2a1d8d106199c354de | [] | no_license | akio-kobayashi/audio_processing_pt2 | b988b7d4e553cc84eb83627d101781f5742d7ad3 | 7eaa2d2e1b4d1f33dbbb280c4f89546f300a61a7 | refs/heads/master | 2022-11-22T09:22:18.411992 | 2020-07-17T03:35:45 | 2020-07-17T03:35:45 | 276,017,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | #!/usr/bin/python3
import os
import numpy as np
import scipy
import h5py
import re
import csv
import librosa
import argparse
def compute_melspec(signal):
melspec=librosa.feature.melspectrogram(signal, sr=16000, S=None, n_fft=512, hop_length=200, win_length=400,
window='... | [
"a-kobayashi@a.tsukuba-tech.ac.jp"
] | a-kobayashi@a.tsukuba-tech.ac.jp |
72e0e6a314371822134735a4588f6f9f0bd8ebb6 | dabc28b01defdec0dd1978f39486df000ebc8c23 | /iptFilter-range.py | 9fc74add06d32ce20e61a00915655cbb7a21b224 | [] | no_license | jaberansariali/my-iptables-python | db10e92be3298cdb4df67f6d84ce4d892a1db0a8 | 0ff34f8c535e280f555ff9e3949e0937e2f0a1a5 | refs/heads/master | 2020-12-06T19:50:23.019142 | 2020-01-11T11:34:07 | 2020-01-11T11:34:07 | 232,537,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | #!/usr/bin/python3.6
##############################################################################################################################
######### WRITE BY A.ANSARI ##
######### ... | [
"a.ansari@fwutech.com"
] | a.ansari@fwutech.com |
3c4f13f5bdab54fff953eb3c1894c035d1da94a8 | 958769d6794a840643c1d7a016d811118edfe494 | /Test/event.py | c8cace4645560d3ecb691d0b257ee902313c48bd | [] | no_license | d-schmitt/Rostersimulation | 9a3ccd1d2ec0b4e63b9058a8985b6a1ec770bcaa | cb58c4be25403b9c41b0c55bcaf83138b1402f17 | refs/heads/master | 2021-09-04T00:58:01.610131 | 2018-01-13T17:35:24 | 2018-01-13T17:35:24 | 109,983,162 | 0 | 0 | null | 2018-01-03T12:25:07 | 2017-11-08T14:01:01 | Python | UTF-8 | Python | false | false | 10,012 | py | from datetime import datetime, timedelta
from random import randint
#--------------------------------------------------------------------------------------------------------------------------------
# Erklaerung zu den verschiedenen Stati
# working: der MA ist gerade im Dienst
# none: der MA hat frei und steht - we... | [
"noreply@github.com"
] | d-schmitt.noreply@github.com |
3ccde3ab4eb46be77a8bb20983463e9784ae1ba4 | 6b98d916935f03ac8f75e52a174de73040602336 | /chapter 7 python/Second2.py | 625609071021a156550f36b666ffba245ee78c3b | [] | no_license | AungKyawZaww9/python | 61e014d4b2c5bd8fd675a59b50ca210dd410a384 | 627afbec42f358dfcd5909bc787029e3fb30391c | refs/heads/master | 2023-06-22T00:28:48.825211 | 2021-07-25T19:16:15 | 2021-07-25T19:16:15 | 389,271,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from Second1 import Time
time1 = Time()
print("The initial military time is :",time1.printMilitary())
print("\nThe initial standard time is :",time1.printstandard())
time1.setTime( 7, 37, 40)
print("\n\nMilitary time after setime is :", time1.printMilitary())
print("\nStandard time after settime is :", time1.prin... | [
"www.aungkyawzaww1999@gmail.com"
] | www.aungkyawzaww1999@gmail.com |
52c9c49a2314745c804a0f7e444d3616000acd05 | 479f1d9530cd7a969063957d1ef55768f4b060dc | /modules/Server.py | 5aee92a2ab1073e662eb70ba8bcaff2d0b081a69 | [] | no_license | kenanismayilov335/FavePorn | 4b1e1287a429a844dcd772e72229f1fbccdf9872 | fc8ca60f86b48a3c2211d95b6d7c168b49548f36 | refs/heads/main | 2023-08-29T07:25:25.021818 | 2021-10-16T12:39:48 | 2021-10-16T12:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import datetime
#SERVER STATUS ATTRIBUTES
isTesting= False
sessions= {}
whiteList= [
'KarmaKunh'
]
blackList= [
]
#SERVER STATISTICS ATTRIBUTES
pics_sent= 0
video_sent= 0
user_count= 0
all_video_research= {}
all_users= []
session_reset_time= datetime.datetime.now()
user... | [
"noreply@github.com"
] | kenanismayilov335.noreply@github.com |
40298913bb95315380f176d6bd947da284ffad40 | c101831acd67a49a91259bf44a508520ffd72b06 | /Assignment3/domain.py | 5420824c6c7ececfbfb0bc2312f8b321be18f075 | [] | no_license | MihaiSilinc/Artificial-intelligence | 6744989f01c2fe44d3dea5429ac88ea38ac47bdc | 7576fd6aa9eff1d75da61efa2aabb5dbf76d6f56 | refs/heads/master | 2023-05-30T10:05:48.715575 | 2021-06-18T13:49:46 | 2021-06-18T13:49:46 | 378,163,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,813 | py | # -*- coding: utf-8 -*-
from random import *
from utils import *
import numpy as np
from heapq import nlargest
import itertools
# the glass gene can be replaced with int or float, or other types
# depending on your problem's representation
class gene:
def __init__(self):
# random initialise the gene acco... | [
"mihaisilinc@yahoo.com"
] | mihaisilinc@yahoo.com |
262a5197dd5ba8597678e06daaf76597fdf97d15 | a4c9b7353a31d9aac6919fbac601cf365eee9cb7 | /social_example_project/project_specific.py | 19ff00b4d651ff7ae129143a36e8945577b6f673 | [] | no_license | crass/django-social | b885e788dd4ace57335141e7fef4106474b70c37 | cce7516dbf16509ba1e6e4bb55c6c0b7c8b9c7d9 | refs/heads/master | 2020-04-01T18:43:31.889103 | 2012-03-05T07:44:28 | 2012-03-05T07:44:28 | 3,245,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from django import shortcuts
from django.db.models import signals
from django.contrib.auth.models import User
from social.notification import Notification
# deploy contrib for a quick try
from social.contrib import comments
# auto subscribe users to objects they comment
comments.signals.comment_was_posted.connect(com... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
2968955f3edef66592f8efcbb0a5fc9bdd9b1e10 | 1bdbf12e6fa1091beeb4ce0d923664e779cda509 | /tuples.py | 7962b449b5c5faf5de4dbe4080c489c970d8225c | [] | no_license | balajisaikumar2000/Python-Snippets | d61176f3a3752861c5a355c09b27c418727b90fd | b36a642b99cb2517438f773d21654ae4fef2cc05 | refs/heads/master | 2023-01-24T05:57:03.654796 | 2020-12-05T13:38:58 | 2020-12-05T13:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #immutable
x = tuple(("apple","banana","cherry"))
y = list(x)
y[0] = "mango"
x = tuple(y)
print(x)
#creating single tuple
a = ("balaji") #this will cause an error
print(type(a))
b= ("balaji",) #correct process
print(type(b))
#count():
z = (1,2,4,1,2,6,7,8,4,6)
print(z.count(2))
#index():
m = (1,2... | [
"balajisaikumar3@gmail.com"
] | balajisaikumar3@gmail.com |
8739c3d861b4a52332c4d5679e34725d6ed4d01e | bee554d289d8f18fb04dea4adaaccb03b28e5efb | /Re/Demo1.py | 0b8c80a8a1a0dea001c3476e416326b17a91ca1f | [] | no_license | loveCanopy/Python | f24e1fce68850e895dcf24b4da6b65928ba43caf | 4bf8838b7b73596f502349b1450c7c48767e3a57 | refs/heads/master | 2021-01-10T08:17:05.101714 | 2017-03-14T08:59:42 | 2017-03-14T08:59:42 | 54,179,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #compile match split sub
import re
pattern=re.compile(r'hello')
match=pattern.match("hello world")
m=re.match(r"hell",'hellworld')
n=re.match(r"world$","hellworld")
p=re.compile(r'\d+')
r=p.split("one1two2three3four4")
f=p.findall("one1two2three3four4")
l=re.search(r'he','worhell')
print(l)
p2=re.compile(r'[abc]')
k=p2... | [
"1039431583@qq.com"
] | 1039431583@qq.com |
d63652dbb64052fd613ea28b3451203c2542516c | 9fc4767cb81fa96c920ac2a59a74448c9875c574 | /ABC/ABC067/a.py | b61046b2b452f1aff06aff4dacc332975578ee39 | [] | no_license | temp176/AtCoder | ce6a2070d8d3931256fae29303f6efc8d50902c8 | 70c5489cfdff95cb400791b63ff4a8fc3e9c3b9b | refs/heads/master | 2021-06-08T17:45:59.475097 | 2020-05-17T05:32:46 | 2020-05-17T05:32:46 | 132,405,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | A,B=[int(i) for i in input().split()]
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
print('Possible')
else:
print('Impossible') | [
"teheodks@gmail.com"
] | teheodks@gmail.com |
0aab8557c40a843eb79d544ec0964ebe1827f7b2 | 8902f2f30a35f0a87b3d40196fda7c74a883a535 | /core/tests/conftest.py | 95fc6217fe80f533e8cf88898e4482ae83bb9759 | [] | no_license | sleonardoaugusto/scanpy | e970e89c74818b438689586cd181141cb37b9e9e | 14d61d06f62a9840ad94b887512ab6da4b6744e9 | refs/heads/main | 2023-08-05T12:24:16.318014 | 2021-09-06T07:16:42 | 2021-09-07T21:55:16 | 398,474,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from pathlib import Path
import pytest
from core.pages.pages import Login, Home, Settings
from core.webdriver import Driver
from scrapper.scrapper import BASE_URL
@pytest.fixture(scope='session')
def fix_user():
class User:
username = 'bobbybackupy'
password = 'Argyleawesome123!'
secret_... | [
"sleonardoaugusto@gmail.com"
] | sleonardoaugusto@gmail.com |
34cca73a90032fba4534e5ecaff98d67950e3f3b | 3fef5ea4a88bc42a0acdb7ae581639ebbb3dd962 | /tb_store/tb_store/apps/users/urls.py | 417f3eb0393e93d10a2fd7acd9b0985ab7c96cbc | [] | no_license | ducgt/Django-Store | 96476597811c6db772e196d9cd56ef9516e1e287 | f68b7dd657b2a9c5769a3a657be083dad5b2ff11 | refs/heads/master | 2021-04-21T20:54:54.811437 | 2019-07-22T08:16:44 | 2019-07-22T08:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | from django.conf.urls import url
from rest_framework import routers
from . import views
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCount... | [
"15670339118@qq.com"
] | 15670339118@qq.com |
34e8b079677924bf95cde928c5a71e25e99cf66d | 0e294ec96263fafc3f39aa2f4bb2fff49569582e | /bach_resize.py | 370475c1ad81d44b6ac4d5448775c00103b339ee | [] | no_license | dailing/mask_rcnn | 6988f529b57fc2bfe3f79f060b3b6eeaec79330f | f499c8f98c5e9a9a23d7cbe8c1036ada81e16655 | refs/heads/master | 2020-05-25T10:37:22.463188 | 2020-04-19T10:32:04 | 2020-04-19T10:32:04 | 187,763,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import os.path
import cv2
from tqdm import tqdm
from random import shuffle
from util.augment import Compose, FundusAOICrop, Resize, ResizeKeepAspectRatio
input_dir = '../dataset/'
out_dir = '../dataset/small_pic'
os.makedirs(out_dir, exist_ok=True)
files = os.listdir(input_dir)
shuffle(files)
for ... | [
"qzyz_dailing@163.com"
] | qzyz_dailing@163.com |
98d55bb8d3c2863135d11c2f7e2e4a05ccf5512e | 95e42bbdd441f70bd5647668de0b609eb46d5edf | /Part 3 - Classification/Section 15 - K-Nearest Neighbors (K-NN)/my_knn.py | a2ee7ecebce220b0ade5b9dacd34cc208ee76e31 | [] | no_license | varunnaagaraj/ML-A-Z_Course | 1b4f90e8ab4e00a670ea1d3fe3d0bd2575bf876f | ad36d9ebcae7d04e9a8015508b9dc87f26146283 | refs/heads/master | 2020-05-02T23:59:53.165017 | 2019-03-28T23:16:47 | 2019-03-28T23:16:47 | 178,296,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | # K Nearest Neighbors
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2,3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test set
fro... | [
"varun.naagaraj@gmail.com"
] | varun.naagaraj@gmail.com |
8dfc8d52199cc913852b7553e3552f508e77e2ca | b9bd670454d308c49f80156d6f493be97d2ce696 | /Zhihu/Zhihu/settings.py | 2e5c9b9216d2481b14236bdc2e976664a2b6391d | [] | no_license | CP-0/py_spider_codes | 2cf3ee2dd8143891c0e28c5298a3e902b9a35fc4 | d7875b33c21d06b3a9af952248bf9f3acd50db93 | refs/heads/master | 2021-09-20T01:13:38.914499 | 2018-08-02T05:54:30 | 2018-08-02T05:54:30 | 112,149,605 | 83 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Zhihu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"cyj001@cyj721001.uu.me"
] | cyj001@cyj721001.uu.me |
aa39e1ee08966f77ab522c5c903530e0749a334e | 4114590f97ca3734862c9255f1a4bbc730ded8d7 | /manage.py | 968edc33bd4ccde3e25d2a75a4000a4e62c18250 | [] | no_license | filipe027/probex2018 | dea369f784f3c3ab82787736a79d3ee0a09d79f8 | 37c5bb12987cb39c0fe682d5b912f25b8dcd92c7 | refs/heads/master | 2020-03-23T05:53:22.024489 | 2019-11-10T22:10:38 | 2019-11-10T22:10:38 | 141,173,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Chuvas.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"filipe.freitas@cear.ufpb.br"
] | filipe.freitas@cear.ufpb.br |
24b38a0832ea721afae965b47d43a1cd21e4b07a | d4b67c170af87fb407d8088e1fbb8e3600231533 | /optimize_cage.py | abff3ee09cd1c2afe80a318c3456a2f3bcdd6245 | [
"MIT"
] | permissive | qingmeizhujiu/deep_cage | 404708d1c6b1659ab9b7bab6c0c9cc32f051740d | da4c07dcc5c10d44c1b040fbbd0d897ea5ab1f98 | refs/heads/master | 2022-12-07T04:26:51.625134 | 2020-09-08T08:25:11 | 2020-09-08T08:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,963 | py | """ Optimize the initial cage for a new source shape """
from __future__ import print_function
from pprint import pprint
import traceback
import sys
import datetime
import shutil
import torch
import os
import numpy as np
import pymesh
from pytorch_points.misc import logger
from pytorch_points.network.operations import ... | [
"yifan.wang@inf.ethz.ch"
] | yifan.wang@inf.ethz.ch |
ca84b1277c35cd6489cbf442d0400faa19000fa6 | 25d5b4790c94949bc4ac4e5575ef3b5e7e16c2ec | /api/models.py | f6df86e8908f2ab50fd7dea8e88700d379c6faa4 | [] | no_license | andre0shazam/DjangoRest | c5d8535ab159d7c225c817eb6c8a8399fdbbc0a5 | 421632c31538e14c6afffa0f214bf78e2f3f77f5 | refs/heads/main | 2023-06-16T06:28:04.931136 | 2021-07-09T03:36:36 | 2021-07-09T03:36:36 | 384,311,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from django.db import models
class Client(models.Model):
nome = models.CharField(max_length=30)
sobrenome = models.CharField(max_length=30)
idade = models.CharField(max_length=30)
sexo = models.CharField(max_length=30)
# Create your models here.
| [
"andredog058@gmail.com"
] | andredog058@gmail.com |
5f6fd827837ea66d8f74cc7cefddea9c8c314cc1 | 9a75cddf9eb2684dfd43cd38cd76878a0c4ff7db | /api/models.py | 94473f53a9fe498eb19214bbe8eaaf0c8803848e | [] | no_license | redcrix/amazon-scraper | 9cf178b42815b664aec9d3a604c4227d4f3ef594 | 17145d1c7d362799d2500b463f438b090dd5d09e | refs/heads/master | 2020-06-24T17:04:10.347983 | 2019-08-28T06:34:57 | 2019-08-28T06:34:57 | 199,024,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from django.db import models
class Input(models.Model):
url=models.CharField(max_length=1000)
page_no=models.IntegerField()
def __str__(self):
return self.url
class Api(models.Model):
Product_name=models.CharField(max_length=50)
by_info = models.CharField(max_length=15)
Product_url = ... | [
"contact@redcrix.com"
] | contact@redcrix.com |
2a08c1264727f25d9e966fcfe5077a7a6a878d3c | 12b6e1a471614339c6def409d374fa886823c829 | /mne_nirs/statistics/tests/test_statsmodels.py | 832f294e1f052fe1abacb380f927baf94980c38a | [] | no_license | PiranitaGomez/mne-nirs | 687913a2dbc9855987123c06ba9a58b6d815fbbb | cbf6bdcf61cccf35983006d53e3a9aff1e6fbd51 | refs/heads/master | 2023-03-11T05:38:05.913691 | 2021-02-26T02:43:54 | 2021-02-26T02:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | # Authors: Robert Luke <mail@robertluke.net>
#
# License: BSD (3-clause)
import numpy as np
from numpy.testing import assert_allclose
import pytest
import pandas as pd
import statsmodels.formula.api as smf
from ...simulation import simulate_nirs_raw
from ...experimental_design import make_first_level_design_matrix
f... | [
"noreply@github.com"
] | PiranitaGomez.noreply@github.com |
0df692a6adbec35cf1c008fd20438bfd4e45212a | 6123fe5a8c0b1d7b890558c662a16450696363f4 | /training/compare.py | 10ab58c6a28b6a28506c055d8f89c322498f052e | [] | no_license | RandallBalestriero/EMDGN | 06023b6c5b09d3badc489b543e9d57d690948488 | ce164e227e55b78b640f99d525367709a07abaed | refs/heads/master | 2022-12-31T16:47:41.591652 | 2020-10-22T02:30:43 | 2020-10-22T02:30:43 | 249,811,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | import sys
sys.path.insert(0, "../../SymJAX")
sys.path.insert(0, "../")
import numpy as np
import symjax as sj
import symjax.tensor as T
import matplotlib.pyplot as plt
import utils
import networks
from tqdm import tqdm
import matplotlib
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--std', ... | [
"randallbalestriero@gmail.com"
] | randallbalestriero@gmail.com |
93e9bc9a42dc775c374e0bc17ac9f423f8fe1b71 | a69d8dd2a2f0ba514dc4137bec9e9a279af8cc2a | /links/migrations/0003_vote.py | 01ad26a235fa08d23e59be0cc918049867743f3a | [] | no_license | JosePedroZarate/API-react-apollo | db05e86d3fc3ed0aa74875a796e5a9f222326940 | 02dc6db4619135f9f9dbedd636612a5798905f3c | refs/heads/master | 2023-05-17T21:28:43.285670 | 2021-06-14T19:07:49 | 2021-06-14T19:07:49 | 376,927,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # Generated by Django 3.1.3 on 2021-06-10 02:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('links', '0002_link_poste... | [
"jzaratespinosa2@gmail.com"
] | jzaratespinosa2@gmail.com |
59a949fbb8a08da9f8d058fcbe6e2e7aa3d462e6 | e38913d34f512b2840c22e9cb46e20863d5ec991 | /skills_kindregan.py | f008e5236f97c8a5d4a1f0b94953a7a6fef0b6d1 | [] | no_license | ultramarine7/self_assessment_4_10 | fdfd631592ef5747f929fb1af8b50763b1661e88 | b3ef7b44eca249249a4b58644ee11884e6da914f | refs/heads/master | 2021-01-10T02:01:46.857975 | 2016-04-11T16:46:52 | 2016-04-11T16:46:52 | 55,943,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,416 | py | """Skills Assessment: Lists
Edit the function bodies until all of the doctests pass when you run this file.
"""
number_list = [1, 2, 7, -5]
odd_list = []
# Originally overthought this and was trying to write a code that reproduced a list. But assumed later
# the list is 1, 2, 7, -5.
# number_list = []
# i = 1
# whil... | [
"kindc005@riveter03-ml.swna.wdpr.disney.com"
] | kindc005@riveter03-ml.swna.wdpr.disney.com |
5e1b614ea755b33c5ce4f98f3cfb783b2e3a24c5 | 51dcd31096526bfa6aeae4baea9f0f45657c6623 | /ocean/datasets/datasets.py | 81bb5f5316ed602de9d5b6f81d5883b0d3b2b7a4 | [] | no_license | sopac/ocean-portal-docker | eba5de774e5a2b3e9b019440c39e7f0041715dd9 | 159aeba7143e66fdd9ed253de935407f898b4873 | refs/heads/master | 2021-01-20T08:07:58.698449 | 2017-09-10T09:24:04 | 2017-09-10T09:24:04 | 90,103,531 | 1 | 5 | null | 2017-12-13T03:30:45 | 2017-05-03T03:19:57 | Python | UTF-8 | Python | false | false | 3,164 | py | #
# (c) 2012 Commonwealth of Australia
# Australian Bureau of Meteorology, COSPPac COMP
# All Rights Reserved
#
# Authors: Danielle Madeley <d.madeley@bom.gov.au>
import cgi
import datetime
from ocean.config import regionConfig
from ocean.core import ReportableException
class MissingParameter(ReportableExcep... | [
"sachindras@spc.int"
] | sachindras@spc.int |
3258e737d5e764ba89d735a746e74cee2d3960b6 | c27f94e58f3b2cc6e3ae313d9860d24bebd55515 | /src/training/dataprep/convert_to_parquet.py | b8699b0fbf8b1534457cd6f74be7f2865144f5b1 | [
"Apache-2.0"
] | permissive | mengdong/merlin-on-vertex | 5cea099db676c932d776c0ca61b8bcbb1dbfbc66 | 0d8ac410f6afb01ff1b2ec70b51cb5caa28a66ad | refs/heads/main | 2023-08-19T13:27:03.053988 | 2021-10-09T05:01:16 | 2021-10-09T05:01:16 | 415,205,910 | 0 | 0 | Apache-2.0 | 2021-10-09T04:55:34 | 2021-10-09T04:55:33 | null | UTF-8 | Python | false | false | 4,008 | py | # Copyright 2021 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"jarokaz@no-reply.com"
] | jarokaz@no-reply.com |
eb4e148f1f3df6fa2869bba533a6a3eea067e17f | fcc8102e3649ade30449e4ddb91536251b9896be | /code-1mwtt/ex12_bin_search.py | 3a14fbc0aecb2f3208b9a905cdc67ca3a830f351 | [
"MIT"
] | permissive | shilpasayura/algohack | b8373da344acd5b78e92c34b748cabf3ab036463 | 74e88e558244464771a18d8ed5f466a0e2acec78 | refs/heads/master | 2023-04-10T07:17:31.626591 | 2023-03-17T15:50:58 | 2023-03-17T15:50:58 | 136,417,023 | 6 | 6 | null | 2018-09-15T16:27:54 | 2018-06-07T03:28:47 | Python | UTF-8 | Python | false | false | 1,075 | py | def bin_search(xs, x):
# return the least index of an element equal to x sorted x
low = 0
high = len(xs)
while low + 1 < high:
guess = (low + high) // 2
if x < xs[guess]:
high = guess
else:
low = guess
return low
def test(test_case_xs, test_case_x, ex... | [
"shilpasayura@gmail.com"
] | shilpasayura@gmail.com |
8ae9c07b59c89ec6ed4ff6ddaa00edd00dcc9bfe | e96ed9d92cea007f98b03b7213b5daab2e3f33ea | /World.py | 06873071bd363a15c3efbe4a7c574d1187f9ce1f | [] | no_license | SterlingPeet/PyBioSim | 70a4add7fda16db1427bfbdde169c512199beb0c | b86fdff97f42cde661bb5bef584cb7e9eeaee067 | refs/heads/master | 2021-01-15T19:13:55.579793 | 2015-03-05T22:17:34 | 2015-03-05T22:17:34 | 30,716,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | '''
Created on Jan 16, 2015
@author: Arindam
'''
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
from pylab import *
import os
class World(object):
def __init__(self, width, height):
self.agents=[]
self.obstacles=[]
self.balls... | [
"arindam.b@gatech.edu"
] | arindam.b@gatech.edu |
c383feae171c9937de1ed0b92f573b81edbc2d96 | eb69eff59cfee055cdb831c886a98b27fc2c03df | /count_words_in_books/without_asyncio.py | 49e47f2f0c75dec7861d944c1d9556c8bf4bd7ee | [] | no_license | overfl0/depcon_asyncio | eb1f1600a727828f3b04b7d14184c3cf4381df5c | 09ba2318bdc866a83550530ecba5f81d2a411370 | refs/heads/master | 2021-07-01T14:53:34.508406 | 2019-12-06T10:04:49 | 2019-12-06T10:04:49 | 226,342,907 | 0 | 0 | null | 2021-02-26T02:42:29 | 2019-12-06T14:07:07 | Python | UTF-8 | Python | false | false | 373 | py | from count_words_in_books.common import links_wl
from urllib.request import urlopen
def count_words(text):
wordcount = {}
for word in text.split():
if word not in wordcount:
wordcount[word] = 1
else:
wordcount[word] += 1
def main():
for link in links_wl:
d... | [
"lukaszchojnacki2@gmail.com"
] | lukaszchojnacki2@gmail.com |
d67673100f1b976c27b6772711072121e573ee42 | 0ff58efd704400dd8ed21b1ce5781b93be7ddc80 | /wiki_split_3.py | a7f55758bb2c5badc8ed28ab64d237b19b1bdecf | [
"MIT"
] | permissive | danieleandreatta/wiki_page_stats | 452ff39b747a18c008e8ed989ea1f064e295513f | 02f342f4bf73497ffc3ca1fc2c163eb1627e72b0 | refs/heads/master | 2021-01-19T21:28:22.494149 | 2015-02-28T10:44:53 | 2015-02-28T10:44:53 | 29,706,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | #!/usr/bin/python3.4
import time
import sys
t0 = time.clock()
pages = []
with open(sys.argv[1], 'rb') as f:
for line in f:
ws = line.split()
if ws[0] == b'en' and int(ws[2]) > 500:
pages.append((ws[1].decode('ascii'), int(ws[2])))
pages.sort(reverse=True, key=lambda x:x[1])
t1 = time.clock... | [
"d_andreatta@hotmail.com"
] | d_andreatta@hotmail.com |
361dcd2a8a5f84b0725ec737cdeb87b13b46a64e | 1207c58fa92dad30050b9f3bcc1173d7e7034c73 | /mnist_tools.py | 127a5ccc739ea8502a23197d9b85c1bbf5fe0bd9 | [] | no_license | chagge/rethinking-generalization | b49cf59c8d4d2c3607fa2074a80f86d8e682150c | 317c1ae29ae119d7399e8e04e95eb903f4d1c045 | refs/heads/master | 2021-01-22T09:04:55.449746 | 2017-02-12T16:41:09 | 2017-02-12T16:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | # -*- coding: utf-8 -*-
import gzip, os, six, sys
from six.moves.urllib import request
from PIL import Image
import numpy as np
parent = "http://yann.lecun.com/exdb/mnist"
train_images_filename = "train-images-idx3-ubyte.gz"
train_labels_filename = "train-labels-idx1-ubyte.gz"
test_images_filename = "t10k-ima... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
eefab490fac85d434563527a62d7c61c21cdedd4 | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/mz_platform/services/functions/career_course_service.py | a590aa114a064a4fa0554f9cf3c981374b55dd5d | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | # -*- coding: utf-8 -*-
__author__ = 'changfu'
from mz_platform.services.functions.mz_service import MZService, Orm2Str
from mz_platform.orms.course_models import CareerCourse
from mz_platform.orms.mz_common import CareerObjRelation
from mz_platform.orms.course_models import Course
from mz_platform.orms.mz_user impor... | [
"1461847795@qq.com"
] | 1461847795@qq.com |
14f82a34f2211b09f1441103c7218d080c5601e0 | 5226b3ed1ecbafae65859049289447a1681215bd | /split_every_page.py | eaa611af6948c4df9a0837ff62ba9536961a793a | [
"Apache-2.0"
] | permissive | ClemensBasler/python-pdf-test | 35dfca34cabe3a674e092003d0bae43c05a16622 | 02a5e397c5bca05a80cb7de2250ebacd6e889ae8 | refs/heads/master | 2020-04-29T17:44:43.224042 | 2019-03-18T14:38:22 | 2019-03-18T14:38:22 | 176,305,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # pdf_splitter.py
import os
from PyPDF2 import PdfFileReader, PdfFileWriter
def pdf_splitter(path):
fname = os.path.splitext(os.path.basename(path))[0]
pdf = PdfFileReader(path)
for page in range(pdf.getNumPages()):
pdf_writer = PdfFileWriter()
pdf_writer.addPage(pdf.getPage(page))
... | [
"clemens-basler@t-online.de"
] | clemens-basler@t-online.de |
7178f8ac1e0922e8cfe3a8096f3a33236d592e8a | 6be1cdfea8c3b2fe73f9ba28da0f70c906a22ed3 | /algorithm/_abc/iterable/genetic.py | f946a449dd8e4377406af25a855bbb1dc50c3297 | [] | no_license | chivdan/evoguess | 63b52c7a376cf374994c87253726ee303ec0a2e7 | 2294dfe29369998786dd0b79b311c3efc385c895 | refs/heads/master | 2023-08-02T16:43:49.153184 | 2021-10-08T13:21:46 | 2021-10-08T13:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from .evolution import *
class Genetic(Evolution):
tweak_chunk_size = 2
name = 'Algorithm(Iterable): Genetic'
def __init__(self, crossover, *args, **kwargs):
self.crossover = crossover
super().__init__(*args, **kwargs)
def tweak(self, selected: Population):
raise NotImplement... | [
"art-pavlenko@mail.ru"
] | art-pavlenko@mail.ru |
8ddf2cf2991093f5f0b31aa38198e71470511241 | 54a73236923028a91d0427daeacfa44a82ae7e68 | /pytests/blob1.py | 581e83ca9370be5ad8af01615aebe2a449af84cf | [] | no_license | pbxrshd/transfer | 85dd3de93be73ad75ea17c52facf57a5fa47c04f | 15aed0f5087e77e048eb97af1be464a637e5eabc | refs/heads/master | 2016-09-05T15:45:48.175922 | 2015-07-09T13:46:20 | 2015-07-09T13:46:20 | 27,556,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,810 | py | #!/usr/bin/python
import cv
import time
import serial
from scipy import *
from scipy.cluster import vq
import numpy
import sys, os, random, hashlib
from math import *
top = 0
bottom = 1
left = 0
right = 1
def merge_collided_bboxes( bbox_list ):
for this_bbox in bbox_list:
# Collision detec... | [
"rshdpbx@gmail.com"
] | rshdpbx@gmail.com |
b57452e38a1139dde3005b8cd198b2ac97024466 | ca19d3793ac651292a04351aa5328fc6035afe6a | /함수버튼연습01.py | 24076841df4dd2123ba5c7121e2282cef6a58441 | [] | no_license | lyricalzy/python | fd490ab068d290bf94812927ae92aa50ab56f50f | cb0e2d712f2a14e34fbe654ba68981623af544dc | refs/heads/master | 2021-01-02T02:10:39.128811 | 2020-02-18T07:29:09 | 2020-02-18T07:29:09 | 239,447,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | from tkinter import *
def file_write():
print("저장")
fruit = ["사과", "바나나", "배"]
# 파일에 저장
fruit_file = open("fruit.txt", "w")
for x in fruit:
fruit_file.write(x + "\n")
fruit_file.close()
def file_write2():
print("저장2")
fruit2 = []
for i in range(0, 5):
... | [
"noreply@github.com"
] | lyricalzy.noreply@github.com |
fe4f0bb60158fead685319319500402ec7300cde | 9719df2dc131aa1189acef7273bee090290becd6 | /Chapter 12/E2.py | 498cf9b3da0bb1ac95ec433c8cbb8d026b8b1f4e | [
"MIT"
] | permissive | hanzhi713/thinkcs-python3-solutions | df72e9d76779a5ffb9a8f9a9316c672a021feece | 290b34df7d9c7f45daebd1af6017a03828ec8eb4 | refs/heads/master | 2020-03-31T10:03:03.301775 | 2018-10-08T17:41:10 | 2018-10-08T17:41:10 | 152,120,690 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import math
help(math)
# (a)
# 44
# (b)
# math.ceil(x)
''' Return the ceiling of x as an Integral
This is the smallest integer >= x.'''
# math.floor(x)
'''Return the floor of x as an Integral
This is the largest integer <=x '''
# (c) By using Newton's algorithm
'''def sqrt(n):
approx = n/2.0
while True:
... | [
"hanzhi713@163.com"
] | hanzhi713@163.com |
f3dd6f0fa00130a093838604fbcd31efa45166f1 | d5e4953aae14a27fed713bc2fe21ee41df9c2f92 | /current_omega.py | 89af93f5344a07989d76afd9a04a72185dd7fbf3 | [
"BSD-2-Clause"
] | permissive | j-silver/quantum_dots | c7714822741f0b0807ec254a475ddcbf7d2322d4 | 54132a3c7dd0e83e27375f6c5f6ec154065a9695 | refs/heads/master | 2021-01-22T12:12:05.048203 | 2017-02-13T17:29:14 | 2017-02-13T17:29:14 | 26,187,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
#fig.suptitle('Asymptotic current as a function of the frequency $\Omega$')
plt.xlabel('$\Omega/\\Delta$')
plt.ylabel('$I/I_0$')
plt.xscale('log')
plt.grid('on')
#plt.text(0.005, 0.15, '$\\frac{\kappa_B T}{\hbar\Delta}=1$\n... | [
"giuseppe.argentieri@ts.infn.it"
] | giuseppe.argentieri@ts.infn.it |
0f253f10f1a06bb12051b106aaf606e8818c0a2f | ad11d4b949d480054c3d6259acca0aed6aa809c7 | /07-string-manipulation.py | c157469dfa0010c72f7f45d77b6f771e016c4bd6 | [] | no_license | kamranajabbar/python3_practice | 08263e3a0a49131b38f813c6e79593f8b26bb108 | 312b3225d11cb22b1358185d9b91d971ecdf865d | refs/heads/master | 2023-03-06T07:33:55.471101 | 2021-02-03T13:40:51 | 2021-02-03T13:40:51 | 276,912,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #Chapter # 24 String changing case
name = "Kamran"
print("String in Upper Case : ", name.upper())
print("String in Lower Case : ", name.lower())
print("String in Capitale Case : ", name.capitalize())
print("String in Title Case : ", name.title())
str = "hello"
print(str[:2])
string = "my name is x"
for i in string.s... | [
"kamranajabbar@gmail.com"
] | kamranajabbar@gmail.com |
0528d2db08b2589fe1bc93ac70b28626a3b8a954 | a6d1b9bccdf8b06c7623c786c67d04ca15d3a69b | /CCNP1.py | 72b524e619673b03e67cb555737ddc556b56fbd8 | [] | no_license | amrkhailr/cbtnuggets | f6a584aa4f05dc53af213acfc202fc5caf51bac8 | d43a52ae72e3725e2eb6b8776ba609b161dca34a | refs/heads/master | 2022-09-16T02:45:34.564816 | 2020-05-30T04:38:48 | 2020-05-30T04:38:48 | 267,768,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #my_list = [1,2,3,4]
#my_list[2] = 45
#A = my_list *3
#print(A)
#my_list = [1024, 3, True, 6.5]
#my_list.append(False)
#print(my_list)
import datetime
def greet():
dt = datetime.datetime.now()
if dt.hour <= 11 :
greeting = 'morning'
elif dt.hour <= 17:
greeting = 'afternoon'
else:
... | [
"romal.amarkhail@gmail.com"
] | romal.amarkhail@gmail.com |
67a6acbe758dcaaf23938c3fc0d98b472cb4158a | bbc972524d9f0ccf95fbac30de2f7a7c0a1badf2 | /tests/unit2/test_physics_engine2.py | 3471b8c35fa6908f0a23c110a0d89d792ff38987 | [
"MIT"
] | permissive | JFincher42/arcade | e0049b84b0317a0fd9eee3702e4e6e843cc2ebac | f9eebfc4c6989e0e99d7b6dfe0409f248bfd5a44 | refs/heads/master | 2021-06-29T20:41:31.850895 | 2021-03-18T14:43:01 | 2021-03-18T14:43:01 | 226,012,595 | 0 | 0 | NOASSERTION | 2021-03-18T14:45:09 | 2019-12-05T04:00:26 | Python | UTF-8 | Python | false | false | 10,576 | py | """ Physics engine tests. """
import arcade
OUT_OF_THE_WAY = (250, 250)
def basic_tests(moving_sprite, wall_list, physics_engine):
""" Run basic tests that can be done by both engines. """
wall_sprite_1 = wall_list[0]
wall_sprite_2 = wall_list[1]
wall_sprite_2.position = OUT_OF_THE_WAY
# --- Co... | [
"jfincher42@gmail.com"
] | jfincher42@gmail.com |
0410e802c2b0556f2ca3888c0be9ecdc86e6ebad | bb64ff9d2a6f65afaa44f3be70c42c897f635552 | /lingtools/util/__init__.py | e062e4b70aba09208003b4352fa6809bd430629b | [
"Apache-2.0"
] | permissive | lingtools/lingtools | c173bfcfa1bcf1c92c94eb424f89754e9e9388aa | cd5b44a5552fdc79ec99c61dfe526face8df522b | refs/heads/master | 2021-01-21T04:25:07.160936 | 2015-01-17T19:44:21 | 2015-01-17T19:44:21 | 16,148,868 | 7 | 2 | null | 2016-09-20T14:50:05 | 2014-01-22T18:52:49 | Python | UTF-8 | Python | false | false | 26 | py | """
Utility modules.
"""
| [
"lignos@seas.upenn.edu"
] | lignos@seas.upenn.edu |
dc28c4cec7ece6aebe88802c998a185fdf40a5c3 | 28c971e96bc3236bf6988feab8d7f0b41b9d031e | /2018_Informatik_l/Ex_03/task_1.py | e844534f63ddf8195c7fc33e6ceb49518b6ecf61 | [] | no_license | Olstra/UZH | 98cc2ba3e9db0dbe4fafc0b6ac7266f2b4bf7722 | 038d6a2b0b97a7ee22988fd47f4025a70473929c | refs/heads/master | 2020-04-23T12:35:15.064379 | 2019-08-27T20:26:49 | 2019-08-27T20:26:49 | 171,174,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Please do not modify this part of the code!
grade = '-'
# Your code goes here
score = int(input("Type in your achieved score: "))
if score in range(0, 101):
score = int(score)
if score >= 90:
grade = 'A'
elif score >= 80:
grade = 'B'
elif score >= 70:
grade = 'C'
elif sco... | [
"noreply@github.com"
] | Olstra.noreply@github.com |
c6c4755f951b1c39f607d3b3cc37c99b18d92b88 | 425b8bb7ea01bfd9e59706f461e9fb7a2550a5fb | /manage.py | c5f42ea6e4c995c1c2f89f39910985906fd057aa | [] | no_license | pwbryant/superno3 | c8798b9f5caeca47ab1d9ab888832704fe7c5a8e | 96c2a14ce219b9360e38d98851d907abbd073b28 | refs/heads/master | 2021-01-01T03:47:51.129801 | 2016-04-28T21:26:17 | 2016-04-28T21:26:17 | 57,334,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "superno3.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"paulwilliambryant@gmail.com"
] | paulwilliambryant@gmail.com |
a6252bfecc3583b46f38cb2e68d103cb8493e682 | f6fd11d996bee6455e8e6cf35a2ad0b615c51665 | /saengsorn-6230403955-lab2/dict_strings.py.py | 2d75c075690291ab2e1ced056c49dddc24a1b72a | [] | no_license | Saengsorn-Wongpriew/6230403955-oop-labs | f4c80679542b44fb36cca62ebbd68038c10fbdb5 | 735dbe1c57e826bce5617884a4ada529025b112b | refs/heads/master | 2023-01-16T02:38:10.830465 | 2020-11-20T09:51:30 | 2020-11-20T09:51:30 | 284,725,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | dictionary = {
"manee": "1234",
"mana": "4567",
"chujai": "6789"
}
t = list(dictionary.items())
print(t)
v = list(dictionary.values())
print(v)
k = list(dictionary.keys())
print(k)
word = "antidisestablishmentarianism"
word = sorted(word)
print(''.join(word))
sentence = "the quick br... | [
"noreply@github.com"
] | Saengsorn-Wongpriew.noreply@github.com |
85267b1060a3e2d33902bc2af850b6da6644a4ed | 09c96fa897f9a9818c656548d1e234c40648a350 | /ls/joyous/tests/test_recurrence.py | 8150de7c95c398674e2384bad33e08d7a7727cf2 | [
"BSD-3-Clause"
] | permissive | linuxsoftware/ls.joyous | 45bfbe376c154cdbfea6ae1fa6d5e6cf9a7222b1 | 7c408d52ab935140c69f6c12379655e39e8b5ca5 | refs/heads/master | 2023-08-30T02:14:33.518824 | 2022-07-01T03:11:34 | 2022-07-01T03:11:34 | 120,979,220 | 85 | 38 | BSD-3-Clause | 2023-08-07T10:43:25 | 2018-02-10T03:02:51 | Python | UTF-8 | Python | false | false | 11,790 | py | # ------------------------------------------------------------------------------
import sys
import datetime as dt
from dateutil.rrule import rrule
from django.test import TestCase
from ls.joyous.utils.recurrence import Recurrence, Weekday
from ls.joyous.utils.recurrence import MO, TU, WE, TH, FR, SA, SU
from ls.joyous.... | [
"david@linuxsoftware.co.nz"
] | david@linuxsoftware.co.nz |
a80034d2228bbfe9990d1fb8127411bc8c05716d | 709724e7afcd3fb3247e62bcd3542f50a4addbbc | /DataDisplay/migrations/0011_auto_20180328_1054.py | 703262fe4757f91a1547243beade1c1d54f1f3f8 | [] | no_license | fuckgitb/Design-and-Implementation-of-Multi-source-and-Multi-category-Graphic-Data-Monitoring-Platform | 16a4e9de61d5f00cba88cc6b46c12416599457ca | 1af69f652f79cde986d241572f94eb0c2945445c | refs/heads/master | 2021-09-17T18:34:28.947608 | 2018-07-04T12:22:57 | 2018-07-04T12:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Generated by Django 2.0.2 on 2018-03-28 02:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DataDisplay', '0010_auto_20180328_1043'),
]
operations = [
migrations.AlterField(
model_name='headline_images',
name... | [
"781137149@qq.com"
] | 781137149@qq.com |
e9a5e3f9fdecab88a9a87cac35f2bb503c83b4a9 | fd696d4ee723adf8a6ff2ab8cfdd4491bdb6cb9e | /usuarios/views.py | 3fe47cc28a75849bb8b73512783b4f0c7253b0a4 | [] | no_license | gonzalinismo/wertu | b2fb9752c4995ad330c6df7448f2d34adecacb43 | dfcdafd489a02cdaf3bfad048064e282055c17d3 | refs/heads/master | 2020-05-31T13:27:53.403210 | 2019-06-05T14:00:56 | 2019-06-05T14:00:56 | 190,304,668 | 0 | 0 | null | 2019-06-05T14:00:57 | 2019-06-05T01:25:29 | Python | UTF-8 | Python | false | false | 1,881 | py | from django.shortcuts import render
from .forms import UserForm
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth.decorators import login_required
@login_required
def special(request):
... | [
"noreply@github.com"
] | gonzalinismo.noreply@github.com |
23134786c8fbf5948cdc7ff5c1655121e2bc1b2a | 292d6c07588d14385f6875d75adea517f0df4f23 | /Centralized_Learning/Centralized_Learning.py | d5633144153179b671209e3a47d8815afaaa53a4 | [] | no_license | wangyingwwyy/Privacy-Preserving-Federated-Learning-I | 17c236fcdda3632beb31a703893e6ff5741e1b93 | c2f22f3310eaa8dc78492b836e4cf30956eca61a | refs/heads/master | 2023-04-19T13:29:46.580799 | 2021-05-10T13:18:21 | 2021-05-10T13:18:21 | 352,018,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | import pandas as pd
import numpy as np
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow.keras import layers
from tensorflow.keras import models
from tensorflow.keras import regularizers
from tensorflow.keras.callbacks import ModelCheckpoint
from sklearn.metrics import confusion_matrix
import os
... | [
"wangyingwwyy96@hotmail.com"
] | wangyingwwyy96@hotmail.com |
bc6205660bf6d926fd613856f972bfe2f182e762 | 8dde10652d0f30f94f5991f2949511bd22085d7d | /social_media_project/groups/templates/groups/blog_project/blog/blogapp/models.py | 7f6e8d0b6590753a83151cd754120b70b4003739 | [] | no_license | Tambiebarango/social-media-clone | 43346563bb420888c8f9b84939f6edeafdbed6b7 | dafc07798fd1fd4da9918df57f5df93097675378 | refs/heads/master | 2020-05-18T10:17:03.203980 | 2019-05-01T00:40:04 | 2019-05-01T00:40:04 | 184,349,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.core.urlresolvers import reverse
# Create your models here.
class UserProfileInfo(models.Model):
user = models.OneToOneField(User) #to add more attributes to the user
#additional attributes
... | [
"theodorebarango@Theodores-MacBook-Pro.local"
] | theodorebarango@Theodores-MacBook-Pro.local |
d88fce8f8224563faf71fb2b52c67a0816d81051 | 98f96f3efb2a585805756f27483d9e91a75eecf3 | /GitHub_test_2.py | 9697ecdbcd25d73e5bf07355117d5f737bada294 | [] | no_license | Aiden-yang-qq/GitHub_test | 795f042e295da532c6295f06ba44255aeb2a59be | d2cf3a6a900c033ff79e7ef2987f733355d6da46 | refs/heads/master | 2022-04-28T07:41:02.633326 | 2020-04-30T07:42:11 | 2020-04-30T07:42:11 | 260,118,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # 试验使用Pycharm上传文件到GitHub
def main():
print('github_2试验成功!')
if __name__ == '__main__':
main()
| [
"jayskateboy@outlook.com"
] | jayskateboy@outlook.com |
ab8c1ccb0b80f94e1bbe462ae249c17cde0ff235 | ea6004b96cb045d0174e037bbf2be6261f26eff3 | /qubit/io/celery/config.py | 347d5e123d08e0cbb6104dc4abd008fccc74f9e6 | [] | no_license | RyanKung/qubit | 5dfd63eaf8874b00dfc00f004f2f54374b4f3622 | e16efece0753b693868a17cccf0633844d5d1ee0 | refs/heads/master | 2020-12-24T06:39:03.559675 | 2017-04-19T09:56:53 | 2017-04-19T09:56:53 | 73,465,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | from qubit.config import MQ_BROKER, REDIS_BACKEND
TIMEZONE = 'Europe/London'
ENABLE_UTC = True
BROKER_URL = MQ_BROKER
CELERY_RESULT_BACKEND = REDIS_BACKEND
CELERY_ACCEPT_CONTENT = ['application/json', 'application/x-python-serialize']
CELERY_TASK_RESULT_EXPIRES = 18000 # 5 hours.
CELERY_ALWAYS_EAGER = False
CELERY_DE... | [
"ryankung@ieee.org"
] | ryankung@ieee.org |
5cc99ebec398364037bbd43f6cbea2dbcaec88f0 | 76795255ca4395c0868ad29443c1afe289061acb | /colonizer/wish/scripts/run_test.py | 5b103ebe359d94d5af93c3b00b2e59bfa70e8608 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vmenajr/mongo | 337f3c779f2e2469711b051c0063feca76b2500c | 77cfdb1dfc658c592430d86b1359c6c45e031cf9 | refs/heads/master | 2021-04-03T10:04:54.571211 | 2021-03-24T15:15:00 | 2021-03-24T15:15:00 | 125,252,199 | 7 | 7 | null | 2019-11-22T22:59:20 | 2018-03-14T17:50:53 | JavaScript | UTF-8 | Python | false | false | 38,406 | py | import json
from bson.json_util import dumps
import paramiko
import argparse
import yaml
import pymongo
import concurrent.futures
import os
import datetime
from pymongo import MongoClient
import time
import subprocess
import multiprocessing
from datetime import timedelta
os_user = 'colonizer'
# for testing
#os_user = ... | [
"vickmena@gmail.com"
] | vickmena@gmail.com |
509df8769c60d81ad8721b75fff1f40f28ba7b29 | c78614f196777624efb0663342ec1de7ebd44655 | /grundlaggande_programvareutveckling/Week1Exercises/Week1Exercises/week1/src/samples/ClassObjects.py | 066722a1d04109070750f8e44a36684e6b7105f0 | [] | no_license | Dunkaburk/gruprog_1 | 4cb99b07bd2ba4b96d5f819f02906a9f9982dd8b | 088e918843c0c3e14690169eb09034a2f3d818c6 | refs/heads/main | 2023-08-31T20:50:01.540508 | 2021-10-13T13:35:55 | 2021-10-13T13:35:55 | 407,120,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | # package samples
# To package data of different types we use class objects (remember: arrays may only
# use same type of data). The data should in some sense "belong together".
# I.e. an objects is a package of variables of possibly different types
# describing some concept (a car, a dog, a hero, ... any noun ...... | [
"jonte8000@hotmail.com"
] | jonte8000@hotmail.com |
8cc063e3aace2a9b498abba1696ccf45d3457f7e | d01b06289196407adb2eebd37310b3e307965e77 | /tworaymodel.py | d8bba479234fdf8bb696b227b9b200be5b778d67 | [
"MIT"
] | permissive | Dhanesh-raj/Two-ray-ground-reflection-model | fceb2a9d042df9ebb84e34acee827f8ed13efef2 | 7465a100822950d4fdd62fdcf2f50e2b6a1f60b0 | refs/heads/master | 2023-03-17T11:12:36.811484 | 2020-03-08T08:00:16 | 2020-03-08T08:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | import numpy as np
import matplotlib.pyplot as plt
import os
# 4 set of bands to simulate (4 subplots)
b1 = ['900']
b2 = ['800', '900', '2100']
b3 = ['800', '900', '1800', '2100']
b4 = ['800', '900', '1800', '2100', '2600']
# u value used to simplified two-ray model, assuming that two rays are always combin... | [
"noreply@github.com"
] | Dhanesh-raj.noreply@github.com |
e283276355eca71bd1e71714aca213139b8934d2 | 7b11794013b6c186dad756f5682d038e4eb527d4 | /fuber/models/taxi.py | e234ef47bdbd170d6a9e90b6bda04ef5ebe90fab | [] | no_license | himani93/Fuber-Taxi | 6e9af17d2ecb3877307504fad187d530ba9b8ac8 | ba3a0e80e17f830a83ae1df51c483250788d471a | refs/heads/master | 2020-03-09T21:59:34.509058 | 2018-04-09T06:42:51 | 2018-04-09T06:42:51 | 129,024,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import helper
from exceptions import (
InvalidTaxiLicenseNumberException,
InvalidTaxiColorException,
InvalidLocationException,
)
from location import Location
class Taxi(object):
def __init__(self, license_no, color="yellow", location=None):
if not license_no:
raise InvalidTaxiLic... | [
"himani93@gmail.com"
] | himani93@gmail.com |
965ff358445f18342fd71501800fa948bcb92a9c | f7f0df40f586014cc17961cb3f12cdfa8f87df56 | /src/Test1/test6.py | e723e5e445c659e7cf90e6dc3f64cffbf1570fa9 | [] | no_license | muxuehen/pythonStuty | 5274a1a8c97bf67de19f07e07357d9710dc4967b | c99f8722218c4a08aefdcbe1987fa567e07cf10c | refs/heads/master | 2020-03-29T17:17:42.790847 | 2014-12-09T09:09:57 | 2014-12-09T09:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #coding=utf-8
'''
Created on 2014年12月4日
@author:
'''
i = 9
print i | [
"zhangxuli@boco.com"
] | zhangxuli@boco.com |
93e15d15e8a81c03ff3105f917050a361ae6a3d9 | 1bd53b731c7b2fce066204ab6e545020c6213468 | /code/neural_network.py | 9a4390e19fe96e6f4b9d8f6b7abbd250c4ae0cfa | [] | no_license | dougbrion/machine_learning_cw | 2624fd794a415323e4d9391653738e2230f83245 | d1e24df477c66c1b78416bf96c17d77e873abdee | refs/heads/master | 2020-04-19T14:03:22.503598 | 2019-01-29T22:00:55 | 2019-01-29T22:00:55 | 168,232,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,186 | py | import tensorflow as tf
import helpers as hp
import numpy as np
def softmax_fn(_X, _inputs, _units):
W = tf.Variable(tf.random_normal([_inputs, _units]), name='weight')
b = tf.Variable(tf.random_normal([_units]), name='bias')
y = tf.nn.softmax(tf.matmul(_X, W) + b)
return y, W, b
def selu_fn(_X, _inpu... | [
"db1415@ic.ac.uk"
] | db1415@ic.ac.uk |
84e879737e214d539d0b8ef455b15232c549954d | bdd738e4190ec53532a7278a7896a8053706d713 | /Contents/Code/siteLubed.py | c48ec08070a44ca4cfd13ad450d1ea658dcdc7b1 | [] | no_license | mutluerol/PhoenixAdult.bundle | c7709a2572631bb4033634a3cb21f1960f1e3929 | 6305158702d6e14fd5fe85e5bac9d8d3a96ba604 | refs/heads/master | 2020-04-15T07:49:09.118583 | 2019-01-07T23:02:01 | 2019-01-07T23:02:01 | 164,502,693 | 0 | 1 | null | 2019-01-07T21:55:18 | 2019-01-07T21:55:18 | null | UTF-8 | Python | false | false | 3,529 | py | import PAsearchSites
import PAgenres
def search(results,encodedTitle,title,searchTitle,siteNum,lang,searchByDateActor,searchDate,searchAll,searchSiteID):
url = 'http://lubed.com/video/' + searchTitle.lower().replace(" ","-")
searchResults = HTML.ElementFromURL(url)
searchResult = searchResults.xpath('//div... | [
"pahelper@sahasrahla.com"
] | pahelper@sahasrahla.com |
92988e5abacf6500ac71f7c3cc407f34fa9882ab | 3b5f28ed1505c68f94ec1df496fe061d110294ce | /lixian.py | cd8a2380685cb4b548c5c15174ac20dd5d8358d0 | [
"MIT"
] | permissive | yuanlizbyy/xunlei-lixian | 089d388fbf4023bfae217906268c19dde43528e1 | fe96ee19c1af8a268dc39818a5e8d33ff71e50ee | refs/heads/master | 2021-01-17T21:48:13.932068 | 2012-12-10T05:35:43 | 2012-12-10T05:35:43 | 7,854,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,808 | py |
__all__ = ['XunleiClient']
import urllib
import urllib2
import cookielib
import re
import time
import os.path
import json
from ast import literal_eval
def retry(f):
#retry_sleeps = [1, 1, 1]
retry_sleeps = [1, 2, 3, 5, 10, 20, 30, 60] + [60] * 60
def withretry(*args, **kwargs):
for second in retry_sleeps:
tr... | [
"iambus@gmail.com"
] | iambus@gmail.com |
a034cf49cfa642beaac238623dc1c694bb4c2ef7 | e94c3050f391380848b3ab82992e9b1bb3803b49 | /node_modules/node-sass/build/config.gypi | d2df84ecde9a71790827afc1e98440e4362ba0ba | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JaneGav/Template_email | cf6a8e0dd490697a763d28ee1067c8280ead0fe4 | 5b4880eabe822ca40a704d18ffcc79dc567c8b70 | refs/heads/master | 2020-04-19T17:05:38.243447 | 2019-01-30T10:33:57 | 2019-01-30T10:33:57 | 168,323,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,614 | 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,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"eugeniavad@gmail.com"
] | eugeniavad@gmail.com |
d57d6288a18c44ff8f681c65beb55e60255251a6 | 73868ce5fe6fd1e0c7c88f0779f2dfacab22d6e3 | /skiplist.py | 51d525fe284669e71824695a6dee9dab2531d58f | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | vincentvbh/pqm3 | f73185b878e6a6c5bb40d39a1031fda4ea201058 | 138ea1b3fee78814fac680da596ecb31ea11fdc3 | refs/heads/master | 2023-08-29T20:15:14.497159 | 2021-10-22T02:12:57 | 2021-10-22T02:12:57 | 395,266,784 | 0 | 0 | null | 2021-08-12T09:35:06 | 2021-08-12T09:35:05 | null | UTF-8 | Python | false | false | 9,968 | py | skip_list = [
{'scheme': 'kyber1024', 'implementation': 'm3', 'estmemory': 12288},
{'scheme': 'kyber512', 'implementation': 'm3', 'estmemory': 7168},
{'scheme': 'kyber768', 'implementation': 'm3', 'estmemory': 9216},
{'scheme': 'saber', 'implementation': 'm3', 'estmemory': 22528},
{'scheme': 'sikep4... | [
"git@rpls.de"
] | git@rpls.de |
7e106c21d729df1b192289fad2ebdb0b3a916922 | d49d0428835d9def6a6eb8f255b4f352b2f913bd | /GF_company.py | ed6ab043da835db4e393c1c6326fd8fd4253bddd | [] | no_license | UCanCallMeJia/wechat_GF | 2e6b88dc1e4cb8c3c0ad7a94349666af27e46940 | 831c6f85c37b82e39b4ff23301d201a12978cc5c | refs/heads/master | 2020-08-30T03:30:21.878953 | 2020-07-01T02:08:49 | 2020-07-01T02:08:49 | 218,248,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,721 | py | from __future__ import unicode_literals
from wxpy import *
from requests import get
from requests import post
from platform import system
from os import chdir
from random import choice
from threading import Thread
import configparser
import time
import sys
# 获取每日励志精句
def get_message():
r = get("htt... | [
"noreply@github.com"
] | UCanCallMeJia.noreply@github.com |
d8e4ec2df7ef5c4033d1ea233f4c92691b53493b | d6235a8215b0b57105336039c49ccb78400d5376 | /src/utils/inference.py | 4f9182b0b8879b2fa3e8c8abcb5910b063501c3a | [] | no_license | Ibrahimkhawaja/Facial_Emotion_Recognision | 61d40da83e9015af805ac6479f647caea9f33219 | 9fab1117b9e95a40a50813bcc28cc6778238f423 | refs/heads/master | 2022-12-01T11:43:26.440616 | 2020-02-05T17:09:31 | 2020-02-05T17:09:31 | 238,501,241 | 0 | 0 | null | 2022-11-21T21:16:18 | 2020-02-05T16:52:43 | Python | UTF-8 | Python | false | false | 1,398 | py | import cv2
import matplotlib.pyplot as plt
import numpy as np
from keras.preprocessing import image
def load_image(image_path, grayscale=False, color_mode="rgb", target_size=None):
pil_image = image.load_img(image_path, grayscale, color_mode, target_size)
return image.img_to_array(pil_image)
def load_detectio... | [
"khawajaibrahim2011@hotmail.com"
] | khawajaibrahim2011@hotmail.com |
339e40ac12cbd66cb7e200816179b447721ff4d6 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/curses/has_key.py | 7260fcff66f2171899806164e7f08e769cb9a4e2 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,057 | py | # 2015.11.10 21:35:00 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/curses/has_key.py
import _curses
_capability_names = {_curses.KEY_A1: 'ka1',
_curses.KEY_A3: 'ka3',
_curses.KEY_B2: 'kb2',
_curses.KEY_BACKSPACE: 'kbs',
_curses.KEY_BEG: 'kbeg',
_curses.KEY_BTAB: 'kcbt',
_curses.KEY_C1: 'kc1... | [
"info@webium.sk"
] | info@webium.sk |
93758cce46271f9984e7c318b94f42934b31a49c | 6c412b6f6c112b40e80587a17db537c4683d9dd0 | /angle/predict.py | 9a57c713468df723c5f4a5de33866fba64bfc78d | [] | no_license | laugha/Chinese-OCR-3 | 50df8904e654413b8816c78866e554579de85678 | 5bc9f201bacf95af38b4eadf471a231f6c93aa1b | refs/heads/master | 2021-01-26T11:03:11.677400 | 2020-02-11T04:28:15 | 2020-02-11T04:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# _Author_: xiaofeng
# Date: 2018-04-22 18:13:46
# Last Modified by: xiaofeng
# Last Modified time: 2018-04-22 18:13:46
'''
根据给定的图形,分析文字的朝向
'''
# from keras.models import load_model
import numpy as np
from PIL import Image
from keras.applications.vgg16 import preprocess_inp... | [
"noreply@github.com"
] | laugha.noreply@github.com |
0b6a1ba7dbe457aa088b69afbd6d89460cdb29b7 | fbc756ec0ee27e0a262f3bcb30954c1f7e10b6cd | /eb-cli/lib/python2.7/site-packages/ebcli/controllers/console.py | 581f8ecc714ad6aac1919cc8f32bb97f28a16f14 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | workivate/step-elastic-beanstalk-deploy | a541e2521a77f049c7a03e6e391a73cc1c45c06f | 5b0bcfac4e8557ce1dc84c0254e2264708da396c | refs/heads/master | 2020-02-26T17:18:00.125354 | 2015-09-17T10:26:25 | 2015-09-17T10:26:25 | 24,529,988 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | [
"teengenerate@gmail.com"
] | teengenerate@gmail.com |
32d77a5dfc12bcdd2213bbf1a7edc386cfbd04fa | 3b74ecbc020ba5d5db436e248200cab14a0d13f4 | /spider/spiders/OLD/spiderGenerico.py | 3ddccf28cd18f83a6247f7b8f5c3c51e3ffbad06 | [] | no_license | paologastaldi/spider | ec37577435c6138f60c2514ee36429bfcf6b4bae | eae624dd7ad56646d51458b274aada91dd537390 | refs/heads/master | 2021-01-21T13:34:03.270087 | 2016-05-14T08:43:48 | 2016-05-14T08:43:48 | 55,077,930 | 1 | 1 | null | 2016-05-14T08:43:49 | 2016-03-30T16:12:46 | HTML | UTF-8 | Python | false | false | 788 | py | import scrapy
from scrapy.selector import Selector
from spider.items import ElementoDaEsaminare
class DmozSpider(scrapy.Spider):
name = ""
allowed_domains = []
start_urls = []
def __init__(self, name, allowed_domains, start_urls):
self.name = name
self.allowed_domains = allowed_domains
... | [
"paolo97.g@gmail.com"
] | paolo97.g@gmail.com |
f2fdb6bcb053fac10b934794a703af5abc5ba306 | 30acccad28c4e353ab6e38eef209c1752c18719f | /lambda_functions.py | de83ae4d75cc08575013cae4b816330fb8652eec | [] | no_license | phumidea/dropbox_app_mockup | ede58674f176b635a873641c08b54edadba1bdda | 1395a33032926df0cb95a80f79831cd0f3ec41d8 | refs/heads/main | 2023-04-06T13:35:34.748967 | 2021-04-02T10:32:09 | 2021-04-02T10:32:09 | 353,984,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,029 | py | import json
import boto3
from datetime import datetime, timedelta
BUCKET_NAME = "phum2021" # Bucket name keep user data
s3 = boto3.client('s3') # Connect with S3
dynamodb = boto3.resource('dynamodb') # Connect with DynamoDB
table = dynamodb.Table('myDropboxUsers') # Connect table
def lambda_handler(event, context):
... | [
"noreply@github.com"
] | phumidea.noreply@github.com |
26a12bd802e8a93364e938b58d788e87da974974 | 5d095521eb9a4e3a58c98938775da390b988098e | /Python/BatterUp.py | 54369fef4c202b26c5a31429b0750a7430bf7421 | [] | no_license | houstonwalley/Kattis | c50932ccba12f7a7777c01caff1383d11d90d698 | c825e5f612f2c9f11de1fad610f6b830a4be45af | refs/heads/master | 2021-07-21T10:38:11.580292 | 2020-09-01T19:37:38 | 2020-09-01T19:37:38 | 210,641,358 | 0 | 0 | null | 2020-04-28T03:34:39 | 2019-09-24T15:51:00 | Python | UTF-8 | Python | false | false | 115 | py | n = int(input())
s = map(int, input().split())
v = []
for m in s:
if m >= 0:
v.append(m)
print(sum(v)/len(v))
| [
"noreply@github.com"
] | houstonwalley.noreply@github.com |
6861c429f30b05eaab663c0de04d4e13e8a6785c | a7bf172fc3ece3fd103a4d295c0c68636a99236f | /vDictEspn.py | 670d05a708a30373c64bc4a0487d3366efe8aeb7 | [] | no_license | thedaynos/fantasyDraftHighlights | e781e098bf63bed31f28a2ce911bb0208c82b3d8 | 3cf0b3e63896183bbf03ea7cbcaff16ccf161024 | refs/heads/master | 2023-06-07T11:52:06.066918 | 2021-07-20T22:25:45 | 2021-07-20T22:25:45 | 197,640,436 | 21 | 7 | null | 2023-05-30T18:58:19 | 2019-07-18T18:49:11 | Python | UTF-8 | Python | false | false | 17,396 | py | vDictEspn={
"RBNYGSaquonBarkley":"",
"RBDalEzekielElliott":"",
"RBCarChristianMcCaffrey":"",
"RBNOAlvinKamara":"",
"RBNYJLeVeonBell":"",
"WRHouDeAndreHopkins":"",
"RBLARToddGurleyII":"",
"WRGBDavanteAdams":"",
"RBLACMelvinGordon":"",
"WRNOMichaelThomas":"",
"WRAtlJ... | [
"noreply@github.com"
] | thedaynos.noreply@github.com |
8939b092b0f7a5321485af541808b9e5b0c6e4e9 | 30f88ef95fc374335574835342f84b75a722d0b5 | /tools/vcoco/train_net_pd.py | dbc8fffa66de8933c3229e661372dd1bb971c82e | [] | no_license | MuchHair/PD-Net-Extended-Version | 8f4c1a69d97e1d95167555dcf1af638aad3f8c14 | 84814817efdd0700570ddcdbbddbb25cdefbb8c6 | refs/heads/master | 2023-04-22T05:30:48.832382 | 2021-04-25T12:27:48 | 2021-04-25T12:27:48 | 292,491,878 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,131 | py | import sys
sys.path.insert(0, "lib")
from dataset.dataset import Features_PD_VCOCO
from net.model import PD_Net
import os
import itertools
import numpy as np
import torch
import torch.nn as nn
from tqdm import tqdm
tqdm.monitor_interval = 0
import torch.optim as optim
from torch.autograd import Variable
from tensorbo... | [
"eexubin@mail.scut.edu.cn"
] | eexubin@mail.scut.edu.cn |
69ad3dd86512c379e348acbd6e38a601c72bb95e | 3da29484b8d6d598c75dc5446be89c96c8209e3e | /data/BK_MC_2012_27163003_Beam4000GeV-2012-MagDown-Nu2.5-Pythia8_Sim08a_Digi13_Trig0x409f0045_Reco14a_Stripping20NoPrescalingFlagged_ALLSTREAMS.DST.py | f2e099a204b7805f9a7737402bc9f7313e7a5e16 | [] | no_license | betatim/glowing-wookie | 71560dd14cd23466e629dadc6de270c04d848016 | fb327714cd066c7c58864d6aec8424271d147f06 | refs/heads/master | 2016-09-05T19:39:30.174535 | 2014-08-08T16:25:21 | 2014-08-08T16:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,844 | py | #-- GAUDI jobOptions generated on Thu Jul 18 16:26:43 2013
#-- Contains event types :
#-- 27163003 - 206 files - 3513735 events - 736.90 GBytes
#-- Extra information about the data processing phases:
#-- Processing Pass Step-124620
#-- StepId : 124620
#-- StepName : Digi13 with G4 dE/dx
#-- ApplicationN... | [
"thomas.bird@cern.ch"
] | thomas.bird@cern.ch |
f88bc082dba510ad310965033149a2cd4b5b9749 | c3d0011d7842db09a57d185fb38a54e7da2db698 | /app/tests/conftest.py | 07bfbf51f34fc971d201b0291afd1a69596004fc | [] | no_license | ChiaYinChen/fastapi-practice | eebc988cd59ffa37e8c54f0cdf39094bfc4ead8f | 61d07502945d6a3b71c842b9fd47062ee4a412cd | refs/heads/master | 2023-09-02T03:30:39.634621 | 2021-11-10T03:25:56 | 2021-11-10T03:25:56 | 410,732,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | """Pytest's conftest.py."""
import logging
from typing import Dict, Generator
import pytest
from fastapi.testclient import TestClient
from sqlalchemy.orm import Session
from app import color_formatter
from app.core.config import settings
from app.db.session import SessionLocal
from app.main import app
from .utils.use... | [
"awdrg1210@gmail.com"
] | awdrg1210@gmail.com |
39998b9a9178ac4d0bdf68c6631a1fd94392ee68 | 517756b136e1a2f7fb1929adab09cd6db900f9bf | /web/pages/migrations/0003_wikipage_wikipagerelatedlink_delete_freeformpage.py | c698b953c06790f4e36ad180d61f7f98939e0f5e | [] | no_license | andreiavram/scoutfile | 6b67d07693a9b5d5f4d78247f2ec88eacc52dcc5 | 999ee76d82590af4b7c9f067eb949a48ffda5500 | refs/heads/develop | 2023-07-22T21:16:17.099526 | 2023-03-01T09:24:38 | 2023-03-01T09:24:38 | 21,454,635 | 0 | 0 | null | 2019-02-18T00:51:20 | 2014-07-03T08:07:07 | Python | UTF-8 | Python | false | false | 2,280 | py | # Generated by Django 4.1.7 on 2023-02-24 17:05
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.blocks
import wagtail.contrib.table_block.blocks
import wagtail.documents.blocks
import wagtail.fields
import wagtail.images.blocks
class Migration(migra... | [
"andrei.avram@gmail.com"
] | andrei.avram@gmail.com |
2746759beec23a93c8483f12f67e4e24dfdbd05c | 2a256bce43ae0dcdd0699cb89744d7dfefda53e7 | /genres.py | 1e0de8859bf36a1d096c3f79047544cdfcb88c23 | [] | no_license | mainul123/Project-for-Compsci | addb0534d9ff17d19f31ae7450b7c4a3296cf54c | 137fb65da794bb1ac762627f065b8d619d9778ef | refs/heads/master | 2021-08-30T19:25:01.428367 | 2017-12-19T05:41:31 | 2017-12-19T05:41:31 | 110,990,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | genres = [{"rock": ["symphonic rock", "jazz-rock", "heartland rock", "rap rock", "garage rock", "folk-rock", "roots rock", "adult alternative pop rock", "rock roll", "punk rock", "arena rock", "pop-rock", "glam rock", "southern rock", "indie rock", "funk rock", "country rock", "piano rock", "art rock", "rockabilly", "a... | [
"you@example.com"
] | you@example.com |
db77a8b668dc1cbb0fb88e903388300504290f7c | 41c1417ff294878ab3b46d5d3db1cc9d63ba07e5 | /UI_data_Alert.py | 264a0798b5936c11506ff806ed669889c9f8d34f | [] | no_license | eong93/QGIS_DataAlertPlugin | 006404b14d174f3d552d32cd17ca1b2d8af82c95 | 5aec2a5ad44e95f8fcf177c8cc7825ffa64d1258 | refs/heads/master | 2021-01-10T12:37:40.688394 | 2015-10-01T19:09:42 | 2015-10-01T19:09:42 | 43,501,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'data_Alert_dockwidget_base.ui'
#
# Created: Tue Sep 29 12:29:50 2015
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fro... | [
"eric.ong@digitalglobe.com"
] | eric.ong@digitalglobe.com |
c9135529a7f8dec9f1c3f1914cd91e165f7eab43 | b252d1f8ec5f68bf5f935c000e0bb011718ea691 | /virtualenvs/ninetyseven/src/savoy/core/template_pages/middleware.py | 117c03647f31b1ef61820c131b21d2f9d5190506 | [] | no_license | syncopated/97bottles | 2ceace7ed6a852bef61796733a08eb878b045152 | 08f4210e3de77c4564fcc8c1a2e9b47a0088249f | refs/heads/master | 2016-08-05T07:48:51.109089 | 2012-12-02T17:38:35 | 2012-12-02T17:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from django.http import Http404
from django.conf import settings
from savoy.core.template_pages.views import templatepage
class TemplatepageFallbackMiddleware(object):
def process_response(self, request, response):
if response.status_code != 404:
return response # No need to check for a flatpa... | [
"keith@dkeithrobinson.com"
] | keith@dkeithrobinson.com |
e634b0b58082403c727066d3ea4845f10e9599f7 | ad31c7890508030c41699f4d98a47aa4b2cd1765 | /models/ndpm/priors.py | 473d31285df93dd7ffb72100aa3e08b3526c3111 | [] | no_license | Chandan-IITI/online-continual-learning | cd821f7f189251b5b183b75c2db50087930f731a | 1050d1b716c51edc83799e2ecee38da66a169931 | refs/heads/main | 2023-03-05T18:10:08.085657 | 2021-02-10T19:42:27 | 2021-02-10T19:42:27 | 340,447,633 | 2 | 1 | null | 2021-02-19T17:52:42 | 2021-02-19T17:52:42 | null | UTF-8 | Python | false | false | 1,610 | py | from abc import ABC, abstractmethod
import torch
from utils.utils import maybe_cuda
class Prior(ABC):
def __init__(self, params):
self.params = params
@abstractmethod
def add_expert(self):
pass
@abstractmethod
def record_usage(self, usage, index=None):
pass
@abstrac... | [
"zhedamai0126@gmail.com"
] | zhedamai0126@gmail.com |
0bfb21e8e2ff9add1ccd3f4e5d69776fe7878c58 | 712a7acca58d9f4b5dc2a107f92354aaa5caec65 | /app/new_feature.py | 3e10145111e40f254ebe8966e05ba5cb4286bc34 | [] | no_license | myd10/testing-123-2.0 | 2332ad5f529765be30509f4b35cb60371569a892 | 59de9dbee3e506b9769dd7c94d2e5f179ecd2fc0 | refs/heads/master | 2022-04-23T07:02:31.742780 | 2020-04-19T21:21:06 | 2020-04-19T21:21:06 | 255,473,162 | 0 | 0 | null | 2020-04-19T21:21:08 | 2020-04-14T00:39:04 | Python | UTF-8 | Python | false | false | 79 | py | #new feature on my-new-feature branch
def announce():
return "Hello World" | [
"myd10@georgetown.edu"
] | myd10@georgetown.edu |
dd37637d40b6aa1f04a8fc1d4cec182d38ff2386 | f9ac779ee4de9f66da3c9d9585785fa95ca0e7a2 | /h5pyd/_apps/hscopy.py | 022cf90d09e0337cf4bb865de2f851d3b82c043a | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | t-sommer/h5pyd | e4cb145e7b523972062de7ce86d500fe3473003a | a99860928f5845079800f761480e51ca9be0d759 | refs/heads/master | 2020-04-20T06:09:58.717543 | 2019-01-31T07:15:09 | 2019-01-31T07:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,691 | py | ##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# Th... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
1dca4c5c4032b6d7106218048591403bb413149b | 2cafc4981f85e9a25cceb18af1e936e19268e0ee | /scapy_tcp_ACK_discovery.py | ffc67cf055318e0203ce98a8c94e2e35b256b78e | [] | no_license | lapinrepository/ethicalhacking | fdd0647bffeb87544ede182eb62544ee922579fd | 14fac0bee8ca5f58c5499e4e91323e005a5e6c25 | refs/heads/master | 2021-10-09T15:14:29.976534 | 2018-12-30T09:30:19 | 2018-12-30T09:30:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #!/usr/bin/python
from scapy.all import *
import logging
import subprocess
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
import threading
screenlock = threading.Semaphore(value=1)
def tcpackscan(prefix, addr):
try:
answer = sr1(IP(dst=prefix+str(addr))/TCP(dport=80, flags = 'A'), timeout=1, verbose=0... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b8e40021cad5f7464ecf970db88946677e9f121d | 3bf1480a1a00209bc8ef8a66e1995549987ae70e | /utils/scripts/OOOlevelGen/src/levels/level_2_1.py | b1a083b100c10f780210b20af5f57d1be6d5f578 | [
"MIT"
] | permissive | fullscreennl/bullettime | 284a8ea320fb4adabc07c3639731a80fc4db5634 | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | refs/heads/master | 2020-03-29T01:56:26.627283 | 2018-10-11T19:09:48 | 2018-10-11T19:09:48 | 149,414,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | import LevelBuilder
from sprites import *
def render(name,bg):
lb = LevelBuilder.LevelBuilder(name+".plist",background=bg)
lb.addObject(Bullet.BulletSprite(x=0, y=0,width=10,height=10,angle='0',restitution=0.5,static='false',friction=0.5,density=3,spawnEvent='onShoot'))
lb.addObject(Hero.HeroSprite(x=34, y=... | [
"github@fotoboer.nl"
] | github@fotoboer.nl |
a2ef8e111e897f9bbacafce69f64708f2fef7967 | e41d21d3f2db1e3f3bf3f34da357a6fa70670e9f | /03/2.py | 535fd215c07861bc21932f1998f88a3e52566918 | [] | no_license | reynoldscem/aoc2016 | 98536a220461365e004ce370db41e540277c513a | 432415d1c72f7eac6b386627a3f235e2233964cb | refs/heads/master | 2020-06-13T22:07:48.734760 | 2016-12-21T09:11:30 | 2016-12-21T09:11:30 | 75,547,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from itertools import permutations
import numpy as np
import argparse
import os
def build_parser():
parser = argparse.ArgumentParser()
parser.add_argument('filename')
return parser
def is_valid(triangle):
for permutation in permutations(triangle):
if np.sum(permutation[0:2]) <= permutation[2... | [
"reynoldscem@gmail.com"
] | reynoldscem@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.