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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5278d0ebc39489eb80a4b0a82ecaf609f72027a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03813/s431513228.py | c4298e11e8a394fafce0121831f9fbfa51e6a6ab | [] | 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 | 260 | py |
def read_int():
return int(input().strip())
def read_ints():
return list(map(int, input().strip().split(' ')))
def solve():
x = read_int()
if x < 1200:
return 'ABC'
return 'ARC'
if __name__ == '__main__':
print(solve())
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9280167358863b7781ffed296d8c21e28ee3189 | f0a1b45309785a89bf74eccb75e229fd38a0aaa8 | /math_utils.py | 48245f597c0819e491d64268d76f8b6fe85245c1 | [] | no_license | mikaelmello/python-rsa-implementation | f8f8ecb7f79d8808b4d9ed520c14666560315a2b | 7b501253e41fc4c9f07db02d73896c9c189c8ebf | refs/heads/master | 2020-09-21T13:06:19.271833 | 2020-04-07T18:51:35 | 2020-04-07T18:53:23 | 224,797,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import secrets
import math
def extended_euclid(a, b):
"""Extended euclidean algorithm"""
s = 0
t = 1
r = b
old_s = 1
old_t = 0
old_r = a
while r != 0:
quotient = old_r // r
old_r, r = (r, old_r - quotient * r)
old_s, s = (s, old_s - quotient * s)
old_t,... | [
"git@mikaelmello.com"
] | git@mikaelmello.com |
d035e9fd898748e129cda959b3d579e13d600d7b | aae29f1c7c8eabda658a00e39f471377b6da0052 | /pygame_project/main.py | dec238616052d072703a724685d1660c382f7741 | [] | no_license | dreamerror/practice_projects | 52041645ba3c7421b9c7fb1a1f6b376915bd9fd9 | 9d4010e92cf82f49e7938995ee74a8365ef28c80 | refs/heads/master | 2023-06-27T20:33:13.936427 | 2021-07-31T03:48:11 | 2021-07-31T03:48:11 | 389,886,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | import pygame
import random
import sys
from pygame.locals import DOUBLEBUF, KEYUP, K_RIGHT, K_LEFT, K_UP, K_DOWN, K_SPACE, QUIT
pygame.init()
NUM_SHAPES = 5
PUZZLE_COLUMNS = 6
PUZZLE_ROWS = 12
SHAPE_WIDTH = 50
SHAPE_HEIGHT = 50
FPS = 15
WINDOW_WIDTH = PUZZLE_COLUMNS * SHAPE_WIDTH
WINDOW_HEIGHT = PUZZLE_ROWS * SHAPE_... | [
"66074257+dreamerror@users.noreply.github.com"
] | 66074257+dreamerror@users.noreply.github.com |
9e2010ab225e7382d1bcaaae37d358d2bdd39500 | 042962d67c8742d01f66f254375b1ceb9136d182 | /sensibleServer/__init__.py | b4047c4be8d5508123a5789445b9f26a212307ed | [] | no_license | Sensibility/sensibleServer | d8b0afefd846e31d454912f579067fc90526d046 | a4125fa36e9a47e3ea05287ab6b54ca22110eb0d | refs/heads/master | 2021-05-26T07:46:00.499527 | 2019-11-07T17:00:31 | 2019-11-07T17:00:31 | 127,950,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | """
This package provides a simple http(s) server that serves content with optional cgi scripting available.
Usage: sensibleServer DOCUMENT_ROOT [ -c --enable-cgi ]
"""
__author__ = "ocket8888"
__version__ = "0.0.1"
import argparse
ROOT, CGI = None, None
def main() -> int:
"""
Runs the program.
"""
global ROOT... | [
"ocket8888@gmail.com"
] | ocket8888@gmail.com |
10ba62e4e2abefa1a7435eb6853c7606548f54aa | 92d5555325b328549b25d3c2af9b8c577d1511cd | /log/config.py | e612e8fe669bfae1ce5e9f6fbdc77cedebcd275c | [] | no_license | zhang29845987/tpshop_login_api_1 | a5d213ead57376fb1e2b91d0554b2bc6541f06f7 | 58a78a60e6378d960ad03c9de4a4f3a006078f89 | refs/heads/master | 2020-09-29T18:12:52.191624 | 2019-12-10T10:32:26 | 2019-12-10T10:32:26 | 227,091,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import logging
import os
# 获取项目根目录
from logging.handlers import TimedRotatingFileHandler
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
print(os.path.dirname(os.path.abspath(__file__)))
# 初始化日志配置
def init_log_config():
#添加日志器 默认日志root
logger=logging.getLogger()
logger.setLevel(logging.INFO)
... | [
"zpb0990@163.com"
] | zpb0990@163.com |
b9aae4c3e88a7792acd442dd2d9d158dd3d47ae4 | fb8cbebdf034b2f478943752d5443afc82c6eef5 | /tuirer/venv/lib/python3.6/site-packages/IPython/core/inputtransformer.py | 44ec5a1aae19b8708a617982258ffa6ec5f11bd0 | [] | no_license | fariasjr/CitiTuirer | f64e0ec93ef088f8140bb0961d2ad4ed3b59448a | deb3f7a9c2d45b8a7f54639037f097b99abdac11 | refs/heads/master | 2020-03-24T05:10:36.261050 | 2018-08-01T20:24:30 | 2018-08-01T20:24:30 | 142,477,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,242 | py | """Input transformer classes to support IPython special syntax.
This includes the machinery to recognise and transform ``%magic`` commands,
``!system`` commands, ``help?`` querying, prompt stripping, and so forth.
"""
import abc
import functools
import re
from io import StringIO
from IPython.core.splitinput import Li... | [
"jornadaciti@ug4c08.windows.cin.ufpe.br"
] | jornadaciti@ug4c08.windows.cin.ufpe.br |
0e10cbdfa5b1cd030ad2bdd01ff695d9fdb60938 | d88868b88864e4d10009c58b27323034715b0277 | /projects/barter/deployments/docker/barter/test.py | 1ff68bc01c1f1c3d50a8992e741a015cb27fa14d | [
"Apache-2.0"
] | permissive | shamal112mn/packer-1 | 795ebd9e0fee444f0cbb01897a50e199b73f1307 | be2720e9cb61bf1110a880e94e32a6767a341588 | refs/heads/master | 2023-07-10T09:33:10.516559 | 2021-08-17T02:25:50 | 2021-08-17T02:25:50 | 327,763,823 | 0 | 0 | null | 2021-01-08T01:08:49 | 2021-01-08T01:08:48 | null | UTF-8 | Python | false | false | 388 | py | import requests
import json
url = "https://investors-exchange-iex-trading.p.rapidapi.com/stock/tsla/effective-spread"
headers = {
'x-rapidapi-key': "158cd4f9cdmsh0d92f8b92b1d427p1947b6jsn857aa1252e0b",
'x-rapidapi-host': "investors-exchange-iex-trading.p.rapidapi.com"
}
response = requests.request("GET",... | [
"you@example.com"
] | you@example.com |
5a7644e93929e110f2439ee13de2a41444e4af81 | bd749eca9a6aa414745bf13106c948fb2794d72b | /blog_app/migrations/0002_auto_20190910_1519.py | eb89b3692ac1da5756d047aa055b459d93bc40d4 | [] | no_license | DreamInit/my_blog | 115b07b40a32fc1d50fb642281a501dcce1ef46c | 1309664c9504a93f36cbf7bbf30cc87cb096608d | refs/heads/master | 2022-11-03T09:28:26.098193 | 2019-09-11T11:54:56 | 2019-09-11T11:54:56 | 207,740,133 | 0 | 1 | null | 2022-10-09T12:20:34 | 2019-09-11T06:33:17 | Python | UTF-8 | Python | false | false | 340 | py | # Generated by Django 2.0 on 2019-09-10 07:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog_app', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='blog',
options={'ordering': ['-created_time']... | [
"chuan.huang@scaleflux.com"
] | chuan.huang@scaleflux.com |
633d089ce731df7f5e583fa5d1a666bf329b9e9a | 446d500d0c7ca5b46c21c70db820d1b2dac11a38 | /comp11 - intro/proj1/helper.py | 0859f8f24e5f4e69c0e1b3f1565de9c0b3ee4771 | [] | no_license | vladhugec/Course-Work | 3397d52bb4a649196e336c48d0cab340126b2d8b | 27356f32d33aae497ede109fa9e66a19516f79fb | refs/heads/master | 2020-12-18T12:59:25.542999 | 2020-01-21T21:58:34 | 2020-01-21T21:58:34 | 235,391,035 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # helper.py
# Written by: Kalina Allen, kallen07
# 02/23/2018
#
# Purpose: provide a helpful function for comp11 project 1
from string import ascii_letters
# arguments:
# mystr: string to clean
# returns: s but with all non-alphabet characters removed
def clean_word(mystr):
return (''.join(char for char in ... | [
"vladhugec@me.com"
] | vladhugec@me.com |
e1136957d862e88999704359ee05863d30e39f15 | 4c99cd9846d6c9f196c7cbfa06f0576fb221a104 | /virtuellenv ihkb/lib/python2.7/site-packages/whoosh/fields.py | 0c6789cffdaa2519cb35c068b74592287435b576 | [] | no_license | Gitlena/ichhabkeinblog | 4622637773d5c4f3647455659058aab90d5bd050 | 1cfd7a030f9d41279a120724d29e1f48aa511562 | refs/heads/master | 2016-09-08T01:56:39.943817 | 2014-03-22T19:52:57 | 2014-03-22T19:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,659 | py | # Copyright 2007 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | [
"ubunicorn@googlemail.com"
] | ubunicorn@googlemail.com |
61a68ab16ef1c92be2bcf040f1cde0f7934ad563 | db26b08ad35594a8a2aba36a68bfe37f85728727 | /DjangoAngularAssignment/conversation/views.py | 4f355cbd6325591ee242efd26e5640a770b7f29c | [] | no_license | rafikkamal/django | 83f3217f3e31fd13a5e1c4e81ed583ccfd4971fe | 7d593707f0f33b074e22f75f9ed0a6e0ef0b39d1 | refs/heads/master | 2021-01-20T06:25:30.872254 | 2017-04-30T21:02:12 | 2017-04-30T21:02:12 | 89,877,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | from django.db.models import Q
from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.views import generic
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.contrib.auth import authenticate, login
from .models import Conversation
from django.vi... | [
"rafik.rkn@gmail.com"
] | rafik.rkn@gmail.com |
23eee071d0d6157fda786b1c2e638cb649ec482e | 10261f7a8864a8db3970d9e8ecc26645cf7f901c | /custom_bandits/custom_bandits/envs/custom_twoArm_env.py | f2b8aeadf05c39267ec261d52a8c36356451f023 | [] | no_license | abhikmr778/CS698R-ABHINAV-KUMAR-16907018-ASSIGN-1 | 6219bf94e86b37a55082e761ec291a788ad50351 | ff722b7d9d27fbe6571063a26e04e48efb8f10f3 | refs/heads/main | 2023-07-29T06:47:26.097700 | 2021-09-11T11:13:32 | 2021-09-11T11:13:32 | 405,250,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | ###########################################################################
# #
# Environment Class template followed from #
# https://stable-baselines.readthedocs.io/en/master/guide/custom_env.html #
# ... | [
"abhi.kumar778@gmail.com"
] | abhi.kumar778@gmail.com |
46276e90877480976304b67321686d3487c1d5fe | a4fd0e2674264327b50cc913312d959043610ef9 | /My_Social_Project/My_Social_Project/urls.py | 867f51eecae02f6db439256148b143bc629e1ddb | [] | no_license | ztarikul/InstaShohor-Social-Media-Site | 7dedc88ecdffd26501063935ac448482613e3dfd | 08d56d1c185435997930a4a7d8b768442acd4be9 | refs/heads/master | 2023-02-13T12:28:25.359635 | 2021-01-09T23:32:03 | 2021-01-09T23:32:03 | 328,261,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
from App_Posts import views
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('App_Login.urls')),
path... | [
"ztarikulislam@gmail.com"
] | ztarikulislam@gmail.com |
cbf504b8cd17c0a67f5038d1dce21a3000e0629c | 6366498f7fcaf6c73c34fb0428bbbb899c8a8703 | /Math/ProjectEuler005.py | 1378b169df4cb2a308f4608ae22d4592a5586cc2 | [] | no_license | bibhuty-did-this/MySolutions | 2a3da0369cec5ced00c167d80008b2c11e8edbd5 | 4c6cad6853ac5626ada4302dd4770ec0cbcc99f3 | refs/heads/master | 2023-06-14T08:38:29.220996 | 2023-06-01T04:49:05 | 2023-06-01T04:49:05 | 102,737,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Algorithm:
# You have to find the lcm of all the numbers combinedly
# Generate a lookup table
from fractions import gcd
lcm=[]
lcm.append(1)
for i in range(1,41):
lcm.append(((lcm[i-1]*i)/gcd(lcm[i-1],i)))
# Display the result
for _ in range(int(raw_input())):
print lcm[int(raw_input())] | [
"emailofpanda@yahoo.com"
] | emailofpanda@yahoo.com |
7824b29dc495b887680fcb309cd946bcb8051fb5 | 34229ca69dda0acf53daba3a9696f93ae341d226 | /lab/lab01/lab01.py | 82ec65a20af4baf650c6642bf906bf0d4aaea5b9 | [] | no_license | Unc1eWu/CS61A | 60687f0ac3722997af9d3aef4c1190611942197c | 18a379a30b2d16629f649e091623892dc2c15df7 | refs/heads/master | 2020-04-29T16:59:55.469735 | 2019-09-22T09:08:29 | 2019-09-22T09:08:29 | 176,282,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | """Lab 1: Expressions and Control Structures"""
# Q3
def sum_digits(n):
"""Sum all the digits of n.
>>> sum_digits(10) # 1 + 0 = 1
1
>>> sum_digits(4224) # 4 + 2 + 2 + 4 = 12
12
>>> sum_digits(1234567890)
45
"""
"*** YOUR CODE HERE ***"
sum = 0
while n > 0:
sum += n... | [
"Weijie.Wu17@student.xjtlu.edu.cn"
] | Weijie.Wu17@student.xjtlu.edu.cn |
d0e79b2550921ec82c01575be4ab9c242dc8b522 | 0313d27c61d83f4cc783611d23cd11dd9af20d12 | /flyback.py | 4ec898bebf9c00c54e9346439ae546d11eceda39 | [
"MIT"
] | permissive | di2mot/Flyback_registrator | fe45e3fa5701e8550f21a274276a157e2d38c709 | 1cd887b16bf31b60f0cbb8166fc813dd96c812da | refs/heads/main | 2023-03-01T20:46:15.724438 | 2021-02-08T19:20:32 | 2021-02-08T19:20:32 | 337,182,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,310 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
import time
'''
СУПЕРТ ТУПАЯ ПРОГА для регистрации на форуме flyback.org.ru
Да, решить просто, но на тот момент я не знал м... | [
"motsar.dm@gmail.com"
] | motsar.dm@gmail.com |
ff1fd7cc8123d0a5423c973f1719f3e816799522 | 2fe08f181c53b7d94c5e97f08016b86705488594 | /app.py | c2170f933f0edeab3758e05f01956f0539cd387b | [] | no_license | KidoThunder/ExportXiamiList | 521871639e67bd2cc235de46ce4078610bb44e65 | b769740e4613f58ff29381f1e8865adbf6368ac2 | refs/heads/master | 2021-06-16T20:00:49.713299 | 2017-04-24T06:40:18 | 2017-04-24T06:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,606 | py | # python3
# author: fyl00
# source: https://github.com/fyl00/ExportXiamiList
import logging
import re
import sys
from PyQt5.QtCore import QObject, QThread, pyqtSignal
from PyQt5.QtGui import QTextCursor, QIcon
from PyQt5.QtWidgets import QMainWindow, QApplication, QMessageBox, QFileDialog
from lxml import etree
from... | [
"fyl00lee@gmail.com"
] | fyl00lee@gmail.com |
75f74b2bca9e9f3323f53b9941cda59e24b9064e | 7f7898939786f7dae5693d66d35149b177b06a34 | /mgw7510/forms.py | 4390a9bff113b0c16f4699d6b0a82354e60ef680 | [
"Apache-2.0"
] | permissive | gter1216/mgw7510-web | f8a6ef2cd3793fdafadf28ba6ec4d4493db69a7c | 758e9053b1071655b5e23f714a82f8698cb562e6 | refs/heads/master | 2021-01-12T07:45:40.679559 | 2017-02-03T13:45:04 | 2017-02-03T13:45:04 | 77,008,390 | 2 | 5 | null | 2017-03-01T04:55:55 | 2016-12-21T02:25:14 | HTML | UTF-8 | Python | false | false | 2,143 | py | from django.forms import ModelForm
from mgw7510.models import WebUser
from django import forms
# inherit from class ModelForm
class WebUserForm(ModelForm):
# username = forms.EmailField(error_messages="user name should not be empty")
# password = forms.CharField(error_messages="password should not be ... | [
"xuxiao1216@126.com"
] | xuxiao1216@126.com |
64764f6b4a24d45418ef96845068613a38b12ef6 | 921e479e9fe4f72c0621207b262f7464b6812d9b | /ants.py | c2ba7b96cbf5bdf1c537ec32ec1f333bdb5b6ce0 | [] | no_license | ajai-sharma-backup/ants | af60fc671ffe7c9eede2002189906e6095defc96 | 9df7ebc8907132415d088302e9a9fe2f0bca2116 | refs/heads/master | 2021-06-13T17:52:18.431694 | 2015-06-02T21:17:37 | 2015-06-02T21:17:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,763 | py | """The ants module implements game logic for Ants Vs. SomeBees."""
# Name: Ajai Sharma
# Email: ajai.sharma@gmail.com
import random
import sys
from ucb import main, interact, trace
from collections import OrderedDict
################
# Core Classes #
################
class Place:
"""A Place holds insects and ... | [
"ajai.sharma@gmail.com"
] | ajai.sharma@gmail.com |
a6f5732bacf0acd92492666f0a0fa0795679cf6c | e19ddbc01a0a8f6295a106ff969da9f4a9ffd408 | /MIT_OCW/Textbook Finger Exercises/2-4-2_Largeset_Odd_Out_of_10.py | cfb1449cf4720b493d02eb99650255d70ff9f6f2 | [] | no_license | Nmeece/MIT_OpenCourseware_Python | 8860049c48090646fc9e98e469047cc5a0b171f1 | 69aecd3e9b448bc5ce2b98e46d72d65b35e212b5 | refs/heads/master | 2023-04-24T07:48:31.216771 | 2021-05-02T17:38:10 | 2021-05-02T17:38:10 | 318,314,220 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 13 11:44:55 2020
Second Finger Exercise of section 2.4 of the Introduction to Computation and Programming Using Python textbook.
Prompt:
Write a program that asks the user to input 10 integers, and then prints the largest odd number that was entered.
... | [
"nygelmeece8@gmail.com"
] | nygelmeece8@gmail.com |
c8611799a1e24a658b75c368489cc107c804783e | d8ac9944ff402ec9f0bea82213a8418982c16f39 | /python/Tushare_API_Scripts/DataFrame写入PG数据库.py | 97b330f3c46b13c7ee8b6c6d9117eb63e282fef7 | [] | no_license | zzgbird/PyAndShell_Learning | cdc50d23ac0d05dcb9293171bb3a9946485766d3 | 9f0f7b3a39d2ad8a6a5211dd612d805dac5de64c | refs/heads/master | 2023-03-27T11:30:35.245342 | 2021-03-21T07:02:59 | 2021-03-21T07:02:59 | 300,139,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | # DataFrame写入PG数据库
# 提前创建df数据集并安装psycopg2模块
pip install psycopg2
# 1. 使用pandas的to_sql导入
import pandas as pd
from sqlalchemy import create_engine
engine = create_engine('postgresql://postgres:ican00@127.0.0.1:5432/stockam')
start = datetime.datetime.now()
pd.io.sql.to_sql(df, 'stock_basic', engine,index= False, ... | [
"zzg_30th@outlook.com"
] | zzg_30th@outlook.com |
6f5a178c8d1ba0fb6bb65c7f38002457ca8ef23a | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/py/onyx/util/rocutils.py | 48dd8b474c58afe853ee45475fc9479842d375ed | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,676 | py | ###########################################################################
#
# File: rocutils.py (directory: ./py/onyx/util)
# Date: Mon 10 Mar 2008 18:34
# Author: Ken Basye
# Description: Utility code for generating ROC and DET curves
#
# This file is part of Onyx http://onyxtools.sourceforg... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
9443edd0436310cbd47d8b6a75e21c106482fb9c | 1eee09ce02d848a8e2653f199b7171f74cb7d1c9 | /service/api.py | 6496e828b7afe578a9d14aa5a0c97a8185b15a63 | [
"MIT"
] | permissive | etalab/csv_detective_api | 7416cde112fcd4ed70e703231569bce5901c2161 | 7c96f497374d842226a95a26cb6627ac22cd799b | refs/heads/master | 2023-01-12T09:41:37.519013 | 2020-06-15T14:09:34 | 2020-06-15T14:09:34 | 193,232,263 | 3 | 3 | MIT | 2023-01-04T08:20:45 | 2019-06-22T12:35:26 | Jupyter Notebook | UTF-8 | Python | false | false | 7,487 | py | #!flask/bin/python
import os
import sys
from collections import defaultdict
sys.path.append("./csv_detective_ml") # horrible hack to load my features class to load my ML pipeline :/
from flask import Flask
from flask import request
from flask import jsonify
from flask_restplus import Api, Resource, fields
from flask_... | [
"pavel.soriano@data.gouv.fr"
] | pavel.soriano@data.gouv.fr |
d1ecf38656a166455efc2f5666bd6b3ebcedb4e8 | c124e35f3d8dbbdb0423b4b7c30d84baaa04a208 | /python/decorators.py | 4d8bcc0067b39bc9310c7754fa2809d787c3332c | [] | no_license | Tettipappus/harvard-cs50 | 29914c929743c27011c5205b6cbaca997f1e6295 | c8fc42c874cc5989fd99ccf3ce59fd60d3c809b8 | refs/heads/main | 2023-06-25T08:54:55.932761 | 2021-07-19T13:58:49 | 2021-07-19T13:58:49 | 376,718,943 | 0 | 0 | null | 2021-06-14T09:20:41 | 2021-06-14T06:02:01 | HTML | UTF-8 | Python | false | false | 209 | py | def announce(f):
def wrapper():
print("About to run a funtion...")
f()
print("Done with the function.")
return wrapper
@announce
def hello():
print("Hello, world!")
hello() | [
"sig.d.skjerve@gmail.com"
] | sig.d.skjerve@gmail.com |
4438a410880898850073b4bc83f77e73ca792121 | eadd15064aa74811e7a3718b617636627ef4fd47 | /web/migrations/0020_rename_index_indexpage.py | 8efb4605a936d00a29a46a2c95ef6c4263e63c65 | [] | no_license | topsai/plasrefine_backstage | 262f7bb032daa4d018aac1519e1139cb060c3f91 | 1eb34dd0b13ebdc2a42dd6ed1aaa2d08c18ab5fb | refs/heads/master | 2023-04-12T13:24:22.710108 | 2021-05-08T14:16:41 | 2021-05-08T14:16:41 | 361,993,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.2 on 2021-05-02 08:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('web', '0019_auto_20210502_1558'),
]
operations = [
migrations.RenameModel(
old_name='Index',
new_name='IndexPage',
),
... | [
"hurte@foxmail.com"
] | hurte@foxmail.com |
061a39f3108aeed656ad2dd3e0779406a17ee0f6 | 414daef846cbb984cb97c1183e7ea557ce466575 | /alpha_sigma-master/record_node_backup/new_MCTS.py | 45046ddcd18f5acf49821148d967979c791aa016 | [] | no_license | yyh1999070901/GoAI | c0e0cf0d471bb65a56f83796707f9c58219554c5 | d0551c8faa4c9a37a7a50d140a45727354a54fd2 | refs/heads/master | 2023-02-03T00:30:38.628257 | 2020-12-22T11:17:30 | 2020-12-22T11:17:30 | 323,603,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,440 | py | import numpy as np
import random
import sys
import utils
from five_stone_game import main_process as five_stone_game
import time
num2char = {0: "a", 1: "b", 2: "c", 3: "d", 4: "e", 5: "f", 6: "g", 7: "h", 8: "i", 9: "j", 10: "k", 11: "l", 12: "m",
13: "n", 14: "o", 15: "p", 16: "q", 17: "r", 18: "s", 19: ... | [
"18710113218@163.com"
] | 18710113218@163.com |
bd0f712c9aea151cb5ebee92c726e449ed9bc413 | 5cefde592dcc5c40b73734d9488199f084622912 | /MNIST/attacks_base.py | 63dba65da2e82fb07601154582ce167dbff86b16 | [] | no_license | RemiBERNHARD/Membership_Inference_Attacks | d41f2e1f1966c76cc94f0f6f65f858c30ecb7f5a | a4b68a5bd1d0993ca60a2bacb2d5e445b51cdb10 | refs/heads/main | 2023-03-01T13:14:04.257446 | 2021-02-12T13:00:39 | 2021-02-12T13:00:39 | 338,311,636 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | import numpy as np
from keras.utils import np_utils
from keras.models import Model
from keras.layers import Dense, Input
from keras.optimizers import Adam
#########################
def attack_label(model, X_vec, y_vec):
y_pred = np.argmax(model.predict(X_vec), axis=1)
memb_pred = np.equal(y_pred, y_vec)
... | [
"noreply@github.com"
] | RemiBERNHARD.noreply@github.com |
75747144a3735564364a1962ef1c25bd322f6760 | ed2234df3d7e1eecd1b198df66f4fd7263145d18 | /MergeSort.py | 5e0ed44e686d16540544f188564254a64609b9b5 | [] | no_license | Manohar-Gunturu/AlgoPython | bb887f1508c24798c5ae4b1d55fc75d41d674254 | 5800336886b1cde4deb577f4dc671ce993a0e7f4 | refs/heads/master | 2021-07-06T10:31:44.984945 | 2020-07-18T15:45:03 | 2020-07-18T15:45:27 | 132,955,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | arr = [0, 3, 1, 5, 2, 4, 6, 1, 3, 0]
# arr = [5, 2, 4, 6, 1, 3]
def merge(array, begin, mid, end):
# size of first array [begin, mid]
n1 = mid - begin + 1 # +1 as index starts at 0
# size of first array [mid+1, end]
n2 = end - mid
# temp array to hold left and right
leftarr = [0] * n1
rig... | [
"gunturumanohar2@gmail.com"
] | gunturumanohar2@gmail.com |
e3ea3a268a625b1c2669d93b5c29caa0a984cda4 | f63e53c9d7a23c03ecbf488e9ea156c5c98f3f33 | /bookstore_oop.py | a6eeea598ec9a34570aa17f2e95f7d001407c3bb | [] | no_license | matramir/bookstore | 957841664becc9bf00113e51eaed97373d8c8920 | c0a19c767a784d9c1c2fafb6267dbdfaf3ff9b03 | refs/heads/master | 2020-03-27T16:19:10.401750 | 2018-08-30T17:44:12 | 2018-08-30T17:44:12 | 146,773,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | from tkinter import *
from backend_oop import Database
"""
Program that stores Title, Author, Year, ISBN
User can View, Search, Add, Update, Delete, close
"""
database = Database("books.db")
def get_selected_row(event):
try:
global selected_tuple
index=list1.curselection()[0]
selected_tup... | [
"matias.ramirez.parisi@gmail.com"
] | matias.ramirez.parisi@gmail.com |
241ac7b70c2142fba7ff196677ed61d5e0910d2f | 587290dbd33c5fb60a154eacd2155e681a3f9ecf | /js/gatsby/index.cgi | db257841537410c023fb93f34bb0b3e0a10dcd00 | [] | no_license | jaredly/prog | b6408db52c16e9d3c322933f0624c23663d33ce0 | e8fe82ccd1abe42371adbb3f317576facac546ca | refs/heads/master | 2021-01-20T09:12:48.931999 | 2013-08-29T04:24:36 | 2013-08-29T04:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | cgi | #!/usr/bin/python
print 'Content-type:text/html\n'
import cgi,cgitb,os,sys,re
cgitb.enable()
def load_chapter(chap):
return open('chapter%s.txt'%chap).read()
def load_chapters():
d=[]
for i in range(1,10):
d.append([i,load_chapter(i)])
return d
def print_entry(at,chap,pageat,item):
if at... | [
"jared@jaredforsyth.com"
] | jared@jaredforsyth.com |
21bc2d0fbd981fbefdd919c846357da41182c5ac | e48eac671ea8335f696ec5fd0511b12800b0fca0 | /accounts/models.py | 6625a130b79945d6d4613bcc9a0b047c32339541 | [] | no_license | linusidom/django-basic-reservation-system | 8fba10708cebd42d5ad308c0ef838a0fe1ac8778 | 5dd5db4832fe83e862424af18aae3aad6cf3f1ed | refs/heads/master | 2020-03-26T08:37:15.052362 | 2018-08-14T11:34:19 | 2018-08-14T11:34:19 | 144,711,607 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.db import models
# Create your models here.
from django.contrib.auth.models import AbstractUser
from django.shortcuts import reverse
class Profile(AbstractUser):
ideal_weight = models.IntegerField(default=185)
def __str__(self):
return self.email
def get_absolute_url(self):
return reverse('accoun... | [
"linusidom@gmail.com"
] | linusidom@gmail.com |
9e2fd5f4161aa84c62285366896ec09d1372f331 | 522e5c63bd53dccf824c17e882f564e8423331ea | /gbce_trading_unittests.py | 497ea315ef6066e57c1da334e7e5a3c796870a50 | [] | no_license | pankaj-purohit/Assignment | df20a65bb2460cbb28e19b6156003a2611a36f82 | 9ce95b020673ef621e3696b16997c7ff2f989daa | refs/heads/master | 2020-05-31T16:23:37.125624 | 2019-06-05T11:17:14 | 2019-06-05T11:17:14 | 190,380,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | import datetime
import unittest
import gbce_trading_config
from gbce_trading import GBCETrading, Stock, Trade
class GBCEUnitTests(unittest.TestCase):
def test_getDividendYield(self):
stockComm = {'POP': {'Type': 'Common', 'Last Dividend': 8, 'Fixed Dividend': None, 'Par Value': 100, 'Trades': []}}
... | [
"noreply@github.com"
] | pankaj-purohit.noreply@github.com |
c67e75c1252e6c67b7433b5b12e21fc96a3a4abf | 59a4a1409fabdd29c6db85775a549c00b5a7b3b7 | /小型FTP/服务端/server.py | 9d417fab71d1189dbf72fcb676df0e9a7689d76d | [] | no_license | laijin/mini_FTP | 5be28ebe457dac57eef05d48c88e81c01fd0d1da | 01c5777135a019efacddce0566dca1df757b9568 | refs/heads/master | 2020-04-01T17:08:10.404816 | 2018-10-17T07:37:31 | 2018-10-17T07:37:31 | 153,414,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import socket
import os
import subprocess
import struct
import json
share_dir=r'D:\python3.7\chengxu\luffy\ch-5\小型FTP\客户端\share'
def get(cmds,conn):
filename = cmds[1]
# 以读的方式打开文件,读取文件内容,发送给客户端
header_dic = {
'filename': filename,
'md5': 'graga',
'file_size': os.pat... | [
"noreply@github.com"
] | laijin.noreply@github.com |
f8fdac6b1a2846a9f74f7db1f038fed9022ab0a4 | 5dd03f9bd8886f02315c254eb2569e4b6d368849 | /3rdparty/python/GitPython-0.3.1-py2.6.egg/git/__init__.py | 500d053f7729d7172f300870e30b00ae7a523f09 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | adamsxu/commons | 9e1bff8be131f5b802d3aadc9916d5f3a760166c | 9fd5a4ab142295692994b012a2a2ef3935d35c0b | refs/heads/master | 2021-01-17T23:13:51.478337 | 2012-03-11T17:30:24 | 2012-03-11T17:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # __init__.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os
import sys
import inspect
__version__ = '0.3.1'
#{ Initialization
def _init_externals(... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
d69078e714be2c5e36cd35abb4d251b6fb236980 | 16582b82a7cb119f218b6d4db025c338263852fc | /download.py | 6246ed7d49a2d7362dc394241198fcef86f9194f | [] | no_license | a1004123217/music | 849921ffbeea264e258ea53d9b4c773b21a68a9d | 9ef35653c0872c70463c9802ea6fe318f726cfcf | refs/heads/master | 2022-12-12T11:50:49.233881 | 2020-09-14T10:42:29 | 2020-09-14T10:42:29 | 292,523,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from urllib.request import urlretrieve
import os
# 解决
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
'''
通过txt网址文件,现在图片到本地
'''
def download():
categories = ['music']
for category in categories:
# 新建存储ladder文件夹存储图片
os.makedirs('/Users/wzy/PycharmProjects/pythonPro... | [
"wzy@wangzhenyudeMacBook-Pro.local"
] | wzy@wangzhenyudeMacBook-Pro.local |
e81f2da8791b183158fe5fb31295415705244e0d | 15fbec197e9e8508bce3189b0d6d6f0b2fc317ee | /core/migrations/0001_initial.py | 74785cf38e45b6aa551bf1a24a0c5aecd7f27a42 | [] | no_license | douglasbastos/minhatabela | d698071b23ecd2c880af790bd1d85be3a04c7a46 | df8499e46b00d45b9cf7ffaf236b1635fa6e2b85 | refs/heads/master | 2021-01-09T20:29:02.844595 | 2016-07-04T04:30:45 | 2016-07-04T04:30:45 | 62,531,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-04 04:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | [
"douglashsb@gmail.com"
] | douglashsb@gmail.com |
ea69fdc5fcb293b108694f4a74dd68b98284def9 | c744b461256a699d2f039edee0d09344523e86ae | /src/bloch_plot_state.py | a772c653ab022806f6e410d7ee7455d904acab47 | [] | no_license | rajeshn76/Blochsphere_Demo | 672e348991d8918d858464ac2ee7c2827e38b837 | 46371dca1b390a639da25d60bce2fce4174c8874 | refs/heads/master | 2020-04-01T15:54:21.442509 | 2018-10-26T14:59:45 | 2018-10-26T14:59:45 | 153,356,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import numpy as np
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, execute, Aer
from qiskit.tools.visualization import plot_state, plot_histogram
q = QuantumRegister(1)
c = ClassicalRegister(1)
qc = QuantumCircuit(q, c)
qc.s(q).inverse()
qc.h(q)
qc.rz(np.pi/4, q)
qc.rx(-np.pi/4, q)
qc.barrier(... | [
"rajeshn76@gmail.com"
] | rajeshn76@gmail.com |
2cdcc3f42550aff81547194ab8337407a6b72240 | 0d6c0df740fad947cd489bcd81c067c2a50e6508 | /projects/hog/tests/05.py | 29eebe503fa8fa044c6c7cefc608ea2cdc7710da | [
"MIT"
] | permissive | louieyan/CS61A | 39f317db01c25219ef813dd8b0af788441ba700f | efa7e7d1becbea776ccfa545197a50c20b85d4fb | refs/heads/master | 2022-03-08T03:41:57.052682 | 2022-02-28T02:03:30 | 2022-02-28T02:03:30 | 148,614,155 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | test = {
'name': 'Question 5',
'points': 2,
'suites': [
{
'cases': [
{
'answer': 'While score0 and score1 are both less than goal',
'choices': [
'While score0 and score1 are both less than goal',
'While at least one of score0 or score1 is les... | [
"noreply@github.com"
] | louieyan.noreply@github.com |
433233f2557ef53958b800aa05a1f64706518639 | 7170b86508060488b07b07738ee6742ac9a3bc3c | /zeusci/zeus/tests/test_api_builds.py | 6b2e3ea7484adedd9b2c399a3b2cfaf30bcd9cf7 | [] | no_license | lukaszb/zeusci | 3bb98ca8c35633613c40dc8ea1af010487b8e155 | 8a0d2e99ef4f2d12c9d90a9d3aad82cd4ade7d8c | refs/heads/master | 2020-05-18T16:36:19.349260 | 2013-10-20T08:29:29 | 2013-10-20T08:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | from .test_api_base import BaseApiTestCase
from django.core.urlresolvers import reverse
from django.core.cache import cache
from zeus.models import Build
from zeus.models import Buildset
from zeus.models import Command
from zeus.models import Output
from zeus.models import Project
from zeus.models import Status
import ... | [
"lukaszbalcerzak@gmail.com"
] | lukaszbalcerzak@gmail.com |
39ecdda194fb35100d42e0cdad25360099fde4b9 | 665089f28faa90d31a3ba4d62246c8323e4de9f1 | /communityid/algo.py | 366748f6056a748a8ccb618adde26f5c7098b04f | [
"BSD-2-Clause"
] | permissive | corelight/pycommunityid | 64b7385609bdd5b329d95b99a1389ddb5257033a | 64a6fa18ed2dc9ea1f6fed04e670660a9854a632 | refs/heads/master | 2022-04-29T07:09:53.287643 | 2022-03-05T00:45:39 | 2022-03-05T00:45:53 | 196,440,073 | 22 | 5 | BSD-3-Clause | 2022-03-05T00:43:57 | 2019-07-11T17:40:14 | Python | UTF-8 | Python | false | false | 17,482 | py | """
This module implements Community ID network flow hashing.
"""
import abc
import base64
import collections
import hashlib
import logging
import socket
import string
import struct
from communityid import error
from communityid import compat
from communityid import icmp
from communityid import icmp6
from . import LO... | [
"christian@corelight.com"
] | christian@corelight.com |
996aac45cc3fff5b7b5a9eb0567f864fdb8f7981 | 8c4af05e0257661195c95b0b9e0873eeb6391dab | /packages/python-packages/apiview-gpt/src/_models.py | 85d435a1aa1dd9ca713a5cccc403df55f16ebc0d | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-sdk-tools | 6d171054800807fcbe7b8b878c5903a202d31faa | 2dce521dedc3f5169007d4c481ae8ec077be4450 | refs/heads/main | 2023-09-01T00:00:32.662190 | 2023-08-31T22:21:44 | 2023-08-31T22:21:44 | 170,592,186 | 113 | 174 | MIT | 2023-09-14T21:53:41 | 2019-02-13T22:55:46 | C# | UTF-8 | Python | false | false | 744 | py | from pydantic import BaseModel, Field
from typing import List, Optional
class Violation(BaseModel):
rule_ids: List[str] = Field(description="unique rule ID or IDs that were violated.")
line_no: Optional[int] = Field(description="the line number of the violation.")
bad_code: str = Field(description="the ori... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ad74fb1924b3b8c48c2d09b0bbc03cd105920500 | af97a81a69d100e684b8e9f02bc1b117069b9895 | /Testcases_Copilot/CWE-730/codeql_2.py | 1c59968d10ace977410229a13e67c6c9188734a4 | [] | no_license | s2e-lab/SecurityEval | 8de3e2f78fffa7058d79cce84fbcd8ff29c8468d | f637f67b8e8d52d641ab15903e46a41ead7e30a5 | refs/heads/main | 2023-06-17T22:55:08.047769 | 2023-06-16T16:54:54 | 2023-06-16T16:54:54 | 509,664,226 | 28 | 7 | null | 2023-05-27T04:55:05 | 2022-07-02T05:10:17 | Python | UTF-8 | Python | false | false | 294 | py | from flask import request
import re
@app.route("/direct")
def direct():
'''
get the regular expression pattern from the get request, comipile it and then use it for search
'''
pattern = request.args.get('pattern')
regex = re.compile(pattern)
return regex.search(text)
| [
"lsiddiqsunny@gmail.com"
] | lsiddiqsunny@gmail.com |
05e6de66f7d42a5e5cc0ec5d44e586790873c9b5 | 46cbc45de7cd3ad8c565603918dcec8f52eeab82 | /11.12 Selenium单元测试.py | fdbf1a76c6ecbf251ecacdab7aa61d0b2dc057ea | [] | no_license | Patrickctyyx/WebScrapers | 8bb946a2b60e21426e1b3048bb4752d71c79b401 | 02ebd9bef8242223b1e73ade0a4290235bebf668 | refs/heads/master | 2020-05-29T08:52:18.017387 | 2016-11-16T14:05:52 | 2016-11-16T14:05:52 | 69,369,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from selenium import webdriver
# 如果通过了就没提示
# 没通过就报错
driver = webdriver.PhantomJS(executable_path='/home/patrick/phantomjs-2.1.1-linux-x86_64/bin/phantomjs')
driver.get('http://en.wikipedia.org/wiki/Kevin_Durant')
# 这不就是系统自带的断言么...
assert 'Kevin Durant' in driver.title
driver.close()
| [
"873948000@qq.com"
] | 873948000@qq.com |
6278c357cec08deee02c0d6bb03990e43931a5d9 | 1f5ff597e967a63de3e005b876b644e25cd08dfc | /stage3.py | 873501d6cef32b2731fb6e2a05ffb818309dec3e | [] | no_license | codefloww/BBA | 713f7e1a96c8f291d917d5a44f8ae7f5e2d5e09e | 2b0c4c1a408dd41960f736a2f20336db71995b82 | refs/heads/main | 2023-08-24T23:08:16.814240 | 2021-10-31T13:35:45 | 2021-10-31T13:35:45 | 422,621,197 | 0 | 0 | null | 2021-10-31T13:35:46 | 2021-10-29T15:14:34 | Python | UTF-8 | Python | false | false | 1,753 | py | import main
import os
import pygame
import physics
pygame.mixer.init()
def stage():
stage3 = main.Window(1920, 1080, "Enter.mp3", "background3.jpg")
stage3.play_audio("start")
running = True
objects = []
moveable = [] # Each moveable object, basically mobs and player
player = main.Wolf(100, ... | [
"kryvpaul@gmail.com"
] | kryvpaul@gmail.com |
df79b390cc42bfa1f4ab91ea70a0d961c8fa1131 | c4f0e34324d5a44895212c9c24c6ed57e62cf9f9 | /MinorProject/settings.py | 5d5b9498599232e03e6175b4075b4e1f0e074a09 | [] | no_license | Shinde-Hmn/MINDSHUFFLER | 7fce564d567200dea01319cebce15f3f9d405bbc | 0bf22df015d9e62e9a5622cea40f6915edf1b500 | refs/heads/master | 2022-04-26T20:10:31.581050 | 2020-04-30T16:57:09 | 2020-04-30T16:57:09 | 260,267,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"himanshushinde1997812@gmail.com"
] | himanshushinde1997812@gmail.com |
aeff8452dda485b474d6f78dec9db2f3f258e6ff | 80d1f1f50b9f7f6be17302df7695154f54aa7a76 | /pdp8/core.py | 3691cb7deeb3ab2b53a7ab5d3ba6877bf6d1f838 | [
"MIT"
] | permissive | romilly/pdp8 | af7f7df0136b31df03a4f53b709869a59f25ca2c | 68e1025c5e4c6b6fa92a62cc81117d841c214137 | refs/heads/master | 2020-03-13T15:24:12.955602 | 2019-06-19T05:58:50 | 2019-06-19T05:58:50 | 131,176,107 | 4 | 1 | null | 2018-05-16T07:13:14 | 2018-04-26T15:31:01 | HTML | UTF-8 | Python | false | false | 7,983 | py | from io import StringIO
from pdp8.tracing import NullTracer
def octal(string):
return int(string, 8)
OPR_GROUP1 = octal('0400')
OPR_GROUP2 = octal('0001')
CLA1 = octal('0200')
CLL = octal('0100')
CMA = octal('0040')
CML = octal('0020')
RAR = octal('0010')
RAL = octal('0004')
RTR = octal('0012')
RTL = octal('000... | [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
7d471f712e0a1b1cc63bcd73298eac954a746430 | 2a3bd5db7f3db99b6b098ba569655a591b673aac | /10_Sony_Select_Service/Documents/02_Design/05_Module_Specification_Design/V5.6/05_BackupRestore/03_BackupRestoreAppListManager/source/conf.py | 8fbb8ae9311a6706e70f7a0820eeb30175fbcbdd | [] | no_license | imace/service-dev | 3c6ce201b51bbc481484ee83aa338ee2af31e67f | a2ee6b8bf844cde34b7f4b5915e2465d84e6258f | refs/heads/master | 2021-01-17T06:01:05.093541 | 2014-12-08T06:37:22 | 2014-12-08T06:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,323 | py | # -*- coding: utf-8 -*-
#
# Pro_Name documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 18 22:33:41 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"devin.wei@sonymobile.com"
] | devin.wei@sonymobile.com |
def4e0c9060cbb6946a984f723129a8064a91715 | 16679038c7a0b75097ffdd2d5b6be28ae8dae68f | /test/utilities/test_catch_exceptions.py | 74b112680efb4b09be050e92f0ab2d6cc4bcdc2b | [
"MIT"
] | permissive | elifesciences/profiles | d98e5c2391630f9877e0585e07143d7904f1e777 | 9cd2e523f9dfa864891511e6525381f191951b24 | refs/heads/develop | 2023-08-31T03:09:08.723797 | 2023-08-25T06:54:55 | 2023-08-25T06:54:55 | 94,993,646 | 2 | 0 | MIT | 2023-06-21T01:15:37 | 2017-06-21T10:43:52 | Python | UTF-8 | Python | false | false | 959 | py | import logging
from logging import Handler, Logger, Manager
from logging.handlers import BufferingHandler
from pytest import fixture
from profiles.utilities import catch_exceptions
@fixture
def logger(handler: Handler) -> Logger:
logger = Logger('logger', logging.DEBUG)
logger.addHandler(handler)
logger... | [
"noreply@github.com"
] | elifesciences.noreply@github.com |
e47bd5ee0609619cf412769fd1666431740a27f0 | 4929b707e07efedcff122241f33ff05e25004d10 | /orders/migrations/0007_auto_20160411_1257.py | 2f2327ec6d0a1e617b5cd122315c69e90c712d4f | [
"MIT"
] | permissive | loafbaker/django_ecommerce2 | be06f00ae637dc9228ba3b5830f8ecef043922d0 | 7f1e95cf4082960861c3090ed47480eefb9593b9 | refs/heads/master | 2021-01-21T04:44:46.496191 | 2016-07-29T05:40:53 | 2016-07-29T05:41:44 | 53,693,350 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-11 12:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_usercheckout_braintree_id'),
]
operations = [
migrations.AddF... | [
"loafbaker@hotmail.com"
] | loafbaker@hotmail.com |
f9881fe5f317247e0325b463ffcc17864d748ccf | 882e97d3392f11692d8cae815439cd2609c3b96b | /StacksAndQueues/Stack.py | 9bf9a1a0179c83472be858b75092b24b8ce7ba3c | [] | no_license | springrolldippedinsoysauce/pythonshit | af0a48ee99838df35da4cdb9d1990ae41ccb07c4 | 340f9d9aab0f75914d3306694f73b821808702e2 | refs/heads/master | 2020-07-18T17:28:42.122560 | 2019-09-04T09:42:24 | 2019-09-04T09:42:24 | 206,284,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from StacksAndQueues import Exceptions as EXP
class Stack:
def __init__(self, capacity):
self._capacity = capacity
self._stack = []
self._count = 0
def get_count(self):
return self._count
def is_empty(self):
empty = (self._count == 0)
return ... | [
"noreply@github.com"
] | springrolldippedinsoysauce.noreply@github.com |
d193d711f2be24fe4204a34d2b1a3b14eda09afd | d40ab8694389d1a0d80013a2b0ecd8c426e6e8f8 | /graphs/scc.py | 5847ec8cbff74c175a28bd22a6d879601af33ceb | [] | no_license | lukebiggerstaff/Stanford-Algorithms-MOOC | b5b34c8d8ff7725461fd03bb3aac505c87a1012e | 382a30f27dff6ca9d30c071a4d3418ff6333f4c3 | refs/heads/master | 2021-01-01T17:02:26.883373 | 2017-11-14T19:06:14 | 2017-11-14T19:06:14 | 97,980,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | import sys
import re
import resource
from collections import defaultdict
sys.setrecursionlimit(10 ** 6)
resource.setrlimit(resource.RLIMIT_STACK, (2 ** 29, 2 ** 30))
def dfsfirstpass(graph):
visited = set()
stack = list()
for i in graph.keys():
start = str(i)
if start in graph:
... | [
"luke.biggerstaff@gmail.com"
] | luke.biggerstaff@gmail.com |
9cf3d784947858edaf604e6c180fff1007ff9612 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/AlipayExscUserFirstsignGetRequest.py | e639edfe18817ae9d75d814b5ee4329e27910ec7 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 3,664 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayExscUserFirstsignGetRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._alipay_id = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
e0ec0a0e6219b4c6d9bf344fbe2feece9e5e101f | b034c20e2cc4bb480060c2a2a3db78ad8c760818 | /3.7-predicting-house-prices.py | a7d57877dd4f4e3feb808ac138229e876cdf5987 | [] | no_license | practice-more/try-keras | e84c61d396d34f73743cbb40b8a105d1dbb72986 | 4921c0c38e04dada327d994d3a1b531a7d032cd8 | refs/heads/master | 2020-09-05T03:25:14.372434 | 2019-11-15T10:14:34 | 2019-11-15T10:14:34 | 219,967,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | from keras.datasets import boston_housing
from keras import models
from keras import layers
import numpy as np
import matplotlib.pyplot as plt
import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
(train_data, train_targets), (test_data, test_targets) = boston_housing.load_data()
print(train_data.shape)
print(train_da... | [
"btan@esri.com"
] | btan@esri.com |
ff0f2048594d475b598b860002a8ba4d6b8f0047 | e1e59ba5f60886be8b1f587f274d4fe177982e35 | /familiarize_project/apps/users_app/urls.py | c0a27ca2522a0c48a2afd59e929931634f7d45cf | [] | no_license | betalantz/CodingDojo_LearningProjects | 0b2d82a7e32e8e22a07de79d50a46a61bb8fbeca | 4188a0c1df42da3ce5d29f2bdeb92865ea2c6cd1 | refs/heads/master | 2021-01-01T19:26:16.879191 | 2019-04-23T00:48:12 | 2019-04-23T00:48:12 | 98,582,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | """familiarize_project 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='hom... | [
"noreply@github.com"
] | betalantz.noreply@github.com |
ca7db0a3b82cc1c33311d1481cc649686e98ba8e | b8c8af33c8a1a7130c62b42cf22f2eeaf3d81427 | /譌ァ/PUBLIC.py | ea18217cffe68043903b90b91aad46320da0bc0b | [] | no_license | natsukaze4545/nnnn | 57e7a020373569d3ccf26e2e86e210c7aa4d3182 | d0dc58d1fb8981c625aed204aa865992114e0144 | refs/heads/master | 2020-03-22T08:44:38.124591 | 2018-07-05T03:41:02 | 2018-07-05T03:41:02 | 139,787,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,402 | py | #SRSU LINE SELF BOT v7.0.3
# -*- coding: utf-8 -*-
import LAG
from LAG.lib.Gen.ttypes import *
from datetime import datetime
from LAG.lib.Gen.ttypes import *
from datetime import datetime
from LAPI.main import qr
from threading import Thread
import time,random,sys,re,os,json,subprocess,codecs,threading,glob,requests,st... | [
"114514kusai@usako.net"
] | 114514kusai@usako.net |
5a6ea935188b2c941b1c2a18e79fce894cd1916c | ab77b9ee5bed093016ec44ab2b47e055f7f1e0d1 | /Python/mysql/full_friends/bin/pip2.7 | d99268cba2cf8698d7f0b6eceef55b75de7ba898 | [] | no_license | minokuchi/coding_dojo | f07737642228ca069e82894496ff2c0aed1f735f | 0f6d8262c093dc9c6f3825667df5e67b3810c80d | refs/heads/master | 2021-09-07T04:59:10.116505 | 2018-02-17T17:41:51 | 2018-02-17T17:41:51 | 109,316,639 | 0 | 0 | null | 2018-02-17T17:41:52 | 2017-11-02T20:41:00 | Python | UTF-8 | Python | false | false | 275 | 7 | #!/Users/marki/Desktop/Coding_Dojo/DojoAssignments/Python/mysql/full_friends/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"minokuchi@gmail.com"
] | minokuchi@gmail.com |
a655da1503c403cc2cfe9a6e9f8fb672253bd71f | a7efab7b8555d75349917f9a23368a87e9d98726 | /venv/Scripts/pip-script.py | 1d65201c8efab4a9201514b89c1303150ae235b0 | [] | no_license | text007/python | 0779d43c9e2a235939117a8d86901a1d9878bf0d | 9c39f8876953ad7d2065e06c96ceb28b1bb43085 | refs/heads/master | 2022-11-24T13:32:48.217181 | 2020-07-24T02:45:06 | 2020-07-24T02:45:06 | 265,194,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!F:\python2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
loa... | [
"604573679@qq.com"
] | 604573679@qq.com |
e08c3ff7f96aee19729d67accd05c2b3f7ffbdf7 | 49fb950bafeeac754107a6c962f8ea1a1b5212d2 | /app/database.py | 98872f91a5824945704474bf2c4430fc9e34d0fc | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | VOC-Electronics/WiFiDomo_Manager | 5a50fcaf59e88172dc15b478b06deca3e35feee3 | b7f319fa0d8f5c7328948a40962cbed6abffcf25 | refs/heads/master | 2023-08-10T09:02:17.785967 | 2016-08-30T09:40:30 | 2016-08-30T09:40:30 | 60,178,446 | 0 | 1 | null | 2016-08-30T09:40:30 | 2016-06-01T13:17:25 | Python | UTF-8 | Python | false | false | 7,259 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'Martijn van Leeuwen'
__email__ = 'info@voc-electronics.com'
'''
# =[ DISCLAIMER ]===============================================================
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED T... | [
"info@voc-electronics.com"
] | info@voc-electronics.com |
91c8298a8f35841bf72996c47795505cf4afd03a | 65c001b5f572a6b0ca09dd9821016d628b745009 | /frappe-bench/env/lib/python2.7/site-packages/watchdog/observers/polling.py | 3039ceb3678ce611aeccc6d88d0586c3f632a5e2 | [
"MIT"
] | permissive | ibrahmm22/library-management | 666dffebdef1333db122c2a4a99286e7c174c518 | b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506 | refs/heads/master | 2022-10-30T17:53:01.238240 | 2020-06-11T18:36:41 | 2020-06-11T18:36:41 | 271,620,992 | 0 | 1 | MIT | 2022-10-23T05:04:57 | 2020-06-11T18:36:21 | CSS | UTF-8 | Python | false | false | 4,687 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | [
"iabouelftouh@trudoc24x7.com"
] | iabouelftouh@trudoc24x7.com |
a7ca9c17124ca0830796ae2a129f45c0f8d02b13 | 458495651f84b6ef033d084fa6caad15c2154077 | /book/views.py | 8b57fc286b811c4742788b028b40bfdc25d4fead | [] | no_license | waldemarantypov/sprint17_django_Forms | 85c5333d4f39ed998c844b0056193ad0fc20f84a | 15061b558a4b5e385d6a538ff89d664f6255223c | refs/heads/main | 2023-04-04T21:53:17.876812 | 2021-04-04T14:52:44 | 2021-04-04T14:52:44 | 353,795,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.shortcuts import render
from django.http import HttpResponse
from book.models import Book
# Create your views here.
def show_books(request):
randomBooks = Book.objects.all().order_by('?')[:3]
context = {"allBooks": randomBooks}
return render(request, 'index.html', context)
| [
"waldemar.antypov@gmail.com"
] | waldemar.antypov@gmail.com |
8180cf64858edff78040580e57e99bca34304e13 | bd649f51496a24a55a2327e658f31d6e03e2f602 | /InvTL/lm_py/py/bin/py.which | f2b30cfff3ced4c92ec7655ae03a05a1f0b7818b | [
"MIT"
] | permissive | mickg10/DARLAB | 6507530231f749e8fc1647f3a9bec22a20bebe46 | 0cd8d094fcaf60a48a3b32f15e836fcb48d93e74 | refs/heads/master | 2020-04-15T20:39:23.403215 | 2019-01-10T06:54:50 | 2019-01-10T06:54:50 | 16,510,433 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | which | #!/usr/bin/env python
from _findpy import py
py.cmdline.pywhich() | [
"root@darlab1.mickg.net"
] | root@darlab1.mickg.net |
13e0e56617747cebd4d1b90a7eb5a82697e973ae | b32224af384173f41732539dd216d9312ffb521e | /rabbitmq/routing/emit_log_direct.py | 1d732cbd9bff728a0821c952e9d5dfd296bf7fc0 | [] | no_license | 4179e1/demo | 2140e63cdecb0f5df4d5d435f482c3da49d63cfa | 8cc84a64c34e2b822fe4114db1ca6531e647affa | refs/heads/master | 2023-08-17T12:16:06.002630 | 2021-09-18T03:27:27 | 2021-09-18T03:27:27 | 407,744,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/env python
import pika
import sys
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='localhost'))
channel = connection.channel()
channel.exchange_declare(exchange='direct_logs', exchange_type='direct')
# If message cannot be routed to a queue, we need confirm_delivery() to get notic... | [
"lyre@poetpalace.org"
] | lyre@poetpalace.org |
64bef1b8d66e25515d68a737b143f8d15d5675ce | 7790e3a3f2de068fef343585ec856983591997a2 | /bank/migrations/0021_followlawtype.py | 67c1e5c0f8ed434aeb042dbf4b3e27f516602279 | [] | no_license | mehdi1361/tadbir | ce702a9a02672826f0bf06e8d5cf0644efe31949 | c0a67710099f713cf96930e25df708625de89a6f | refs/heads/master | 2021-06-04T07:35:37.624372 | 2018-07-23T05:25:04 | 2018-07-23T05:25:04 | 148,870,028 | 0 | 0 | null | 2019-10-22T21:40:28 | 2018-09-15T04:40:26 | HTML | UTF-8 | Python | false | false | 1,147 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-11 16:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bank', '0020_auto_20180510_1351'),
]
operations = [
migrations.CreateModel(
... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
eb78acba4bf3287ebe00fb95622aa68a63eb3407 | 5e5dfefcd80df20efa07bf101d202902921ba40d | /scripts/bam2fna | 0c7af193443d72b98092cab452115f4a0076e792 | [] | no_license | veg/BioExt | ba8539361dffd6a366cf174b938c00e28c6649c7 | 5d0e283553dcc0016567182dae59e4b4994b505f | refs/heads/master | 2023-08-31T11:29:56.342017 | 2023-06-13T20:56:40 | 2023-06-13T20:56:40 | 20,779,973 | 1 | 11 | null | 2023-08-11T21:55:30 | 2014-06-12T19:20:46 | Python | UTF-8 | Python | false | false | 1,120 | #!/usr/bin/env python3
import signal
from Bio import SeqIO
from BioExt.io import BamIO
def main(bam_file, out_handle):
try:
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
except ValueError:
pass
SeqIO.write(BamIO.parse(bam_file), out_handle, 'fasta')
return 0
if __name__ == '__ma... | [
"nlhepler@gmail.com"
] | nlhepler@gmail.com | |
4d797ba65df470752fb7054a0f9213d8436220cc | ccfd41c1f6f90608f4c2596963a28303ab0bdee3 | /test_standalone/test_rpc_client.py | ca8e4062e9ba10e622c152fed40fb4932da79473 | [] | no_license | jsmoyam/zserver | 4e8ffb4543f663a70ca96f1988958dba66b79d49 | d838937cf92262176faec6a6a833a602dbcd868e | refs/heads/master | 2022-12-23T01:21:29.200727 | 2019-04-30T11:05:53 | 2019-04-30T11:05:53 | 184,247,118 | 0 | 0 | null | 2022-12-12T10:22:38 | 2019-04-30T11:05:41 | Python | UTF-8 | Python | false | false | 165 | py | import Pyro4
# obj = Pyro4.Proxy("PYRONAME:test_module")
# obj.example_method()
# obj.initialize()
obj = Pyro4.Proxy("PYRONAME:mytestserver")
print(obj.m1('hola')) | [
"jsmoya@one-esecurity.com"
] | jsmoya@one-esecurity.com |
0593e05afd2470b385d6c0f363d7d4ef5f18a772 | b770761d348794b86ac0d87b16750625eadc176d | /est_imp_from_file.py | 84100f6ca75cc3a32dc41421fcdfe72d6e81bb47 | [
"MIT"
] | permissive | fujiyuer-fujiyu/imp_tsp | 51855f722cea1864ca32adf66dbec42c3d4bcc8e | 4d19a28fc0dea4d81c38dcfb0ddd2800513257cb | refs/heads/master | 2020-06-20T19:40:05.935343 | 2018-03-02T03:12:41 | 2018-03-02T03:12:41 | 74,744,644 | 0 | 0 | null | 2016-11-25T09:34:19 | 2016-11-25T09:34:18 | null | UTF-8 | Python | false | false | 1,413 | py | from scipy.io import wavfile
from scipy import signal as sig
import numpy as np
import matplotlib.pyplot as plt
#input file (observed signal)
(rate,data)=wavfile.read("tsp_out.16.wav")
#(rate,data)=wavfile.read("./20180228/ref/ec_tsp.wav")
i_length=data.shape[0]
print "lenght of Observed signal and number of channels... | [
"yuyfujit@mbp-15uas-012.yjoffice.local"
] | yuyfujit@mbp-15uas-012.yjoffice.local |
c33d59f6b5de8274dc27c8aaca734bc82148e904 | 6a6ca78209adc4e342529d9d3d748f664b2fb511 | /run.py | a7a9504931696e6ad18b1b4a377b020d113d6ccd | [] | no_license | feibl/geometa_search | 88b641a38699bf9ab3af4ef1153c2ee57356ef79 | a4afca92e6639617bcb905ebe3351f0fc3fb440f | refs/heads/master | 2021-01-02T08:57:26.283601 | 2015-01-30T10:58:29 | 2015-01-30T10:58:29 | 26,922,245 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from geometa_search.factory import create_app as create_frontend
from search_rex.factory import create_app as create_backend
from search_rex.recommendations import create_recommender_system
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
backend = create_backend('config.Developm... | [
"fabian.senn@gmail.com"
] | fabian.senn@gmail.com |
bd6a9831ec6c286db6ed408f8d0f498356771f0c | 24c8065f5508126675029cdb41cfa22ec1d70539 | /venv/lib/python3.6/site-packages/haystackbrowser/models.py | 5e8d9bf2e45c5c418883af394de4584f3d9d0dd1 | [] | no_license | Shawnmhy/BEProject | 3b2eaff1737a8bc08af87e6d1e078912449531dd | 06bff81c5b8942c3b713263b0d417c4d19f1d7b3 | refs/heads/master | 2020-03-10T03:18:53.341055 | 2018-05-23T21:51:16 | 2018-05-23T21:51:16 | 129,161,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,794 | py | # -*- coding: utf-8 -*-
import logging
from copy import deepcopy
try:
from urllib import quote_plus
except ImportError: # > Python 3
from django.utils.six.moves.urllib import parse
quote_plus = parse.quote_plus
from operator import itemgetter
from itertools import groupby
from collections import namedtuple... | [
"shawnmhy@gmail.com"
] | shawnmhy@gmail.com |
4d057261b30773fd2e2100f2226e925e29b70202 | 7e48f2d3592dc815e06956bfaba78adbda58626c | /sibu/sample_programs/python/Python/37~48강/alzio07.py | da2f5c72d175385629b371779f69b2799919125c | [] | no_license | joonholee95/Sibu-taikai | bec247a1a1d480f6b659d885b1b7e8dc89cdfd39 | 75ca616daab89f2016b75d340dfe8b49ec3af3c8 | refs/heads/master | 2020-03-22T15:25:34.664224 | 2018-10-01T02:30:15 | 2018-10-01T02:30:15 | 140,251,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py |
# coding: utf-8
# In[1]:
from pandas import Series, DataFrame
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
font_name = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name()
rc('font', family=font_name)
# # pandas로 데이터 다루기
# #... | [
"joonho.lee@human.ait.kyushu-u.ac.jp"
] | joonho.lee@human.ait.kyushu-u.ac.jp |
65522eea8575a938acfbe8a6f92ea0e0fbd28d33 | d36ea3f3a03299d0572914dd31c63a74c9da2c45 | /listapar.py | 217a2e0645c11b0ef1054b356536875010eb7a4c | [] | no_license | BrauCamacho/Mis_Trabajos_python | a05b3954751e37e5b2cbede0d8746faa774a7e1d | e6e0168b33e87c9b8924cf36441d0b585c3aee76 | refs/heads/master | 2022-11-30T11:42:43.520350 | 2020-08-15T04:52:05 | 2020-08-15T04:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | lista = []
for i in range(2,21,2):
lista.append(i)
print(lista)
#lo mismo pero comprimido
lista2= [val for val in range(2,21,2)]
print(lista2)
valor = 0
#if ternario
valor = 10
Edad = 10 if valor < 20 else 0
print (Edad)
#strings
nombre = " Juan "
print(nombre[0:2])
print(nombre[:3])
print(nombre[-1... | [
"noreply@github.com"
] | BrauCamacho.noreply@github.com |
be4bda3f34c623e89442a9c1b39b272bef2b621d | 65b3d3230cd6b828eeb664429997468cd39db92c | /GUI/venv/bin/pip3.6 | e8ca7da5cd04e5723cc80121403f3f1dbfb27657 | [] | no_license | shaniphankar/IR-Assignments | 6bbd0c5e9d52704e67a8c49ee2551d2f693f6578 | db9120861c8dca83d11340c57240e3dc53f660b1 | refs/heads/master | 2021-06-05T09:49:16.734160 | 2020-02-04T15:30:24 | 2020-02-04T15:30:24 | 147,077,391 | 1 | 3 | null | 2018-10-23T13:35:59 | 2018-09-02T11:01:01 | Python | UTF-8 | Python | false | false | 222 | 6 | #!/home/cross/GUI/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vishalcross36@gmail.com"
] | vishalcross36@gmail.com |
afbea8d9ea26a5aca621937e13f4651df94afc0f | 51e61e09fc0440acc56e94446873a686e5f19a9b | /sentiment_analysis.py | 580864d55f9c0138a144fed68b75040afa71a50c | [] | no_license | Yunhan0816/band-lyrics-analysis | f6d3c1981e0718dc53a1cd2908f4f19d28a93371 | e4e0b5cca125dfa70ea1b1f699d595956e2c7b97 | refs/heads/master | 2020-06-23T09:46:56.817147 | 2019-08-15T09:02:15 | 2019-08-15T09:02:15 | 198,588,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import nltk
nltk.download('vader_lexicon')
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import config
import matplotlib.pyplot as plt
import pandas as pd
artists = config.artists
df = pd.DataFrame(columns = ('artist', 'positive', 'neautral', 'negative'))
s = SentimentIntensityAnalyzer()
i=0
for artist in... | [
"yunhanh@bu.edu"
] | yunhanh@bu.edu |
5497eed0b98d3d44dc25ed39c7376e7800f9fcaa | 350cb6c7c7a7842e80aa06ee32bfffc5bc35ee03 | /programming/language/python/python-pillow/actions.py | 09179eb1424c0d20883d92c49aeb6480d96ba765 | [] | no_license | LimeLinux/Packages-2 | f41d11343e8b39274ccd85b9850d0f4e76830031 | 356975df129f2097f12dbed3bc2604cadb5a6c64 | refs/heads/master | 2021-04-30T23:25:31.121967 | 2017-01-21T21:46:54 | 2017-01-21T21:46:54 | 79,139,920 | 0 | 2 | null | 2017-01-21T21:46:55 | 2017-01-16T17:02:37 | Python | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
#WorkDir="Im... | [
"ergunsalman@hotmail.com"
] | ergunsalman@hotmail.com |
712213e339f5e2cbd3b35fc7dbce59681eaeb484 | 3c968361997cc8555bf69f8dcb2283831ac99832 | /pubmed_prepro/train_test_splits.py | a303ab18a02a896f2d53af5c4ab517f90ff903ed | [] | no_license | yellajaswanth/Pubset | 01014c4b99ae32561741c14c8c638f60daa36a8a | 650bd925c82e11aa44ae7be2dc8c10f4401ec074 | refs/heads/main | 2023-03-21T07:06:32.503514 | 2021-03-05T22:01:49 | 2021-03-05T22:01:49 | 340,588,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | #%%
import shelve
from tqdm import tqdm
import json
from sklearn.model_selection import train_test_split
db = shelve.open('/home/aniljegga1/bigdataserver/pubmed_docs/abstracts/pubmed_small/pubmed.db', 'r')
keys = list(db.keys())
all_indices = []
for key in tqdm(keys):
if 'bert' in db[key]:
num_sents = l... | [
"yellajaswanth@gmail.com"
] | yellajaswanth@gmail.com |
aeb4299c83b8a609952126db23c62ac404ef1759 | b422f6330d969887db3e6f7cafa52b681bd181de | /bank_system/decorators/client_decorator.py | ee7bd500164ccc60d932da471a15587876bf2d0e | [] | no_license | weslleymberg/eispatterns-examples | 0346f78cdfcb0729fae72465662d9b797a0aa4b9 | ae1a1759886fb1e05067ea26589e0e229fc646f0 | refs/heads/master | 2021-01-17T16:49:34.464541 | 2011-12-06T17:21:10 | 2011-12-06T17:21:10 | 1,979,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from should_dsl import should
from domain.base.decorator import Decorator
from domain.node.person import Person
from domain.resource.operation import operation
from domain.supportive.rule import rule
from domain.supportive.association_error import AssociationError
class ... | [
"weslleym.lisboa@gmail.com"
] | weslleym.lisboa@gmail.com |
c63f6c71799ea453d1f3eec67be2aff4089d9177 | bc41457e2550489ebb3795f58b243da74a1c27ae | /fabfile.py | 36e45dab0037e8a64b682e70626dadcb3e9d14de | [] | no_license | SEL-Columbia/ss_sql_views | 28a901d95fe779b278d2a51aec84d6bf51245c02 | d146fd96849a4d165f3dc3f197aadda804a2f60a | refs/heads/master | 2021-01-01T19:35:18.999147 | 2012-05-10T18:43:36 | 2012-05-10T18:43:36 | 3,020,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 1,649 | py | '''
fabfile for offline gateway tasks
'''
import datetime as dt
from fabric.api import local, lcd, run, env
env.hosts = ['gateway.sharedsolar.org']
env.user = 'root'
def sync_db():
time = dt.datetime.now().strftime('%y%m%d')
file = 'gateway.' + time + '.sql.zip'
url = 'root@gateway.sharedsolar.org'
p... | [
"danielrsoto@gmail.com"
] | danielrsoto@gmail.com |
de2749d93e0cc76fcd54f2d8c178db2908200109 | b92db3e3eae34b69dce099f78ebe8c0446439faf | /models.py | 30e97d1a6a4e3ae8d3438702123b4f5d29f413e0 | [] | no_license | gayathri44/Portfolio-project | 06834ab0ca261d96f56e80809c4c138c1332dd69 | 260bf23700888fc18fcd0d808d57dd0d8d6650f9 | refs/heads/main | 2023-03-30T22:24:46.645209 | 2021-03-29T17:39:27 | 2021-03-29T17:39:27 | 352,729,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.db import models
class Project(models.Model):
title = models.CharField(max_length=100)
description = models.TextField()
technology = models.CharField(max_length=20)
image = models.FilePathField(path="/img")
# Create your models here.
| [
"noreply@github.com"
] | gayathri44.noreply@github.com |
491e15f5ff3feba66ba8f3a0cb4ca00a15def0fe | 58b37bcd7f406034274bfaf64fafe446ca7d07bd | /Asset_Management/Asset_Management/settings.py | 6822e9cc1a8f9552726787cca43a7ce874115c1c | [] | no_license | jmarigondon/django-repo | cfb06c6e18f85334f15150085df6748633590d56 | 48a8271c76fca27a3a095a19586d79d684afe9c2 | refs/heads/master | 2021-01-20T12:44:59.729698 | 2013-10-15T11:04:48 | 2013-10-15T11:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | # Django settings for Asset_Management project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
... | [
"jbmarigondon@gmail.com"
] | jbmarigondon@gmail.com |
c67befeec81e23a656e21cce799a95202898726a | 51d602577affebc8d91ffe234f926469d389dc75 | /lis/specimen/lab_result_item/migrations/0001_initial.py | 69d94bf24a380776b43692bb1088907fc36bac4f | [] | no_license | botswana-harvard/lis | 5ac491373f74eaf3855f173580b000539d7f4740 | 48dc601ae05e420e8f3ebb5ea398f44f02b2e5e7 | refs/heads/master | 2020-12-29T01:31:07.821681 | 2018-06-24T06:06:57 | 2018-06-24T06:06:57 | 35,820,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,300 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ResultItemAudit'
db.create_table('bhp_lab_core_resultitem_audit', (
('created'... | [
"ckgathi@gmail.com"
] | ckgathi@gmail.com |
1a7c77ff09ef224b7bba1da2aa9c3122854922d9 | 1c1269eff0161d23845444ce0254d2ed195d6fb4 | /app.py | d01b14ee1672d92ed61693f1e504dc1dfedcda9b | [] | no_license | dich1123/tasks | abf5aa9cdf17be0ac245eb27e99e3cc894238ec1 | 3c9aeccb172c9272f573b5831c8c6b8b0c7f2ba6 | refs/heads/master | 2021-06-27T01:15:48.574125 | 2019-11-20T11:11:09 | 2019-11-20T11:11:09 | 222,911,800 | 0 | 0 | null | 2021-03-20T02:13:02 | 2019-11-20T10:29:34 | Python | UTF-8 | Python | false | false | 1,756 | py | from flask import Flask, render_template, url_for, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
db = SQLAlchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
... | [
"cherenkov1123@gmail.com"
] | cherenkov1123@gmail.com |
6132ba796a9e7e8e7a7f159210569d88c3858189 | eda48a0bb8322bb5bb107cea8324aafaf105bf46 | /SVNDev/comments/setting.py | 57e88967a9aeb8bb9c2c471c717f9eda2ae6cfe3 | [] | no_license | sougannkyou/pyWorks | c171dfc2c213bd7d75dc168b987eb96cbcbfd7e1 | 2402b3da4521a17d7f828504c0745ff55cb031be | refs/heads/master | 2020-04-04T06:23:28.678959 | 2017-05-02T09:06:04 | 2017-05-02T09:06:19 | 48,786,947 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # coding=utf-8
# MONGODB_SERVER = '127.0.0.1'
# MONGODB_PORT = 27017
# REDIS_SERVER = 'redis://127.0.0.1/15'
MONGODB_SERVER = '192.168.16.223'
MONGODB_PORT = 37017
MONGODB_SERVER_DIRECT = '192.168.149.39'
MONGODB_PORT_DIRECT = 37017
REDIS_SERVER = 'redis://192.168.187.55/15'
CONFIG_ID = '37556' # 全站爬虫配置ID
OK_PER... | [
"syq314159"
] | syq314159 |
869e9c59cdc059f3f26e0773ffa1001df5e61962 | ad7e79fd9538dede52604603dde6a014a95ce425 | /urls.py | 805049b0f48b475a5e5771c4cffbfcfdad869490 | [] | no_license | coco-ty/Course_Registration_Automation | b66ebf3ac19a0a7e6d1d1aafeb2afa3350b936ab | 80fab09af70d67e74896f76f233601bd7b2077e2 | refs/heads/master | 2021-01-10T13:15:01.923534 | 2015-10-10T06:30:57 | 2015-10-10T06:30:57 | 43,997,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('main.views',
(r'^$', 'home'),
(r'^login/$', 'login'),
(r'^logout/$', 'logout'),
(r'^process/?$', 'process'),
(r'^authenticate/?$', 'authenticate'),
(r'^rate/?$', 'rate'),
(r'^sites/$','sites'),
(r'^sites/(?P<url>.+... | [
"eliz.clair914@gmail.com"
] | eliz.clair914@gmail.com |
5c33f8c1cfcbce6f594edaa5d44c32aebcdf7169 | 0fe2847bf222a3df0847a08de244000207514d05 | /src/seabreeze/pyseabreeze/features/introspection.py | 3422b402411c9583f102c62d5d08ac6c55d658e4 | [
"MIT"
] | permissive | asenchristov/python-seabreeze | 3656161eb2bf2be082839700f021a5957b81f00b | 573bae1d9de4e819611b2f5b9c66f98d7d0fe066 | refs/heads/master | 2022-12-01T09:39:46.079901 | 2020-08-18T09:07:30 | 2020-08-18T09:07:30 | 288,403,712 | 0 | 0 | MIT | 2020-08-18T08:49:58 | 2020-08-18T08:49:57 | null | UTF-8 | Python | false | false | 669 | py | from seabreeze.pyseabreeze.features._base import SeaBreezeFeature
# Definition
# ==========
#
# TODO: This feature needs to be implemented for pyseabreeze
#
class SeaBreezeIntrospectionFeature(SeaBreezeFeature):
identifier = "introspection"
def number_of_pixels(self):
raise NotImplementedError("imple... | [
"andreas@poehlmann.io"
] | andreas@poehlmann.io |
64e6333fe55a93a5646cccf205ff50466adc18b0 | 8ed27d2b651e07d7d9cb489abe9686b7d158741e | /tasks.py | ceffdc72dbddf8e1f82cfa923555c1c7ddb68a3c | [] | no_license | Seven4ME/tgBot | 6874b887849b0ae6ecceb6fae62b561d199dd1a3 | 1f51e41fd0c5c826e315c4f1f5e01b428b1cd528 | refs/heads/master | 2022-12-16T09:03:35.252717 | 2020-08-26T21:11:36 | 2020-08-26T21:11:36 | 163,940,738 | 0 | 0 | null | 2022-12-08T01:53:49 | 2019-01-03T07:53:21 | Python | UTF-8 | Python | false | false | 155 | py |
from celery.schedules import crontab
# https://api.telegram.org/bot1215880984:AAHuLxPx8vEuOVPIznPhOWBCKkBFUlZbKgs/sendMessage?chat_id=194650240&text=Hi | [
"kobun2341@gmail.com"
] | kobun2341@gmail.com |
48a939c169881e193fbae7563fa3afb68881c6e0 | f4c49fb03e1358c675f6d29ad265ac34fe8edee4 | /LeducPoker/LeducPokerGame.py | d0b91936149476f7e540124f8e3e6ad39683a9af | [] | no_license | mzktbyjc2016/nfsp-pytorch | 4b36afd0db8c8634ef71be5cf4b6b97fe814da3f | 125268908919661a508abc7bddc1015a92116f96 | refs/heads/master | 2020-06-25T09:25:20.115407 | 2019-03-03T02:46:49 | 2019-03-03T02:46:49 | 199,271,302 | 2 | 0 | null | 2019-07-28T10:09:19 | 2019-07-28T10:09:19 | null | UTF-8 | Python | false | false | 9,630 | py | from typing import Tuple, Optional, List
import random
import numpy as np
import copy
class PlayerActions:
BET_RAISE = 2
CHECK_CALL = 1
FOLD = 0
ALL_ACTIONS = [FOLD, CHECK_CALL, BET_RAISE]
ACTION_TO_CHAR = {
FOLD: "f",
CHECK_CALL: "c",
BET_RAISE: "r"
}
class LeducNo... | [
"thomas.j.johnson@gmail.com"
] | thomas.j.johnson@gmail.com |
ca725619d876cdd4db8f6f079b26a3b27c7f51e9 | e16a00326983750985f0d308b2b8cb156d2b7048 | /DesignPatterns/Strategy.py | 241764acd6a53fea462f8e5394fa31ed73a4ded5 | [] | no_license | farabbit/learning_area | ff6b6cee6de5551a58068dd73b34f427903d3973 | e553186ececb7ef2149356465044138cd84588c5 | refs/heads/master | 2020-05-22T22:45:58.115383 | 2019-09-27T08:23:13 | 2019-09-27T08:23:13 | 186,551,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | import abc
""" Traditional way """
# every strategy is as class that inherits base stategy
print("Traditional: ")
class Strategy:
""" Base Strategy """
@abc.abstractmethod
def operation(self, context): pass
# concrate stategies
class StrategyAdd(Strategy):
def operation(self, context): r... | [
"noreply@github.com"
] | farabbit.noreply@github.com |
a3166ac3d5064df4705a84f1e7ae3c94963ca5bd | b55801df5a6f4fe8abfbd0bb61b92906cbf2a510 | /pyLTM/pyltm/learner/mixed_clique_sufficient_statistics.py | 8a8e2f6c68b7fd2a1e8bb6f0072d30275d2902ec | [] | no_license | rezaarmand/ltvae-release | 51735fb12a33c685cb0198909355025cc84736f0 | 3a26e276e2a57363c0fb84cc1f8e492ff53bb5db | refs/heads/master | 2022-02-18T10:16:04.736113 | 2019-09-11T02:23:26 | 2019-09-11T02:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | '''
Created on 12 Sep 2018
@author: Bryan
'''
from .sufficient_statistics import SufficientStatistics
from pyltm.model.potential.cgpotential import CGPotential
from pyltm.model import JointContinuousVariable, CGParameter
import collections
import numpy as np
from pyltm.model.parameter import cgparameter
from pyltm.mod... | [
"eelxpeng@gmail.com"
] | eelxpeng@gmail.com |
4979767ebde362092d71c72285624162e5330f9b | ba269272596a2427d46c21d3cebe0270775557c7 | /setup.py | 0b9e961c8d7687192ef0bc78f6f9eccb8dd148e7 | [
"MIT"
] | permissive | renatoliveira/fixer-cli | e5e65177e7af38c5f478c181f2f151292ca716ed | d1a7a9d96fbc28392f600342e201f3098a6aa94a | refs/heads/master | 2020-12-02T07:40:33.844985 | 2017-07-22T18:31:28 | 2017-07-22T18:31:28 | 96,712,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """Setup module"""
from setuptools import setup
def readfile(filename):
"""Get readfile"""
with open(filename, 'r+') as readmefile:
return readmefile.read()
setup(
name="fixer",
version="3.1.0",
description="",
long_description=readfile('README.md'),
author="Renato O.",
url="",... | [
"ren811@gmail.com"
] | ren811@gmail.com |
cf72bc593892466402f683cff40798c3ae48bb49 | 5c13b223102d2f7559f2855eb6b8716de0708638 | /pythonCollections/tuple/tuple.py | 3d197cc7541880a3cd8938b71f2598bf122184ab | [] | no_license | Akhilvijayanponmudy/pythondjangoluminar | c0ab8e9ea1f2ef1ba034732de15b479d9f7a24da | 1fc73790c530518f4a747ed6a4fea3bfbe27687e | refs/heads/master | 2023-04-01T18:37:35.112270 | 2021-04-01T03:24:08 | 2021-04-01T03:24:08 | 328,891,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #define()
#store different type of data
#insertion order preserved
#duplicate allowed
#tuple objects are immutable(not support update) | [
"akhilvijayanponmudy@gmail.com"
] | akhilvijayanponmudy@gmail.com |
80cff87d5c4547d5aa8707328225342560d7d397 | 7620eb38a3744d33842ef867a4dda40748f370ba | /src/apiwrappers/exceptions.py | 0537acd446dca141a49012ba99dcb5bb4827d2f4 | [
"MIT"
] | permissive | unmade/apiwrappers | f0f57d2f2d8a02ee9de2d52575b3e9b48809abfa | eb004fd86cbbc1d468030544472851a262b196dc | refs/heads/master | 2022-09-10T10:27:23.233400 | 2022-01-15T15:27:39 | 2022-01-15T15:27:39 | 231,653,904 | 18 | 1 | MIT | 2022-08-29T07:24:51 | 2020-01-03T19:43:47 | Python | UTF-8 | Python | false | false | 220 | py | class DriverError(Exception):
"""Base class for driver-specific errors."""
class ConnectionFailed(DriverError):
"""A Connection error occurred."""
class Timeout(DriverError):
"""The request timed out."""
| [
"lesha.maslakov@gmail.com"
] | lesha.maslakov@gmail.com |
b620e42042438f0ddf82969a5e2f05dcf02a8e23 | 3922c05b9434bb5a96f7833a987c50c8e3e29107 | /news/admin.py | 6881fe98a61e98e3099d1a8b53bfb646d84da9fa | [
"MIT"
] | permissive | jasonmuchiri/moringa-tribune | e7769dca9aa2e7a9cdc62be56c3071104ba30f33 | ceabe0cf9cc136b6eb5072253aef09f43bea7040 | refs/heads/master | 2020-05-23T23:19:55.111831 | 2019-05-18T21:32:44 | 2019-05-18T21:32:44 | 186,990,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.contrib import admin
from .models import Article,tags
# Register your models here.
class ArticleAdmin(admin.ModelAdmin):
filter_horizontal = ('tags',)
admin.site.register(Article,ArticleAdmin)
admin.site.register(tags)
| [
"jasonmkinyua@gmail.com"
] | jasonmkinyua@gmail.com |
1daeac4ecb17e7a2f26115ace37be515b4198865 | 897cb969990a5ae319547fd572a262d58a1e33a8 | /scripts/get_lumi.py | cf7754d90251baeaf51cecd347b356800a3c9aac | [] | no_license | KIT-CMS/Excalibur | cc5a028bf6ad29a636536c3dfc0ebdc0eacfbbb7 | 8c27e2fdd7b7d5a0439f6e63be2299b16f5291c0 | refs/heads/master | 2023-07-24T05:28:08.156998 | 2023-07-17T15:29:15 | 2023-07-17T15:29:15 | 29,307,758 | 1 | 5 | null | 2023-05-24T11:41:22 | 2015-01-15T16:59:28 | Python | UTF-8 | Python | false | false | 4,646 | py | #!/usr/bin/python
# standard library imports
import os
import sys
import json
import subprocess
import argparse
import errno
# third party imports
# application/library imports
CLI = argparse.ArgumentParser(
description="Get/Calculate integrated luminosity for given runs",
epilog="This tool uses the brilcalc suite... | [
"max.fischer@kit.edu"
] | max.fischer@kit.edu |
6bd5fb8e2cc28159a3d0726aa5efc0e21295b713 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/contour/_textsrc.py | 43bd0d62ed17e92c16a553b953658aaf6d67f0be | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 393 | py | import _plotly_utils.basevalidators
class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="textsrc", parent_name="contour", **kwargs):
super(TextsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
e... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
6ad6148e7378b35ec5dbeeb2a493dbad852d7119 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/61f29ff81b664630acba807a6f4f14e9.py | b34cc9defb4248705933ec5d41f5347dc783be44 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 286 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
if what.upper() == what and any(c.isalpha() for c in what):
return "Whoa, chill out!"
if what != '' and what[-1] == '?':
return "Sure."
if len(what) < 7:
return "Fine. Be that way!"
else:
return "Whatever."
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
338c46e909035b0796f32985fc0a5b1bd0f7175c | 2438cb198fc03a1de169e87a711692045df03ccd | /coffee.py | 223762c681b226d47103c27f06908dabfaa7fa38 | [] | no_license | Om1627/corrcoef | 7138db6aa6f425af21f53ad4b01b8b353a33f9d9 | ab2d088344ec078be851fe51df259174d64876ca | refs/heads/main | 2023-02-21T22:18:55.323855 | 2021-01-28T09:05:09 | 2021-01-28T09:05:09 | 333,700,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | import pandas as pd
import plotly.express as px
import numpy as np
import csv
def getDataSource(data_path):
Sleep=[]
Coffee=[]
with open(data_path) as csv_file:
csv_reader=csv.DictReader(csv_file)
for row in csv_reader:
Sleep.append(float(row["Coffee in ml"]))
... | [
"noreply@github.com"
] | Om1627.noreply@github.com |
557c96972141d1a75b7f45e4289a642a6390440e | 08dfaf714830a6310742dcd50848790d595e838e | /位运算/code_01_EvenTimesOddTimes.py | c16881e90ab21aa241caa096e317d2dd06fa949c | [] | no_license | Tokyo113/leetcode_python | d9e0fb96a76efaadcec7aad08f5ef542d898d434 | e86b3fb26aef1cf63727e3e5c9fd4ddc9bedb7f1 | refs/heads/master | 2020-08-10T15:36:10.364714 | 2020-04-13T08:28:53 | 2020-04-13T08:28:53 | 214,369,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | #coding:utf-8
'''
@Time: 2019/12/4 21:54
@author: Tokyo
@file: code_01_EvenTimesOddTimes.py
@desc:
1.一个数组中有一种数出现了奇数次,其他数都出现了偶数次,怎么找到这一个数
2.一个数组中有两种数出现了奇数次,其他数都出现了偶数次,怎么找到这两个数
'''
def findOddTimes1(arr):
eor = 0
for i in arr:
eor = eor ^ i
return eor
def findOddTimes2(arr):
eor = 0
for ... | [
"21810179@zju.edu.cn"
] | 21810179@zju.edu.cn |
604d6590d6ef3fce8b32b65c1c5a36acd2fa899e | 4bbc78dfcb36bad90f4b5a4d1a1567bc820f22df | /Flaskweb1/venv/bin/pip3.6 | 6947d567b45a8cb1b6a17c1892873c702ec5d1ec | [] | no_license | Ernestbengula/python | 38d09dad271cbc966eca65804ea7bcee2c248915 | 168d385e3258cc16db811cf34af1b269d7f055c7 | refs/heads/master | 2020-07-24T03:34:18.863179 | 2019-10-30T12:34:21 | 2019-10-30T12:34:21 | 207,789,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | 6 | #!/root/PycharmProjects/Flaskweb1/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"ernestbengula2017@gmail.com"
] | ernestbengula2017@gmail.com |
39c078ee69d1098e1c91f37879882232c475e2f0 | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/fibonacci_20180603232558.py | 0f355ae930f9f8d834a1e6a158738d3573e77163 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | i = 0
j = 1
k = 0
fib = 0
user_input = int(input("How many numbers print out? : "))
for fn in range(user_input):
#if i < 30:
print('{0:2d} {1:>10}'.format(fn, fib))
#print(fib)
fib = j+k
j = k
k = fib
#else:
# print("3")
| [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
6b1337a8db31e35ab1f588c870e7418838a2eb92 | 3d45daee8b81777a25d54456659d73d58b9ce81e | /patient_main.py | b8d8fe64df98631c7f89f814e55cd4c008db2305 | [] | no_license | benrprince/ref-range-test-patients | 480016f78ceda9a02d203db218675b72fd49f426 | 9757a6fc38c6596b24effa73d6207d39e7c643db | refs/heads/main | 2023-06-23T18:36:50.883701 | 2021-07-02T12:44:12 | 2021-07-02T12:44:12 | 308,037,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | # Author: Ben Prince
# Version: 1.2
# Description: Used to figure out the number of test patients needed
# based on the sex and age ranges given in the DCW
import patient_sort as ps
import xlwt
import openpyxl
# TODO: Update xlwt to use openpyxl....currently works, but pulling in redundant library
def pa... | [
"noreply@github.com"
] | benrprince.noreply@github.com |
d190d2073bc71b201cd5a4cdf229f13d5ed9a0b0 | 43b5d7bdcc9ec7a7b38e25ce67d0a3a618362275 | /netdata/workers/worker_storage.py | c8bb6340fb8f56a87dc7c9535ace93fd81a71298 | [
"Apache-2.0"
] | permissive | mincode/netdata | c8b64d1ab99601823fba2d3c9d70b4960cd26ac9 | 4369a3bfb473509eff92083e03f214d5b75f6074 | refs/heads/master | 2021-03-22T04:33:04.076065 | 2018-07-27T19:54:48 | 2018-07-27T19:54:48 | 113,805,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | # Storage for a table of worker instances
from netdata.workers.json_storage import JSONStorage
class WorkerStorage(JSONStorage):
"""
Table of worker instances stored in a json file;
consisting of a list of pairs {'ip': ..., 'instance_id': ...}
"""
_instances_label = 'instances' # label in the d... | [
"manfred@minimair.org"
] | manfred@minimair.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.