blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63f0aa6fed60ac58358fb125d683f0e2d987078c | 706d5ff4707793a225f41c469f19a4f1891078da | /代理ip/dao/save2mysql.py | f163a4e4c6a028cfa5735492a16e9fe3c177e889 | [] | no_license | dcc668/PyDemo1.2 | eb5f13a19343e4d9d82fdd7c54f6f45622c5c00e | f883ca1d9bc04673beb9b40d889da74d2aaa5095 | refs/heads/master | 2020-04-15T02:23:16.000157 | 2019-01-30T23:57:41 | 2019-01-30T23:57:41 | 164,312,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | # -*- coding: utf-8 -*-
import pymysql.cursors
import time
from sshtunnel import SSHTunnelForwarder
class Data2MySql():
# Connect to the MySQL database
def __init__(self):
self.server= SSHTunnelForwarder(
('39.108.122.83', 22),
ssh_password="Dcc1234&",
ssh_username=... | [
"1187053696@qq.com"
] | 1187053696@qq.com |
3a1d3308126fb1c080d42123898ce41d4a3cc0db | 9e49e30b70de98649149dafb711447ba52262d33 | /recommandation/forms/profileForm.py | a62ce88bb861cea5e7f6190dac7f90caf1f5bc42 | [] | no_license | EasyProjectGTID/Give-me-a-movie | 30cf5fbd5c6cdc76381a0a19fe009442abca1d13 | 0fa0f0a5d4b696d48d79c13727e69fd8b104ef05 | refs/heads/master | 2020-04-07T18:04:34.099339 | 2019-06-10T14:56:28 | 2019-06-10T14:56:28 | 158,595,866 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django import forms
class ProfilForm(forms.Form):
"""
Pour la page de login
"""
username = forms.CharField(
widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Compte utilisateur'}))
email = forms.EmailField(
widget=forms.TextInput(attrs={'class': "form-control", 'type': "text", 'pla... | [
"hhoutmann@gmail.com"
] | hhoutmann@gmail.com |
6273169a24e167c2d6402bebc827c0e25f504dd3 | 82a736afc90d728530b5fdaf8f628e892b8f888c | /flash/pointcloud/detection/model.py | 155126d78555c4bc313965de8b4ef3a440bca26b | [
"Apache-2.0"
] | permissive | mahdipira/lightning-flash | e3b725c01e37de1a933b627017a3077400540bc7 | 3b88e74e54cf8269e41859e3d218973d9e1e9979 | refs/heads/master | 2023-08-11T00:33:00.510246 | 2021-09-14T22:51:38 | 2021-09-14T22:51:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,765 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | mahdipira.noreply@github.com |
9876a9af35eb3649f4f3c68253359af8c252f427 | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Front End/Kivy/project8/pro8.py | ca78447ed453ab88b83ef4fdd5468ca01be6e9f2 | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | from kivy.uix.screenmanager import ScreenManager, Screen
from kivymd.app import MDApp
from kivymd.uix.screen import Screen
from kivymd.uix.textfield import MDTextField
from kivy.lang import Builder
from kivymd.uix.label import MDLabel, MDIcon
from helpers8 import screen_help
from kivymd.uix.button import MDRectangleFla... | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
18cb6da4a1dcaa779b3ef0b93d2dd0af8d8ec46b | e4eabccc6d971289cf13653d1b6f290e39b870ab | /1651-shuffle-string/shuffle-string.py | 806acf60e20549daab09a587a9cd68b2470fb226 | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # Given a string s and an integer array indices of the same length.
#
# The string s will be shuffled such that the character at the ith position moves to indices[i] in the shuffled string.
#
# Return the shuffled string.
#
#
# Example 1:
#
#
# Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3]
# Output: "leetcode"
#... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
faf3b5ffc73b80f5cb5728f55014305a2b80da4e | 738aedb8035e49951f83ce3f4291eee149cad5fb | /OB Damage - Li-Hopfield Model/All the code/SLURM setup files/dir_setup_OI-flat_10_2D.py | 2e83d567ac9f3004eca045a3289376859981b1dd | [] | no_license | jkberry07/OB_PD_Model | fb453303bfa64c1a3a43c7d81d2b5373950e1f4d | 1ce30205354dc30cab4673e406988bfa76390238 | refs/heads/master | 2022-11-21T09:39:09.692654 | 2020-07-25T23:25:11 | 2020-07-25T23:25:11 | 282,358,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 23 16:09:06 2019
@author: wmmjk
"""
import os
f = open('dir_setup_OI-flat_10_2D.sh','w+')
here = os.path.dirname(os.path.realpath(__file__))
subdir1 = 'OI-flat_10_2D'
f.write('mkdir '+subdir1+'\n')
f.write('cp OI-flat_10_2D.py '\
+'H0_1... | [
"noreply@github.com"
] | jkberry07.noreply@github.com |
c124ea30bcfbbcba93bb65a323ba6e966cc49570 | 4c56f7e21fead7114e175fe621ea45c053345719 | /main.py | 574da7f0d5de04ac527e1b7cd093c7f607b0a1f2 | [] | no_license | M1keShum/ChatBot | 61e698c75f01b462c1fb9f062c849ddbf91b1ca4 | 2df6d4782f008acccff8a90b25300e304b632f46 | refs/heads/master | 2022-12-24T15:06:38.986797 | 2020-10-05T12:58:00 | 2020-10-05T12:58:00 | 301,353,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | import datetime as dt
import requests
DATABASE = {
'Сергей': 'Омск',
'Соня': 'Москва',
'Алексей': 'Калининград',
'Миша': 'Москва',
'Дима': 'Челябинск',
'Алина': 'Красноярск',
'Егор': 'Пермь',
'Коля': 'Красноярск',
'Артём': 'Владивосток',
'Петя': 'Михайловка'
}
UTC_OFFSET = {
... | [
"shumaher.mih@yandex.ru"
] | shumaher.mih@yandex.ru |
0e5f8dad633573efa423a07619bc2d96e0e6736b | 340e25f879c0f96d9be68882bf986e302c762c9b | /compsocsite/polls/record.py | 1e1975ceda6f28202b364230fe581a1cde9420c3 | [
"MIT"
] | permissive | lengzi/opra | 5a9077a2d7d9f30d5b96f05af8270f7d3f6a54e6 | db4ee82dde5b95a5db4ea76281154be0cec7dfa5 | refs/heads/master | 2020-03-29T22:35:00.919465 | 2018-09-19T01:04:33 | 2018-09-19T01:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,200 | py | import datetime
import os
import csv
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseRedirect, HttpResponse, HttpRequest, JsonResponse
from django.core.urlresolvers import reverse
from django.views import generic
from django.core.files import File
from .models impor... | [
"tomjmwang@yahoo.com"
] | tomjmwang@yahoo.com |
fd86f23ab21b460ee4463ec6469061d189cf97eb | ed31a4c17c88e39f8ac70f17f8efd057dc334d7e | /1-OOP/test3.py | 6fe4ab8cb0ff4132352025d277f050a36403e143 | [] | no_license | 1216225797/python | e31d4a75f28ef204cac244d8d3e15ca1054fdb07 | a8be63e39740705615000ed7b76e5f8b48c43b41 | refs/heads/master | 2020-04-15T09:10:16.003542 | 2019-07-18T08:19:35 | 2019-07-18T08:19:35 | 164,539,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # 定义一个集合的操作类
# 包括的方法:
# 1.集合元素添加
# 2.集合元素的交集
# 3.集合元素的差集
# 4.集合元素的并集
class SetInfo():
def __init__(self, s):
self.s = s
def add_value(self, v):
self.s.add(v)
return self.s
def intersection_value(self, s2):
# 取交集的另外一种方法是用 & 符号
return self.s.intersection(s2)
# r... | [
"1216225797@qq.com"
] | 1216225797@qq.com |
8334d00aecbe667d6334e195d764962a73cfa895 | eee3c44c595ad2eccecff03a9be75fbcc52944a3 | /22/aoc-2020-22.py | 7f3bd2278e7e3b12b40a7f0eedd8ad93d519b25c | [] | no_license | wjholden/Advent-of-Code-2020 | 796ce0cc6e86a0edfeacf275b5321de61b30db60 | 072fe3ab7d29338c03ae9eb51ea2509da469b873 | refs/heads/master | 2023-02-13T04:11:34.765278 | 2020-12-27T13:46:25 | 2020-12-27T13:46:25 | 317,175,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | with open('input.txt') as f:
players = f.read().split('\n\n')
p1 = [int(i) for i in players[0].split()[2:]]
p2 = [int(i) for i in players[1].split()[2:]]
def round():
global p1
global p2
#print("Player 1's deck:", p1)
#print("Player 2's deck:", p2)
m1 = p1.pop(0)
m2 = p2.pop(0)
... | [
"wjholden@gmail.com"
] | wjholden@gmail.com |
09228ff571e986a20c1511f785929ab92911067b | 53e44e08fe946dc9c648e570ba4fc7f0024b9dac | /apps/mascota/views.py | b4902ed20653e87d6e8a18ab58555f159f92a94c | [] | no_license | JPablo1997/Refugio_Django | 19079c30324aacb517132b05079336bf697d19a7 | 78044ae3249cf9ecccb642afbee6da821eda8a28 | refs/heads/master | 2021-05-01T15:03:12.817638 | 2018-02-13T19:50:23 | 2018-02-13T19:50:23 | 121,028,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.core import serializers
from apps.mascota.forms import MascotaForm
from apps.mascota.models import Mascota
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
# ... | [
"dc16009@ues.edu.sv"
] | dc16009@ues.edu.sv |
234f2f9400de6d64a16b1c44c642412687a10389 | 75da525ace4ee9d994f37b25405cbf878523eb55 | /RLForTrade.py | f9752deb3a03a7232f89a44670188821e20d2bce | [] | no_license | wuter/RLTrading | 06c4a09cd9bb23cb2d0f30c0b53639405e149d1e | 1141059061804486e83498dd634edef9259089df | refs/heads/master | 2020-03-21T04:29:24.964724 | 2018-06-21T02:50:20 | 2018-06-21T02:50:20 | 138,110,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,680 | py | import numpy as np
import tensorflow as tf
import pandas as pd
from sklearn.preprocessing import StandardScaler
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from Market import Market
np.random.seed(5)
tf.set_random_seed(5) # reproducible
# Superparameters
OUTPUT_GRAPH = False
MAX_... | [
"noreply@github.com"
] | wuter.noreply@github.com |
8c28fb51601157fcd64fda227a3c3f719d5b5f4d | 69814c9c3881855e6a8981eb7fc3d869549d3cd0 | /sedfitter/sed/cube.py | 3eeab29c13a149243e1fb9efb4b41d7ba633b166 | [
"BSD-2-Clause"
] | permissive | xueyingtianhua/sedfitter | 83c2f94ba0fdba0af56ccc8a4ad6fd92b62085ab | ec8722ec423ac684e4930fe23a98cd7b2d5b9f50 | refs/heads/master | 2021-01-13T03:29:23.032572 | 2016-07-31T21:27:58 | 2016-07-31T21:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,222 | py | import abc
import numpy as np
from astropy import units as u
from astropy.io import fits
from astropy.extern import six
from astropy.table import Table
from ..utils.validator import validate_scalar, validate_array
from .helpers import parse_unit_safe, table_to_hdu, assert_allclose_quantity
__all__ = ['SEDCube', 'Po... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
d7eee39604fef2837377fb81e7d77c58c31765e1 | 635596e8f165717d5b8d0d83b3c434b24eb5629d | /tenkou.py | 7c1e85a0a888cad03474fbf0ef2db84cd857e850 | [
"MIT"
] | permissive | aaray6/bgm_tenkou | 58733ade90148a6c74ff5ef534a55bb04ee6306c | 8b01d98c5ad5479d931ee0096498062ad0dbbc8b | refs/heads/master | 2022-07-19T16:05:40.914407 | 2020-05-23T09:28:55 | 2020-05-23T09:28:55 | 266,247,912 | 0 | 0 | MIT | 2020-05-23T02:27:23 | 2020-05-23T02:27:22 | null | UTF-8 | Python | false | false | 14,139 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# version 0.0.2
import urllib.request, urllib.parse, urllib.error
import argparse, re, os, sys, copy
from bs4 import BeautifulSoup
def ptStrLiterally(str):
for i in str:
try:
print(i, end='')
except UnicodeEncodeError as e:
pa... | [
"aaray21cn@gmail.com"
] | aaray21cn@gmail.com |
89e6683e391279884270bae480df6b3a56146ac5 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /comisr/lib/model.py | b3f2d2423bbd3b56d18ce8e090b7122e47b40d2c | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 4,846 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b2c5d5aea3e3c403e5e748fe961a49dd1e7d91d2 | b3e6b3e27a39ff953ccba31eddc12539c31a4e4c | /script/complex/complex_nogpu.py | ebefb03e4e5d7c21a05658de3b3ac1fe614e7027 | [
"Apache-2.0"
] | permissive | heitorsampaio/GMXSMDF | 7b7e02f35337513d01bb531e5f9eb80f28aaf521 | 530a5c56d9e79e9f582cf10ea3e8b0e6c80c9929 | refs/heads/master | 2020-03-27T18:29:46.280452 | 2019-04-14T02:29:08 | 2019-04-14T02:29:08 | 146,925,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | #!/usr/bin/python3
from gmxsmdscript import *
import sys
import argparse
import os
parser = argparse.ArgumentParser()
parser.add_argument("-s", dest="structure", required=True,
help="Structure filename directory '/home/patgen/Documentos/Dynamics/ProjectName'", type=lambda f: open(f))
parser.add_ar... | [
"heitorsampaio@Heitors-MacBook-Pro.local"
] | heitorsampaio@Heitors-MacBook-Pro.local |
0109518040f1eac4f295b8006aa89a09b6316e58 | 57f1ceb6d03771ab7ce3ef50e423d69c97321e89 | /Top10StockBundle.py | 4f22b42c2fc3cdbfecc5d325008b19f37e97df2b | [] | no_license | SamSklar/EarningsCallTranscriptAlgo | 7f0a8d599780e297e392b47960c0f8923c50735e | 551eec0321958cc9f6407ff9b04f56e65d0478e1 | refs/heads/master | 2021-08-24T04:46:48.709751 | 2017-12-08T03:18:47 | 2017-12-08T03:18:47 | 113,525,491 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | """
This is a template algorithm on Quantopian for you to adapt and fill in.
"""
from quantopian.algorithm import attach_pipeline, pipeline_output
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data.builtin import USEquityPricing
from quantopian.pipeline.factors import AverageDollarVolume
from quanto... | [
"noreply@github.com"
] | SamSklar.noreply@github.com |
92149e98faa52eebca609f4efe75225452feba29 | 49b1671e85fe800d89faa15ed1499014c0b75fad | /toggle.py | a4bc209049b3575f06190ec75f047daf11c73377 | [] | no_license | NBPat/mightyC | 17f53fb22704b50f8a89df3fc5c254cb91c1d0fe | ace8218eb5f87fd9a3bd577c2a0f694b02eeb826 | refs/heads/master | 2021-02-28T08:37:37.046859 | 2020-03-09T15:41:15 | 2020-03-09T15:41:15 | 245,678,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | # toggle p0
from microbit import *
while True:
pin0.write_digital(0)
sleep(500)
pin0.write_digital(1)
sleep(500)
| [
"noreply@github.com"
] | NBPat.noreply@github.com |
8685c3131ab6f05892fa4bb1a02fb52814f79a92 | 5332ecf5b6bed264bc8da450c14157f84aa5e5c8 | /server/models/user.py | aa63d51f62ab5b95a78fd99a8475ec51079acd59 | [] | no_license | marukosu/raspi-login-checker-server | 69878e9c863c0a3fe0d399c691c167cdb006600b | 14f6c0b0cb790b55dd51189bfd7f8f2747544ca4 | refs/heads/master | 2020-03-09T09:37:20.510592 | 2018-04-22T08:12:52 | 2018-04-22T08:12:52 | 128,716,909 | 1 | 1 | null | 2018-04-22T08:12:53 | 2018-04-09T05:02:17 | Python | UTF-8 | Python | false | false | 1,010 | py | from datetime import datetime
from server import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), index=True, nullable=False, unique=True)
cards = db.relationship('Card', backref='user', lazy=True)
logins = db.relat... | [
"ozeki.haru@gmail.com"
] | ozeki.haru@gmail.com |
b46b95696facf08a3eaebf1ce39922c26140cb50 | f2b5ed13116eff2eecef88e941e2498585040fc2 | /WEEK4/reschedule_exams/submit_pass!.py | 3beb44193ced0705cbbeebc00976acfd4fa2e82b | [] | no_license | sinhalok/Coursera-Advanced-Algorithms-and-Complexity | 74cf0a6ee27a883e5fcfeedab3c01e5269dc63f6 | ae66df98cfa1aae772ac03e71c7022dedd96a59d | refs/heads/master | 2020-04-29T02:56:36.468546 | 2019-03-15T09:55:03 | 2019-03-15T09:55:03 | 175,789,466 | 12 | 9 | null | null | null | null | UTF-8 | Python | false | false | 7,717 | py | # python3
from enum import Enum
import collections
import sys
import threading
sys.setrecursionlimit(10 ** 6) # max depth of recursion
threading.stack_size(2 ** 26) # new thread will get stack of such size
class Ordered_Sets(collections.MutableSet):
def __init__( self, iterable=None ):
self.end = end ... | [
"aloksinha422@gmail.com"
] | aloksinha422@gmail.com |
8c58420b17067a043d83a13e81e8f3ba80e49f63 | c12b491e9a5c855a1fe835acdbc86a3ee2062d88 | /clean_conllu.py | 9bcf3e859f1eaf0198d898825f38d32a1b5b2849 | [] | no_license | ikwattro/corenlp-swedish-depparse-model | fd8def78a8e60b8d77c6bcc0bed2e641136a95f8 | fd1629ad486d15fa08e21cabb4d0a21330475f93 | refs/heads/master | 2020-04-24T12:23:27.665258 | 2017-11-22T18:13:32 | 2017-11-22T18:13:32 | 171,953,162 | 1 | 0 | null | 2019-02-21T22:10:41 | 2019-02-21T22:10:41 | null | UTF-8 | Python | false | false | 210 | py | # clean conll files
with open('sv-ud-dev.conllu') as f:
content = f.readlines()
content = [x for x in content if not x.startswith('#')]
with open('swedish-dev.conllu', 'w') as p:
p.write("".join(content)) | [
"andreas.klintberg@meltwater.com"
] | andreas.klintberg@meltwater.com |
61d10d9f7cf9442710afea9bf8178f84460771bd | 93935f5d37641fa5b76ff709188a5a2fc5c908d7 | /test.py | 1f5fcfd87656659d7140f1a1aa129eb3debf5433 | [] | no_license | br4bit/TDP_Queue | d32812edee004535b06f4f11793cfdfc4832d2e4 | f13621c62578b543846917e69fd3ce588252c163 | refs/heads/master | 2021-07-08T18:11:34.174147 | 2017-10-07T22:24:39 | 2017-10-07T22:24:39 | 106,134,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from Collections.ArrayQueue import ArrayQueue
f = ArrayQueue()
f.enqueue(1)
f.enqueue(2)
f.enqueue(3)
f.enqueue(4)
f.enqueue(5)
f.enqueue(6)
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.dequeue()
f.enqueue(6)
f.enqueue(5)
f.enqueue(4)
print(len(f))
print(f)
print(f._front)
| [
"luxifero@live.it"
] | luxifero@live.it |
0df5df687aaa9a0594fde9bd2120516095951eea | 94ce20de2c4fb82d5295c005541766400d64a8e9 | /cli/raft-tools/tools/ZAP/run.py | 8e2b6bd08dc365f1154e0dfd96d281f91ec2d02c | [
"LGPL-2.1-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | hookjr/rest-api-fuzz-testing | 27da0baab26472ede83609c6d3319a353dc9bf3a | d549b12f7213326e10d4cf5340c93d7803b0c839 | refs/heads/main | 2023-02-02T04:23:32.878185 | 2020-12-14T18:59:23 | 2020-12-14T18:59:23 | 318,024,547 | 0 | 0 | MIT | 2020-12-03T00:09:42 | 2020-12-03T00:02:58 | null | UTF-8 | Python | false | false | 2,068 | py | import json
import os
import subprocess
import sys
work_directory = os.environ['RAFT_WORK_DIRECTORY']
run_directory = os.environ['RAFT_TOOL_RUN_DIRECTORY']
def auth_token(init):
with open(os.path.join(work_directory, "task-config.json"), 'r') as task_config:
config = json.load(task_config)
auth_co... | [
"noreply@github.com"
] | hookjr.noreply@github.com |
7f86da3f8807c7398288210caa1a6b17f88d9d2d | 474afaa013b85973039d5f158921c419538193b3 | /obselete/8healthDebug.py | 531384b6324ce9bf436125d0a0366f9dfd77324e | [] | no_license | killeronline/Madagaskar | db04b07e78d728e55f4264a8ae247cd41e793bc1 | 6683248824fb4526a57baff930ad158702fd2b4a | refs/heads/master | 2020-05-18T07:25:52.553129 | 2019-05-28T20:48:17 | 2019-05-28T20:48:17 | 184,264,565 | 1 | 0 | null | 2019-05-02T22:36:11 | 2019-04-30T13:12:39 | Python | UTF-8 | Python | false | false | 1,540 | py | # Load libraries
import os
import datetime
import pandas as pd
def get_health(filename):
df = pd.read_csv(filename)
volumeColumnName = 'No. of Shares'
opriceColumnName = 'Open'
hpriceColumnName = 'High'
lpriceColumnName = 'Low'
cpriceColumnName = 'Close'
prices = [opriceColumnNa... | [
"KILLA"
] | KILLA |
b8adf479dd7dc6ab41347cb682ab8c219f906b4c | e98500bcaa07f164126c4c819e519ecb67b63049 | /scripts/python/travis-before-install.py | 2b96d96945d68acf49ba9ba29828911e72b345b1 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | drodri/core | 6cc05f6af4f725d19b1084bceeba42b3a7a267a8 | ffc52c9c2049546828b20440f176c36cb73e6be6 | refs/heads/master | 2021-01-20T18:58:05.981071 | 2015-03-12T14:49:49 | 2015-03-12T14:49:49 | 32,041,598 | 0 | 0 | null | 2015-03-11T21:15:30 | 2015-03-11T21:15:30 | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from utility import make_executable
from utility import DownloadError
from utility import EnvironError
from utility import download
from utility import execute
from utility import getenv
from utility import which
from utility import ex... | [
"tres.walsh@mnmlstc.com"
] | tres.walsh@mnmlstc.com |
dd9ab3be8fc316483e7dbfc10219138f8cc4d984 | 2c41f838c5d5d43776a7520bc63b7b796f1618df | /is_prime/solution.py | 031c73627e158b20cf684a69ce1b81f13416a86f | [] | no_license | EmanuelStoyanov/homework1 | f1c4f849cb80ca1acb5c88bc7746747e8bf6398e | c693fcfb892fb126dbb40516c4f2711501c924bc | refs/heads/master | 2021-01-10T19:02:35.604292 | 2014-03-28T13:02:12 | 2014-03-28T13:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def is_prime(n):
return sum_of_divisors(abs(n)) == abs(n) + 1
def sum_of_divisors(n):
return sum (divisors(n))
def divisors(n):
if n != 1:
arr = [1, n]
else:
return [1]
for i in range(2,n):
if n % i == 0:
arr.append(i)
return arr | [
"emanuel.stoyanov@gmail.com"
] | emanuel.stoyanov@gmail.com |
2847b874f3e1df1652fe93cb406913574a4bd82c | e7bfe1de1cb66bf82d1723896eb7a9fb9fc843ac | /cesar.py | 62401cbc475f87a05ef3ae21749e3e29f3a68e9a | [] | no_license | Derekas/module1_p2 | 14ea6e648a2189b05592a6053b2d91c7cc3d4631 | af8f6a8b44393a59bc87dc80905c511cc4607c69 | refs/heads/master | 2023-09-02T10:17:22.757017 | 2021-11-14T18:00:30 | 2021-11-14T18:00:30 | 428,001,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from typing import Text
def encrypt(text,s):
text=text.upper()
result=""
for i in text:
if i.isspace():
result+=""
continue
result+= text[(text.index(i)+shift)%len(text)]
return result
text=input("Introduce un texto")
shift=int(input("Introduce el shift"))
... | [
"derekinformatica619@gmail.com"
] | derekinformatica619@gmail.com |
72b4b3a87f62dba1dfc842f832c5cdb8caf9ab99 | b68723013bdd990176625b9e4e5c0a61a89c1ce6 | /photoenv/lib/python3.5/types.py | 71566f81e684dcdbeb0c3e20ef4d235deadf3e64 | [] | no_license | TZhouEnigma/InstagramClone | 00ca37a1dc8212fb53ab978486d4d4357cc57118 | 4b3ae3381de54a969832fdb2dec14b82afcb591e | refs/heads/master | 2021-01-23T01:26:21.257975 | 2017-05-10T19:01:18 | 2017-05-10T19:01:18 | 85,908,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | /Users/chuxiangzhou/anaconda/lib/python3.5/types.py | [
"chuxiangzhou@CHUXIANGs-MacBook.local"
] | chuxiangzhou@CHUXIANGs-MacBook.local |
eac538b8e2eeb2e15edebc2f6e8215ce91a5b457 | d682f7ada09b47205af2d633cdcd2e301bec4f02 | /web2py/applications/dctools/controllers/appadmin.py | 86282a23097ccfd8a2a3f9bd32738de6244638e9 | [] | no_license | Arsylk/destiny-child-forum | f15ef9f8cf7d151bab41e352983d012e2bd2dc49 | 35398a0f83175b1eed97c508c999adfa37685b45 | refs/heads/master | 2021-06-29T20:51:08.871312 | 2020-12-01T12:59:49 | 2020-12-01T12:59:49 | 186,180,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,938 | py | # -*- coding: utf-8 -*-
# ##########################################################
# ## make sure administrator is on localhost
# ###########################################################
import os
import socket
import datetime
import copy
import gluon.contenttype
import gluon.fileutils
from gluon._compat import ... | [
"darkangelice6@gmail.com"
] | darkangelice6@gmail.com |
bb6067cb36c939472c10f118b81728af08833449 | fca51db47e2cea902a96bfee11275e2b5cb50978 | /dendrobium_inference.py | 4266ddaaebbe5edaaef15252d3faf44db6f8953a | [] | no_license | LeonHardt427/dendrobium_tensorflow | 5cbf97af3a721a39996db56432dd86e17bd69728 | e289aa178dcb5a7aa43b355352355fda33993e63 | refs/heads/master | 2021-08-09T03:04:05.702945 | 2017-11-12T02:36:19 | 2017-11-12T02:36:19 | 108,624,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/10/27 上午10:01
# @Author : LeonHardt
# @File : dendrobium_inference.py
import tensorflow as tf
# Set parameter
INPUT_NODE = 784
OUTPUT_NODE = 10
LAYER1_NODE = 500
# using 'tf.get_variable' to get variable.
def get_weight_variable(shape, regularizer)... | [
"leonhardt427@126.com"
] | leonhardt427@126.com |
721ccccfd423803b244512a2e06e67214b3cbb31 | cdc770bb64d90010f503df093436403395d54896 | /python/sklearn/metrics/ranking.py | 48344a767436b07f5dc58d36dda4da57387d280a | [
"MIT"
] | permissive | Decoder996/entity_resolution | 5a43f5f5f95ba7cd281ce9489e6e5f9bee1694ce | 4fe98701422bbceebc0dfbfc2733add2b9695f2a | refs/heads/master | 2023-05-24T20:57:29.800001 | 2015-10-02T18:49:49 | 2015-10-02T18:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,114 | py | """Metrics to assess performance on classification task given scores
Functions named as ``*_score`` return a scalar value to maximize: the higher
the better
Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize:
the lower the better
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.... | [
"barnes.matt.j@gmail.com"
] | barnes.matt.j@gmail.com |
03247b25e26aeb726a52530199ae1a3d33719eff | 9f457c291a17e8dc6e43b26cdcb6cc18d128ad81 | /print_array_in_pendulum_form.py | f82d2a10b17d435a1165d232fb4f1d8e97904d04 | [] | no_license | agvaibhav/arrays | 2d19254bf3983602644dd3978721ade4ca3981d5 | 857857ccca04ce6384330a7fd2ef529b8430d5f6 | refs/heads/master | 2020-03-26T03:10:43.912686 | 2019-08-07T05:04:21 | 2019-08-07T05:04:21 | 144,442,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | '''
ques
Write a program to input a list of n integers in an array and arrange them
in a way similar to the to-and-fro movement of a Pendulum.
The minimum element out of the list of integers, must come
in center position of array. If there are even elements,
then minimum element should be moved to (n-1)/2 ind... | [
"noreply@github.com"
] | agvaibhav.noreply@github.com |
59ca4aee3ddbe2bc9a8b423ae134935be38ca795 | b84ad47aac690d4f97b9948923785bb70ee9f8c1 | /settings.py | 6713816e3821d41a80ac35cd018ae987ad1cd75d | [] | no_license | shadabahmad01/alien_game | ec84b6c133f909e6304fd16272b0f5bab5bb2bdb | 616e695e4c8887082f8a47ac5bd2af7f6eb031d1 | refs/heads/main | 2023-06-27T04:42:38.138066 | 2021-07-22T18:00:33 | 2021-07-22T18:00:33 | 388,549,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py |
class Settings:
"""class to store all settings for alien invasion."""
def __init__(self):
"""initialize game settings"""
# screen settings.
self.screen_width = 1400
self.screen_height = 800
self.bg_color = (230,230,230)
# ship settings.
self.ship_limit = 3
# bullet settings.
self.... | [
"noreply@github.com"
] | shadabahmad01.noreply@github.com |
8acd740c72e0419c3de95ec78794587b7345aea1 | e6ab93f7f58ba12318959b4f415c9f042e1e9bec | /Test3/test3-3-3.py | 5665c7529b884146f945c074c2415b627f3e849b | [] | no_license | dlvguo/SklearnTests | 3281c961faece67012b9e0fed652a64637e248a4 | 785ec9259b8d0a2bd962b8b0df41e44a06ca7c2d | refs/heads/master | 2022-11-15T12:05:37.405873 | 2020-07-10T05:42:54 | 2020-07-10T05:42:54 | 272,647,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import numpy as np
import time
from sklearn import preprocessing
from sklearn.feature_selection import VarianceThreshold
from sklearn.metrics import silhouette_score
from Test3.S_Dbw import S_Dbw
from sklearn.cluster import AgglomerativeClustering
# 实验3 第(3)步骤3 使用层次聚类计算
mobilePath = "../实验数据/移动客户数据表.tsv"
np.set_print... | [
"dlvguo@qq.com"
] | dlvguo@qq.com |
aed3eadc0c76d956c2c586e2a70d16eaec9aee78 | f36ea11d9055c4016f405ce4e59e63509a0200e7 | /FinancialBot/views.py | 4ea61f9985d100967fe78d69c8e3975582e78bd2 | [] | no_license | EricHu214/FinancialBot | 20136fbf1f59e1b5e700d63245adfa497cb90f73 | 9788d443b6b2b3c5335b2d19a4c8fc3b8f80363d | refs/heads/master | 2021-01-20T06:17:45.347025 | 2017-08-26T17:23:30 | 2017-08-26T17:23:30 | 101,499,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template
from FinancialBot import app
@app.route('/')
@app.route('/home')
def home():
"""Renders the home page."""
return render_template(
'index.html',
title='Home Page',
year=da... | [
"Eric.Hu214@outlook.com"
] | Eric.Hu214@outlook.com |
8022f12b6bdc80820f79b896a18b71ea2aca5b72 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03844/s016048975.py | 61fa23d2d0067a90a0b12e2ac15e028d6958db57 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | a,b,c = input().split()
print(int(a) + int(c)) if b =="+" else print(int(a) - int(c)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f239f2736f85aeccab8749fde1c583519836fcc6 | 95d33d03cdf8414ad5f76c6d5be28f9ea40998bb | /06-dynamic-programming-and-recursion/memoization.py | c54413fcfdcdb81ee5fe99e82422a2bf22376797 | [] | no_license | dominiquecuevas/dominiquecuevas | b93326f8cc9f720aa61b7ee4004dde56706e4551 | 10674e86ed50693fbbb3371a52dfa83f45bf088e | refs/heads/master | 2021-05-21T08:57:37.439066 | 2020-04-22T20:26:17 | 2020-04-22T20:26:17 | 252,626,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | class Fibber:
def __init__(self):
self.memo = {}
def fib(self, n):
if n == 0 or n == 1:
return n
if n in self.memo:
return self.memo[n]
result = self.fib(n-1) + self.fib(n-2)
self.memo[n] = result
print('memo:', self.memo)
return re... | [
"cuevasdominique@gmail.com"
] | cuevasdominique@gmail.com |
c7f104841f354af7596f72b7daaf1092f49b6f9f | 5b0ad97cb6924e487c0921965dacb3dd18f19a1a | /src/FourierTransformation/src/utils.py | 1f58c19f5b54c36b5d15affd8b83a12457005f7f | [] | no_license | sinoyou/ImageProcess_and_PatternRecognition | bcde442b00a86f3dcb6c49f5f1e2857b48c41ad5 | dffee2c21ac789066a3f4ceddf69172e417f84e7 | refs/heads/master | 2023-01-28T04:24:10.700353 | 2020-11-30T05:35:55 | 2020-11-30T05:35:55 | 247,293,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import numpy as np
def mirror(array):
"""
Apply mirror transform to 2D array.
The array will be equally split to 4 parts by vertically and horizontally.
Then in each part, up-down and left-right flip will applied.
Finally, 4 parts will be concat as original order.
Application Area: frequency ... | [
"youzn99@qq.com"
] | youzn99@qq.com |
d40be46a3520e3def20e3f28cbda8d6a19e18912 | 10d748be435d190fe15ce4e3080bba5fffd2156d | /blogapp/views.py | 71c08d5e2093ef9600656c92d903cc373285240d | [] | no_license | liomotolani/Blog | 9c35883d0dcdbd5634617c9446991d4755353754 | 4c6301f430354389096380907e1cc012e4c7ffd5 | refs/heads/master | 2020-09-04T07:58:39.069406 | 2019-11-05T08:13:57 | 2019-11-05T08:13:57 | 219,690,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from django.shortcuts import render
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from .models import Post
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte... | [
"ligaliomotolani@gmail.com"
] | ligaliomotolani@gmail.com |
06d28ed6d203c6790e5e808bd8033beb090b6c7d | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/mcscf/31-cr2_scan/cr2-scan.py | cd23eb7028ad7e19891993db6645713ad6ae6e11 | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 2,329 | py | #!/usr/bin/env python
'''
Scan Cr2 molecule singlet state dissociation curve.
Simliar tthe example mcscf/30-hf_scan, we need to control the CASSCF initial
guess using functions project_init_guess and sort_mo. In this example,
sort_mo function is replaced by the symmetry-adapted version
``sort_mo_by_irrep``.
'''
imp... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
66eee5b3e6193fdd3fbf93572531c18f032831fc | 5905ed0409c332492409d7707528452b19692415 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/artifacts/print_settings/gradle.py | 82a99b6bd2e49073fe4da73c767a02d9c12bb651 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | millerthomasj/google-cloud-sdk | c37b7ddec08afadec6ee4c165153cd404f7dec5e | 3deda6696c3be6a679689b728da3a458c836a24e | refs/heads/master | 2023-08-10T16:03:41.819756 | 2021-09-08T00:00:00 | 2021-09-08T15:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. 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 requir... | [
"gcloud@google.com"
] | gcloud@google.com |
9abb36093dd4eb32eac15ae3bed936f6cee0244f | 840c4a703bcf96346cf52f4ea01d98c915939246 | /src/models/train_model.py | 2db599f10b412ff3bbc113e405cb8fa0b439f208 | [] | no_license | alphagov-mirror/tagging-suggester | 4b5b8c4e67ffc65e5e8b588b30b5725b0086182b | 1d5a6d54cefbf03efb32f67ae779eedd2f3d0071 | refs/heads/master | 2020-07-13T23:34:12.543645 | 2019-12-16T10:49:10 | 2019-12-16T10:49:10 | 205,177,279 | 0 | 0 | null | 2019-08-29T14:02:20 | 2019-08-29T14:02:19 | null | UTF-8 | Python | false | false | 146 | py | from models.apex_node_predictor import *
if __name__ == "__main__":
apex_node_predictor = ApexNodePredictor()
apex_node_predictor.train() | [
"oscar.wyatt@digital.cabinet-office.gov.uk"
] | oscar.wyatt@digital.cabinet-office.gov.uk |
b61514eb1142df5237a51fdb02a3262b95cadbd4 | dfe65f843d446493ca43afe6b054595c977c953b | /store/migrations/0001_initial.py | 29feddddb5fa60a54b9b68f57d59e49cb56159e4 | [] | no_license | omprakashn27/djnagoecom | a7d40066ec93b3244dc6c7a736f8c288147d5f46 | 7a1061c39f04a35c1dc95fcde352041a48285475 | refs/heads/main | 2023-07-21T21:35:46.498539 | 2021-09-07T10:25:52 | 2021-09-07T10:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | # Generated by Django 3.1.7 on 2021-08-15 12:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import store.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | [
"omprakash95844@gmail.com"
] | omprakash95844@gmail.com |
c78bd46d107941971e5ccbb87a5f346b8584d902 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ago-Dic-2019/Luis Llanes/Practica1/ejercicio4-6.py | 947b7bb18c11b7094451454ce8f7d6b447784ac4 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 113 | py | #del 1 al 20 mostrando pares
pares=[]
for i in range(1,21,2):
pares.append(i+1)
print(i+1)
print(pares) | [
"luis_llanesn@hotmail.com"
] | luis_llanesn@hotmail.com |
c82b4cc15838b566a9c92ee0f9e2ac5b48dae623 | 380dfac9b68ef8663db5a9d1b30fc75636dec3d3 | /billforward/apis/roles_api.py | de864151b5300fd22c12648fd85530ca1110525f | [
"Apache-2.0"
] | permissive | billforward/bf-python | d2f549e0c465d0dc78152b54413cac4216025a64 | d2b812329ca3ed1fd94364d7f46f69ad74665596 | refs/heads/master | 2021-12-13T22:10:16.658546 | 2018-06-19T14:44:45 | 2018-06-19T14:44:45 | 63,268,011 | 2 | 1 | Apache-2.0 | 2021-12-06T12:59:41 | 2016-07-13T17:57:37 | Python | UTF-8 | Python | false | false | 30,334 | py | # coding: utf-8
"""
BillForward REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
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... | [
"alexander.birch@billforward.net"
] | alexander.birch@billforward.net |
86afbabd7bc5ba70376460b1ae08e5e9179e22d3 | af060eff34662f1140ab1869c2024f01f5a01f10 | /backend/config/settings.py | 46629ccce45910002fcf746b3201c8a7e0b2ce72 | [] | no_license | pnowosie/containers-play | 3a93f468cb526f7eb5498e10ab1af4f460a8fc2c | cf762cc97bdb20d34d1b20147214842aa9063c5e | refs/heads/master | 2023-05-26T23:43:28.415436 | 2020-06-02T14:41:12 | 2020-06-02T14:41:12 | 268,602,257 | 0 | 0 | null | 2023-05-22T23:29:15 | 2020-06-01T18:35:00 | Python | UTF-8 | Python | false | false | 144 | py | import os
DEBUG = True
# SQLAlchemy
db_uri = os.getenv('DATABASE_URL')
SQLALCHEMY_DATABASE_URI = db_uri
SQLALCHEMY_TRACK_MODIFICATIONS = False | [
"Pawel.Nowosielski@imapp.pl"
] | Pawel.Nowosielski@imapp.pl |
30743d0660f99cca916c12814e164669ead70026 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/expr_lists-45.py | 9aff4784319ac14303406fc9b8c82678ed9274ee | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | x:[int] = None
y:[object] = None
z:[bool] = None
o:object = None
x = [1, $Exp, 3]
x = []
y = [1, True]
z = [False, True]
x = None
o = x
o = x = [1]
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
83c234db09049cf8803edc2703c52326a9257c03 | 6023d9958b0d03ba905d8052f6fff8bbeb43bd8a | /ch01Sort/HeapSort.py | 1b082d94d87602575ef3fb6b41c4f1218c59cd65 | [] | no_license | EchoLLLiu/Basic_Algorithm | bd9a4f20803b951420411b2acdfa701cd73e1aa9 | f6acb797a9ae3b23dddd8a49bec4478f1a4cd6c4 | refs/heads/master | 2020-03-19T20:10:39.492699 | 2018-06-11T07:39:12 | 2018-06-11T07:39:12 | 136,890,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # -*- coding:utf-8 -*-
__author__ = 'LY'
__time__ = '2018/6/11'
# 堆排(完全二叉树:直接利用列表)
# (1)从最后一个非叶子节点开始,构建初始大根堆:根比孩子大
# (2)将第一个元素(最大)与最后一个元素交换,此时[0,...,n-1]为无序,[n]为有序,对[0,...,n-1]进行(1)
# 再将第一个元素与无序列表中最后一个交换,此时[0,...,n-2]无序,[n-1,n]有序,对[0,...,n-2]进行(2),以此类推
class HeapSort:
'''堆排类'''
def Max_Heapify(self, heap, hea... | [
"echoliu61@foxmail.com"
] | echoliu61@foxmail.com |
0b5b7f88519fa9b9b26e3ad6652ff1a4672c1541 | f2c773e7ccdd60caf5a7c062305cfcd14d11beec | /AR_Scripts_1.0.16_R21_Deprecated/AR_SwapObjects.py | 85e406b4c862dc6ca5dea0e0ae5157af60259cd3 | [] | no_license | aturtur/cinema4d-scripts | 4ccfbc3403326a79076d9bcf001189cd5427f46a | a87fc6c835db5d205f8428cc67ccd30fdd4b4d4b | refs/heads/master | 2023-07-03T13:34:58.735879 | 2023-06-19T09:57:22 | 2023-06-19T09:57:22 | 63,731,563 | 316 | 49 | null | 2022-04-24T02:31:17 | 2016-07-19T22:15:05 | Python | UTF-8 | Python | false | false | 2,091 | py | """
AR_SwapObjects
Author: Arttu Rautio (aturtur)
Website: http://aturtur.com/
Name-US: AR_SwapObjects
Version: 1.0
Description-US: Swaps selected objects between each other. Holding SHIFT while executing script swaps also objects place in hierarchy.
Written for Maxon Cinema 4D R21.207
Python version 2.7.14
"""
# Lib... | [
"rautio.arttu@gmail.com"
] | rautio.arttu@gmail.com |
3ff91aed860feace941ae6655b6fa87c1da6c541 | 7ab1948dd28fa099ac115f5799440896e1ef7359 | /DiscerningBot.py | 00b57af996e64669181e72b478d144f38f7f6f9b | [] | no_license | gliliumho/halite-bot | 7ea2a265fe7c712b1050f31ba0bbad63add9411d | b3cfaf2133e77fee7dcd58f29a97b06110546013 | refs/heads/master | 2021-01-19T07:35:23.194349 | 2016-12-21T03:20:36 | 2016-12-21T03:20:36 | 77,011,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import hlt
from hlt import NORTH, EAST, SOUTH, WEST, STILL, Move, Square
import random, math
myID, game_map = hlt.get_init()
hlt.send_init("DiscerningBot")
def nearest_enemy_direction(square):
min_direction = WEST
max_dist = min(game_map.width, game_map.height)/2
for direction, neighbor in enumerate(gam... | [
"gliliumho@gmail.com"
] | gliliumho@gmail.com |
463eaab959122d3d7a4c548f6fb1790870651e6d | d75baa992299c5547f92fcebcfcf35d314e5b010 | /app/models/Estado.py | 94cd9c094892fee9dc2c1d89f8c901bfc61c725b | [
"Apache-2.0"
] | permissive | GeovaneCavalcante/Jeffson | f5af44cbdcca433a9b216d89316f3e490fc85fac | efb0232a9d79106a07b01655c82ec56572373a59 | refs/heads/master | 2021-06-13T03:39:21.142367 | 2017-04-17T15:23:05 | 2017-04-17T15:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.db import models
class Estado(models.Model):
id = models.IntegerField(primary_key=True)
uf = models.CharField(max_length = 2)
nome = models.TextField()
| [
"geovanefeitosacavalcante@gmail.com/"
] | geovanefeitosacavalcante@gmail.com/ |
3779d30cfebeda301d57e818ebe55098983d539e | 5809b21a6f0ad038ec512ad597776000f0c0f5a1 | /week_four/task_two_src/apptwo/migrations/0003_auto_20191127_1753.py | b5eb05a48c94255481f19560418799d903611a99 | [] | no_license | Bisoyeolaiya/crud-django-api | 4f9db1514c0c97b5496b3a2b8d635bf58e24ca52 | 90e51f30a133adc97ec69fea1ba5bb180e45b922 | refs/heads/master | 2021-06-28T15:30:02.067316 | 2020-02-03T04:19:06 | 2020-02-03T04:19:06 | 237,881,616 | 0 | 0 | null | 2021-06-10T22:32:32 | 2020-02-03T04:02:56 | Python | UTF-8 | Python | false | false | 1,190 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-27 16:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apptwo', '0002_auto_20191127_1722'),
]
operations = [
migrations.AlterFiel... | [
"olaiyabisoye@gmail.com"
] | olaiyabisoye@gmail.com |
49fa812649395ceaca60266b1cbbfc310e8da3bf | cd839f096fff4d14709841de4ceb25bb38224075 | /vertualizor/vertualizor/rest_api/dev.py | 309c8c408e044cae1f991eeb74da55088db7a118 | [] | no_license | aliscie/Tweet-clone-Tweetme-2 | 2506f92d9b10f17f26594d524395f569c7e79b82 | b8c9c8d66c8de3daf33d43d8e8236fc4afecdd29 | refs/heads/master | 2023-01-31T01:12:56.647684 | 2020-12-15T07:13:20 | 2020-12-15T07:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django.contrib.auth import get_user_model
from rest_framework import authentication
User = get_user_model()
class DevAuthentication(authentication.BasicAuthentication):
def authenticate(self, request):
qs = User.objects.filter(id=1)
user = qs.order_by('?').first()
return(user, None)
| [
"weplutus.1@gmail.com"
] | weplutus.1@gmail.com |
ed79ebe24351df128ab470b7dd0dec754bb1d13a | 86634c50729039cc31a36bc077f8184d518b5129 | /significant_qso_pairs.py | 5d392b6866969e7c26791e07c7463e50584c8af0 | [
"MIT"
] | permissive | yishayv/lyacorr | 6332df2c534e9ac7d139023674ecd279181181c2 | deed114b4cadd4971caec68e2838a5fac39827b1 | refs/heads/master | 2021-01-23T00:06:41.776274 | 2017-05-09T13:25:32 | 2017-05-09T13:25:32 | 85,701,601 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import numpy as np
class SignificantQSOPairs:
def __init__(self, num_elements=20, dtype=float, initial_value=np.nan):
self.ar_qso1 = np.zeros(shape=num_elements, dtype=int)
self.ar_qso2 = np.zeros(shape=num_elements, dtype=int)
self.ar_values = np.full(shape=num_elements, fill_value=initia... | [
"yishayvadai@mail.tau.ac.il"
] | yishayvadai@mail.tau.ac.il |
e3f7f37be4044ecc2be0cf56b77dcda369682d5b | f377d304987293a2c957699d7228587513982180 | /python/mig/run_engine.py | aa56ae0d475482a11026f952a941525102def2c6 | [] | no_license | georgeliu95/trt-practices | e0e048658cf15d8586b7021ca039a05d1b585573 | 9c1f0a0f70335b1c56afb397abc939dada2c737c | refs/heads/main | 2023-06-01T23:36:14.691387 | 2021-06-18T03:30:20 | 2021-06-18T03:30:20 | 361,679,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | import tensorrt as trt
import pycuda.driver as cuda
import numpy as np
# import nvtx
import os
import sys
sys.path.insert(0, '..')
from common import HostDeviceMem, BuilderCreationFlag
from common import allocate_buffer, printIOInfo, get_trt_type
# CUDA Context Init
cuda.init()
CURRENT_DEV = cuda.Device(0)
ctx = CURR... | [
"georgel@nvidia.com"
] | georgel@nvidia.com |
67033abb78a0b3fefc67b9051476e1e6829ab474 | b0abd89a991603e0f9454012b8abfca6c85595bc | /soundrl.py | 230db80dcd1956f23306e4554d974f2bb7f19cf4 | [
"MIT"
] | permissive | AresCyber/Alexander | f05ae24a9ce1a7b0287ce6f128dfe53b6094d4c1 | a76a0f8779db5c84c2b0f8257bf1b1e6deb8e7e8 | refs/heads/main | 2023-01-21T08:05:59.211081 | 2020-12-07T11:37:10 | 2020-12-07T11:37:10 | 319,167,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,901 | py | import speech_recognition as sr
import pyttsx3
from time import sleep
def voicepass(password):
fcount = 0
engine = pyttsx3.init()
engine.setProperty('rate', 150)
engine.setProperty('volume', 0.9)
r = sr.Recognizer()
speech = sr.Microphone(device_index=1)
while fcount != 6:
try:
... | [
"31662642+nickalholinna@users.noreply.github.com"
] | 31662642+nickalholinna@users.noreply.github.com |
8bab3f142dc7c1a3aad90c1a9a629d069ef615f9 | b952f8b08eca66765c2063a5ad54039fd46884fd | /erp/apps/simplewiki/views.py | 0ac320929d7bb22ceca59c57ccf77e9ca77d5fa3 | [] | no_license | Marine-22/ERP | 5585ea21ec1880dbbd9e0154574c1c0ba3e5a095 | b55d6f3cc5010f4231f8859a61579b3aa42cdec6 | refs/heads/master | 2020-05-27T09:27:54.877448 | 2014-10-09T15:18:21 | 2014-10-09T15:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,842 | py | # -*- coding: utf-8 -*-
import types
from django.core.urlresolvers import get_callable
from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseServerError, HttpResponseForbidden, HttpResponseNotAllowed
from django.utils import simplejson
from django.shortcuts import get_object_or_404, render_t... | [
"root@Debian-60-squeeze-32-minimal.(none)"
] | root@Debian-60-squeeze-32-minimal.(none) |
a68135e8c64df81ffe1e024edfa94cffcb8b9e5c | d911c8f76968a9d6e5bce9824ed922ece1778199 | /src/ieee754/part_ass/assign.py | 00cebc6dab33a25f93d4e790dd7883fc859bae9e | [] | no_license | ChipFlow/ieee754fpu | 1d85bf9907c7e456b4e1c281dfcbd7dc2b7e9016 | 0cdf4be4df5c0fbae476442c1a91b0e8140e2104 | refs/heads/master | 2023-08-16T11:31:05.619598 | 2021-10-02T09:39:43 | 2021-10-02T09:39:43 | 412,763,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,401 | py | # SPDX-License-Identifier: LGPL-2.1-or-later
# See Notices.txt for copyright information
"""
Copyright (C) 2021 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
dynamically-partitionable "assign" class, directly equivalent
to nmigen Assign
See:
* http://libre-riscv.org/3d_gpu/architecture/dynamic_simd/assign
* http://b... | [
"lkcl@lkcl.net"
] | lkcl@lkcl.net |
0203ec0c496d3d7b043d6d733f646b329d84abbf | d195dcfcb725ff3a83339ef8274bde6f61757fca | /show_anchorage_detail.py | 9746022da3787df6a34198258c034e459dc774fb | [] | no_license | deknapp/ak_redistrict | 3214b8859a27fb74682720247a2f21a8157d4102 | 18503cc47ec514361b7006ed293e3cca89b77d42 | refs/heads/master | 2020-07-07T20:49:42.540662 | 2019-10-28T04:53:51 | 2019-10-28T04:53:51 | 203,474,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import geopandas
import matplotlib.pyplot as plt
import pandas
import os
import osr
import legislators
import districts
leg_gdf_plot = legislators.get_leg_plot('rep')
district_gdf = districts.get_district_gdf()
final = district_gdf.plot(ax=leg_gdf_plot, color="none", edgecolor='black', facecolor="none")
final = dist... | [
"nathaniel.knapp@gmail.com"
] | nathaniel.knapp@gmail.com |
782514ab58f61ab1d5123c7b936f964f11b8761c | 446275695cb2161ab2b8e79126236e41fa41d781 | /greatest of n numbers.py/greatest of 3 num using if-else.py | 0a18ab01bc78903a0bb4bc16803341598da13d60 | [] | no_license | arshleen18/python | b54591c2790942260fa7d2c0eabace6051d50423 | 9933e5422a171f189662577f361895c984e63b64 | refs/heads/main | 2023-07-01T14:01:47.102240 | 2021-08-04T11:54:09 | 2021-08-04T11:54:09 | 368,593,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #wap to find the greatest of 3 numbers using if-else statement
n1=int(input('enter num1: '))
n2=int(input('enter num2: '))
n3=int(input('enter num3: '))
if n1>n2:
if n1>n3:
print('greatest number is:', n1)
else:
print('greatest number is:', n3)
else:
if n2>n3:
... | [
"noreply@github.com"
] | arshleen18.noreply@github.com |
3f0f5477db60e2c10a868ce2c3f8c576f327c1dc | 0a345f37466570e8e85829c8d89b2c6337fe8633 | /src/products/migrations/0002_product_pricechangedate.py | 5b288de16e90b4756ef0a7b37b9008e07edaf9b2 | [] | no_license | priyankarenty/ecommercev1 | 4cc30d892497d57b68349a5f0395bd8e0b9e8c61 | 93115db1072d5fb51deb57bac8dc383b1e686e6e | refs/heads/master | 2022-12-09T04:28:22.326099 | 2018-04-17T10:51:01 | 2018-04-17T10:51:01 | 129,889,874 | 0 | 0 | null | 2022-12-08T01:00:14 | 2018-04-17T10:49:00 | Python | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-19 05:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"priyanka@Priyankas-MacBook-Air.local"
] | priyanka@Priyankas-MacBook-Air.local |
d2ea9493af1117d1f5dfbb512c53ab69b79f579c | ae7299517299b41f0b27a604165fe5ca6059b7ef | /ASPDNet-pytorch/val.py | 47dc392621ae71b87fb2e62a9f71751b76b6a255 | [] | no_license | liuqingjie/ASPDNet | 4372d6b8fbe99c2778b23e23ae57f6317f1ea07c | 26e9ee197465f31081d5d3bf65a6ec8ce6a1e36b | refs/heads/master | 2021-04-07T20:18:07.681040 | 2020-04-02T09:29:18 | 2020-04-02T09:29:18 | 248,705,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import h5py
import scipy.io as io
import PIL.Image as Image
import numpy as np
import os
import glob
from matplotlib import pyplot as plt
from scipy.ndimage.filters import gaussian_filter
import scipy
import json
import torchvision.transforms.functional as F
from matplotlib import cm as CM
from image import *
from mode... | [
"liuqj.irip@gmail.com"
] | liuqj.irip@gmail.com |
5913906913996061e38731e8c5765a849316493e | 4dbf730249e343fa424bb5202fd67e7570d44784 | /example/controller/tests/controller/methods/__init__.py | 05536fc710eb4fe6bfa598b4b2f7e8a761bea971 | [
"MIT"
] | permissive | why2pac/dp-tornado | 76da68df3c6082fce8d381da90eab526f064f38a | 4a73b9fd81448c195146ea2003ac5aa88ae792d9 | refs/heads/master | 2021-01-24T06:02:21.785754 | 2020-11-14T07:39:45 | 2020-11-14T07:39:45 | 25,281,793 | 19 | 11 | MIT | 2020-02-28T07:56:24 | 2014-10-16T01:50:49 | Python | UTF-8 | Python | false | false | 126 | py | # -*- coding: utf-8 -*-
from dp_tornado.engine.controller import Controller
class MethodsController(Controller):
pass
| [
"me@dp.farm"
] | me@dp.farm |
d88ff67bb52cc64f1e70570aa1c997e0def7e762 | 5dae58198d59db3c11bead79f28d47f45eeb9e5c | /state_manager.py | 03125b616f44c10034ebd771df8c224b3fe97f18 | [] | no_license | Brakahaugen/hex | 65eb66d70df157e89e2d60fafbc18b67b48372e5 | 2921f9208a911af7cbe456bc0a35bffc47ff1846 | refs/heads/master | 2021-04-17T01:09:41.567527 | 2020-04-29T06:02:05 | 2020-04-29T06:02:05 | 249,398,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,421 | py | import time
import copy
import termcolor
import numpy as np
class StateManager:
def __init__(self, size: int = 5):
self.size = size
self.hexNeighbours = [[-1,0],[-1,1],[0,1],[0,-1],[1,-1],[1,0]]
self.random_player = 1
# def get_best_action(distro: list = []):
# best_action = i... | [
"espenbragerhaug@gmail.com"
] | espenbragerhaug@gmail.com |
4993e813cca3a6c0f29f72c606f7d8504040e365 | ac737323d19a04047cd157534553a7744acfabdb | /daily_coding_problem/sliding_max_window.py | 870277cc5407677558d3821d0f2a5bcbb8578e87 | [] | no_license | sahaia1/coursera_algos | 57a36b56a2fb1077a0806e0d07f8531f6ce35e48 | d1c4f5b374aea6fdd1ee225c3cebf25b39073cae | refs/heads/master | 2020-05-03T17:39:45.943959 | 2019-07-17T15:23:32 | 2019-07-17T15:23:32 | 178,748,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | '''
Problem # 18
Good morning! Here's your coding interview problem for today.
This problem was asked by Google.
Given an array of integers and a number k, where 1 <= k <= length of the array, compute the maximum values of each subarray of length k.
For example, given array = [10, 5, 2, 1, 8, 7] and k = 3, we shoul... | [
"adityasahai@WHS-1334.local"
] | adityasahai@WHS-1334.local |
351f10db84028c7b90967a57fd7c5947cf1c2ff1 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/트리/00_트리.py | bc90198b1bcad51c6c1ca207c0bc74de3b890221 | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import sys
sys.stdin = open('input_00.txt', 'r')
def preorder(n):
if n: # 트리가 존재하면, 0이 아니면.
print(n, end=' ')
preorder(tree[n][0])
preorder(tree[n][1])
def inorder(n):
if n: # 트리가 존재하면, 0이 아니면.
preorder(tree[n][0])
print(n, end=' ')
preorder(tree[n][1])
def... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
1cba4d3d707cd89b529a4bc616bd90f92866b747 | 12b74d16e7d5590423f4aaa61d03ab1acc1f7dc3 | /ptr.py | d9c888117b0cf092f72d3109f4d1bb633116be3c | [] | no_license | bigger404/ptr | 33dc062cb2f39e76009639aed6988636997e1333 | 1c681703c7a46a42143542cd6d8c8089cf2a922f | refs/heads/master | 2021-05-06T05:16:42.500794 | 2017-12-22T02:35:45 | 2017-12-22T02:35:45 | 115,068,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | from random import randint
class ptr():
def __init__(self,size,allocation):
self.size=size #size in pages
self.limit=100 #max process size in pages
self.allocation=allocation #max frames to allocate
self.ptr=[]
# self.ram=[None]*64
... | [
"noreply@github.com"
] | bigger404.noreply@github.com |
77768229229ae4667e63aa8ba2bc58cbdb4d4797 | 865324b144ec2dc598c40cecab05856c36302eca | /passwordCheck.py | d82733f3c263433f4a8416126b4e98b7082c667d | [] | no_license | yashu0598/Code-Signal | 66264cd4c54258fc45f12824f9c1042623cf1dd8 | ac8fa26c4130dd520f1b8385f138f2cf920860a8 | refs/heads/master | 2021-06-03T01:12:24.714897 | 2020-12-12T06:07:14 | 2020-12-12T06:07:14 | 154,334,355 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """
A password is complex enough, if it meets all of the following conditions:
its length is at least 5 characters;
it contains at least one capital letter;
it contains at least one small letter;
it contains at least one digit.
Determine whether a given password is complex enough.
Example
For inputString = "my.Passw... | [
"noreply@github.com"
] | yashu0598.noreply@github.com |
183fc2b5c228e64de1cc3a850c8daf99131d5c99 | 9a3c820c630cd11a804dbe95be97d2c778659175 | /test3.py | 650e9fb5b9e668300e2782267bac03851a41033b | [] | no_license | harshramandas/terrabluext | 297d1aaf5e187c268e51ed63165e4f18fdb30a88 | 0ca1e2e0349b33ec3a35962bac8a5e2e203d52a9 | refs/heads/master | 2020-12-03T07:29:58.703393 | 2020-01-02T13:32:08 | 2020-01-02T13:32:08 | 231,242,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import operator
n = int(input("Enter no. of rows/records: "))
A = []
for i in range(n):
j = tuple(input().split(','))
A.append(j)
A.sort(key = operator.itemgetter(0, 1, 2))
print(A) | [
"harshramandas@gmail.com"
] | harshramandas@gmail.com |
3b7e228cc7b10cf7e42e8765eabbe4009f2a6e69 | 847a0217508a39502509ebab74dfcd626180137a | /NTU/CZ4015/Evaluation.py | b9b38f07ddeca82e3f1cb5d7cc54ea482af966d4 | [
"MIT"
] | permissive | JahodaPaul/FIT_CTU | 757c5ef4b47f9ccee77ce020230b7309f325ee57 | 2d96f18c7787ddfe340a15a36da6eea910225461 | refs/heads/master | 2021-06-04T20:16:44.816831 | 2021-03-13T10:25:06 | 2021-03-13T10:25:06 | 133,488,802 | 29 | 20 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | import pickle
import matplotlib.pyplot as plt
import numpy as np
#This class is used for evaluating and processing the results of the simulations
class Evaluation:
def __init__(self):
self.results = []
def ProcessResults(self,n_of_blocked_calls, n_of_dropped_calls, n_of_calls, n_of_channels_reverved):... | [
"pavel.jahoda3@seznam.cz"
] | pavel.jahoda3@seznam.cz |
a304eeea8ec9fb9ef6778dda33ad0fb333e0f628 | 7b05844959a00ac74066c5707438ef8809d25e85 | /scripts/python_module_to_matlab_import_str | f048a397677f7f6a829b77141a3f6fc6f1385bac | [] | no_license | jkwasnio/ML-X-assist | d7d47daef05392d154db13de27389fb9d25b86df | 6501674ce24b9f7250c33c44ec97bd9b8700a8fd | refs/heads/master | 2020-09-01T12:01:52.863691 | 2020-02-26T19:30:00 | 2020-02-26T19:30:00 | 218,954,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | #!/usr/bin/env python
# SYNTAX: python python_module_to_matlab_import_str.py PYTHON_MODULE_NAME
# Converts a python module (.py) into a string ready to be imported into a
# matlab environment. (Useful to 'convert' a .py into a .mat)
# NOTE: Supports int, float and str only!
import sys
import numpy as np
module_na... | [
"57213062+jkwasnio@users.noreply.github.com"
] | 57213062+jkwasnio@users.noreply.github.com | |
1f807950196eab859ffa0f58de11ee271eca3ad7 | 2fcd0ffb60632dc831542f12eed6c334f1e888d3 | /api/tests/test_models.py | c18c91207d43d716bcdc3c092677d4596219d1bd | [] | no_license | ncrousset/mainDoctorNote | 49daaff0819de57ecf3ac5dceade302de96dc79c | bdaf98bd7babe0da97e1394c5b94fa10253eddb6 | refs/heads/main | 2023-08-25T02:05:02.373649 | 2021-10-22T16:49:30 | 2021-10-22T16:49:30 | 406,190,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | from django.db import models
from django.test import TestCase
from django.contrib.auth import get_user_model
from api.models import MedicalStudy, MedicalTreatment, Patient, Background, MedicalHistory
from django.urls import reverse
def create_user():
return get_user_model().objects.create_user(
usernam... | [
"natanael926@gmail.com"
] | natanael926@gmail.com |
1894e6547d9c63f56c0ebfdae27f4f7767c8f13f | ddbddc6c1c1689ebb9430d4a495466763a231749 | /Python_Learning/Python_fundementals/05_data_types_booleans.py | 394aeb2899319f69ef94c1d5410bdddac587d33d | [] | no_license | adamkoy/Learning_Python | bd1e4d69f0bc05a2a0f8ffc05c0067081f58a225 | 2216fa211bdf21564871893ad01fed0566bf5fa7 | refs/heads/master | 2020-06-20T15:10:53.124722 | 2019-07-26T11:00:03 | 2019-07-26T11:00:03 | 197,160,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # Booleans
#Boolean is a data type that is either true and false
#Syntax is capital letter
var_true = True
var_false= False
print(type(var_true))
print(type(var_false))
# When we equate /evaluate something we get a boolean as a response
#Logical operators return boolean
#== / != / <> />= /<=
weather = 'Rainy'
print... | [
"adam.koyuncu@live.com"
] | adam.koyuncu@live.com |
f32468540c2660589bb48972b342c3055c197c3b | 374c3997dcad3dbc64f42b57c518b8f10db84b68 | /plotting/config_fast.py | eb2deb21c7e56017db8927b8213f6338a253d6f1 | [] | no_license | nichrome-project/nichrome | 69a5887c49fd55f67b1cc381127d907ae459a12e | cc4eafa3c58e1175134392ffe7fe2e2ffb6b233f | refs/heads/master | 2021-01-12T00:17:04.924279 | 2019-02-18T17:09:34 | 2019-02-18T17:09:34 | 78,697,844 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | benchmarks = ['raytracer','montecarlo', 'sor', 'elevator', 'jspider', 'ftp', 'hedc', 'weblech']
raceConfigs = ['staticAggr', 'staticCons', 'dynamic', 'bagged', 'oracle', 'uniform']
ptsConfigs = ['dynamic','oracle']
runFolder = '../main/ursa_bench'
dataFolder = '../data'
plotFolder = '../plots'
backupFolder = '../... | [
"xin@Xins-MacBook-Pro.local"
] | xin@Xins-MacBook-Pro.local |
0cc5253cebc09fd4951eaa0a8e6114bad0c1e75b | 8b05073c8bd4c61df78acb10dcd00962cad5d794 | /amlink/socket_server.py | 432345ab4847f6f3597c6e5a7902ec2d082858a0 | [] | no_license | gundamMC/animius-link | bc97610883810c0d64ff744243474342b323c318 | 2ba71d6485282deeed6beb3329e5fd047485fd05 | refs/heads/master | 2022-12-13T22:37:04.994630 | 2019-10-23T08:16:42 | 2019-10-23T08:16:42 | 176,075,906 | 0 | 0 | null | 2022-12-08T05:06:37 | 2019-03-17T08:38:46 | Python | UTF-8 | Python | false | false | 2,425 | py | import asyncio
from amlink import utils, connect_engine, network_controller
class SocketServer:
def __init__(self, link_port, local, pwd, max_clients, engine_ip, engine_port):
self.host = '127.0.0.1' if local else '0.0.0.0'
self.link_port = link_port
self.engine_ip = engine_ip
sel... | [
"admin@siujoeng-lau.com"
] | admin@siujoeng-lau.com |
6b264e84c815a0a97ad9b274543b9297d9fc6fbe | 3bf1480a1a00209bc8ef8a66e1995549987ae70e | /utils/scripts/OOOlevelGen/src/sprites/Alert.py | 130ac296aa9ea69dea9f1d910487db975a93b603 | [
"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 | 2,120 | py | import PhysicsMixin
import ID
BODIES = """
<dict>
<key>body</key>
<dict>
<key>x</key>
<integer>%(x)s</integer>
<key>y</key>
<integer>%(y)s</integer>
<key>width</key>
<integer>%(width)s</integer>
<key>height</key>
<integer>%(height)s</integer>
<key>sheet_id</key>
... | [
"github@fotoboer.nl"
] | github@fotoboer.nl |
ad3fc34e434f57f06f36860bfa40e98831eb7372 | 7ece94f0313b37ab44a295c06d04860a1f308a30 | /MovieFolderRenamer.py | 8db40d97e8e22531b551510885e2f0012662ff81 | [] | no_license | elgar-groot/movie-renamer | 227eef7716d9f53228fd36b58e50377d6bb4ffbd | 9a3675917ebcf71bdd3459300f1a3c521a2f86c3 | refs/heads/master | 2016-08-03T18:11:45.737632 | 2014-02-28T16:53:14 | 2014-02-28T16:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | #!/usr/bin/python
import os
from glob import *
from shutil import *
import sys
from re import *
from httplib import *
import json
class MovieFolderRenamer:
'''A class that can update all movie folder names in a specified folder
to include the year, so Couchpotato will recognize them.
Makes use of omdbapi.com'''
... | [
"elgar.groot@gmail.com"
] | elgar.groot@gmail.com |
5b9672e6cef01ce06379b6507bf9ca3a29c00902 | cb68603da2af46ac4841be9a5479c08186efafb2 | /hw1/kaplanmeiertest.py | a20770b53c443bc96b389b4bb696543e1f24c6dc | [] | no_license | kingledion/stat778 | 00d4125e3ebf5b7b862a0f01fc8737d659cb1749 | 62ae92dd151f96ca4658d81e5d99a744a20730bd | refs/heads/master | 2021-05-05T02:52:47.341901 | 2018-05-09T22:27:35 | 2018-05-09T22:27:35 | 119,771,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 12 17:02:54 2018
@author: dhartig
"""
from lifelines import KaplanMeierFitter
import csv
times = []
events = []
with open("/opt/school/stat778/hw1/HW1.dat") as csvin:
rdr = csv.reader(csvin, delimiter=' ')
for time, flag in rdr:
... | [
"kingledion@gmail.com"
] | kingledion@gmail.com |
f3f99dc39371b1d6677cd7be07c263496a984d3a | 1cc726e5c483db05d8f9f31674d424b60824f597 | /tests/__init__.py | 8872496718b43efe4f6612ca1936404574038c2a | [] | no_license | patry-jh/empresa-0.3 | ac3415744fe172591b2d8f867bf8eb99ba789024 | c8ecbcece14cbb83082bed862909f97ae1ecfcb4 | refs/heads/master | 2021-01-21T00:16:24.035031 | 2014-12-05T16:52:48 | 2014-12-05T16:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __author__ = 'Patry'
| [
"patricia_j_h@hotmail.com"
] | patricia_j_h@hotmail.com |
25e20a95bf29f57e63196d06f51219f3ec9e2f12 | 5a262566fcbba36e7f41283b886c4a492762a0a9 | /wdapp/management/UserFactory.py | d15c8b7353169ac22711bba7b8955828c428ba35 | [
"MIT"
] | permissive | Engineermar/WisdomDriven | a03705f660c407b2aac1f80ee9c0131cd9f9daa2 | eeda8a759098a16e67ad7b13ed120b30dbc8b618 | refs/heads/master | 2020-04-03T03:30:35.167084 | 2019-05-22T05:08:50 | 2019-05-22T05:08:50 | 154,987,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | from django.contrib.auth.models import User
from wdapp.models import Company,Business,Driver
from faker import Factory
import factory.fuzzy
class UserFactory(factory.django.DjangoModelFactory):
FACTORY_FOR = User
username = factory.Sequence(lambda n : "bobCaptain {}".format(n))
account = factory.RelatedFa... | [
"noreply@github.com"
] | Engineermar.noreply@github.com |
de93f365f175befa5f976bbd2d90d98324e9afdd | 3e29cc4e932bc23cab001a30102ad00701ebe1fa | /venv/bin/ipdb3 | fe6ce6dca3aac4d9381bbcf17a86b3105a502ea3 | [] | no_license | youarefree/wedding_project | 0094201a251328db1687cd416f3830d532148412 | d662c83c29ce316d7339a24df785a8c0cf07a1a1 | refs/heads/master | 2020-05-27T14:51:41.040334 | 2017-02-24T15:32:04 | 2017-02-24T15:32:04 | 82,559,369 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 319 | #!/home/dimitar/101/hackaton/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'ipdb==0.10.2','console_scripts','ipdb3'
__requires__ = 'ipdb==0.10.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('ipdb==0.10.2', 'console_scripts', 'ipdb3')()
)
| [
"dbyordanow@gmail.com"
] | dbyordanow@gmail.com | |
042558fd36b61b423dc4cefd58f98f19f15d08c8 | f6bb211338114cc9cc66fbec0e0e17ad5b7eaf85 | /School.py | 9d76b59ce61af2a05b3fb300f795c019f9223193 | [] | no_license | sajjad0927/MySchoolProject | 4cc6a05741c532866d47b0677349a6a97a881e4c | 43ced6b5ba8adff6700d372dadb6047e2fc89f52 | refs/heads/master | 2020-03-30T07:13:30.227057 | 2018-09-30T02:57:36 | 2018-09-30T02:57:36 | 150,916,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py |
class School:
'Class To store and get the school information'
__Name='';__Id=0;__Address='';__State='';__City='';__Pin=0
def __init__(self,name,id,address,state,city,pin):
self.__Name=name
self.__Address=address
self.__Id=id
self.__City=city
self.__State=state
... | [
"sajjad0927@gmail.com"
] | sajjad0927@gmail.com |
4630ece4573f31077a86cd7a0e42b372f2fd486b | 8b373323e8ab2792e650c3d779770cf5cf89f22e | /filemanager/urls.py | 8cbbff786ac468dadc3234d77d29347bc5b5fd2a | [] | no_license | Bohloko/filemanager | ec0d5b650a70b9ce44bd4b4e2f34c6fb33116a6c | 44762e4a94306d159c12ef249de4d24e613c4e96 | refs/heads/master | 2023-06-17T16:55:05.109552 | 2021-07-15T09:37:24 | 2021-07-15T09:37:24 | 385,739,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import ApplicationFileViewSet, FileUploadViewSet, UserViewSet, FileSearchView
router = SimpleRouter()
router.register('users', UserViewSet, basename = 'users' )
router.register('files', ApplicationFileViewSet, basename =... | [
"taubohloko@gmail.com"
] | taubohloko@gmail.com |
84e78c1a893885296dad6d324856bc1da539d264 | 2d195a77979c254674ddd79f5b3afa48ac20795c | /backend/API/migrations/0001_initial.py | 4c5b05e6effb5f9709faea3daa9cd53700e6b05a | [] | no_license | noha133/Graduation-Project-backend-1 | c5c82f09ddb2b0013be219cc008bd593733f4ba4 | f5e824fcffc40fa463118e001495880f19c13eea | refs/heads/main | 2023-06-15T20:46:28.775422 | 2021-07-14T14:26:34 | 2021-07-14T14:26:34 | 336,609,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # Generated by Django 3.1.6 on 2021-02-06 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"nohamesllhy133@gmail.com"
] | nohamesllhy133@gmail.com |
ebc524685706f7301bb2ed5171e45241996284a5 | c9d9f17f4e3021a19e5450934a8a59764cb74e85 | /swig/python/test/main.py | 3017dbcf2fb4418a7d39e21727f57e225e9664d1 | [
"MIT"
] | permissive | longlongwaytogo/Learning.test | bfdb5c66ea127b867c73fd2f33d0fe7e962fdb81 | b2a2d95c0e1195679a9950c1a24cca071005ef6e | refs/heads/master | 2023-08-09T06:47:42.572746 | 2023-07-29T10:19:02 | 2023-07-29T10:19:02 | 92,352,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.33
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path im... | [
"longlongway2012@hotmail.com"
] | longlongway2012@hotmail.com |
04bcdaacff968603d6ef72fc8894e662f8836a1d | 8a0db63a5f267583214a6bde2ce40b471f7e92c1 | /loja/urls.py | e1542294e417109e26f3a34e3aa9e7a02600599d | [] | no_license | brendonlucas/Shopping-API | fea28195f08ab72f802b5f64992cb06376b35caa | ef671400197e3378f5c12883af3dd038ec1ffe03 | refs/heads/master | 2020-09-13T17:09:50.155084 | 2019-12-05T01:03:21 | 2019-12-05T01:03:21 | 222,849,306 | 0 | 0 | null | 2019-12-05T01:10:14 | 2019-11-20T04:17:35 | Python | UTF-8 | Python | false | false | 1,095 | py | from django.urls import path
from loja import views
from loja.views import *
urlpatterns = [
# path('lojas/', views.lojas_list, name='list_lojas'),
path('lojas/', LojasList.as_view(), name='list_lojas'),
path('lojas/<int:id_loja>/', LojaDetalhes.as_view(), name='Detalhes_lojas'),
# path('lojas/<int:i... | [
"brendonplay007@gmail.com"
] | brendonplay007@gmail.com |
3b89389daeeefbd5bfb316297767be67e33037ad | aef5c3a8fc1a0849e8ed7dcdf4ea0446f64c342c | /zapd/admin.py | 11cffccef493d84b52ed6a47db8f4850407810cd | [] | no_license | eoliveros/zapd | c21e05dde1b318870483a2a34799fffdd1fcbd69 | b17afbc5b05fcbd27370d9ea9e6c2e6fc6bed7d6 | refs/heads/master | 2022-10-16T02:01:49.969941 | 2020-06-16T00:36:15 | 2020-06-16T00:36:15 | 171,779,747 | 0 | 0 | null | 2019-02-21T01:43:15 | 2019-02-21T01:43:14 | null | UTF-8 | Python | false | false | 1,402 | py | from flask import url_for
import flask_admin
from flask_admin import helpers as admin_helpers
from app_core import app, db
from models import security, RestrictedModelView, ProposalModelView, UserModelView, TransactionRestrictedModelView, AMWalletRestrictedModelView, \
Role, User, Category, Proposal, Transaction, ... | [
"djpnewton@gmail.com"
] | djpnewton@gmail.com |
71d9e46ae01ebb5722197a65552fcc1e69c6a89e | 5f1f5b85be3e70fb199a28ff8673b634e6e3cb52 | /app.py | ce2f6d118c920447ddf35003b541a2eee152a16a | [] | no_license | BishnoiJitender/Fake-News-Detection | 9dc33de88a54783d743b240ce5d507525005d78b | 6727741b762b4e077a221beed41224925e58b98d | refs/heads/main | 2023-06-26T16:27:34.359321 | 2021-07-15T05:33:56 | 2021-07-15T05:33:56 | 385,855,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 2 20:38:00 2021
@author: Jitender Bishnoi Rahar
"""
import sys
sys.path.append(r'c:\users\dell\appdata\local\programs\python\python39\lib\site-packages')
import numpy as np
import sklearn
from flask import Flask, request, render_template
from flask_cors import CORS
impo... | [
"jitenderbishnoi37@gmail.com"
] | jitenderbishnoi37@gmail.com |
cde1e0b1edac266be25950e13a23ca56ae2abe8e | 5d65d7bc282ae86ad9ed305117273601a0b7e0e4 | /reminder.py | 68896b32767ce5dec7f2a4b2152d5fb69a095c23 | [] | no_license | JanLetovanec/jane_bot | d37b09f238409374e7d326242137268fab70243e | cff42c4e4e737ddb9f2e9fd5e92ba9a7e00bb795 | refs/heads/master | 2020-09-13T09:10:10.136939 | 2020-03-11T14:46:56 | 2020-03-11T14:46:56 | 222,719,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | """ Helper library for remind function """
from pprint import pprint
import time
possible_replies = [
"Hi {target}, sorry to interupt you, but {author} wanted me to remind you: {text}",
"{target}! {author} wanted me to tell you this: {text}",
"{target}, hope I am not interupting you, but : {text} . Just th... | [
"janko.let@gmail.com"
] | janko.let@gmail.com |
02ce6a6dc210e59843e1b6067deefc5a2b0e3d32 | ac9ae2035fee25ebe989d1a7482fbfc416493870 | /impCheck.py | 0b62776da2c1b63eb8924f568bfd74fe95ff0b98 | [] | no_license | namanitta/PE-JsonParser | b827f86a11253b366d0af8257c68c9ef28e59a06 | 367a0ea19d0e5bc17ef5489a805118563d4beb70 | refs/heads/master | 2022-01-16T15:47:23.977719 | 2019-07-21T22:27:45 | 2019-07-21T22:27:45 | 198,111,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import os
fp = "/home/cuckoo/Desktop/scripts/PE-Attributes/PE_Jsonparser/results/maldb/txt_files/"
for r, d, f in os.walk(fp):
for files in f:
mal = fp+files
fi = open (mal)
lines = fi.readlines()
for line in lines:
if "Imphash" in line:
en = line.rfind(":")
v = line[en+1:].strip().rstrip()
if v... | [
"noreply@github.com"
] | namanitta.noreply@github.com |
129c7d6dade54a4eac44f6e25e6a1cf9bb3f35cd | 3d915fe47b258a6833cb332c5b9d807ae9b55375 | /test_appium/po/page/app.py | 906f9e1c283b1d2697a9578316e6ddf202204c45 | [] | no_license | liuzhiyang123/hogwarts | 73080468c75072501d66d81b75565d80d231c776 | 2761306060bf5898991e282d15d4b24dadb6bcf7 | refs/heads/master | 2023-07-05T13:39:37.572188 | 2021-08-14T02:07:47 | 2021-08-14T02:07:47 | 319,951,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | from appium import webdriver
from test_appium.po.page.base_page import BasePage
from test_appium.po.page.main_page import MainPage
class App(BasePage):
def start(self):
caps = {
'platformName': "Android",
'platformVersion': "6",
'deviceName': "vivo x5",
# ... | [
"liuzy@liuzydeMacBook-Pro.local"
] | liuzy@liuzydeMacBook-Pro.local |
ea699af4008afcb9c81e4e18774c8e0a4bb71e09 | 49c4597a93a3208c70b33464ac926a0594d4965f | /src/python/setup.py | 40f41b1d10bdb8f5b289328b725784db2d53fabb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | victor8733/phyre | 690b6e7c13365f54d580e6ca9a0440f781b26b43 | 1787b546b37ab838934165fec42e9567fbe1e301 | refs/heads/master | 2020-07-05T16:19:02.317709 | 2019-08-15T15:41:10 | 2019-08-15T15:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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... | [
"7470747+akhti@users.noreply.github.com"
] | 7470747+akhti@users.noreply.github.com |
444c29a2b44228ef93f4c336d14eb3ba9a77dba4 | 358f7f248cee5069ccbca9ae6dc463bbd9de4ac6 | /window.py | 2a9f6acbb9b9332d5cff82f6a7aa64cf07e5840e | [] | no_license | zaharko/zebra | 1a255456034c3840b6720f144b27c5a8d41b1297 | bf846b38ff6948234a0dffc2ae14963c758f3e4f | refs/heads/master | 2020-07-13T00:59:49.972420 | 2019-08-28T14:50:22 | 2019-08-28T14:50:22 | 204,953,603 | 0 | 0 | null | 2019-08-28T16:38:06 | 2019-08-28T14:38:05 | null | UTF-8 | Python | false | false | 5,572 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMainWindow, QGridLayout, QLabel, QSpacerItem, QSizePolicy, QComboBox, QFileDialog
from plot_canvas import PlotCanvas
class Window(QMainWindow):
'''
How it works:
First a window is created.
Then all the widgets (buttons, slider... | [
"ivan@olexyn.com"
] | ivan@olexyn.com |
253157c4d42b5b0854fff32b8673309796a5ba90 | be29b355371816a74f023df3a5ecbe812f2b499b | /hummingbot/market/radar_relay/radar_relay_order_book_tracker_entry.py | 56fe64cc63b7bafb619e88fa1c14bca2280cb2d0 | [
"Apache-2.0"
] | permissive | OceanEx/hummingbot | 324e6b59d111bc611d83baf1a87352044cef84d5 | f3dc27b9482093ea2c8d1fa603d0116de1e2fa05 | refs/heads/master | 2021-07-12T18:42:32.496606 | 2021-03-04T03:46:17 | 2021-03-04T03:46:17 | 236,079,080 | 2 | 2 | Apache-2.0 | 2021-03-04T03:44:35 | 2020-01-24T20:35:41 | Python | UTF-8 | Python | false | false | 1,021 | py | from hummingbot.core.data_type.order_book import OrderBook
from hummingbot.core.data_type.order_book_tracker_entry import OrderBookTrackerEntry
from hummingbot.market.radar_relay.radar_relay_active_order_tracker import RadarRelayActiveOrderTracker
class RadarRelayOrderBookTrackerEntry(OrderBookTrackerEntry):
def ... | [
"yzhang1994@Gmail.com"
] | yzhang1994@Gmail.com |
e58160be043c25f1567117706578c6627e844ccb | bf72636241a871d9a7519a577395f9d1fd7b38c2 | /tools_box/_selling/doctype/daily_route_activity/daily_route_activity.py | cfad18b8a1834abd2997ab43008e8996ba9faa94 | [
"MIT"
] | permissive | Athenolabs/Tools-Box | fc6400d9d88cc8ba0a3d48e38a0918f0022ce914 | c4e4e368a0bec115f84bc33ae011d7e0fd02932f | refs/heads/master | 2021-01-23T10:58:36.243182 | 2017-05-30T13:44:04 | 2017-05-30T13:44:04 | 93,116,515 | 2 | 1 | null | 2017-06-02T01:58:32 | 2017-06-02T01:58:31 | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class DailyRouteActivity(Document):
pass
| [
"masonarmani38@gmail.com"
] | masonarmani38@gmail.com |
aea3f3887f24cd7bd8e675548e6a6e5ed1ffd007 | ee795e3a8841fe69866d1fd7cbe808e3e9889a5e | /config/models.py | a326e0485ed425df64bd8890e2965b61ba27f99e | [] | no_license | godlike1215/mysite_3 | 94115ab8b08f2afa37e7f7fd4516ecf5522dcb0a | 7a4c3522a60a49769ff5885fce012acdc3f81dee | refs/heads/master | 2022-11-30T14:15:55.459105 | 2019-09-23T09:35:46 | 2019-09-23T09:35:46 | 202,091,447 | 0 | 0 | null | 2022-11-22T02:10:11 | 2019-08-13T07:43:10 | Python | UTF-8 | Python | false | false | 2,823 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from django.template.loader import render_to_string
class Link(models.Model):
STATUS_NORMAL = 1
STATUS_DELETE = 0
STATUS_ITEMS = (
(STATUS_NORMAL, '正常'),
(STATUS_DELETE, '删除'),
)
title = models.CharField(max_... | [
"568726669@qq.com"
] | 568726669@qq.com |
a18a50416d57b4791dde890213ed60f4153bf41c | 2e917d5d889baca195865d8d7330a558aef05870 | /simulationWithBurnoutPrediction/simulationWithBurnoutPrediction/PopulationCaregiver.py | e5de0583d9dd98fc13d950512cfe8fb8abe6f552 | [] | no_license | Obatata/SimulationAndPrediction | 4984b2af1dcffa87ba83e35fc944660d9134e590 | 74e8e81f8b182fb15c88e01685557f4856d73f61 | refs/heads/master | 2020-04-29T11:16:09.863197 | 2019-03-17T11:25:27 | 2019-03-17T11:25:27 | 176,091,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 16 15:35:49 2018
@author: Oussama BATATA
"""
# import library .........
import numpy as np
import InputData
import Caregiver
import ServiceOfRespite
class PopulationCaregiver:
"""Classe définiss un aidant (caregiver) caractérisée par :
- nbCluster = Nbr de c... | [
"batata.oussama@gmail.com"
] | batata.oussama@gmail.com |
e2616b15545ff9e24f76b4fa5ffbd27b156aac2b | 8e0567b913653c6d978b8f69a297449fa475cd74 | /opt_classifier/opt_classifier.py | dd9dd34e020b9f44d24b7f9259814bdbab1b9fc7 | [] | no_license | ercarpio/SG_CNN | 0521cadc13180f6886fe945a0a4763d1c19655c2 | 77f519f3b0f4cd3d2bdfad611a833c061767ee68 | refs/heads/master | 2021-09-19T10:29:30.593422 | 2018-07-27T00:08:38 | 2018-07-27T00:08:38 | 113,371,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,667 | py | import tensorflow as tf
# contains information relating to input data size
from common.constants import *
# network layer information for P_CNN
layer_elements = [-1, 16, 32, 128, OPT_CLASSES]
output_sizes = [32, 16, 4]
filter_sizes = [4, 4, 8]
stride_sizes = [2, 2, 4]
padding_size = [1, 1, 2]
'''
ClassifierModel gen... | [
"eccarpio@hotmail.com"
] | eccarpio@hotmail.com |
15f753d76464d7abfd4fcf2a4b8dd8743d72fd97 | 462a30862d0303d1d1beeebb2d33bb2a625d5336 | /catchpy/settings/local.py | 995d6763bc4efc46baa39e79fbf3ac479732de8e | [] | no_license | nmaekawa/catchpy | 5eca9715c23e71ce4f6ef489607da0b0e46a14a3 | 50783648804e5b6ce57dcb7d00ba1038fd23ffdc | refs/heads/master | 2023-08-03T09:25:44.838480 | 2023-04-18T19:05:20 | 2023-04-18T19:05:20 | 98,905,832 | 10 | 3 | null | 2023-08-14T18:47:50 | 2017-07-31T15:50:19 | Python | UTF-8 | Python | false | false | 506 | py | from .dev import *
DEBUG = True
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
try:
import django_extensions
INSTALLED_APPS += ['django_extensions']
except ImportError:
pass
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
try:
import debug_to... | [
"nmaekawa@g.harvard.edu"
] | nmaekawa@g.harvard.edu |
8d9fd56181d25fbff2f7f82a19a948a12105bc70 | 849e8fb216a130ef1c438f46f3a63592537368c5 | /zhaopin/zhaopin.py | ea8067c3ad9188815f33f97a0ab144b647305142 | [] | no_license | xyls2011/python | 978db70a735fe2e2168ca7cf50a4e6aa07e04888 | 63ef2b3f4cb00ef23b16aa72785bcda1a2b7b756 | refs/heads/master | 2020-06-01T07:59:54.796530 | 2019-06-21T12:35:50 | 2019-06-21T12:35:50 | 190,709,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from requests_html import HTMLSession
import re
from matplotlib import pyplot as plt
salary_element = '<p.*>(\d+)K-(\d+)K</p>'
salary = []
disabled_button_element = '<button.* disabled="disabled">下一页</button>'
disabled_button = None
p=1
while not disabled_button:
print('crawling page ' + str(p))
link = 'https://sou... | [
"1104869984@qq.com"
] | 1104869984@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.