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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34aaf1cbe469aa18b95a2eb1bd4386a5239eb618 | 3996bd434ba9b21349e7538f934a1c9959306119 | /src/gluonts/model/tft/_layers.py | f6f45b7a150642cf97a78e2fbeba16725dd40926 | [
"Apache-2.0"
] | permissive | dibgerge/gluon-ts | 674af7863027e731d37c4da19e494118c11b91f2 | 77029660c6ec4b6e80d6450d6dd640d6652f5b06 | refs/heads/master | 2021-06-19T20:23:57.481626 | 2021-05-22T10:50:16 | 2021-05-22T10:50:16 | 214,877,421 | 1 | 0 | Apache-2.0 | 2019-11-08T00:06:16 | 2019-10-13T19:05:36 | Python | UTF-8 | Python | false | false | 16,588 | py | # Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | dibgerge.noreply@github.com |
440b78a37a96a8dae061a6196c7d596ca42a380b | 4afeb654edac3e995a319ea7a380332be0225563 | /Recursion/fibonacci.py | e3745d2038a7c3c9790614fd0c021a3bee69d583 | [] | no_license | KUMAWAT55/Data-Structure | 345d7abf70c2c84a03575fc0f9565c9265e29136 | f9755a161b91822c7227f0d682398f7d6e95ac53 | refs/heads/master | 2022-09-08T08:21:26.345903 | 2020-05-28T06:38:42 | 2020-05-28T06:38:42 | 260,788,567 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | def fibR(n):
if n==1 or n==2:
return 1
return fibR(n-1)+fibR(n-2)
print (fibR(5)) | [
"RHTKUMAWAT55@GMAIL.COM"
] | RHTKUMAWAT55@GMAIL.COM |
11554a99127ec3db0ed7491c4cd89a7d44588d9b | 11e4bd1b29a66b97df9b3b32b2827eac88a24fd8 | /pysrc/128.py | 6bbdf078a543056afc353ab0e21f3fc963fb8512 | [] | no_license | linkinpark213/leetcode-practice | 4db17462b67e7a1a34184aada041cb3854f78385 | 13379e6fdd9299c606889fefa0a38426ef4fa5e7 | refs/heads/master | 2021-07-08T16:16:28.428003 | 2020-09-16T14:30:51 | 2020-09-16T14:30:51 | 185,179,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from typing import List
class Solution:
def longestConsecutive(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
s = set()
for num in nums:
s.add(num)
longest = 1
for num in s:
if not num - 1 in s:
i = num + 1
... | [
"linkinpark213@outlook.com"
] | linkinpark213@outlook.com |
753e7c8e535bbb3c45f626ed661a5971f336b2bd | e896e5c884f4e813709fdcba1dffe9dcab0897b2 | /blog/migrations/0002_auto_20200630_1441.py | 13312ed96e5261d83beeb622e387e1c1e9f12e99 | [] | no_license | iamrraj/Django_Restful_API | 66a0a923200db8c0d9e7cf7387c6fb8b8ce92893 | 224e980ebd5f627bd2e6ac60fcfae906bcdf14da | refs/heads/main | 2023-01-13T11:10:31.315985 | 2020-11-08T10:08:36 | 2020-11-08T10:08:36 | 311,024,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Generated by Django 2.2.8 on 2020-06-30 12:41
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('taggit', '0003_taggeditem_add_unique_index'),
('blog', '0... | [
"rajr97333@gmail.com"
] | rajr97333@gmail.com |
01b8a2bfc4987b27f6b00f5271730eb49b19b702 | 87fd4beaf5c55211898f3a6805f0ed1a1aba44d5 | /Blender Python Scripts/src/LoadObjects.py | b0f2772d13d1b429626481158256041c323e1382 | [] | no_license | YogiOnBioinformatics/ProteinVR | 97c7b4efd86e4724ea1db624ab554608a2c607b5 | 7ce60498c82819f1522eb0bb02215a772b89c82d | refs/heads/master | 2021-07-07T10:50:27.237357 | 2020-07-30T15:45:22 | 2020-07-30T15:45:22 | 163,353,055 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import os
import bpy
# get list of all files in directory
os.chdir('/home/yor5/Desktop/4.3i_LifeScienceDB_JP') #CHANGE THIS TO BE YOUR DIRECTORY WHERE YOUR TXT LIST OF ALL OBJECTS THAT YOU WANT TO IMPORT IS LOCATED
file_list = [line.strip() for line in open("objs.txt")] #CHANGE THIS TO BE THE TEXT FILE WITHIN THE CH... | [
"yraghav97@gmail.com"
] | yraghav97@gmail.com |
90d7a3b87c8ff1e45d159609712f2a68b758362a | dedaef4189a237edccba045e02fd6c9b6ab8d4bc | /mininet_wifi/scripts/uno.py | 86776319d635514ba625f8a0a7c38f9b40442aca | [] | no_license | miraitowa/Mechanism-to-optimize-the-Access-Point-selection | 3530a4a9fe85e999f6f1931549f76810e7ad3451 | 7f9ffd1ca21bd11ddd291b1e7b2eb73b432081a1 | refs/heads/master | 2022-12-26T00:46:39.807663 | 2020-10-05T14:21:09 | 2020-10-05T14:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | #!/usr/bin/python
"""AP1------AP2------AP3"""
from mininet.net import Mininet
from mininet.node import Controller
from mininet.link import TCLink
from mn_wifi.node import OVSKernelAP
from mininet.cli import CLI
from mn_wifi.cli import CLI_wifi
from mininet.log import setLogLevel
from mn_wifi.net import Mininet_wifi
... | [
"ajcastillo@unicauca.edu.co"
] | ajcastillo@unicauca.edu.co |
bdcd07770f438fe47532383868fd4b8fa6fdd69c | 500e7f1b3873d564bc9309e3ccf5c274a313ae49 | /python_validate_password.py | 930f4e8835143516cacf4b10df672ce6b874b745 | [] | no_license | MulderPu/legendary-octo-guacamole | 5b25040e9e928cd862871f184a199a6413f24716 | 0a358c626f1670e22e448e05798f0edfd5e93832 | refs/heads/master | 2022-06-04T21:18:40.062522 | 2022-05-20T12:34:33 | 2022-05-20T12:34:33 | 102,110,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | '''
Write a Python program to check the validity of a password (input from users).
Validation :
At least 1 letter between [a‐z] and 1 letter between [A‐Z].
At least 1 number between [0‐9].
At least 1 character from [$#@].
Minimum length 6 characters.
Maximum length 16 characters.
'''
import re
def validate_... | [
"mulderpu@gmail.com"
] | mulderpu@gmail.com |
dc2c99236d270737d2c0e0566f38c48bfc6e7b57 | bfd616a4af438a207a87337e342fd9f782909243 | /analyses/202011_hilc_cal_err/calibration_errors.py | ba2d70cafec0aed306a991a997f4f1ebcb6f1dcd | [] | no_license | simonsobs/fg2_awg | 273705e865a48228b06354ac2e72b9b2e25c053a | 99133e0360440e6b91f220ac76e30d3ce18dfce4 | refs/heads/master | 2021-07-25T06:14:17.786711 | 2021-07-13T13:39:16 | 2021-07-13T13:39:16 | 215,957,879 | 0 | 0 | null | 2021-07-13T13:29:20 | 2019-10-18T06:41:41 | Jupyter Notebook | UTF-8 | Python | false | false | 5,005 | py | import numpy as np
import fgbuster as fgb
import healpy as hp
import v3_calc as v3
import logging
ALMS_NERSC = '../../releases/202006_hilc_on_planck_so/workspace/cache/alms_{comp}.h5'
NOISE_COV_MATRIX_LOCAL = 'fg_noise.npz'
CMB_SPECTRA_LOCAL = 'cmb.npz'
LMAX = 4000
BIN_WIDTH = 20
FIELDS = 'TT EE BB'.split()
FSKY = 0.3... | [
"noreply@github.com"
] | simonsobs.noreply@github.com |
e909e27376b545fa2284c2278f7a0a4c6b582076 | 3041762000ea7c669f6eb38a7d81f0a415368bb3 | /RctMod2d_Mesh.py | 2746a59bc8df91961ead21d0a0d7b4f0a30e9f05 | [] | no_license | buckees/Reactor-Model-2D | be70159729811e4e5e33ed1ea9432635b42c404e | 663f3d2f3632f8167659ddb3cd9d956271054583 | refs/heads/main | 2023-01-21T18:02:06.690697 | 2020-12-03T02:19:49 | 2020-12-03T02:19:49 | 309,267,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,204 | py | """
Mesh Module.
Create standalone mesh or
Create mesh for input geometry.
"""
import numpy as np
from copy import deepcopy
import matplotlib.pyplot as plt
class Mesh2d():
"""Define 2d Mesh."""
def __init__(self, name='Mesh2d'):
"""
Init the Shape.
name: str, var, name of th... | [
"67809187+buckees@users.noreply.github.com"
] | 67809187+buckees@users.noreply.github.com |
3d5736b49e20e5231ed3c0e8ac5532b0b42c216c | d00edd6bc9d0b3e4f7a8629f353d00e51e0bffbf | /Driver/LCD1602AI2C.py | d3c7becde23923006301b3903131cd00d0276524 | [
"MIT"
] | permissive | aresfe/RPiMonitor | 8aaef360ea03057bf1878c1dd57269f59c4ed2e2 | 796b11ac90ed231c64db3cbfdf660bdc03bc6d08 | refs/heads/master | 2020-03-30T00:27:38.241813 | 2018-09-30T16:29:19 | 2018-09-30T16:29:19 | 150,524,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | import time
import threading
import enum
import Adafruit_CharLCD as LCD
from ILCDDriver import *
class FlashFreq(enum.Enum):
FAST = 0.05
NORM = 0.5
SLOW = 1
class LED:
def __init__(self, driver):
self._driver = driver
self._color = (0, 0, 0)
def red(self):
self._color =... | [
"shiyaoli@ixuanqu.com"
] | shiyaoli@ixuanqu.com |
ef4c20ff087aa7e324f75b1fad2574e638e373a5 | 764583cac4157e69fe9ac58a459c942947d9b54e | /puns/pun_generator.py | 6bb929acbe244f452956368b8c8fe3bef6e2bd1a | [] | no_license | randypiper/potential-puns | 99ea0cb07aba8c46afa6021ef7c0bc457331415e | f5e962b19ce9eb0e99cc37515666ffe224fafee3 | refs/heads/master | 2021-04-29T14:53:31.053315 | 2018-03-03T03:50:34 | 2018-03-03T03:50:34 | 121,784,526 | 14 | 1 | null | 2018-03-03T03:50:35 | 2018-02-16T18:17:52 | Python | UTF-8 | Python | false | false | 1,597 | py | import collections
import itertools
class PunGenerator:
def __init__(self, phoneme_dict):
self.phoneme_dict = phoneme_dict
self.computed_puns = collections.defaultdict(set)
def generate_puns(self, pun_target):
target_phonemes = self._convert_phrase_to_possible_phonemes(pun_target)
for target_phoneme in ta... | [
"randyart@umich.edu"
] | randyart@umich.edu |
4d49dd2084dfbcb19ae43eb20bdff022c03d3d1c | 1207e317fa2837fa4cdb49150b9b2ca99dada2f3 | /SRMS/srms/wsgi.py | 444add657ea221544e461d6a7021a3c1b48ba373 | [
"MIT"
] | permissive | ericniyon/all_in_one_repo | d14cb715776f5c23851d23930145fcb707aaca1d | 9080315fbe9e8226a21bf35c49ff7662b4b095b4 | refs/heads/master | 2022-12-16T17:04:48.602534 | 2020-01-12T00:40:54 | 2020-01-12T00:40:54 | 233,317,032 | 0 | 0 | null | 2022-12-08T01:50:51 | 2020-01-12T00:30:03 | Python | UTF-8 | Python | false | false | 481 | py | """
WSGI config for srms project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
# from whitenoise.django import Django... | [
"niyoeri6@gmail.com"
] | niyoeri6@gmail.com |
e9938fad11621df8a414b3e5c323e99c1409857a | a44975ad96e51418e62891c70bc6376a51c061e1 | /mnist/sphere_loss_v32.py | b0a86e9a7f8075581a2f8221577a634471ea0758 | [] | no_license | Apich238/Face-group-loss | 48827b29a0277bee38473f358443bd06f02987ce | 5dfd830feb6d59d5a7178172ec42ab3a120eac00 | refs/heads/master | 2022-02-05T17:07:19.405856 | 2022-01-30T17:37:59 | 2022-01-30T17:37:59 | 146,727,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | import tensorflow as tf
def angle(a, b):
return tf.acos(tf.clip_by_value(tf.reduce_sum(tf.multiply(a, b), axis=0), -1., 1.))
def angles(a, b):
return tf.acos(tf.clip_by_value(tf.reduce_sum(tf.multiply(a, b), axis=-1), -1., 1.)) # axis=2
def get_centers(features, images_per_class):
# вычисляем центры ... | [
"apich238@gmail.com"
] | apich238@gmail.com |
ac7bb0bee930ba2183aae75223a0b31a36b29c83 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/tests/unittests/test_network_forward_backward.py | 38e4bb4001d65c53e216e81fc1e56dcef765410b | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 1,051 | py | """
Test the forward and backward passes through a linear network.
>>> from scipy import array
>>> from pybrain import LinearLayer
>>> from pybrain.tools.shortcuts import buildNetwork
>>> n = buildNetwork(2, 4, 3, bias = False, hiddenclass = LinearLayer, recurrent=True)
The forward passes (2 tim... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
977cdacd46e493b5840f64f28e229c73a9186631 | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q02__/80_Wiggle_Sort/Solution.py | c5c8f5d63a96de76b08ee985d53c20fe2a8e1f73 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from typing import List
class Solution:
def wiggleSort(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
numsLen = len(nums)
if numsLen == 2:
if nums[0] > nums[1]:
tmp = nums[0]
nums[0] =... | [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
5c13d3609b7140c8b500e263c31db044a66897f8 | 374a70c15b890b9df11b52b67ec2347f6039b05a | /Pikachu/modules/error_handler.py | ccd704128e8d1dd24f50865a7f23b908ae79531c | [] | no_license | Ryu120/Pikachu | 78f56c1e7befbe2aba83a39a779374d1a72c476f | 3025295542d3b23896da71983bc70316b6d10b46 | refs/heads/main | 2023-08-27T03:55:20.534875 | 2021-10-20T13:19:04 | 2021-10-20T13:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | import traceback
import requests
import html
import random
import traceback
import sys
import pretty_errors
import io
from telegram import Update, InlineKeyboardMarkup, InlineKeyboardButton
from telegram.ext import CallbackContext, CommandHandler
from Pikachu import dispatcher, DEV_USERS, OWNER_ID
pretty_errors.mono(... | [
"noreply@github.com"
] | Ryu120.noreply@github.com |
62f181a55c8b5bec98db9fbd3f348e04fab51019 | 83e11300713850820d927b928d6f4e9287a22584 | /homu/server.py | 43144dc40f2b4ef21990aea2dfde3c28eaf4ea82 | [] | no_license | nagisa/homu | 52c1e4170d6be642867711e4f485e80fadfedf16 | c604b4478ac17e4d21e08c85c3ba86e1e23091a0 | refs/heads/master | 2021-01-18T05:17:26.638974 | 2015-01-20T22:52:48 | 2015-01-20T22:52:48 | 29,559,680 | 0 | 0 | null | 2015-01-20T22:59:43 | 2015-01-20T22:59:43 | null | UTF-8 | Python | false | false | 15,678 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
from threading import Thread
import hmac
import json
import urllib.parse
from .main import PullReqState, parse_commands
from . import utils
from socketserver import ThreadingMixIn
import github3
import jinja2
import requests
import pkg_resources
class RequestH... | [
"vcs@barosl.com"
] | vcs@barosl.com |
faae7838e3e5f43c3c47ab1074ba09cf723cda51 | 4d89bb603197d18470076cccbe046075ba1cd212 | /01/02.py | 9ac9172456558ca6e60c96e3d42c2a55200f6b7f | [] | no_license | yanoooooo/NLP100 | f1c930d2cb23f06527d044fdeb3f51bfcad9e20f | c340bc215cd81264b3f12a64e3a28613f8c88999 | refs/heads/master | 2020-03-21T03:28:44.838261 | 2018-02-17T15:16:37 | 2018-02-17T15:16:37 | 138,054,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # encoding: utf-8
import pycolor
title = pycolor.GREEN
title += "02. 「パトカー」+「タクシー」=「パタトクカシーー」"
title += "\n"
title += " 「パトカー」+「タクシー」の文字を先頭から交互に連結して文字列「パタトクカシーー」を得よ."
title += pycolor.END
print(title)
str1 = u"パトカー"
str2 = u"タクシー"
result = u""
for i,j in zip(str1, str2): # zipを使うことで複数の変数を同時にループ可能
result += i+... | [
"miserablescaromioben@gmail.com"
] | miserablescaromioben@gmail.com |
d5fe2af0d0b1a6736f230d7bc4b10ac1509673c7 | 923ba584101482cdd208e567ab2abae4526b48ac | /refactor/cgat_refactor.py | b85790791690a9e70873ed33c1f77bd79557941b | [] | no_license | Charlie-George/cgat | eb00ef4879ceae460634046eb01c34c5ea1c7106 | 269cb235e549ce617e92efaea65a2eff953c2ed9 | refs/heads/master | 2021-01-15T08:32:46.090830 | 2014-09-29T13:47:26 | 2014-09-29T13:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py | ################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id: script_template.py 2871 2010-03-03 10:20:44Z andreas $
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
2c0fd51aa69b9bf55727c5faedccda630d6d677d | af2791239bc8dbf9d7aa94e8dcde0674180abd2f | /main.py | f3e247b62a0226d1adc3ae0bd75a1060649bae40 | [] | no_license | zhenpingli/TDTSystem | 8ac9be039a59293650355b8af7b6fe548c4c6671 | a06103ddf36a69b026cdc899fb222bb89da5b138 | refs/heads/master | 2021-01-08T04:07:28.472682 | 2019-07-25T08:09:53 | 2019-07-25T08:09:53 | 241,907,760 | 1 | 0 | null | 2020-02-20T14:39:42 | 2020-02-20T14:39:41 | null | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'test.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from qt.mainwindow import Ui_MainWindow
if __name__ == '__m... | [
"695573425@qq.com"
] | 695573425@qq.com |
82f7f9d193c63889362c78e380ec57e41e33a5b9 | 0aaf6ce59d305428611958a5bf6a5831407bca65 | /advisor_server/dashboard/urls.py | a3e10067ce02abe9f214020e5f59e6f717896c45 | [
"Apache-2.0"
] | permissive | mlaradji/advisor | d770043a5307af1037cad6be1c449d541acf87b0 | 8ec0f8b64809daa80a20d717b4e45ad9fbcadbb0 | refs/heads/master | 2023-05-26T05:59:50.169748 | 2018-10-18T10:34:42 | 2018-10-18T10:34:42 | 154,219,666 | 0 | 0 | Apache-2.0 | 2023-04-29T17:00:36 | 2018-10-22T21:27:59 | Jupyter Notebook | UTF-8 | Python | false | false | 941 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^v1/studies$', views.v1_studies, name='v1_studies'),
url(r'^v1/studies/(?P<study_name>[\w.-]+)$', views.v1_study,
name='v1_study'),
url(r'^v1/studies/(?P<study_name>[\w.-]+)/suggest... | [
"tobeg3oogle@gmail.com"
] | tobeg3oogle@gmail.com |
38525cf23e282e1f840a5913ea2c4bec660b41b4 | f81c6c886b519b335979928345a50cfab2a46d5c | /app/__init__.py | 90789b599acf14fa6d5c3dade21ab28dc7514446 | [] | no_license | banalna/blogeek | d872cfa5c10c8607045f19d81b92bcdb6fd36031 | cbdb760343a00ffdd92e9fb903bb6db406917c6a | refs/heads/master | 2023-09-01T20:27:51.350960 | 2020-08-30T00:42:29 | 2020-08-30T00:42:29 | 281,817,897 | 0 | 0 | null | 2021-06-02T02:37:09 | 2020-07-23T01:13:00 | Python | UTF-8 | Python | false | false | 3,874 | py | # -*- coding: utf-8 -*-
import os
import logging
from logging.handlers import RotatingFileHandler, SMTPHandler
import rq
from flask import Flask, current_app
from flask import request
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrat... | [
"judas.priest999@gmail.com"
] | judas.priest999@gmail.com |
0ee6776c0883d67cdca9be3f1a4a000144b1a244 | 798a2885b561fb9b755ba961574b71a6f7cd1c81 | /projects/4/single-loader-generator/single-loader.py | c500570c562f04f4a3828576e09ab1be439dc9ea | [] | no_license | dcalsky/GC-web-class | 53101d7ddb1007c7335639348d9b020ff7aad077 | 3d7f557dc88a9aec51e375a2c17f8e90b3dd9515 | refs/heads/master | 2021-01-13T11:06:32.125362 | 2017-10-30T13:53:09 | 2017-10-30T13:53:09 | 68,877,124 | 10 | 2 | null | 2020-01-19T05:15:20 | 2016-09-22T02:34:46 | HTML | UTF-8 | Python | false | false | 483 | py | from math import *
r = 40
num = 8
color = '#0cf'
circle = [-3, 0, -3] + [-10 for x in range(num - 3)]
vec = [(sin(2 * pi / num * x), cos(2 * pi / num * x)) for x in range(num)]
print(vec)
for i in range(num):
print( '%.1f%% {' % (100 / num * i))
print('box-shadow:')
for j in range(num):
x, y = map(lambda v: r * ... | [
"softech86@163.com"
] | softech86@163.com |
e09e9776a1040c522c942498582ce34863f824cd | 8f6853461a3dee85ef261f46fe1cd5ca3b36cac0 | /fourth_week/venv/bin/easy_install-3.7 | a1e2f343a55fe4cd1ebd2ee7f957e6ea748525a2 | [] | no_license | falcon-33/PycharmProjects | b6ddf5431b158392c5f8581478f362bb64e68a2a | f827654d4c3ebaec9958743d19c6def416ce64a7 | refs/heads/master | 2021-02-13T17:53:37.791474 | 2020-03-22T12:15:38 | 2020-03-22T12:15:38 | 244,718,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | 7 | #!/home/falcon33/PycharmProjects/fourth_week/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"artyomsokolik@gmail.com"
] | artyomsokolik@gmail.com |
587b4dbc53a6170666ae9248085ddfce737b43ce | 83634a42113cf17dade30efb6a18cd8e4c98343d | /python/fig/eff.py | 0c88ffd17db4c459763dbf993e817f2b87893566 | [] | no_license | cms-bph/BToKstarMuMu | 3e2299bc39688e09810ab8e26872ea6a8004c55b | cf8bff2971383dc9f67f3fe1aad1b4bef87c4a78 | refs/heads/master | 2021-01-18T22:35:43.668173 | 2016-11-22T03:52:39 | 2016-11-22T03:52:39 | 9,442,557 | 2 | 3 | null | 2016-11-22T03:52:39 | 2013-04-15T06:57:25 | C++ | UTF-8 | Python | false | false | 5,172 | py | """
Module for Efficiency Figures
"""
__author__ = "Xin Shi <Xin.Shi@cern.ch>"
__copyright__ = "Copyright (c) Xin Shi"
import sys
from tls import *
from array import array
from ROOT import TH1F, TCanvas, TClonesArray, AddressOf, TLorentzVector
from atr.cuts import select_b0s
def main(args, figname):
if args[0]... | [
"xshi@xshi.org"
] | xshi@xshi.org |
f742ca945375d122388361fc41170823b4f034f4 | 60ce48bcfc0bfd89aca0419f7c65b2c0cacc0a7c | /basics/moperations/mathoperations.py.html | e50274809b86d16fbc8b495c3c7a1023159c5454 | [] | no_license | sjangada/python | b54af7b9ae33ed7d4a01f664d1cc26d89db0ca7a | e3d1521ecdc2bed866cd7bd68ff2293529a2f65c | refs/heads/main | 2023-06-19T18:07:06.761188 | 2021-07-22T14:06:53 | 2021-07-22T14:06:53 | 318,919,301 | 1 | 1 | null | 2021-07-20T02:03:06 | 2020-12-06T00:37:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,006 | html | #!/usr/bin/env python
# coding: utf-8
# In[23]:
f = open('input.txt', 'r')
# i tried to make functions for finding x, opr, and y and then putting those functions in the operation function, but that didnt work
nf = open('output.txt', 'w')
nf.write("")
nf.close()
nf = open('output.txt', 'a')
def operation():
... | [
"noreply@github.com"
] | sjangada.noreply@github.com |
670b7c28748c39f21a98d41a9dadc64c76c99c48 | cb9c9e5d32bd223529b8738a37092338748c03b6 | /pokerthproto/poker.py | e35cc1fb185dcc85d3cfbc5d45c805ecc6b24a4b | [] | no_license | FlorianWilhelm/pokerthproto | 8cd7d28af0b6bb42c587ec15a7167894bb8588bb | d3668c15fcdc6aaca0d72f8a28dd36b3887bdaa8 | refs/heads/master | 2021-01-25T08:48:59.965296 | 2014-07-20T15:52:37 | 2014-07-21T16:52:17 | 20,340,212 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # -*- coding: utf-8 -*-
"""
All data structures related to poker like poker actions, cards, rounds etc.
"""
from __future__ import print_function, absolute_import, division
from . import pokerth_pb2
__author__ = 'Florian Wilhelm'
__copyright__ = 'Florian Wilhelm'
# suits of poker cards (diamonds, hearts, spades, c... | [
"Florian.Wilhelm@gmail.com"
] | Florian.Wilhelm@gmail.com |
1d2d1837bc0443a4b595694cd247e0ac5e368747 | 229d8b1af3c5f407d263863449eb3e8dff72b3fb | /venv/bin/easy_install | faf999cb2896d434c6ee3f6b6dd678bb75b23aa0 | [] | no_license | zuest/instapyMiniProject | 94455d769579cc4e703ebdb564eceaf4dae082e5 | 632ce5f535cf041e8f809d8f26ff3c87d2b4c7c0 | refs/heads/master | 2020-06-04T11:36:18.172327 | 2019-06-14T21:04:11 | 2019-06-14T21:04:11 | 192,005,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | #!/Users/macbe/PycharmProjects/py-instapy-project/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"zuests@gmail.com"
] | zuests@gmail.com | |
247326b5c0c2161663922ce88b3834c7b55e3880 | b72e42f7f15ea8d359512cc0fe524f5407f358e5 | /CS50_web_dev/src/src4/passengers1.py | 58da8bf20b745ba44169503aada18219753110ac | [
"MIT"
] | permissive | ChuaCheowHuan/web_app_DPTH | ec9f96d66c69ebd7e04df8d4b92578a3aaa7e392 | dd901e6359fe76f15b69701c53f76666c3219173 | refs/heads/master | 2021-06-18T11:31:10.959634 | 2020-07-23T04:04:52 | 2020-07-23T04:04:52 | 205,556,446 | 0 | 0 | MIT | 2021-06-10T21:55:14 | 2019-08-31T14:42:35 | HTML | UTF-8 | Python | false | false | 938 | py | from flask import Flask, render_template, request
from models import *
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DATABASE_URL")
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
db.init_app(app)
def main():
flights = Flight.query.all()
for flight in flights:
print(f"F... | [
"17569306+ChuaCheowHuan@users.noreply.github.com"
] | 17569306+ChuaCheowHuan@users.noreply.github.com |
74c24be118435be72f012a2130e6ba667651adb6 | 0aa58b87f0e913c8edaf35352c7306d6e47bd158 | /app/blog/urls.py | 24895a690b14d86b05ce94d45ec1c27fe65fb350 | [] | no_license | AlexUM97/prototipo_app | ed63ced021b1d8884c58b48edaf4bed21638b05f | 36f49095ee82636555669e178a9b79d0459c075e | refs/heads/master | 2021-07-24T20:50:46.193279 | 2019-07-10T10:05:22 | 2019-07-10T10:05:22 | 196,181,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new', views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
path('post/<int:pk... | [
"aumoreno97@hotmail.com"
] | aumoreno97@hotmail.com |
df9d2873657e113300916c23ba81894feac367ab | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/84e7f69b07298bc92449e3f4fe241fd427cfb7e9706b274b6410bc04b30fee6a/pandas/_libs/groupby.py | e344975788a3e8c457706c98e8f9bf9238624185 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,451 | py | # encoding: utf-8
# module pandas._libs.groupby
# from C:\Users\Doly\Anaconda3\lib\site-packages\pandas\_libs\groupby.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
import numpy as np # C:\Users\Doly\Anaconda3\lib\site-packages\numpy\__init__... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
c7890e6ce1aa57b2d4cea837d71e289bbf7fcb58 | 16fc5c2708525efc440c767c53c1e9704545fcee | /python3/trees/traverse_iter_2.py | 142c03b366481a5d3c00d19e1e872e1ce8720a88 | [] | no_license | arnabs542/achked | c530c880a2df31242ef5a2c8efc7546a56ab28b8 | 9218e2cd24f8111d8e7de403f4aab73720a2d179 | refs/heads/master | 2022-02-11T15:33:26.590353 | 2019-08-12T03:53:37 | 2019-08-12T03:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | #!/usr/bin/env python3
from tree_creation import *
def pushleft(node, st):
while node:
if node.right:
st.append(node.right)
st.append(node)
node = node.left
def post_iter(root):
st = []
node = root
pushleft(node, st)
while st:
node = st.pop(-1)
... | [
"pathak.animesh@gmail.com"
] | pathak.animesh@gmail.com |
50a0fd453d0d10d876296eb29c477509d40f512a | 518ec4ba6c41d0ff276e6d52fac85bc218ff4a72 | /tes.py | c4ee8088e6fc42a6c4fdf13d288d5503ef341224 | [] | no_license | rho557/26415003 | c190b2be8e333e8d74f1030945a716f6549a79bf | d1658dccaf44f761a8fc80756b171386d2bcbb34 | refs/heads/master | 2022-12-24T19:36:33.513841 | 2016-12-01T03:17:24 | 2016-12-01T03:17:24 | 68,509,688 | 0 | 2 | null | 2022-12-11T10:01:11 | 2016-09-18T09:03:28 | Python | UTF-8 | Python | false | false | 323 | py |
#!/bin/bash
beli=`curl -s http://www.bankmandiri.co.id/resource/kurs.asp | grep USD -A1 | cut -d">" -f2 | cut -d"<" -f1|xargs|cut -d" " -f2`
jual=`curl -s http://www.bankmandiri.co.id/resource/kurs.asp | grep USD -A4 | cut -d">" -f2 | cut -d"<" -f1 |xargs|cut -d" " -f4`
echo "Kurs Beli:"$beli
echo "Kurs Jual:"$ju... | [
"m26415003@opensource.petra.ac.id"
] | m26415003@opensource.petra.ac.id |
5fc83da50a9f4b6e2a19f38727db0db27cd1c31b | 35272be7274919c285ad9eab078593a3aaf9c618 | /dirbrute.py | 5d91881b5958cd4cd7e025bbf4bf3294e0661275 | [] | no_license | icysun/bughunter | d44e23d8ed901aad04c335817232924dde93ccf2 | aaf82eaf6cf366372a90e6f80d8a354d393d4f4e | refs/heads/master | 2020-03-07T10:29:42.006022 | 2017-09-12T02:45:45 | 2017-09-12T02:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #coding:utf-8
'''
爆破目录,暂时用BBscan扫描
'''
from gevent import monkey
from gevent.pool import Pool
from lib.lib import *
import os
monkey.patch_all()
def check(temp):
ip = temp[0]
port = temp[1]
domains = getdomainfromip(ip)
for domain in domains:
print "checking ip {}".format(domain)
url ... | [
"dongguangli@fangdd.com"
] | dongguangli@fangdd.com |
9b2a0af83e82369b79f14969dad82070cbdfe3f6 | f9bce8bce1c3f284aa81e49b316d28b762d8e738 | /typeidea/typeidea/blog/function-views.py | 125aeceacd4d3f594b5ba2abb1e16d57a40af7f7 | [] | no_license | TheBlack1024/typeidea | 00f802796e1ce38639fe48c520b1e41a3e7b0fbd | 8581e425c24df161150ee92f4e7ef24db5bcaa01 | refs/heads/master | 2022-12-01T02:24:10.403013 | 2019-06-23T12:40:08 | 2019-06-23T12:40:08 | 183,023,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | from django.shortcuts import render
"""
URl到View的数据映射关系展示:
from django.http import HttpResponse
def post_list(request,category_id=None,tag_id=None):
content = 'post_list category_id={category_id},tag_id={tag_id}'.format(
category_id=category_id,
tag_id=tag_id,
)
return HttpResponse(conten... | [
"92182005@qq.com"
] | 92182005@qq.com |
481de81dba429e0407e166febee60e50c78f6a60 | cb4eb83b2aa6b47310478aa7a62bb5ef0b9241d7 | /matrix.py | b688f065f09cd9aa73a9552be57b5f6c2dc66b3a | [] | no_license | josh-minch/scrape | 69eb688054cb2f60a5696ea0295c9d2e035328d1 | cc215914ec803660ca66382a09e6e4e408fd505e | refs/heads/master | 2022-12-26T15:11:56.741519 | 2020-10-17T07:08:53 | 2020-10-17T07:08:53 | 302,195,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | import json
import collections
import numpy as np
from helper import get_json, write_json
def get_ranked_ingreds(ingreds, recipe_matrix, all_ingreds):
"""Return ingreds from recipes in order of occurence with input ingreds."""
ingred_to_ix = {k: v for v, k in enumerate(all_ingreds)}
ix_to_ingred = {v: k... | [
"josh.minch@gmail.com"
] | josh.minch@gmail.com |
71c25031f25c1f6105b173234a0c319624fb9787 | 2eec5d2c07b949196497df434756476e55c2fdeb | /unitedstates/form_parsing/utils/data_munge.py | 8e64e4ea4cbfd99678b7741ea83310df375c940c | [] | no_license | influence-usa/scrapers-us-federal | b1db90fbe8e4ed68c9f393b8da93a3363d37d25c | b9350a6f22061205403bd1640497830387188682 | refs/heads/master | 2016-09-15T14:34:33.736507 | 2016-03-02T00:08:07 | 2016-03-02T00:08:07 | 42,490,961 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,764 | py | from datetime import datetime
import locale
import re
from functools import reduce
REPLACE_MAP = {u' ': u'',
u'\xa0': u'',
u'\u200b': u'',
u' ': u''}
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
DATE_FORMATS = ['%m/%d/%Y',
'%m/%d/%Y %I:%M:%S %p... | [
"blannon@gmail.com"
] | blannon@gmail.com |
2697ac3de76880d27f9dffe050d1e07fc88eed4f | 9b8dc17c63bb0b3aad02f36841803e08316d3578 | /problem_5348.py | f0f10a70b357dbaf121e032fe58e62cf719f971d | [] | no_license | zhou-jia-ming/leetcode-py | 9687611a097bb5aee530bec4dcf094462be76be3 | f56e59f116e6b51e222debdd575e840b74165568 | refs/heads/master | 2021-08-06T17:22:41.356258 | 2021-07-25T16:56:10 | 2021-07-25T16:56:10 | 246,513,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # coding:utf-8
# Created by: Jiaming
# Created at: 2020-03-21
# 给你两个整数数组
# arr1 , arr2
# 和一个整数
# d ,请你返回两个数组之间的
# 距离值 。
#
# 「距离值」 定义为符合此描述的元素数目:对于元素
# arr1[i] ,不存在任何元素
# arr2[j]
# 满足 | arr1[i] - arr2[j] | <= d 。
from typing import List
class Solution:
def findTheDistanceValue(self, arr1: List[int], arr2: List[i... | [
"zhoujiaming12345@gmail.com"
] | zhoujiaming12345@gmail.com |
41b0967ff45a265d207f789fe783d04512078cff | f0becfb4c3622099ce3af2fad5b831b602c29d47 | /django/myvenv/lib/python3.8/site-packages/astroid/brain/brain_scipy_signal.py | 996300d4877b225396de340a5a6a033d99d47ba7 | [
"MIT"
] | permissive | boostcamp-2020/relay_06 | 9fe7c1c722405d0916b70bb7b734b7c47afff217 | a2ecfff55572c3dc9262dca5b4b2fc83f9417774 | refs/heads/master | 2022-12-02T05:51:04.937920 | 2020-08-21T09:22:44 | 2020-08-21T09:22:44 | 282,153,031 | 4 | 12 | MIT | 2022-11-27T01:13:40 | 2020-07-24T07:29:18 | Python | UTF-8 | Python | false | false | 2,255 | py | # Copyright (c) 2019 Valentin Valls <valentin.valls@esrf.fr>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
"""Astroid hooks for scipy.signal module."""
import astroid
def scipy_signal():
... | [
"bhko0524@naver.com"
] | bhko0524@naver.com |
052f5f9e0e1635366a552b8781c4087f1cd3642d | 89d041cd5235257834313a051272269fca1ced72 | /tfds_preprocessing_pipeline.py | 9256f9c42a4cbbf0c197853516d55781858a5ba3 | [] | no_license | Gregorgeous/ula-transformer-tensorflow2.0 | 7f0eb44e9107678b1e5767644107594b942b3a73 | 68afaaff610ff8fdfc05c2535ff9f6af43fb9ad7 | refs/heads/master | 2022-01-05T06:26:41.681699 | 2019-06-11T23:04:04 | 2019-06-11T23:04:04 | 189,657,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,958 | py | # ======== Global libraries imports ====================
import tensorflow as tf
import tensorflow_datasets as tfds
import time
# # ====== Local code imports for my util functions ======
# from myPickleModule import unpickle #un-comment when debugging this pipeline (to do un-pickling conveniently here)
# ====... | [
"g.r.fisher.pl@gmail.com"
] | g.r.fisher.pl@gmail.com |
1a2fbb7e9d1d611beb3f814b28822f4c36022be3 | 8a33a75877294c2bcb44d1b13500f56e3d06e7f2 | /city_weather.py | 6a32d3b26f4c8cb0010548f3546483173289acbe | [] | no_license | josdas/Sleep-story | bc84c40816f9b3b75ba87143b8c0591a50f20d02 | 2ee739b8569499a62a595156963ea6153d815d20 | refs/heads/master | 2021-06-28T13:57:34.543390 | 2017-09-19T15:50:03 | 2017-09-19T15:50:03 | 103,980,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from weather import Weather
def get_weather(city='St. Petersburg'):
weather = Weather()
location = weather.lookup_by_location(city)
condition = location.condition()
condition.pop('date')
return condition
if __name__ == '__main__':
cur_weather = get_weather()
assert 'temp' in cur_weather
... | [
"josdas@mail.ru"
] | josdas@mail.ru |
3bd089fb5ee2269ebd53bd4c0612b26e935bb7ef | 0f8b29a7d46218ea96a2d740dc3519b6b831090e | /src/charts/urls.py | 981ab69b398cc173a30324723997931954bc88a0 | [] | no_license | chuymedina96/django_data_visualization | 54d02f471580dc5718c88f42547d34c08648a906 | 56522942b5d7ad8df20dc90ca9ae541d987a184b | refs/heads/master | 2023-05-30T17:35:25.279095 | 2020-05-26T17:58:57 | 2020-05-26T17:58:57 | 267,113,821 | 0 | 0 | null | 2021-06-10T22:57:45 | 2020-05-26T17:55:24 | Python | UTF-8 | Python | false | false | 976 | py | """charts 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-bas... | [
"chuymedina96@gmail.com"
] | chuymedina96@gmail.com |
7db862ef198c2cbdadec7bf0372b423abee7302d | 1819b161df921a0a7c4da89244e1cd4f4da18be4 | /WhatsApp_FarmEasy/env/lib/python3.6/site-packages/ipfshttpclient/http.py | 107176524c9a4de64775e18ff406059468081bdd | [
"MIT"
] | permissive | sanchaymittal/FarmEasy | 889b290d376d940d9b3ae2fa0620a573b0fd62a0 | 5b931a4287d56d8ac73c170a6349bdaae71bf439 | refs/heads/master | 2023-01-07T21:45:15.532142 | 2020-07-18T14:15:08 | 2020-07-18T14:15:08 | 216,203,351 | 3 | 2 | MIT | 2023-01-04T12:35:40 | 2019-10-19T12:32:15 | JavaScript | UTF-8 | Python | false | false | 13,013 | py | # -*- encoding: utf-8 -*-
"""HTTP client for api requests.
This is pluggable into the IPFS Api client and will hopefully be supplemented
by an asynchronous version.
"""
from __future__ import absolute_import
import abc
import functools
import tarfile
from six.moves import http_client
import os
import socket
try: #PY... | [
"sanchaymittal@gmail.com"
] | sanchaymittal@gmail.com |
e3e459c1c3919e8cc75492427602caa0b3360f84 | e532534c78e1ad5bc465de2e5d9a64664fec3304 | /main.py | 973987ccd1b500abb184c4695c4f34328d9031b0 | [] | no_license | candragati/checklist-item | 3a5ad6bb995b9602da0eb9b72080243284b4e198 | 6106092cf493c5d652086d9400dfc43e6e98b176 | refs/heads/master | 2020-04-22T03:28:48.855186 | 2019-02-11T07:48:44 | 2019-02-11T07:48:44 | 170,088,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from PyQt4 import QtGui
from raw_ui import main_ui
import barang
import produk
import report
import sys
class Main(QtGui.QMainWindow, main_ui.Ui_MainWindow):
def __init__(self,parent = None):
QtGui.QMainWindow.__init__(self)
self.setupUi(self)
self.aksi()
self.showMaximized()
... | [
"candragati@gmail.com"
] | candragati@gmail.com |
562460c8fef5ebb01d175a1df57c68cd66708063 | 416e7aa65502b0d7a381221e6b8ef87d9f6732c4 | /flask-mvc-3/app/__init__.py | 878282f1d4eddbadaddebfe6df214e0b822fffcf | [] | no_license | DemchyshynV/Flask | 56f554e478293bed7ae87638fa264af3c0dc4b77 | f561b7e189b7aed8cadf1ba6a9dd974e2ee7d093 | refs/heads/master | 2023-02-04T14:29:52.131647 | 2020-12-23T02:22:36 | 2020-12-23T02:22:36 | 323,781,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import DevConfig
app = Flask(__name__)
app.config.from_object(DevConfig)
db = SQLAlchemy(app)
from app import views
| [
"K1l@t1V1"
] | K1l@t1V1 |
a340ad4177b64261692dc78f4e98d1899fc65d5d | 2157b0545e60190915d6b70e7207472c77231595 | /restaurant/tests/test_restaurant.py | f4ca4b6c9cf38ce3f0ba5ece1b7bf9af52df023c | [] | no_license | Squad1ASE/restaurant | b8153ebd45eb8ea7a7170c111bc2d69fd62f543e | f9641e0c31aec3b839133a2bb8df50bb5f67cd58 | refs/heads/main | 2023-01-19T03:38:20.318180 | 2020-11-25T11:43:34 | 2020-11-25T11:43:34 | 313,589,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93,824 | py | from tests.conftest import test_app
from database import db_session, Restaurant, Table, Dish, WorkingDay, RestaurantDeleted
from sqlalchemy import exc
from tests.utilities import *
def _check_restaurants(restaurant, dict_restaurant, to_serialize=False):
if not isinstance(restaurant, dict):
restaurant = r... | [
"emiliopanti96@gmail.com"
] | emiliopanti96@gmail.com |
85d885154a183827ad6b137124af59056d4ab8c2 | 1a4689cdac7c5aa604ea896f83ec2166651ecdfc | /reconhecedor_lbph.py | 84618f6614d710beade16604595e61a69e832254 | [] | no_license | paulobressan/opencv-reconhecimento-facial | 189b7de105c2b0dc4582bd607c2f5d5bc25b3daf | 6dcc328485cc62ecf1f3add4b451d05c16a9250b | refs/heads/master | 2021-10-16T00:26:48.177623 | 2019-02-07T12:14:55 | 2019-02-07T12:14:55 | 169,281,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | import cv2
def nomePorId(id):
if id == 1:
return 'Paulo'
elif id == 2:
return 'Marcelo'
elif id == 3:
return 'Alex'
else:
'Boiola'
# detector de faces
detectorFace = cv2.CascadeClassifier('haarcascade-frontalface-default.xml')
# criando o reconhecedor
reconhecedor = c... | [
"paulo.bressan@outlook.com"
] | paulo.bressan@outlook.com |
5e34be6b1e058e695e7f2d7faa7c251fd65e8935 | 54be379de2b913849df6002121e986bb14585d66 | /RF_ROP.py | ae4b8260f2fc596f4ed22034a06438e6d801b845 | [] | no_license | chokenkill/unsuper_learn | 673891abad6a39e631938ff17645f761c08e64f8 | eac6b5f0de33866a9b7b364457de112e4d008a8e | refs/heads/master | 2020-03-30T16:45:08.047880 | 2018-11-12T04:44:43 | 2018-11-12T04:44:43 | 151,424,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split
from sklearn.model_selection import LeaveOneOut
from sklearn.metrics import mean_squared_error
from math import sqrt
path = "/Users/av/Documents/Drilling/unsuper_learn/"
# All... | [
"Anthony.Vrotsos@utexas.edu"
] | Anthony.Vrotsos@utexas.edu |
9d11213ea2c2b6bc4de9d7aa551d211f2ad8d7d4 | d631dc5493b14cead84131d553ac7142426e8a29 | /src/snuway/wsgi.py | 241e720b2a1358d6b7482230ea2beaac337be792 | [] | no_license | oseolgi/snuway_final | d890ccf8b9b28fe9ef1d93283a2314a9ebd285c8 | 0c32cf046d75a1ab39e52c71c3b3b92c65ba6db3 | refs/heads/master | 2021-01-18T11:45:23.396713 | 2016-08-12T04:00:12 | 2016-08-12T04:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for snuway project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"heun0108@gmail.com"
] | heun0108@gmail.com |
f44ea758ed720263d283bc572d243668746e24d4 | e99e690e276be83b1a1f1c24c4518b572e69ec3f | /euler19.py | 0344fadcc8bc5a30039fc1c70679af64cd713709 | [] | no_license | SenorNoName/projectEuler | 9e30689c66bc7f38b2916039dd078dbb1de6d482 | d64d5dd26ce1016b6dd7ee881be9ff7cca09d4f7 | refs/heads/main | 2023-06-29T20:17:06.660261 | 2021-08-05T00:40:24 | 2021-08-05T00:40:24 | 392,859,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | '''
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving February alone,
Which has twenty-eight, rain or shine.
And on leap years, twenty-nine.
A leap year occurs ... | [
"SenorNoName@users.noreply.github.com"
] | SenorNoName@users.noreply.github.com |
afc16cfd08f4740ded1e2204955aaa45052b1d30 | 539518e5c97eae9485ac30b3993677ef39c22fff | /base/admin.py | a646985f0d2dac47f5d66b63040cf7474cf5d74e | [] | no_license | hackathon-das-fronteiras/jogos-amazonicos | d64cbca131fb39090296953fbd95b84e28f378fc | 6e234eed0da879e16d113c24b48d0b7bc7d5b893 | refs/heads/master | 2020-03-29T14:21:34.849333 | 2018-09-23T18:42:50 | 2018-09-23T18:42:50 | 150,013,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.contrib import admin
# Register your models here.
from base.models import Country, Region
class CountryAdmin(admin.ModelAdmin):
list_display = ('country_name',)
admin.site.register(Country, CountryAdmin)
class RegionAdmin(admin.ModelAdmin):
list_display = ('region_name',)
admin.site.registe... | [
"marcosthomaz@icomp.ufam.edu.br"
] | marcosthomaz@icomp.ufam.edu.br |
2c177d90f01124541169790b3b7270464830e31e | 5fa713ea010b8e84886a7073c37115850e0f8de2 | /src/activities/stock_prediction/stock_arena.py | 556670d5443a61144df0a982d6fa3cba3a37d851 | [] | no_license | ShaynAli/Aipen | fa3c61d678ff0ddd7b11b62256776442033a19d3 | 3d2dde6f849c6304475f6edc5a9e08b2074209f1 | refs/heads/master | 2021-10-24T22:00:10.206532 | 2019-03-22T09:55:42 | 2019-03-22T09:55:42 | 110,479,921 | 3 | 2 | null | 2019-03-22T09:55:43 | 2017-11-13T00:02:04 | Python | UTF-8 | Python | false | false | 404 | py | from arena.arena import MachineLearningArena
from activities.stock_prediction.stock_prediction_models import *
import pprint
if __name__ == '__main__':
arena = MachineLearningArena(model_pool=[ShallowNeuralNetworkPredictor], activity=FrankfurtStockPrediction)
printer = pprint.PrettyPrinter()
for _ in rang... | [
"shayaan.syed.ali@gmail.com"
] | shayaan.syed.ali@gmail.com |
1c5f697dd6855da6b7d26a9ee5c7a1b2c772a09e | b9386cfc639dfcc1cc224777015eddda57056f30 | /ProjetosPython/PraticandoPython/P60-SimuladorCaixaEletronico.py | 6200c4e53a159ef004a878f6c89ec423dd544954 | [] | no_license | lucasstevanin/LearningPythonfromCursoemVideo | 8a6850269bd9b58b110b37f0479ba21a17dbeced | 82916302c06402e2a8612b12ae0e2ea6654fe9c4 | refs/heads/master | 2023-06-14T11:13:14.336580 | 2021-07-07T19:04:32 | 2021-07-07T19:04:32 | 209,598,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #Com cédulas de 50, 20, 10 e 1 #OBS: Fiz com de 100 tambem
#Informar quantas cédula de cada valor serão entregues
print('='*30)
print('{:^30}'.format('CAIXA ELETRÔNICO (24 HRS)'))
print('='*30)
m = c = d = u = 0
milhar = centena = dezena10 = dezena20 = unidade = 0
while True:
valor_sacado = input('Qual o valor a ... | [
"lucasstevanin@gmail.com"
] | lucasstevanin@gmail.com |
bc54b35f106f1d79df2f352512f5f441a35e2a0d | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Methods_in_Engineering_with_Python_Kiusalaas/linInterp.py | 4a54aadcdef95cfdcb87969af29fd0949e5677c5 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 273 | py | ## module linInterp
''' root = linInterp(f,x1,x2).
Finds the zero of the linear function f(x) by straight
line interpolation based on x = x1 and x2.
'''
def linInterp(f,x1,x2):
f1 = f(x1)
f2 = f(x2)
return x2 - f2*(x2 - x1)/(f2 - f1)
| [
"bb@b.om"
] | bb@b.om |
7f5e5da7185ed2490f5b2d874561e9214c8db779 | 6395987515664fd475fc91398bae06f2d7c1465c | /assign/5-list/append.py | cd6c1888327286d904b14a32e7ebcac18f2b0cad | [] | no_license | amanmishra98/python-programs | 984e1f503d04983802aec14ef7f3b2968cdebb60 | e8e90e8ae38b0b4058fa978d5bced943ac995e91 | refs/heads/master | 2020-04-23T07:00:20.740648 | 2020-03-20T08:14:47 | 2020-03-20T08:14:47 | 170,993,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | n=int(input("enter no"))
l=[]
for x in range(1,n+1):
a=int(input())
l.append(a)
print(l)
| [
"noreply@github.com"
] | amanmishra98.noreply@github.com |
41174bfa77697a1e47f7584e57e063d0a3eab5bd | f205a750018c73f2acba4e15d72ee8f68c41b0eb | /home/migrations/0002_testd.py | 332d450258603db0d5b447d409db8926fee0399f | [] | no_license | crowdbotics-apps/testdjangotest-dev-1417 | 67d5f289d6bce5cc26f6b31390a1826f2a07d255 | 857696193fc35e615e7ac47a7594c1e153f3c612 | refs/heads/master | 2022-03-28T09:00:27.569608 | 2020-01-14T12:38:24 | 2020-01-14T12:38:24 | 231,307,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Generated by Django 2.2.9 on 2020-01-14 12:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TestD',
fields=[
('id', model... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
02e17622a57d31173fb75f8db715b46d04e40d90 | 08f247bcf0d835871d375150d5b388f3ebb41eb6 | /alien_invasion.py | bd239838fc3323bb5189163994fab774de8c392d | [] | no_license | MagicLover/python | dd44be34a06d6c5deb5549096ed315365a5a1418 | 8a81152f22d71e6c2dd5901c4b0bd90260290068 | refs/heads/master | 2020-03-29T01:12:49.285075 | 2018-09-19T11:30:47 | 2018-09-19T11:30:47 | 149,376,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | import sys
import pygame
#导入设置屏幕类
from settings import Settings
#导入飞船类
from ship import Ship
#导入鉴定事件模块
import game_functions as gf
#导入编组类
from pygame.sprite import Group
#导入外星人类
from alien import Alien
#导入游戏统计信息类
from game_status import GameStatus
#导入按钮类
from button import Button
#导入计分类
from scoreboard import Scoreboar... | [
"noreply@github.com"
] | MagicLover.noreply@github.com |
ebbb6f1baab105437d5edb3d7f2830a9aced27ac | f4524d382863480eba8b334d2ec98e953d1c9ed3 | /image_encryption/asgi.py | 3de69617b5047c47ce792b5cde9b259dfb4c9c34 | [] | no_license | JAWalmsley/image-encryption | c861592a27dd6dbd8ba1f10f9e35c6afa16f0570 | 6b9d78e768dfb25ea9b84c94b2a2006df771a587 | refs/heads/master | 2023-08-07T20:59:24.220713 | 2020-06-14T23:15:12 | 2020-06-14T23:15:12 | 250,051,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for image_encryption 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"jackawalmsley@gmail.com"
] | jackawalmsley@gmail.com |
722b40adbd6072a57d0e72d53759a3d575ccfa68 | e3be8552aff4dbcf71e5aa165f254fd094bc048c | /examples/adspygoogle/dfp/v201311/creative_wrapper_service/update_creative_wrappers.py | 38883e6d6cd1a89949df9296656a5d2240dc35a6 | [
"Apache-2.0"
] | permissive | caioserra/apiAdwords | cd1317f05e26edf5cad2faff40c43df96405e715 | 2419b22b1fb7a03cf98355b5793f816319e1e654 | refs/heads/master | 2020-05-05T03:37:16.605798 | 2014-02-03T17:09:39 | 2014-02-03T17:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | #!/usr/bin/python
#
# Copyright 2013 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 b... | [
"cvserra@gmail.com"
] | cvserra@gmail.com |
fd5615ae97a4486aed7ed81eec67b56b59f0256f | 97bda493af82f57bc212770b13b80ef863f301c4 | /vmadmin/urls.py | b2d7e54ea45f05a6f33c308a97f03cfad110ab0c | [] | no_license | iselusky/ev-cloud | 57a38f7056ed8c864347c069401b826d2faffd5d | 04b336a758aa6e27539179c0b72f36a1f9bccc9b | refs/heads/master | 2021-01-16T01:02:48.543307 | 2016-07-21T02:44:39 | 2016-07-21T02:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | from django.conf.urls import include, url
from .vm_views import *
from .gpu_views import *
from .volume_views import *
urlpatterns = [
# url(r'^(?P<url>.+)', root),
url(r'^$', index_view),
url(r'^vm/$', index_view),
url(r'^vm/list/$', vm_list_view),
url(r'^vm/create/$', vm_create_view),
url(r'^... | [
"bobfu@live.cn"
] | bobfu@live.cn |
e32d1bcc7f82ddc883671e0c1b87f27b34f8a510 | 6273409935b4e2f9f760fa7ff67854781077881a | /ex19.py | f6ed94e98a20384db2113ade8e306105519a5b18 | [] | no_license | EstherGuan/Hard-way-exercise | 406bb9d58e77d16a18ef1fcb09e45b8f1efc13fd | c7722690973b86fe6c4e0ef7ac02ccf47eec15eb | refs/heads/master | 2021-01-19T10:29:10.259465 | 2017-02-17T11:49:17 | 2017-02-17T11:49:17 | 82,183,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py |
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the function numbers directly:"
cheese_and_... | [
"guanyanan0520@gmail.com"
] | guanyanan0520@gmail.com |
234e8528297d1630f15dae6b54fb67acdd02f795 | 6b8c60f3f19d41c9ca1a609959d9573b026eba72 | /string.py | bb1e821dfd2f070435962ea92daf66a60088121e | [] | no_license | GhiffariCaesa/basic-python-b6-b | 67b432c9ff9217fc871209b4e0817d761063a8d8 | 3d92489e610146d43e3d141400341d8b6a367606 | refs/heads/main | 2023-06-17T20:08:09.286633 | 2021-07-12T08:11:13 | 2021-07-12T08:11:13 | 358,808,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | nama = "Mentor Nafi"
print(nama)
print(nama[1])
print(nama[7:11])
print(nama[7:])
print(nama[:7])
print(len(nama))
# M e n t o r [spasi] N a f i
# 0 1 2 3 4 5 6 7 8 9 10 11 | [
"ghiffari55@gmail.com"
] | ghiffari55@gmail.com |
f18f69f99ee9c7c76097ae27323d7cdd294308c8 | 22a5dd1d50523f560ea41c54930c71bb1ddddc99 | /v2/libraries/model/options.py | c051efe91ebc07c3befb0a303b86057e30b72239 | [
"MIT"
] | permissive | daniele21/Anomaly_Detection | 9f5facffc136053b1dccd371a7f6e0b756eea456 | 10a6a9dffcbcc0f27e702eed8a5b607c5daf6877 | refs/heads/master | 2022-07-01T05:59:43.419613 | 2020-05-13T10:41:27 | 2020-05-13T10:41:27 | 224,666,058 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py | # -*- coding: utf-8 -*-
#%%
#from dataset import loadData
from libraries.model.dataset import loadDataset
#%%
class Options():
def __init__(self,
# DATASET
nFolders = 5,
startFolder = 1,
endFolder = 2000,
patch_per_im= 2000,
... | [
"daniele.moltisanti@mail.polimi.it"
] | daniele.moltisanti@mail.polimi.it |
beac0877155167b3266705ba9a6127d5fdeb60b0 | 9ddaea1efb3bf651b49b968bfc7a1de6077ef2ab | /obrero/experimental/video_udea.py | b1f9c29c089a92be12c34cabc86d6fa47016f4ab | [
"MIT"
] | permissive | Maduvi/obrero | 1af1fcc99cd70bd7a6c9a3bc129c62f402b75e94 | 6f4424863afda1c957d2e20304a26c0ea2251125 | refs/heads/master | 2020-06-02T07:08:02.590791 | 2020-05-24T12:41:39 | 2020-05-24T12:41:39 | 191,078,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,976 | py | import os
import sys
import pkg_resources
import numpy as np
from matplotlib.image import imread
import obrero.cal as ocal
import obrero.plot as oplot
import obrero.experimental.enso as oenso
# path where stored logo
DATA_PATH = pkg_resources.resource_filename('obrero', 'data/')
def _add_text_axes(axes, text):
... | [
"mateo.duquev@udea.edu.co"
] | mateo.duquev@udea.edu.co |
d9b7b71fd3a717608917bf6da152e399e687d757 | b9533fc58f590fe98eb16f9dc03b5a6717dcc702 | /docs_src/parameter_types/bool/tutorial001.py | 46f6335ceea854286da49c62ee558fc865e62b16 | [
"MIT"
] | permissive | aguinane/typer | 3af0e513d4f5450c8ae2df4fb2057bb619264c4d | 88ca6983fb4fdb969dadc6e150bf74ccea0ad9e1 | refs/heads/master | 2023-02-09T04:32:12.035768 | 2021-01-05T23:16:18 | 2021-01-06T06:35:12 | 327,137,224 | 1 | 0 | MIT | 2021-01-06T06:32:36 | 2021-01-05T22:39:08 | Python | UTF-8 | Python | false | false | 218 | py | import typer
def main(force: bool = typer.Option(False, "--force")):
if force:
typer.echo("Forcing operation")
else:
typer.echo("Not forcing")
if __name__ == "__main__":
typer.run(main)
| [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
95cb67257bde600765f99301c8298f843a1061fe | 3ac5e7eb41995d9b9f7a067d8eb981e474f158d4 | /BaeminSample/urls.py | 645fb14ca9128f496834b4fc54431b58f394c97f | [] | no_license | bluesysuya/BaeminSample | 4babb7ec8c94556f46940acc62480dfe19a1969e | 524d8ba79f0709fa107aa66fa7b8736989884f13 | refs/heads/master | 2021-01-23T06:05:31.822167 | 2017-09-16T04:38:31 | 2017-09-16T04:38:31 | 102,487,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | """BaeminSample 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')
Cla... | [
"bluesysuya@naver.com"
] | bluesysuya@naver.com |
cf4d0c9cf5b8812cf3a8b2ac5b93d4d7523cb311 | 5c28626057e83860dd6da5b239d9eca60e4c2ceb | /Backend/osmchadjango/contrib/sites/migrations/0003_auto_20161005_1234.py | be2fddc71e014f112631132d67fb341544ca9105 | [
"ISC",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | habi/srz-edi | 1ab6fbf797eb90fbaa56817fa8ef772ed81d73b6 | 603496dce834bf3ecf28cc949da619b837e2873c | refs/heads/main | 2023-06-05T00:53:18.109307 | 2021-06-25T08:49:27 | 2021-06-25T08:49:27 | 380,263,278 | 1 | 0 | ISC | 2021-06-25T14:28:09 | 2021-06-25T14:28:08 | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-05 12:34
from __future__ import unicode_literals
import django.contrib.sites.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sites', '0002_set_site_domain_and_name'),
]
operat... | [
"43520128+Denelio@users.noreply.github.com"
] | 43520128+Denelio@users.noreply.github.com |
e5592a520b551171214fac5913366f39cab9e907 | 678f6dc26296391a76b8fa2284c92f864402c129 | /summary/commentChooser.py | e6748cdc1fe050582b43ac01d25d6f949816ddbd | [
"Apache-2.0"
] | permissive | mcdir/Weiss | ae2dd1336dfe96b0d52bccb0012a541f059073ad | 16b9bff300660753e94e251659f873db095843cf | refs/heads/master | 2021-01-19T21:55:18.484386 | 2017-04-19T09:12:17 | 2017-04-19T09:12:17 | 88,724,230 | 0 | 0 | null | 2017-04-19T09:05:26 | 2017-04-19T09:05:26 | null | UTF-8 | Python | false | false | 2,878 | py | '''
A python package which contains different methods for chooseing a
representative comment from a list of comments.
Current Methods:
randomComment - chooses a random comment
leadComment - chooses the first/lead comment
walkThrough - ??
pageRankComment - creates a graph from similar words w... | [
"codebeatstode@aol.com"
] | codebeatstode@aol.com |
a4d4638c9319e40bd188419a370718c710dceb68 | 15dadd4d1f7cca36e066cf06f90e3a5390e79c47 | /src/policy/seo/setuphandlers.py | 0b02b27d6b1a9f1d430e89ae8aa997e5aaa811f4 | [] | no_license | affinitic/plone-policy.seo | fae17a33580b0c70937685111458644f7258fd19 | 653660f452ed90724139993e5ae3802495606ace | refs/heads/master | 2021-10-07T10:19:45.000958 | 2013-09-10T08:06:04 | 2013-09-10T08:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | from Products.CMFCore.utils import getToolByName
from Products.LinguaPlone.browser.setup import SetupView
def setupLinguaFolders(site, logger):
sw = SetupView(site, site.REQUEST)
sw.folders = {}
pl = getToolByName(site, "portal_languages")
sw.languages = pl.getSupportedLanguages()
if len(sw.langu... | [
"smoussiaux@cirb.irisnet.be"
] | smoussiaux@cirb.irisnet.be |
0e3b8f66a09dd70b50624d3d8540c51d8cff8306 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /198/198.house-robber.250714223.Accepted.leetcode.py | 77a36f9e1995b5ec98eb4f8b6f5813fb91b049c2 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Solution:
def rob(self, nums):
if not nums:
return 0
current, prev = nums[0], 0
for num in nums[1:]:
prev, current = current, max(prev + num, current)
return current
| [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
3a90a5230704003aeb2d89708a4b2496c79fb525 | 99f83ebcdf04ace0c3a44b43d9891a43a87eddc0 | /mysite/settings.py | eeb8b1df635bece170335d62d7d6af8ac2f99cfe | [] | no_license | Kadyrgali/my-first-blog | 0db4161924f8a71732dd48b162fdfbf2db5a2ad4 | f0363b236adc961e5b3bd02615bb4c2e713d3523 | refs/heads/master | 2023-01-05T14:01:48.991803 | 2020-11-05T10:03:35 | 2020-11-05T10:03:35 | 309,664,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.17.
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/
"""
import os
#... | [
"galishka15@gmail.com"
] | galishka15@gmail.com |
e8e014088b652af59a2a9cf399e4e10cf8b4779e | 1d9da7d9375baa2d9812df881e53f32d2f7634c1 | /MFW/tools/src/python/DB_Base_pb2.py | e892a78b146ecf9271464c6810c889d947664d39 | [] | no_license | wlcaption/MFrameWork | 7f91a21dd94f6762c7d892b26c321f8042fa4475 | c232e4ad742b59f9d95a4f70290c74d59151eceb | refs/heads/master | 2021-05-16T10:23:57.038228 | 2017-09-23T08:00:50 | 2017-09-23T08:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 65,432 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: DB_Base.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _refle... | [
"captainl1993@126.com"
] | captainl1993@126.com |
27ed5b0a4dc4008cf89eac733cd2a6199926ee55 | f249d2536ac5d0320c353b897ae864843bcd1452 | /cma/constraints_handler.py | bc547485f0149199cce7b9dd5b05ccb2a481607e | [
"BSD-3-Clause"
] | permissive | shikhar-1/RL-policy-improvement | 4c488b9a530931b303c0664d121baf5dd3668276 | c244c21658134eae1806fc4e4734cf33de7f0e00 | refs/heads/master | 2023-01-04T06:30:35.854106 | 2020-11-04T00:08:31 | 2020-11-04T00:08:31 | 265,949,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,396 | py | # -*- coding: utf-8 -*-
"""A collection of boundary and (in future) constraints handling classes.
"""
from __future__ import absolute_import, division, print_function #, unicode_literals
# __package__ = 'cma'
import numpy as np
from .utilities.utils import rglen
# from .utilities.math import Mh
from .transformations i... | [
"shikharsharma@Shikhars-MacBook-Air.local"
] | shikharsharma@Shikhars-MacBook-Air.local |
ea573da5ba54463277dfcb0ea1a4a6b08b967228 | aa0ab3eaee3a04eb39f1819cb411ce9fa2062c14 | /scripts/driver_messaging/proofer_v2.py | 51c3cdca600723c989dfce0fde12a366af95b5b4 | [] | no_license | gilkra/tweet_proofer | 30fd99dd11306e805526044a155a9c34dffc0713 | 04ead63aeb2cb8f0e2a92cc39a731ba926d9b617 | refs/heads/master | 2021-01-12T06:19:58.967602 | 2016-12-25T21:11:27 | 2016-12-25T21:11:27 | 77,342,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,202 | py | import sys
import requests
from enchant.checker import SpellChecker
from enchant.tokenize import EmailFilter, URLFilter
from urllib2 import Request, urlopen, URLError
message = raw_input("Please paste the message you'd like to send: ")
#looks for tricky legal terms or combo of terms
def legal_flag(message, wordlist):... | [
"kazimirovg@gmail.com"
] | kazimirovg@gmail.com |
725d730943bf5acde00f52587c2b9b59d8fcc412 | 7068cdc49e1a824bc9687398342fb0f560aa678e | /python/media.py | 63368e96a40153fb5fd60ac16a3c00044847ea93 | [] | no_license | pm0355/Movie-Trailer-Site | 95200d3f29642fae3c01bf86a017b01182e6ca41 | cbdf318b4c6679bf890718fd69b96798c892a993 | refs/heads/master | 2021-01-11T21:08:18.253595 | 2017-01-17T17:24:45 | 2017-01-17T17:24:45 | 79,252,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 14 20:44:21 2017
@author: matti
"""
import webbrowser
class Movie():
"""This class provides a wayto store movie related information"""
valid_ratings=["G","PG","PG-13","R"]
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
... | [
"pm0355a@student.american.edu"
] | pm0355a@student.american.edu |
f5189e11e9fa689aadeb8e36b91851e2371ad9ba | 75b2eced70124bc6a1e71d835ee7a56c2edecd52 | /scintellometry/phasing/uvwcoords.py | 15db38c47c1f4a109874960748fcd0d09886497e | [] | no_license | danasimard/scintellometry | 5c15bb3a2f1b6fa283487c22e9a84453841c1a60 | 222731affb036f695d773c12b343a55400a9bfa1 | refs/heads/master | 2020-12-30T15:21:57.443721 | 2018-03-19T15:13:54 | 2018-03-19T15:13:54 | 91,131,738 | 0 | 0 | null | 2017-05-12T21:42:07 | 2017-05-12T21:42:07 | null | UTF-8 | Python | false | false | 7,041 | py | from __future__ import division, print_function
import numpy as np
from novas.compat import sidereal_time
from astropy.time import Time, TimeDelta
import astropy.units as u
from astropy.coordinates import ICRSCoordinates
from astropy.table import Table
from astropy.constants import c as SPEED_OF_LIGHT
SOURCE = ICRS... | [
"mhvk@astro.utoronto.ca"
] | mhvk@astro.utoronto.ca |
00aded10afb3608226b9a8ecb28391823389c79a | a6e19982bd69fadaea78efc2df4eb2b25261f468 | /src/Python3/Q113017/exsample.py | bb2e0b36202ab900823ddbd2d1aa3ef2c63d18c8 | [
"MIT"
] | permissive | umyuu/Sample | dcb30ca3ee19e4c49a6c9a6a0ff29357222383b5 | 66e8cd725b682db4c9bf93fb80786eea8cbad19d | refs/heads/master | 2021-01-22T21:22:40.228920 | 2018-07-26T17:32:03 | 2018-07-26T17:32:03 | 85,419,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # -*- coding: utf8 -*-
import linecache
def split_word_list(line: str) -> list:
word_list = []
word = []
for c in line:
if c == ' ':
print(word)
word_list.append(word)
word = []
continue
word.append(c)
else:
print(word)
wo... | [
"124dtiaka@gmail.com"
] | 124dtiaka@gmail.com |
896a8d47ade076e584af2548a90dcf1635b3e8c6 | 622d7c9b21cbb0b807a1a16559b6d8b53329e17a | /app/helper_functions/sim_functions.py | f4718a9f60d97046b980717f7c33980ff4893a15 | [] | no_license | spencercweiss/CS4300_Flask_template | 542ac4a220385fddce2926405e4b346fb911a8c4 | 8dd1a0e6b95bc9ed2b249ad993223f42d23f9f29 | refs/heads/master | 2020-03-20T22:03:27.850954 | 2018-04-30T19:49:45 | 2018-04-30T19:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | import re
import json
import time
import math
from nltk.tokenize import TreebankWordTokenizer
import numpy as np
tokenizer = TreebankWordTokenizer()
def tokenize_transcript(transcripts):
for idx, song in enumerate(transcripts):
lyrics = song["lyrics"]
lyrics = lyrics.replace("\\n", " ").replace("[Hook", " ").re... | [
"mszacillo@dhcp-rhodes-1602.redrover.cornell.edu"
] | mszacillo@dhcp-rhodes-1602.redrover.cornell.edu |
f5c550cbbe76f58a8bc5df6d5eeb4e64f6a27e77 | fe178d9e00714ecbce591b94ad6d6bff4328d24f | /minggu-04/praktik/src/ObjectsClass.py | c0cca7465b9b467db006e515a08372bd28c36715 | [] | no_license | gitaperdani/bigdata | 2d7742646009775a1b2429545ac9f1d5d7d25c59 | b521c73109ce6f33e4d2e92c1fff67a0e6270dda | refs/heads/master | 2021-07-16T14:54:18.836030 | 2019-01-07T17:05:56 | 2019-01-07T17:05:56 | 147,477,369 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | class MyClass:
"""A simple example class"""
i = 12345
def f(self):
return 'hello world'
x = MyClass()
def __init__(self):
self.data = []
x = MyClass()
| [
"gitaperdani08@gmail.com"
] | gitaperdani08@gmail.com |
b974256e2fe1fc6c4ea41eea116808e4657046aa | 9969704627d7557a15e469f7eb095ad7897bcf35 | /utils.py | 675941403fee7497591f9295aae63a05d09d0d75 | [] | no_license | jr-xing/strainmatLabeler | b75f164975575f810d345c41462a0c073248188b | 9c5d7d0bc4aa877d474c8008fa0a506a4bb9ed86 | refs/heads/main | 2023-05-05T11:43:22.000363 | 2021-05-28T14:53:00 | 2021-05-28T14:53:00 | 320,592,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,576 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 17 18:00:57 2020
@author: remus
"""
import numpy as np
import scipy
import scipy.io as sio
def SVDDenoise(mat, rank=3):
u, s, vh = np.linalg.svd(mat, full_matrices=False)
s[rank:] = 0
return u@np.diag(s)@vh
def loadStrainMat(filename):
... | [
"noreply@github.com"
] | jr-xing.noreply@github.com |
03ea8e0088c1d57d0e783b8d300902ba66149c7c | 17c67f44ad263fb0f4e6aac3be1444a84727732b | /src/openfermion/circuits/slater_determinants_test.py | dd37547e0bf7596e5fe3675cbca7db71d62e577f | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | xabomon/OpenFermion | 389db087fb32432220977fb2f31e4c349f31c13a | 8028082805a8e48d9fd179e7616e7df8a256693c | refs/heads/master | 2021-07-05T02:46:42.955939 | 2020-08-03T13:13:20 | 2020-08-03T13:13:20 | 132,436,626 | 1 | 0 | Apache-2.0 | 2019-06-27T08:53:40 | 2018-05-07T09:17:01 | Python | UTF-8 | Python | false | false | 11,986 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | [
"noreply@github.com"
] | xabomon.noreply@github.com |
6c9f5f657dd080bca72a1fb1160fee3016dc69cc | e0c1a7195b23b74d0a487c3e01f0da3a84b2143a | /algorithms/stack/evaluate_postfix.py | df331b4d35499c66366f10cc6ddd663de4854bda | [
"MIT"
] | permissive | nisaruj/algorithms | 0fb1d19d55ea4d5f28240f6ea4934e3670ab63e1 | 1e03cd259c2d7ada113eb99843dcada9f20adf54 | refs/heads/master | 2021-01-25T11:57:32.417615 | 2018-10-02T13:38:00 | 2018-10-02T13:38:00 | 123,449,977 | 0 | 0 | MIT | 2018-03-01T15:01:16 | 2018-03-01T15:01:15 | null | UTF-8 | Python | false | false | 914 | py | """
Given a postfix expression, a function eval_postfix
takes a string of postfix expression and evaluates it.
Note that numbers and operators are seperated by whitespace.
For example:
eval_postfix('5 14 - 3 /') should return -3.0.
eval_postfix('-1.3 3 + 2 *') should return 3.4.
"""
def eval_postfix(expression):
... | [
"nisaruj@hotmail.com"
] | nisaruj@hotmail.com |
d8953a19ca131b166a738b58ec8f4d8559674832 | fe0c17b9bf357b4ae41ef744132d1263e44156a9 | /db-web.py | c98142f694ffd3b88d64b94bc19315fc647eaf3f | [
"Apache-2.0"
] | permissive | jwcroppe/python-db-web | dfaa6f094f179fed36c50e58c49338d8a3b15b7d | b6356b4fdd4ced6e25a6efc41fe2426d1b73c2cc | refs/heads/master | 2023-05-11T01:47:53.387280 | 2022-07-21T18:08:49 | 2022-07-21T18:08:49 | 210,747,666 | 0 | 0 | Apache-2.0 | 2023-05-01T21:16:13 | 2019-09-25T03:28:29 | Python | UTF-8 | Python | false | false | 2,837 | py | # A simple Flask-based application that opens an SSH tunnel to a remote
# server over which MySQL (version 3.23) connections are made. The application
# queries for some users and displays some basic information about them.
#
# The following environment variables can be defined to customize the runtime:
# SSH_REMOTE_... | [
"noreply@github.com"
] | jwcroppe.noreply@github.com |
a96342a33ea96d93f2cbea77cd5ccae3e127d279 | 19a1924e398d009d1f70665d3d0bda8bce0b67b2 | /feature-TFIDF-word-combine.py | 93d5ee4c0acfd85f6aee5c44b79045aaf02f8f0f | [] | no_license | syruphanabi/Readmission-prediction | 0a5ac8ab4875c452a3f928c34f16f9a3e3551e7d | c650dd13d51cfa4391b61ce2b717713a2b2a0211 | refs/heads/master | 2020-03-13T03:15:15.225011 | 2018-04-25T06:33:08 | 2018-04-25T06:33:08 | 130,940,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
"""
@author: Shenghua Xiang
"""
from sklearn.datasets import load_svmlight_file
import scipy.sparse as sp
import numpy as np
import utils
#this script combines features from TF-IDF features and word2vec
word2vec = load_svmlight_file('features/word2vec2000.text',n_features=2000)
w... | [
"syrup@lawn-128-61-24-32.lawn.gatech.edu"
] | syrup@lawn-128-61-24-32.lawn.gatech.edu |
26beec3a279f35330716835f9ed0aa2b9088c394 | d76e726403e8fad407c80cfaa3d0be49fdae3099 | /SRM 755/OneHandSort.py | 86a0d21ed54eff33093ecbfa4c593bf82ffff4d4 | [] | no_license | mukeshtiwari/Topcoder | e81e4d3865a3fd43662d5e2bdf6f85c4d1aeea12 | 7846ac0fb780c9fad36ba4e6c81088b03b4575b1 | refs/heads/master | 2020-04-05T20:16:14.643529 | 2019-07-01T05:13:34 | 2019-07-01T05:13:34 | 17,953,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class OneHandSort:
def sortShelf(self, target):
return ()
# CUT begin
# TEST CODE FOR PYTHON {{{
import sys, time, math
def tc_equal(expected, received):
try:
_t = type(expected)
received ... | [
"mukeshtiwari.iiitm@gmail.com"
] | mukeshtiwari.iiitm@gmail.com |
1ba1fb67c7437894538f3e6952f374498b9a113a | d5f7e099f220a6fab4dd29c13e4d0af2af6cf96a | /reply_keyboard.py | 7788412515947cddd4355ec4b7af3e49ce0e0c38 | [] | no_license | googolmogol/schedulePybot | a235ac7f0da8e2ee1a5beb48af3c1191aadab34b | c4799a0bd0b3d14077be3ec390e41d060e44111c | refs/heads/master | 2023-03-12T21:38:15.631183 | 2021-02-28T15:27:30 | 2021-02-28T15:27:30 | 340,902,862 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,881 | py | import telebot
changed_week = '' # var to define which week choose user
def get_mark(resize, onetime):
return telebot.types.ReplyKeyboardMarkup(resize, onetime)
# creating inline buttons
def inline_button(text, url):
markup = telebot.types.InlineKeyboardMarkup()
button = telebot.types.InlineKeyboardBu... | [
"googolmogolua@gmail.com"
] | googolmogolua@gmail.com |
cbc3ee7ce35a446a8fa1d07a177d6b85ce9435c6 | c69f0416ef237932dc4d79aa4d9cf352408988b1 | /base/signals.py | 6c7b842f9e273a86a499bbb1c056c9524bf60feb | [] | no_license | rohiem/django-react-ecommerce | 683093d69a49a565bcb8ac51541240acb5486fdc | 129f8594cf7582e2170f3ebeab0e5ea12fa5fa9d | refs/heads/main | 2023-08-31T18:14:55.572442 | 2021-09-17T16:08:04 | 2021-09-17T16:08:04 | 407,599,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.db.models.signals import pre_save
from django.contrib.auth.models import User
def updateuser(sender,instance, **kwargs):
if instance.email !="":
instance.username=instance.email
pre_save.connect(updateuser,sender=User) | [
"rehimovich@gmail.com"
] | rehimovich@gmail.com |
56c2e1b4e01fad685d69aa5dac801fe3007f1539 | a743c4f840139720c7ffdea4ac89f07515c0d593 | /flask_server/run.py | 7013ffb04ab046939327d1039a4908bfc6d943f4 | [] | no_license | bhargavkuchipudi0/web_scraper | 7ae7decfe21012ad6bca95fd7efaf1ebf1d955fb | 0874a69496774a7bdd56b6f36d5e2ebac777aa0d | refs/heads/master | 2022-12-10T18:39:31.953587 | 2019-08-30T22:59:03 | 2019-08-30T22:59:03 | 195,532,546 | 0 | 0 | null | 2022-07-06T20:11:21 | 2019-07-06T11:35:15 | Python | UTF-8 | Python | false | false | 1,080 | py | from flask import Flask
from task import task
from crontab import CronTab
import os
cron_tab = CronTab(user=True)
directory_path = os.getcwd()
path_to_cron_file = directory_path.split('/')[1: -1]
path_to_cron_file = 'python3' + '/' + '/'.join(path_to_cron_file) + '/scrapers/cron.py'
# To remove all the cron jobs
def... | [
"bhargavkuchipudi0@gmail.com"
] | bhargavkuchipudi0@gmail.com |
32961560e0850643339eb47d2339e14ce2208375 | bd83377e720c503dcce530546a0edc8d11d5f2da | /LaserRender.py | 99ff884268258ce37fe35d1df6f6c560e99261a6 | [
"MIT"
] | permissive | martonmiklos/meerk40t | 8f17543bb5fd0a650628e3e6515027e4ed4bbe81 | e843d0493e6eb3d35eecf6e3d3b422c8b13f0c2a | refs/heads/master | 2020-12-08T15:37:52.820924 | 2019-12-30T12:16:07 | 2019-12-30T12:16:07 | 233,019,839 | 0 | 0 | MIT | 2020-01-10T10:07:54 | 2020-01-10T10:07:53 | null | UTF-8 | Python | false | false | 11,138 | py | import wx
from PIL import Image
from LaserNode import *
from ZMatrix import ZMatrix
"""
Laser Render provides GUI relevant methods of displaying the given project nodes.
"""
# TODO: Raw typically uses path, but could just use a 1 bit image to visualize it.
def swizzlecolor(c):
if c is None:
... | [
"noreply@github.com"
] | martonmiklos.noreply@github.com |
88c8f5d20e25b36ccdf75d727194ee2ae5aa8c26 | 72ba6d463974ee1fec22ae1da5897e69c3feb455 | /mlinsights/mlmodel/kmeans_l1.py | 3e812265ec4e4c90be90008a35c1a5a0b48c7689 | [
"MIT"
] | permissive | astrogilda/mlinsights | bb07df34e15d0959a61cc5e278c1a7e0b8de62db | 3af8defd3dc94889c1311911925f769573481a62 | refs/heads/master | 2022-09-24T11:33:31.474084 | 2020-06-05T10:14:46 | 2020-06-05T10:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,416 | py | # pylint: disable=C0302
"""
@file
@brief Implements k-means with norms L1 and L2.
"""
import warnings
import numpy
from scipy.sparse import issparse
from joblib import Parallel, delayed, effective_n_jobs
from sklearn.cluster import KMeans
from sklearn.cluster._kmeans import (
_tolerance as _tolerance_skl,
_chec... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
5fd2cc951a434908089dd81418522ef4a9fab088 | 31b56ff4192e639e25e5a8dc19bc050e7cf76f4e | /app/common_func.py | 743157a755a72ff99dbe3ce2e5b6b4299c21c84e | [
"MIT"
] | permissive | githubtaotao/flask_antvirus | 33d2d32cd0e2a23f1d889c15750b8d56fcf909ca | c212de77dbdb7f7b5a461e2fca334805bbb9c069 | refs/heads/main | 2023-06-21T02:53:41.312226 | 2021-07-23T05:58:41 | 2021-07-23T05:58:41 | 388,641,996 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
# @Time : 2021/7/1 14:47
# @Author : Dotao
# @File : common_func.py
import os
import configparser
def load_path():
'''
get db filepath
:return:
'''
current_path = os.path.abspath(__file__)
father_path = os.path.abspath(os.path.dirname(current_path) + os.path.sep + "."... | [
"mstaotao@gmail.com"
] | mstaotao@gmail.com |
76fa71b42e400f7e50931870441ed32bf8cb2f16 | 6e833ec2eeb905e74ed5c6602c951f028d4a7768 | /features/preprocessing.py | de0ae8d321a7d40cb6bf12235b233514f2c7401c | [
"Apache-2.0"
] | permissive | Fakhraddin/DeepOnKHATT-1 | 4a930c204a2c67774de68c3bfae7ddb1f8c6f504 | 0024c3d45d050901a1b0e7fb6491ffad0cdd5bf4 | refs/heads/main | 2023-03-21T17:04:03.511116 | 2021-03-18T22:53:22 | 2021-03-18T22:53:22 | 349,980,764 | 1 | 0 | Apache-2.0 | 2021-03-21T11:40:16 | 2021-03-21T11:40:16 | null | UTF-8 | Python | false | false | 7,337 | py |
import math
import numpy as np
from scipy.stats import linregress
from scipy.special import binom
"""
All normalization steps are based on the following two papers:
Liwicki, M. ; Bunke, H.: HMM-based on-line recognition of handwritten whiteboard notes.
In: Tenth International Workshop on Frontiers in Handwrit... | [
"fakhri100@gmail.com"
] | fakhri100@gmail.com |
20b893640de6b5e7a6b538268933029cf26bef41 | ca25949ff3971d7577f60834a6461dee6898408a | /PlaylistConversion/music_library.py | 9eadb0a09d4946a869f114278b04eda4fcaab923 | [] | no_license | sienatime/playlist_conversion | 0d2d44a98c9fec0220b6f3195babaaf8b1c9e606 | 7298e4f3933cdc0592069d58051854edd0267d3e | refs/heads/master | 2021-01-22T01:18:45.475319 | 2017-09-02T19:02:59 | 2017-09-02T19:02:59 | 102,216,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | # sample data from google play music library (abbreviated):
# {
# 'id':'5924d75a-931c-30ed-8790-f7fce8943c85',
# 'nid':'Txsffypukmmeg3iwl3w5a5s3vzy',
# 'artistId':[
# 'Aod62yyj3u3xsjtooghh2glwsdi'
# ],
# 'title':'Haxprocess',
# 'artist':'Opeth',
# }
class MusicLibrary:
def __init__(self, gm_s... | [
"siena@indiegogo.com"
] | siena@indiegogo.com |
4bc05de0d77b4db4af4ca5c0c12874e7495fee27 | 14423796c9ef1ac17314b27f17e8f05e7079d666 | /producthunter/urls.py | 32d287cbeb417ae9614ec28c37c33b5a0413ab0b | [] | no_license | stiehlrobot/producthunter-project | 0a676d098b565e4535e84c77c5dc9767e12a852f | f4c16a49df8519d281b28c27778c5164fb916ce9 | refs/heads/master | 2020-12-19T19:50:59.783968 | 2020-01-25T13:41:29 | 2020-01-25T13:41:29 | 235,834,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | """producthunter URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"olli.ohls@gmail.com"
] | olli.ohls@gmail.com |
b029bb2e6b1204f2893534ddf7904567b9bbc0d5 | 915c98ce84ed155b5e4d855ffaa7cbc8e9a10712 | /Notebooks/scripts/utils.py | a26ad5203829a0055b4eefd7498c5dbd4593d672 | [
"MIT"
] | permissive | gallardorafael/EfficientMobileDL_Bacterial | e22131c1920a91ef32d86a11480bcf4d20ed16fa | 15550e9d094f65760f5c35de4c115dd1b9ad273d | refs/heads/main | 2023-03-24T06:26:31.971821 | 2021-03-27T04:06:03 | 2021-03-27T04:06:03 | 350,090,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | from sklearn.metrics import f1_score, precision_score, recall_score, classification_report
import pandas as pd
import torch
class prediction:
def __init__(self, ground_truth, top5_classes, top5_probs):
self.ground_truth = ground_truth
self.top5_classes = top5_classes
self.top5_probs = top5_... | [
"rafael.gallardo@alumno.buap.mx"
] | rafael.gallardo@alumno.buap.mx |
6645c9aa5ca275f9558b5c98dafa3d4bb9492f6c | f5d8b76eaa04c9477a6f17773472dcdfd8b93f98 | /residue_order.py | 9d4cbf461f974f8416a5384ea4a5911a45d9e27c | [] | no_license | salockhart/pycrypto | 7c6704568cd822cc6cb5c5bdf2745ed0b7f5a141 | f009e08061e32c1231624de155b935f1acb64d45 | refs/heads/master | 2021-08-16T11:33:57.118142 | 2017-11-19T19:04:41 | 2017-11-19T19:04:41 | 111,323,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import sys
g = int(sys.argv[1])
p = int(sys.argv[2])
for k in range(0, p):
if k != 0 and pow(g, k, p) == 1:
print "Order =", k
break | [
"salexlockhart@gmail.com"
] | salexlockhart@gmail.com |
13a23e2e0b445168886f0f9d892a6952c598cf96 | cd32f14f735ed44f66e7b28f411575c4721d4406 | /Wall.py | 5e896813384d910f5dec87b923f4f4d48539302f | [] | no_license | ragarg/python_game | f549ec2b0be292de83be52ef5f34435ca2e455ab | f7123477fe09f84512b4bcf25eeec15c8dcb9361 | refs/heads/master | 2021-05-10T22:38:25.682405 | 2018-02-21T17:38:29 | 2018-02-21T17:38:29 | 118,261,974 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import Object
class Wall(Object.Object):
def __init__(self, x, y, image):
Object.Object.__init__(self, x, y, image)
self.size = (24, 24)
self.patency = 0
def GetSize(self):
return self.size
| [
"noreply@github.com"
] | ragarg.noreply@github.com |
921b7004ad7a12099d737586a481cb52324834da | 0ea89b50c65afa72bad56f352584d8e6e20e50cd | /python/list2_p16.py | b85b2e216da1260a4a2d7a8281bf59842afed90e | [] | no_license | GreatZaNaRak/python | 8ca62705c18f5ecb7d91573899805cc1fb015eb1 | 76d70ff399618911d85631cc06647a74bf33722f | refs/heads/master | 2021-08-08T03:58:54.302812 | 2021-07-07T13:52:08 | 2021-07-07T13:52:08 | 141,234,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | n,c = [int(e) for e in input().split()]
vec1 = []
vec2 = []
result = []
for i in range(n):
num1 = [int(e) for e in input().split()]
vec1.append(num1)
for i in range(n):
num2 = [int(e) for e in input().split()]
vec2.append(num2)
for i in range(n):
check = []
for j in range(len(vec1[i]... | [
"noreply@github.com"
] | GreatZaNaRak.noreply@github.com |
0e82345bfc2a4898cdc3ce00bb8f00de3a318603 | 8215d7b33a80eeef592ca44827269ae79b195563 | /project/LeonWu/cluster.py | 5c118c29f641d5a7a75182f6686df1e37e65358d | [] | no_license | SiyuanWuSFU/CMPT353-Computational-Data-Science | 74746886f053cbbbdb74022820eb39e834e258eb | 5e3eed325ee45115e7f38cc41592eb86beff3546 | refs/heads/main | 2023-08-15T03:30:31.735344 | 2021-09-08T05:32:34 | 2021-09-08T05:32:34 | 403,918,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # The code is adapted from Zuo Yifan
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
def lat_lon_mean(l):
lat_sum, lon_sum = 0, 0
length = len(l)
for pair in l:
lat_sum += pair[0]
lon_sum += pair[1]
lat_mean = lat_sum / length
lon_mean = lon_sum /... | [
"swa173@sfu.ca"
] | swa173@sfu.ca |
60872802041012410a8387a6fe54382762e1707a | 0ff778d92c4c131b3dbb5e5ca60285080fd4cce6 | /parse_darknet.py | ef6632253c8eb1b2b7961630a3a3c228278806bf | [
"MIT",
"WTFPL"
] | permissive | victorlwchen/tensorflow-yolov3 | c2555e1f7ec468ed181ac8c9be90919d9fe7c3e7 | 9cbd3f94794e410cd1b7968c39c98d708e8b4919 | refs/heads/master | 2020-07-28T14:24:41.848376 | 2019-10-25T09:17:20 | 2019-10-25T09:17:20 | 209,438,491 | 0 | 0 | null | 2019-09-19T01:46:08 | 2019-09-19T01:46:08 | null | UTF-8 | Python | false | false | 2,693 | py | # convert labeled file
import os
from PIL import Image
train_file_path='/mnt/darknet_VOC/train.txt'
test_file_path='/mnt/darknet_VOC/2007_test.txt'
train_target_path = '/mnt/darknet_VOC/tensor_train.txt'
test_target_path = '/mnt/darknet_VOC/tensor_test.txt'
def new_class(num):
numbers = {
'18' : "0",
... | [
"victorlw_chen@asus.com"
] | victorlw_chen@asus.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.