blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf9661321cba90d50cecf011bc6d1155231adbcd | 21b2abae7a9e972da29a69e572d9fed65e9ec81b | /uebinRDHM_InputSetup_3.py | 785f371c5500deb764a5420182304ce823971e39 | [] | no_license | gantian127/ueb_input_processing | 5de9fe6ccefe9a91a89a977d9e107c35a6080335 | 43ba5375c7bb6b95f406734cc0b339b238937710 | refs/heads/master | 2021-04-30T06:19:29.166148 | 2018-06-14T22:27:48 | 2018-06-14T22:27:48 | 121,440,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,641 | py | import os
import netcdfFunctions, climateFunctions_2
from datetime import datetime
import rdhmFunctions
import callSubprocess
"""*********** Convert UEB NC files to XMRG with HRAP projection *****************"""
workingDir = "/Projects/Tian_workspace/rdhm_ueb_modeling/McPhee_DOLC2/"
watershedN = 'Mcphee_DOLC2'
startDat... | [
"jamy127@foxmail.com"
] | jamy127@foxmail.com |
98469b1c4435c726b7cbbe1885efc92ada369108 | d130368eeb7799de5c376ab47d1b3815a4953cda | /python/file_convert.py | 8c452bffbb2a85c191c7bdb0a7fff41b23174b31 | [] | no_license | Dowayching/code_chip | 17c4675e8bbb1815c9d1ac1fff5bcbc62f03bd42 | 2e57467215c8b7de2a4e721bdf6d516f16dcac9e | refs/heads/master | 2023-01-04T14:41:51.904183 | 2020-10-30T20:25:00 | 2020-10-30T20:25:00 | 265,870,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # Not-tested yet
import docx2pdf
def doc2pdf(src, dst):
docx2pdf.convert(src, dst)
if __name__ == '__main__':
doc2pdf("src.docx", "dst.pdf")
| [
"dowayching@yahoo.com.tw"
] | dowayching@yahoo.com.tw |
3ef215801a99c817e5656e9100e9a57939107319 | 8dc2b9d66bc330e8b7e9ccd38a858de6aa6a1839 | /HW3/trainer/plot.py | b8cbf5e5f869a47cb09c46e0327bd71b3a288816 | [] | no_license | Bonen0209/Fin_Tech | b3871799bf56decddda7ba85ede4adce928e7bb6 | e4f657fd76d9b77ce85eb9aa6a637deffd249878 | refs/heads/master | 2023-02-16T17:34:41.387029 | 2021-01-16T06:26:26 | 2021-01-16T06:26:26 | 301,953,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | import torch
import numpy as np
import matplotlib
import seaborn as sns
matplotlib.use('Agg')
import matplotlib.pyplot as plt
def confusion_matrix(output, target):
try:
from sklearn.metrics import confusion_matrix as cm
except ImportError:
raise RuntimeError("Confusion Matrix requires sklearn ... | [
"r08942073@ntu.edu.tw"
] | r08942073@ntu.edu.tw |
f2d6eec03504333314ac18b426f6d3c5c515b12c | f3534b4b94dafbf834ba3daa900fef70e4e482b9 | /plot-sampling-choice.py | 27d7a410e2a1dcddf08483aec2a0da5796beda73 | [] | no_license | lokhande-vishnu/cs861_ALIS_algo | bf098e8442fa56b03d79cd504a24b0da4325d7b3 | dc5860cd1cc24961e55b24dcbe78291a5262f223 | refs/heads/master | 2020-03-15T14:53:37.963345 | 2018-05-14T18:24:54 | 2018-05-14T18:24:54 | 132,199,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | """
Created on Fri May 4 00:33:14 2018
@author: pydi
"""
import numpy as np
import matplotlib.pyplot as plt
x1 = np.random.normal(-1,1,50)
x2 = np.random.normal(1,1,50)
lab1 = np.random.choice(x1,5) # Negative points
lab2 = np.random.choice(x2,5) # Positive points
w = -1
eta = 0.1
for _ in rang... | [
"lokhande@cs.wisc.edu"
] | lokhande@cs.wisc.edu |
a34cb4bf32387b2fde522fd6fb58b6da0ee6489b | 13e853a4636fb7bf82c60b4f8a8929652acd75fb | /jd-ph-cms/accounts/migrations/0003_auto_20160204_0522.py | f5af3013c2c0301cb839a3753b9602696b77244b | [
"BSD-3-Clause"
] | permissive | acercado/jd-ph-cms | 2fe048ebca8233d7f9a7bd41c0b454cb5b838c1f | 64365c5d8303789c216a5b26ad40f3bd3c533b1f | refs/heads/master | 2021-01-10T14:46:43.716492 | 2016-02-05T09:13:07 | 2016-02-05T09:13:07 | 49,854,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-04 05:22
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):
dependencies = [
('accounts', '0002_auto_20160... | [
"acercado@risingtide.ph"
] | acercado@risingtide.ph |
4c8c64419f2556c9b6506cdcc70dfe16b1f6be48 | 8306010202049a24f18b34600ed1cc8c3dd663f5 | /priority.py | 644dab1385d3b4df75e776b138e3f8dc74516efa | [] | no_license | sskhokhar/schedulingAlgos | 5e1e02d3344d83cdf9be3a17dcfbf478c2a280b4 | 6f9162c823f02e113f0e4cf19afd0f3a99170566 | refs/heads/master | 2021-01-12T01:57:02.212760 | 2017-01-09T16:51:43 | 2017-01-09T16:51:43 | 78,448,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | __author__ = 'Ahmad Zia'
processes = int(input('Enter no. of process : '))
dict = {}
process_id = []
for index in range(processes):
arrival_t_input = int(input('Enter arrival time : '))
burst_t_input = int(input('Enter burst time : '))
priority_input = int(input('Enter priority : '))
process_id.ap... | [
"Shahrukh Shahid"
] | Shahrukh Shahid |
aebcd6ee135c8bcd6b4e8d1fe84e60f1e0c123b7 | b5a42cb31c6bbcba60e29462227842e739296359 | /release_version/auto_modify_product_version.py | f6fac82a7e5d7ceab4d40204a78a89c7ec1bbe6a | [] | no_license | syh12sys/python | 549a466c3c08f1924eb16f1b0f056dcbe3913e9c | 2e38017e1bc5f6e628e6fe2f5a17a9a1424254a3 | refs/heads/master | 2023-05-24T00:52:41.264847 | 2021-05-26T14:47:05 | 2021-05-26T14:47:05 | 112,301,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | #! /usr/bin/env python
# coding:utf-8
import urllib
import urllib.request
import http.cookiejar
#####################################################
# 登录人人
loginurl = 'http://172.16.0.17:8080/2345explorer/login'
class Login(object):
def __init__(self):
self.name = ''
self.passwprd = ''
... | [
"syh12sys@126.com"
] | syh12sys@126.com |
66ab22283e1686db42c2603b8b721e1309b4a6a0 | 27a5ff20e6e9816daa9caae1a724b7ccf6776fdd | /batchspawner/__init__.py | 976081ee5faf68e0fa08a974117aabc908b5552b | [
"BSD-3-Clause"
] | permissive | jupyterhub/batchspawner | e09e875d9757eb4cd83db7b98a190351418be39f | 2a9eda060a875a2b65ca9521368fe052a09c3266 | refs/heads/main | 2023-09-02T00:22:05.353349 | 2023-06-19T06:43:35 | 2023-06-19T06:43:35 | 45,015,693 | 147 | 131 | BSD-3-Clause | 2023-08-01T08:33:28 | 2015-10-27T03:53:10 | Python | UTF-8 | Python | false | false | 46 | py | from .batchspawner import *
from . import api
| [
"erik.i.sundell@gmail.com"
] | erik.i.sundell@gmail.com |
1305ad973484125440495e9543d9f64b68c0a730 | 5987355a71aa619d46a5f6085bd3f59e05ec7db5 | /Lesson 3/L3_task6.py | 1c183318b6463ea7b1131e99ed6b3471b1d93ad7 | [] | no_license | mikhail-rozov/GB_Python-main-course-1 | 0668d3f8064dfe0d6ba5cb601656aede8d14e177 | 412332fb959f32ba1675bb6e899a236971638f4c | refs/heads/master | 2023-05-04T20:41:31.594211 | 2021-05-20T09:05:10 | 2021-05-20T09:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # Реализовать функцию int_func(), принимающую слово из маленьких латинских букв и возвращающую его же,
# но с прописной первой буквой. Например, print(int_func(‘text’)) -> Text.
def err_msg():
return 'Нужно было ввести одно слово из маленьких латинских букв!'
def is_valid(my_list):
for i in range(0, len(my_l... | [
"shkin29@rambler.ru"
] | shkin29@rambler.ru |
74175bb9aa5862dc1063d5d0e18c623bb8e7e889 | a7e9c85982f376e2d5973923a23ef144948348c7 | /Crack the code interview/linked list/is_palindrome.py | 5b85e09016fcb3fa670b35d5fdec072a31016c43 | [] | no_license | yewei600/Python | 8d29fc65f2057b4d0500822d5a27ccd00ebc6083 | 7245ac6cfe8d2f942266708797820fa6048302e4 | refs/heads/master | 2021-01-10T01:12:49.194715 | 2016-03-09T02:09:42 | 2016-03-09T02:09:42 | 51,676,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | class Node :
def __init__( self, data ) :
self.data = data
self.next = None
self.prev = None
def get_data(self):
return self.data
class LinkedList :
def __init__( self ) :
self.head = None
def add( self, data ) :
cur = self.head
node = Node( data )
if cur == None :
... | [
"ewei94@hotmail.com"
] | ewei94@hotmail.com |
b76b26811352741d3b2bd34968d4d78280f6b8f0 | 204cc4d648ac2b632804212ec796a48be51447af | /employee/employee/settings.py | 8126764823fc0a0adb280f20adc18b9ad92f7b9a | [] | no_license | ra-rownok/employee-register | dd2da96e1509faa06c1a3131b081366a961c72bd | 7dede4e9319ed298e0c9a97f290dcd31bcc306f8 | refs/heads/master | 2022-12-07T23:04:15.519701 | 2020-08-14T01:52:17 | 2020-08-14T01:52:17 | 287,418,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | """
Django settings for employee project.
Generated by 'django-admin startproject' using Django 3.0.7.
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
... | [
"reshadahamedr001@gmail.com"
] | reshadahamedr001@gmail.com |
e23fdacbcb9a8777fd5779b693102edf79fde073 | 1cb3b625fc952b2f8e7ffa136eca3c9f89e48bef | /python programs/scratch_6.py | 83f266c0bf5417b25282b1c43f65ebebb31c1c2b | [] | no_license | jjrocks78/shift | 202c9aead0951bbb7ac2cc2c184d9b85d53fdcc0 | f76421567dd25657f08c5c77cbae7d5aac19358d | refs/heads/master | 2020-07-25T10:05:57.740457 | 2019-09-13T11:13:40 | 2019-09-13T11:13:40 | 208,247,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('/home/cocoslabs/Downloads/Example for extracting text from image.jpg',0)
ret,thresh1 = cv2.threshold(img,100,255,cv2.THRESH_BINARY)
ret,thresh2 = cv2.threshold(img,100,255,cv2.THRESH_BINARY_INV)
ret,thresh3 = cv2.threshold(img,100,255... | [
"harrishjoshua1078@gmail.com"
] | harrishjoshua1078@gmail.com |
6afb0f4c79a6e865b5e35a647444dfe4c69ae4a0 | 220dfe537ff6a851ff94c37bec684d11f868dbb2 | /second/pytorch/pytorch/models/box_head.py | 489f929b9419da024f72fdcffe6022cd58c6bb24 | [
"MIT"
] | permissive | hyunjunChhoi/Rotation-aware-3D-vehicle-detector | 2876664986529147d0abd82d35230b1775621681 | cfc02fb3aa4a496acda2e42ec9983b98efd73988 | refs/heads/master | 2022-12-17T05:07:44.059610 | 2020-09-18T15:39:23 | 2020-09-18T15:39:23 | 294,009,426 | 1 | 0 | null | 2020-09-18T12:54:11 | 2020-09-09T05:13:38 | Python | UTF-8 | Python | false | false | 5,089 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from torch import nn
from second.pytorch.models.rbox_head.roi_box_feature_extractors import make_roi_box_feature_extractor
from second.pytorch.models.rbox_head.roi_box_predictors import make_roi_box_predictor
from second.pytorch.model... | [
"numb0258@gmail.com"
] | numb0258@gmail.com |
aabf561c5135f455e7f472fb53ec67efcd6c4a0d | c6cee3feca011c94be8d3e53515dfe5e6eba788c | /Code/visualization/visual.py | 522b3df49075fee93857ea3d618652ef2bdba7e2 | [] | no_license | mohsinkazmi/Capture-Internet-Dynamics-using-Prediction | 7c7374dfa0efb20852c90f65b22a6b24deb281c8 | 6abcfbe220eb95e9e138300354a8aa50b078d46e | refs/heads/master | 2021-01-10T06:06:24.702603 | 2016-02-22T20:54:52 | 2016-02-22T20:54:52 | 52,290,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from numpy import *
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pylab
from numpy import genfromtxt
my_data = genfromtxt('../../data/Ips.csv', delimiter=',', skip_header=0, usecols= (0,1, 2, 3, 4, 13, 14), skip_footer=0) #ip_id, ip, as, long., lati, att, id
data = my_data[:,1:]
target... | [
"mohsin.kazmi14@gmail.com"
] | mohsin.kazmi14@gmail.com |
8bd6bd860d3f1efab80d4bd642431685fad884fd | 99d8cd53061a0207b81419d1517bc5bd818e0631 | /98.validate-binary-search-tree.py | 0b85f9badaae04cc84d0b1c6b176de91c7941e39 | [] | no_license | SegFault2017/Leetcode2020 | aa80c40b1a052185ee58fa928747814e24b9c5d8 | 7d4a7cee4ecebb67b98a2bdbf84df9896d59f136 | refs/heads/master | 2023-03-18T22:03:56.926077 | 2021-03-06T17:11:52 | 2021-03-06T17:11:52 | 305,238,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #
# @lc app=leetcode id=98 lang=python3
#
# [98] Validate Binary Search Tree
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
import math
class Solution:
... | [
"ray.tangent42@gmail.com"
] | ray.tangent42@gmail.com |
c1a5fcdbd9a18ccf38a47ea93b1336e39c8a81a5 | cd7e2d655ce974a15cb139b7e475771959d5ad36 | /manage.py | bb80999edad9ac3315b927b4f3143cc4d941f26d | [] | no_license | cmdantes/pms_win_3.0 | 2b4df5e13b7ed2dc9da2ad9b42389d9fa4a8ad82 | cb97c3667868d72585e9cd55fb70ba5ce24215f5 | refs/heads/master | 2023-03-04T18:36:12.379009 | 2021-02-18T05:55:20 | 2021-02-18T05:55:20 | 313,783,069 | 0 | 0 | null | 2020-11-23T00:31:57 | 2020-11-18T00:55:06 | JavaScript | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pms_win.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"danteschrisanmae@yahoo.com"
] | danteschrisanmae@yahoo.com |
8376f3ba760e0968095243d0a6947b384dd9d9c9 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /utils/ETF/Redemption_SA/YW_ETFSS_SZSH_019.py | 1b0fde97d8686e9b2f5c74c8d27dca8b23258a17 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,493 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import time
sys.path.append("/home/yhl2/workspace/xtp_test/ETF")
from import_common import *
sys.path.append("/home/yhl2/workspace/xtp_test/ETF/etf_service")
from ETF_GetComponentShare import etf_get_all_component_stk
class YW_ETFSS_SZSH_019(xtp_test_case):
... | [
"418033945@qq.com"
] | 418033945@qq.com |
4f92dceb825c12f772496b1518c5f5311b176a33 | 565e369c3370a0e85324dd14a0fc9460a3220343 | /data/emotes_set.py | b8b73a485d35ff720337a2d6b7a10f43f32b3e98 | [] | no_license | phanirajl/twitch-emotes | 803d7b99d36e6f7cd0908670f5a54423d383109e | c15ef564655d6fa0d4d79db0419f824581051de5 | refs/heads/master | 2020-03-21T19:51:44.585623 | 2018-06-28T05:32:34 | 2018-06-28T05:32:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # use this script to genenrate {name:id} for global/subscriber emote set (id:code or code:id)
import json
from pprint import pprint
import re
def global_set():
with open('emotes_general.json','r') as f:
data = json.load(f)
f.close
emotes = {}
for k,v in data.iteritems():
emotes[int(v[u'id'])]=k
... | [
"fooldreamings.shi@gmail.com"
] | fooldreamings.shi@gmail.com |
68a3e17117ffc29cf8def3bcc4810417498b7ef9 | 297c440536f04c5ff4be716b445ea28cf007c930 | /App/migrations/0007_auto_20200403_2201.py | 2c78246df112461b79785ba55ec3ca0a977b1975 | [] | no_license | Chukslord1/SchoolManagement | 446ab8c643035c57d7320f48905ef471ab3e0252 | 23fd179c0078d863675b376a02193d7c1f3c52e0 | refs/heads/master | 2023-02-03T09:14:24.036840 | 2020-12-14T11:06:43 | 2020-12-14T11:06:43 | 247,177,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0 on 2020-04-04 05:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0006_auto_20200403_1841'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='secret_pin',... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
d98b2c3a5f3c8e775d11314b7aa8681d05a32cd0 | ee149298e2fca9ee30e9d0de4bfca2b876d0ccc9 | /experiments/random_run.py | 0ae674f138afd3d79f520b93a1f6b7655a5000f6 | [] | no_license | autoML-ICL/autotune-v1 | 6e00c1eb22ee8e1d2ba8d288e7b59faaf6d6b790 | 4ee5673085dd4a6bd1b287d277be9c059ea59f66 | refs/heads/master | 2020-03-20T02:09:47.352859 | 2019-04-19T10:02:57 | 2019-04-19T10:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | import pickle
import argparse
from ..core.RandomOptimiser import RandomOptimiser
from ..core.SigOptimiser import SigOptimiser
from ..benchmarks.mnist_problem import MnistProblem
# from ..benchmarks.cifar_problem import CifarProblem
# from ..benchmarks.svhn_problem import SvhnProblem
parser = argparse.ArgumentParser(d... | [
"leowyaoyang@gmail.com"
] | leowyaoyang@gmail.com |
9c316b93b1dacf262a3630fa7eac7a22ef44e777 | 5b788525990035feb8cfea66be4d6959219600b5 | /day_01/day01_test.py | 8b4170a43be80b78eb1ecda569af034dd2300f9f | [] | no_license | stain88/advent-of-code-2017 | 3967592fd2bad9544f5039fab1773cd9cf2c9b17 | c1d4afb7266e8c8b47baff5e65d06120c267c013 | refs/heads/master | 2021-08-23T17:29:22.716522 | 2017-12-05T22:12:46 | 2017-12-05T22:12:46 | 112,797,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import unittest
from day01 import captcha_next, captcha_half
class Day01Test(unittest.TestCase):
def test_part_1_example_1(self):
self.assertEqual(3, captcha_next("1122"))
def test_part_1_example_2(self):
self.assertEqual(4, captcha_next("1111"))
def test_part_1_example_3(self):
... | [
"marcbaghdadi@gmail.com"
] | marcbaghdadi@gmail.com |
48b3d55b329489d00e4124a4623d217aa24253ca | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/incident_message_v2.py | 0bef2967a5076ff962fc33551f637afbe604a4a8 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # coding: utf-8
import re
import six
class IncidentMessageV2:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7c344fcf6b9f60cc30778e1ef5ef3f5afc6f3ea0 | ba22f289ad1c49fb286105aeaa9abd8548907dc5 | /tempest/tests/lib/test_tempest_lib.py | d70e53dee8a7a2d9d91a0a5a5f89d4b72c3be367 | [
"Apache-2.0"
] | permissive | ssameerr/tempest | cf3f41b3aa07124a1bac69c3c3f2e393b52e671c | e413f28661c2aab3f8da8d005db1fa5c59cc6b68 | refs/heads/master | 2023-08-08T05:00:45.998493 | 2016-06-08T13:13:48 | 2016-06-08T13:13:48 | 60,715,004 | 0 | 0 | Apache-2.0 | 2023-02-15T02:18:34 | 2016-06-08T17:02:15 | Python | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | [
"mtreinish@kortar.org"
] | mtreinish@kortar.org |
05d8d286edc84c72c6bc6f7065b8301880e9d2de | 0b9f3e59e193ce035b2331adbf4caaf093dc4c53 | /doorcommand/serializers.py | 964337e233b92a2d8ebbe9af47b594182afe4b4f | [] | no_license | nate998877/DoorCommandApi | e2f59f6ebe42e34f6015bef4fdf6ae0fa4ba530d | 6f619bbd2f7319ddd859a9dcb15b4f9ef159e9b1 | refs/heads/master | 2023-03-18T11:28:54.221133 | 2021-03-07T04:54:01 | 2021-03-07T04:54:01 | 285,381,401 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from rest_framework.serializers import HyperlinkedModelSerializer
from doorcommand.models import NewUser
class NewUserSerializer(HyperlinkedModelSerializer):
class Meta:
model = NewUser
fields = ['user_id', 'status', 'level']
class TmpPassSerializer(HyperlinkedModelSerializer):
class Meta:
... | [
"nate998877@gmail.com"
] | nate998877@gmail.com |
72939b846f8d49b41b245f91c74763e68f76866f | 6e52896169aedf63017050d1ea2430581aed3aea | /variables.py | 6f18fdbd7c830c089bbdedf86a9210265501a9d5 | [] | no_license | poojadncla14/poojatasks | eedecc7523b8f337eff2c5761af46f57e510eed9 | 49e4dc31b6c99bbe3ca837b3543058daa28b54f8 | refs/heads/master | 2020-03-28T03:08:34.429820 | 2018-09-06T05:27:55 | 2018-09-06T05:27:55 | 147,622,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | # Python class - 2 Online 21-05-2018
# Python -- uses
# features , introduction
# main compenents in Python programming
# -------------------------------------
# Keywords and identifers
# -----------------------
# library of words (Keywords)
# pre defined
# cannot be changed
# should only purpose defined
# ... | [
"poojadncla2514@gmail.com"
] | poojadncla2514@gmail.com |
0603cfb0c8dc8530f4fd73d37e87f26ca2c8e2ca | 16f46f66527d18994b91111b10e7b5ed852a0ad1 | /desafiodress/backend/migrations/0003_auto_20180402_1904.py | f84d91ee714b3ed3f3dba071b2a2a1328659f626 | [
"Unlicense"
] | permissive | pedro-valentim/django-rest-vue | a6f0b8e3f9fabd9e0cd6bd569e9f72cc87885d3f | 3ef9b517293298a69bb9da4a97be1700a7dc54b6 | refs/heads/master | 2020-03-11T17:17:11.675307 | 2018-04-04T06:14:22 | 2018-04-04T06:14:22 | 130,142,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-02 19:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0002_auto_20180402_1901'),
]
operations = [
migrations.AlterField(... | [
"pedrovalentim.leite@gmail.com"
] | pedrovalentim.leite@gmail.com |
b823939af09eedd65ddcdd3fcd64f1d8ea32cdd8 | 7807e6f429a201f8872d69600419d5d5c08f7e24 | /test_calculation.py | 581ef3f92e894bfed2750ab649ca09f550966e0e | [] | no_license | A-ichi11/sample-python | 871718efbc007d8e15d18b5eac9c74f1e684aaa2 | 8d6fed030f07ea312f7abc9ebc6d1e4b076a40c3 | refs/heads/master | 2023-06-22T11:35:17.427542 | 2021-07-23T01:11:46 | 2021-07-23T01:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import calculation
def test_add_num_and_double():
cal = calculation.Cal()
assert cal.add_num_and_double(1,1) == 4 | [
"e.nakashima@gemcook.com"
] | e.nakashima@gemcook.com |
45c7d12a50f07cacbd16780c5e103cca1dab389d | 8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b | /env/Lib/site-packages/googleapiclient/discovery.py | 6363809f1e5bc5de0bd293b63699f37f33542a5e | [
"MIT"
] | permissive | theXtroyer1221/Cloud-buffer | c3992d1b543a1f11fde180f6f7d988d28b8f9684 | 37eabdd78c15172ea980b59d1aff65d8628cb845 | refs/heads/master | 2022-11-22T22:37:10.453923 | 2022-02-25T01:15:57 | 2022-02-25T01:15:57 | 240,901,269 | 1 | 1 | MIT | 2022-09-04T14:48:02 | 2020-02-16T14:00:32 | HTML | UTF-8 | Python | false | false | 59,078 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"jaddou2005@gmail.com"
] | jaddou2005@gmail.com |
da7bfc871be5a11758647aab0730464464618208 | 10e4cbef00b8af9160e23730da090a429929b998 | /audit_management/migrations/0001_initial.py | 5954545931014ca05bdc2b89d8908ac8e602f52e | [] | no_license | noyeemm/django-audit | 0d2b3d8affa99a01386ea11ece70142d1c8b9930 | 6752288f954e3ea1e0deaa5bde11996f25430f4f | refs/heads/main | 2023-01-13T16:31:17.055066 | 2020-11-15T01:48:07 | 2020-11-15T01:48:07 | 312,935,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | # Generated by Django 3.0.7 on 2020-07-08 16:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"noreply@github.com"
] | noyeemm.noreply@github.com |
6d14d26ba8d381f9ed5cef9a5cfdb6f18817b2ca | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/jedi/evaluate/compiled/subprocess/__init__.py | dea2f66d3727885dad3d9c94f687112e8a842988 | [
"MIT"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 14,161 | py | """
Makes it possible to do the compiled analysis in a subprocess. This has two
goals:
1. Making it safer - Segfaults and RuntimeErrors as well as stdout/stderr can
be ignored and dealt with.
2. Make it possible to handle different Python versions as well as virtualenvs.
"""
import os
import sys
import subprocess
... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
c9af6d37aa753e229cc5cd33fc24ed55f1baad39 | e3e57e2ad8bb0b1d76d79c2c2e6c7ddab7bbd125 | /scripts/modules/extractors/fodt/tpm2_part4_spt_routines_annex_fodt.py | 57671f23b3d1de3dd364517b9cad63fef93032a5 | [
"BSD-3-Clause",
"LGPL-3.0-only",
"BSD-2-Clause"
] | permissive | evolation/tpm2simulator | cc9d3bd715159515d747f651d508cf8ebd8fd02e | 067874b096b329bbfa17f74edc6abc3a992c775b | refs/heads/development | 2023-03-26T12:32:57.733648 | 2021-03-23T22:46:11 | 2021-03-23T22:46:11 | 350,809,917 | 0 | 0 | BSD-2-Clause | 2021-03-23T18:04:09 | 2021-03-23T18:04:09 | null | UTF-8 | Python | false | false | 10,715 | py | # -*- coding: utf-8 -*-
import re
from bs4 import Tag
from modules import utils
from modules import constants
from modules import data_structures
from modules.extractors.fodt.tpm2_partx_extraction_navigator_fodt import ExtractionNavigator
class SptRoutinesAnnexFODT(ExtractionNavigator):
"""
"""
def __... | [
"steffen.wagner@aisec.fraunhofer.de"
] | steffen.wagner@aisec.fraunhofer.de |
1e6f7e681ec4b3fa4d1f5294d2dc8a703d0f98b1 | 25c3ebefefc7ecdacf5e9d528f12bdc8485cea06 | /app/models.py | cbd56f17711cee6e7647efa521c40195a6c45b5d | [] | no_license | oldpotter/skl | 0b3a4e523050c73cf708d6e8486048d49e6714cc | 5f47e3f328e63e4de6caca0616a1804ffc9aafd9 | refs/heads/master | 2020-04-27T16:00:55.453185 | 2019-04-04T06:56:02 | 2019-04-04T06:56:02 | 166,230,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
__author__ = 'op'
from app import db, login
from datetime import datetime
from werkzeug.security import check_password_hash
from flask_login import UserMixin
class Rili(db.Model):
id = db.Column(db.Integer, primary_key=True)
date = db.Column(db.String(8), unique=True)
jsonContent =... | [
"oldpottertom@icloud.com"
] | oldpottertom@icloud.com |
6f8b63672bb07ff3d11d0914e4646a88ced4360c | 9d9e0f5779eecc8065aacb34baefc40515fe6118 | /valid.py | 9319a6fda573dec68957b0ea5bb75c47af46c524 | [] | no_license | MuhamadAhsanul/ujian_kartu_kredit | ea0e10aa50f1582b2d9bf4753a599cd384e6822e | 07fb8a91eb7f2d4aebad07f0351369d321ae0726 | refs/heads/master | 2020-09-08T10:42:40.080207 | 2019-11-12T05:48:15 | 2019-11-12T05:48:15 | 221,111,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | # import json
# with open('ccNasabah.json', 'r') as x:
# out = json.load(x)
# print(out)
[
{"nama": "Andi", "noCreditCard": 4253625879615781},
{"nama": "Budi", "noCreditCard": 5123-4567-8912-3455},
{"nama": "Caca", "noCreditCard": 525362587961578},
{"nama": "Deni", "noCreditCard": 42536258796157867... | [
"aahsaann@gmail.com"
] | aahsaann@gmail.com |
85870acb391dad622b43af4cbafde335cca5fee6 | 7b77ca25963ae591d68f4abb5725f9fbc18e9ddd | /applications/persona/views.py | 9a297e1c150962363c366ebbca885b44573e9a1d | [] | no_license | GabrielMartinez007/Empleados | 30b0f8676f9f432fa12d054b3c991974c4ce936a | 6f51398396fda42fc0939461c6efc4fc13a6b212 | refs/heads/main | 2023-02-27T17:42:20.410044 | 2021-02-02T18:54:29 | 2021-02-02T18:54:29 | 335,373,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | from django.shortcuts import render
from django.views.generic import ListView, \
DetailView, \
CreateView, \
TemplateView, \
UpdateView, \
DeleteView
from django.urls import reverse_lazy
from .models import Empleado
# Create your views here.
class inicioView(TemplateView):
""""Vista que car... | [
"lugiazekrom43@gmail.com"
] | lugiazekrom43@gmail.com |
ca67db3e619336355690a55865974fc423a07f1e | 6e7a8bb4805770b475af1b3146b494b1417c2461 | /PythonAPI/simstar/road_work.py | 875f1e5c37c171a2d5a1b5f090b5af15cb072360 | [] | no_license | eFiniLan/final-2021 | 05d360ff64fad4a6c0fdfcc7de3f80061e0aa29e | 57df36b3354935da0027380a541bb2521666df45 | refs/heads/main | 2023-06-03T11:39:23.932325 | 2021-06-25T20:17:57 | 2021-06-25T20:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py |
import msgpackrpc
class RoadWork():
def __init__(self,client,ID):
self._ID = int(ID)
self.client = client
def get_ID(self):
return self._ID
| [
"melih.dal@boun.edu.tr"
] | melih.dal@boun.edu.tr |
de181756dfdb9c9fd888488fba3c1c235f923bf8 | e97f3a3cf818380d6203b8c8080ab59e4c161685 | /party.py | d70a0a401754595a5325331e34442dafed214b35 | [] | no_license | tabualhsan/doctest | 5b39738515670354ec22422b5f1cdd8d2d93865a | aa5d3548f3b6489dca0a3f7c9e4d081007fd4782 | refs/heads/master | 2023-02-21T23:21:02.983767 | 2021-01-25T20:37:18 | 2021-01-25T20:37:18 | 332,880,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | """Flask site for Balloonicorn's Party."""
from flask import Flask, session, render_template, request, flash, redirect
from flask_debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
app.secret_key = "SECRETSECRETSECRET"
def is_mel(name, email):
"""Is this user Mel?
>>> is_mel('Mel Melitpolski', ... | [
"jen@silverwire.ninja"
] | jen@silverwire.ninja |
2aafbedb2948ab745b6afac25e89003fe4e183c4 | a5e4d0b9df29569415f91b7c617c0d96300d203d | /run.py | 3abc4efaa781a3c2a29ee35303e0ce923fd65851 | [] | no_license | poptest/apiservice | 884e543172b24d7296707cb12b4ce18cbdd2d9b2 | cff4f03b7f0300656c62220127845a458a78ca03 | refs/heads/master | 2020-05-07T08:35:18.218575 | 2019-04-09T10:12:37 | 2019-04-09T10:12:37 | 180,337,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from app import app
app.run('0.0.0.0', port='6000', debug=True)
| [
"mehuandiguo@126.com"
] | mehuandiguo@126.com |
d9661648cf1f0eb2cf7d52f479fb5d525578407b | 0a125a62bed94cf02c60c21a5455a254fb29055b | /web/gerl_admin/__init__.py | 959ea70e3d311deb94116725b694fe18934d1478 | [] | no_license | dizengrong/dzr_code_2017 | 2eb0f19e85b69f0cfd76f054c052387e5f7439ee | dac34a4c2441cce2b21dd8a1ca31126f4c50843c | refs/heads/master | 2022-12-23T02:20:35.512552 | 2021-07-07T07:40:58 | 2021-07-07T07:40:58 | 99,231,523 | 0 | 0 | null | 2022-12-16T05:54:47 | 2017-08-03T12:44:21 | Erlang | UTF-8 | Python | false | false | 24 | py | # *-* coding:utf-8 *-*
| [
"dizengrong@gmail.com"
] | dizengrong@gmail.com |
aa8fa7134387a593255b5130917522af84fb688c | d66eb5506167b68133470a590afedda3b409e5f6 | /pyico.py | e12a589afaa90f0e917f5113f9249e8a4fd921c0 | [] | no_license | w718328952/logtest | 5e07a3fe5c56649e5561c0892c35d80fb6d5ad02 | 3136a074e10573dbdaed76ac684e80c919000120 | refs/heads/master | 2020-04-06T13:48:53.794031 | 2018-11-14T07:48:59 | 2018-11-14T07:48:59 | 157,511,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354,756 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.8.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\xf1\xd8\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xd0\x0... | [
"wb.2009@163.com"
] | wb.2009@163.com |
a72d692aa65ada981e2c3c633813d9f1aec3e26a | 80cb36f83a7813b5e9e72dc07cdd60a83ec0a4ce | /sqlite3connection.py | 7675d06f2e0b42596da290620ac43fc8a19ff19a | [
"MIT"
] | permissive | balajirama/login_registration | 4e2036e57908cfca78592dec13c5242e28dc5c4b | b374c151076d57de2063b50796321a4f55a1e5c7 | refs/heads/master | 2021-07-05T07:56:40.580724 | 2020-11-07T22:46:32 | 2020-11-07T22:46:32 | 196,668,729 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import sqlite3
def make_dict(arr1, arr2):
result = []
if len(arr1) < 1:
return result
if len(arr1[0]) != len(arr2):
raise Exception('columns and data do not match')
for row in arr1:
row_dict = dict()
for j in range(len(row)):
row_dict[arr2[j][0]] = row[j]
... | [
"balajirama@users.noreply.github.com"
] | balajirama@users.noreply.github.com |
3ae82201c0f7e5dd38718f5b558d1eea7bfe3aea | 529edf91d79a841da707e694c19d00b743d022d8 | /images/migrations/0003_image_total_likes.py | 26eb75f2446049690320e245c36c268fb5954932 | [] | no_license | youssieframadan/Bookmarks | 88838ca4e3bfcc1ae70bc4662afb9336b08544d7 | 5a4ad1a8c916091e7f79a44c7f982695d7210aef | refs/heads/main | 2023-08-25T15:54:18.179067 | 2021-10-20T13:26:39 | 2021-10-20T13:26:39 | 419,342,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # Generated by Django 3.2.7 on 2021-10-19 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('images', '0002_rename_imagemodel_image'),
]
operations = [
migrations.AddField(
model_name='image',
name='total_like... | [
"youssief.r@gmail.com"
] | youssief.r@gmail.com |
a4c7a2d1b9ba19dc263d3f59ee293b54bfd56e85 | 60eaaf25f660fa326603f5b173294dc459a0595d | /experiment_MC2.py | 4cf997b02817985086302a48f7f62f352c5aff23 | [] | no_license | thuydung-icthust/Q_Learning_Connectivity | 1ef46d62016d56ab2f96c0dae7f13f475ed8a2ae | bef4dcb12becc0a46eaa8268b9546af474218997 | refs/heads/master | 2023-07-02T06:49:41.365971 | 2021-08-02T04:08:16 | 2021-08-02T04:08:16 | 286,622,585 | 0 | 1 | null | 2020-08-11T02:09:08 | 2020-08-11T02:09:07 | null | UTF-8 | Python | false | false | 2,677 | py | from Node import Node
import random
from Network import Network
import pandas as pd
import Parameter as param
from ast import literal_eval
from MobileCharger import MobileCharger
from Q__Learning import Q_learning
from Inma import Inma
def Test(
file_name="data/thaydoitileguitin.csv",
des_log="log/change_alph... | [
"thuydungnguyen.ictk63@gmail.com"
] | thuydungnguyen.ictk63@gmail.com |
eefda3e4f68c92ad23058fc49e2a6ba5e489fa45 | 3b74cd55d5ca236081a80dbbd34fce37a22b208e | /Quiz/Apply_filter.py | f947a556358c88c45a21dfbf7b35bec21113f6b3 | [] | no_license | Zahrou/EDX | 8f5961aadd4d6e0ce66522ea0a02f9eb27fcc546 | f5c1c2241aae08fe0cd05dc586ddd22fa51949b8 | refs/heads/master | 2020-04-02T02:55:15.931274 | 2019-06-01T02:22:30 | 2019-06-01T02:22:30 | 153,935,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py |
def f(i):
return i + 2
def g(i):
return i > 5
def applyF_filterG(L, f, g):
"""
Assumes L is a list of integers
Assume functions f and g are defined for you.
f takes in an integer, applies a function, returns another integer
g takes in an integer, applies a Boolean function,
... | [
"zahro.madr@gmail.com"
] | zahro.madr@gmail.com |
9358a2e8396486447cd6a920d3dab9fee2f2ecda | 4a8e482142f2dedf4728098d1582672774e59295 | /PlayerLogic/VQCQPlayer.py | df7782fd5fae92abccc2b145e9efde8e5ca48540 | [] | no_license | omarcostahamido/tictactoe-roli | 48b8c9db50278a2cb00f7406a8c4befa298843b0 | d70c3d1c8bf3aa087c77c349adc10c781d3d37ab | refs/heads/master | 2020-08-19T11:46:17.216411 | 2019-07-16T16:53:02 | 2019-07-16T16:53:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,579 | py | # -*- coding: utf-8 -*-
# Copyright 2019 IBM.
#
# 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 agre... | [
"madeleine.tod@ibm.com"
] | madeleine.tod@ibm.com |
cf8da9eba1dbf16d89e8f4edbec9cf3a882a4551 | 746c4544fca849cddcf0a6c3efbcc2b1fd23eb6c | /charts/barchart_wage_age.py | f02a098e9f93d918e50ce35c0628046918cc5997 | [] | no_license | jonasthiel/st101-intro-statistics | 7603b1aaa42b7fcf7d01c8c81e62058fc44fbb16 | 6a240fc960129fbd44f7a840227d6c5560b054f3 | refs/heads/main | 2023-02-16T00:56:02.663632 | 2020-12-31T20:42:42 | 2020-12-31T20:42:42 | 325,868,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,623 | py | #Write a line of code to plot a barchart of Wage grouped by Age
from plotting import *
Age=[25, 26, 33, 29, 27, 21, 26, 35, 21, 37, 21, 38, 18, 19, 36, 30, 29, 24, 24, 36, 36, 27, 33, 23, 21, 26, 27, 27, 24, 26, 25, 24, 22, 25, 40, 39, 19, 31, 33, 30, 33, 27, 40, 32, 31, 35, 26, 34, 27, 34, 33, 20, 19, 40, 39, 39, 37,... | [
"41738638+jonasthiel@users.noreply.github.com"
] | 41738638+jonasthiel@users.noreply.github.com |
90183dc2e95fc8a7d4d677c104370a0fada22f44 | 81a7ab5346f8e656438b3b5ec9eef5b11e1e620f | /text_2.py | fd5372e456e304b2fc38fda8971532b3bab52712 | [] | no_license | GetAlice/python | 82396a2b0db55ebf865d7dd9010df8fe8b909455 | 299b2355ae4afda0f613f427e2b08d9e559d0cfc | refs/heads/master | 2020-03-15T19:38:00.272797 | 2018-06-04T02:10:27 | 2018-06-04T02:10:27 | 132,313,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | cookie = 'anonymid=jfgfivcbazwm36; ' \
'_r01_=1; ' \
'ln_uact=18689393892; ' \
'ln_hurl=http://head.xiaonei.com/photos/0/0/men_main.gif; ' \
'_de=E0EDF5D325EC1DBA1D9123C741F918C1; ' \
'depovince=GUZ; ' \
'ick_login=6be5197b-c163-4429-b58e-75d2abc70648; jebecookies=4... | [
"13537656018@163.com"
] | 13537656018@163.com |
ebaad1711387e4345c65fa0681b7f399491d8301 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL17_mMed-2200_mDark-10_ctau-0p1_unflavored-down_cff.py | 5243ead8ffb566b86b44cde4297d9248e99657be | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
c9fe6a43262930b71ccf027355c041006268fea6 | 23cce6d99b861ea7e4d83fc478a1dc2479c288b4 | /src/visualize.py | 687878bb670956937f5af199d06acaf8443d7707 | [
"MIT"
] | permissive | OumaimaHourrane/NLP-Project-Documents | cfc212cab5d6a389a26ae2cfa6bf74ae6a5084b2 | df935bb8c3aa32265162e704155644d9b0d1e7f2 | refs/heads/main | 2023-03-22T15:59:46.096492 | 2021-03-13T11:02:12 | 2021-03-13T11:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,986 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 14 11:06:05 2020
@author: jonas & oumaima
@title: visualisations
"""
import holoviews as hv
from holoviews import opts, dim
import holoviews.plotting.bokeh
import numpy as np
import panel as pn
import pandas as pd
import matplotlib.pyplot as plt
im... | [
"jonas.nothnagen@undp.sk"
] | jonas.nothnagen@undp.sk |
c343d7ca6c0ff312134a1c36299342a489e4f33e | 0c4f6df87da2882ed9a85daec072f78d3d93a84d | /test/functional/interface_bitcoin_cli.py | 9077e9eeed6cb349832e6a8a2baf4a8df407a693 | [
"MIT"
] | permissive | Shadow0Bit/suscoin | af20ea5648e6da51a586742fc3400d8bb2360312 | 4d332ffbc5b157399501aa23ea32e2158ec22dd9 | refs/heads/master | 2023-05-08T18:00:23.116434 | 2021-05-26T10:50:59 | 2021-05-26T10:50:59 | 366,784,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test suscoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_fram... | [
"joker.rafrom@gmail.com"
] | joker.rafrom@gmail.com |
8e0cd4727a216f881c84d55625a70efbdcadb46d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch150_2020_04_13_20_45_30_391205.py | d44700ac9eb31e56af69bcc4d9db551fc97ab291 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import math
def calcula_pi(n):
if n == 1:
p = (6**(1/2))
return p
p = 0
valores = list(range(n))
valores.remove(0)
for a in (valores):
p += (6/(a**2))
p = (p**(1/2))
return p | [
"you@example.com"
] | you@example.com |
81c87125de7b52f3cbdbdcb81de5c4dbaae9c526 | 7aaa3782858490e735a8e090ced1bd397d4ebdaa | /Mailbox/wsgi.py | d1ec4f14f24a493d4d4846595b9291137d79c0f1 | [] | no_license | jangwoni79/PostBox | 494a1c49a7d96d5dd45d1bd2e9a7ffba928b44ff | 0b0229d6016982084bb67b8457854aae3c9b69ff | refs/heads/master | 2022-11-18T23:02:25.847353 | 2020-07-20T11:43:28 | 2020-07-20T11:43:28 | 281,048,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Mailbox project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"s2018w17@e-mirim.hs.kr"
] | s2018w17@e-mirim.hs.kr |
c49cb629b81dd8bab875ff2f9d3dbd0a5ce2d44e | fea2eff6ed6ff05879e071d52d978b1f2f322f31 | /TensorFlow深度学习应用实践_源代码/08/8-1.py | e433dd823a9c612a94b2b30fa227c819242e8df1 | [] | no_license | GetMyPower/mypython | 71ec8db85c82e33b893c5d53ac64a007951fd8f0 | 1846148e327e7d14ebb96c9fea4b47aa61762a69 | refs/heads/master | 2022-03-22T08:11:56.113905 | 2019-12-20T15:00:23 | 2019-12-20T15:00:23 | 198,230,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import tensorflow as tf
input1 = tf.constant(1)
print(input1)
input2 = tf.Variable(2,tf.int32)
print(input2)
input2 = input1
sess = tf.Session()
print(sess.run(input2))
| [
"noreply@github.com"
] | GetMyPower.noreply@github.com |
bbdd4cd13e464e4fded93d24133a3a22d160d75b | 76447c72303e53b82ce5fabd4f37061b2bbd3262 | /app.py | 7ab2028f76df67596b859092f1ff2267278596d7 | [] | no_license | Zomma2/deployIBM | d5146a0546f476b2a90f32880103b27944165f27 | 6393817e15d3b7f17ad08bbb45370c4c53fa1195 | refs/heads/main | 2023-06-05T03:17:03.976867 | 2021-06-22T05:08:22 | 2021-06-22T05:08:22 | 379,145,245 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | from flask import Flask, request, render_template
import requests
# Flask constructor
app = Flask(__name__,instance_relative_config=True)
# A decorator used to tell the application
# which URL is associated function
@app.route('/', methods =["GET", "POST"])
def gfg():
if request.method == "POST":
... | [
"noreply@github.com"
] | Zomma2.noreply@github.com |
685f5b50fe2191735f15da00d09ef6c8b2d29276 | 17e908c7de7819460c519b70a15ded97a75ad89b | /utils/log.py | d7dba77818e49f5f15114d935e1c8134ccc4a3f0 | [] | no_license | emcoglab/ldm-core | 5bd4db602f281ff6088732fac97606f55bd8efb7 | 5cf70e4275460b67b89c49bf8fd9fea507da2c9f | refs/heads/main | 2023-07-24T09:54:42.363720 | 2023-04-03T15:34:35 | 2023-04-03T15:34:35 | 168,543,788 | 2 | 1 | null | 2023-07-21T03:35:33 | 2019-01-31T15:02:23 | Python | UTF-8 | Python | false | false | 1,538 | py | from sys import stdout
log_message = '%(asctime)s | %(levelname).2s | %(filename)s:%(lineno)d | \t%(message)s'
date_format = "%Y-%m-%d %H:%M:%S"
def print_progress(iteration: int, total: int,
prefix: str = '', suffix: str = '',
*,
decimals: int = 1,
... | [
"c.wingfield@lancaster.ac.uk"
] | c.wingfield@lancaster.ac.uk |
95f171bbc154a65c80bf052125d739628093e175 | 504ecbf46271bcb6594743afa80b141dfe4c14b5 | /pharma/migrations/0017_auto_20171111_2134.py | 5e0fb9e4e0a24ec554101ee780f587cf2f4b9502 | [] | no_license | projectworldsofficial/medstore | 6f16e7bb95385daf80645257520053d5f071e3ec | be18785c585fc1f9aedc4ad8ff318b23265ffc82 | refs/heads/master | 2021-09-26T10:31:29.414959 | 2018-10-29T10:58:34 | 2018-10-29T10:58:34 | 272,247,027 | 1 | 0 | null | 2020-06-14T17:05:07 | 2020-06-14T17:05:07 | null | UTF-8 | Python | false | false | 758 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-11 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pharma', '0016_auto_20171111_2128'),
]
operations = [
migrations.AlterField(... | [
"soham5959595@gmail.com"
] | soham5959595@gmail.com |
f8e7c4835096c2301aac6f202b1a28fee2bab730 | 4c984a318ccf26e765f902669399da66497e194d | /pollexe/urls.py | 5ed934d9e6f6c6c24682d62a19f5786bdf6c0416 | [] | no_license | sajalmia381/pollexe | 914af663bad6becb4308c738a16240028f37f99b | 3ead47fee43855aba1ee0f4c2b3f222cac6a9a68 | refs/heads/master | 2020-04-21T12:42:49.283843 | 2019-02-07T13:43:40 | 2019-02-07T13:43:40 | 169,572,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('account.urls', namespace='account')),
path('', include('page.urls', namespace='page')),
path('', include('blog.urls', namespac... | [
"sajal_mia@ymail.com"
] | sajal_mia@ymail.com |
fca6e100081386acb659173bb30939bb5c84e350 | 6ce56c568c3d49d639871689a9103e990fe83d6f | /xcodeproj/pbxproj/objects/__init__.py | 4f2849c76e69ffdc152f42d656dabf3b7aa7eb7b | [] | no_license | topwo/XcodeScripts | 9a8712883967c18844ee185b36ad6c63ca491c1c | 6fb8dd7455f657f1f21bd3bfbc2a0c151383b561 | refs/heads/master | 2020-11-26T18:39:38.509543 | 2018-04-28T11:34:36 | 2018-04-28T11:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/usr/bin/python
# encoding:utf-8
#
# copyright (c) Alex Lee, All rights reserved.
import os
import sys
ModuleRoot = os.path.abspath(os.path.join(__file__, '../../../..'))
if os.path.isdir(ModuleRoot) and not ModuleRoot in sys.path:
sys.path.append(ModuleRoot)
from xcodeproj.pbxproj.objects.buildfile import *
f... | [
"alexlee002@hotmail.com"
] | alexlee002@hotmail.com |
5e0b811355d69d98aa4f260aafc4dacef13b4dd2 | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/models/rgb/datasets/sony.py | ed1b14ee7367d8cae14cb322f5cd81df68be3c15 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 11,336 | py | # -*- coding: utf-8 -*-
"""
Sony Colourspaces
=================
Defines the *Sony* colourspaces:
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3_CINE`.
- :attr:`colour.models.RGB_COLOURSPACE_VENICE_S_GAMUT3`.
- ... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
3d044de9966d419518ae75f3007bb5bd623f03b3 | f6930b9b12c47c19d1ef5677342a3a69cfe5535e | /1st/toprint.py | 06fe348b38df3b75a5245644dd0468c97cee9611 | [] | no_license | tenzinsonam/matcher | 5ae1e61ed053fd084dff011f18932aab8eb2f3e2 | b8510f9d50d6a4718e2bb31c537c6564264f12f4 | refs/heads/master | 2021-05-16T17:38:50.004941 | 2018-02-05T12:07:42 | 2018-02-05T12:07:42 | 102,978,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,372 | py |
from pycparser import c_parser, c_ast, parse_file, c_generator
class BinaryOpVisitor(c_ast.NodeVisitor):
def __init__(self):
self.values = []
def visit_BinaryOp(self,node):
self.values.append(node)
class IfVisitor(c_ast.NodeVisitor):
def __init__(self):
self.values = []
def visit_If(self,node):
sel... | [
"tenzinsonam008@gmail.com"
] | tenzinsonam008@gmail.com |
d78a7f97e2bbf295b699f32b08fc0480aa10688a | 67ae1b00411ad63726e0abb07ba82ac5b75fc32a | /findmusician/wsgi.py | e3e754c495255bd2fa5792053e4e437c249d3059 | [] | no_license | SimonKorzonek/findmusician | e40429bf45115de0709ef6fe92ace3c5cd195660 | fc23e0d6b5da7d98423accef5eb82b9b6c5516bc | refs/heads/main | 2023-02-15T10:12:02.070458 | 2021-01-05T23:02:05 | 2021-01-05T23:02:05 | 327,074,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for findmusician project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"korzonek.szymon@gmail.com"
] | korzonek.szymon@gmail.com |
69be95ec2717104dca1975260567cc9d867e4907 | d0325f0cc1deae11a854cdb6b208414f609d0d68 | /bin/cgdms | 37d0efa8d42cf48a26cd0fc46de10e7250a761a4 | [
"MIT"
] | permissive | avasquee/cgdms | 800ca46851e82b0924e691af6dd7085325075f38 | 735919cb58a697bd4a27e4903a893a090f3cbe92 | refs/heads/master | 2023-08-19T07:58:36.088722 | 2021-09-03T10:05:36 | 2021-09-03T10:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,024 | #!/usr/bin/env python
# Argument handling
# Author: Joe G Greener
import argparse
import pkg_resources
parser = argparse.ArgumentParser(description=(
"Differentiable molecular simulation of proteins with a coarse-grained potential. "
"See https://github.com/psipred/cgdms for documentation and citation inform... | [
"jgreener@hotmail.co.uk"
] | jgreener@hotmail.co.uk | |
27791dff47ce4d430b69660ad95df2783f3233fd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3078.py | 47f6110342d0bc97ffe7055c5477a7037e7b6e28 | [] | 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 | 13,339 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ae5027a60607ce4d65a8d5738a6d24f4432c7bf6 | 1e53b8ba4b44e041de44e2042800c3897c36df6e | /MaoPao_sort.py | eb07fc546ac134445c071d07ade0167e1fd98938 | [] | no_license | LYLthe/Data_Structure | 0b231f73efb198e510f7cb38373b1aff941d63aa | 5cefeb4e18d3545f9c712c8cce2a117fed62b435 | refs/heads/master | 2020-03-20T10:09:28.436414 | 2018-07-25T06:44:48 | 2018-07-25T06:44:48 | 137,360,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """
冒泡排序
时间复杂度:O(n*n)
最优排序:O(n)
稳定性:稳定
"""
import time
import random
def new_num(my_list):
for i in range(50):
num = random.randint(0, 1000)
my_list.append(num)
return my_list
# 开始时间
start_time = time.time()
def bubble_sort_high(list_1):
"""升序排列"""
for i in range(len(list_1)-1, 0,... | [
"2270779418@qq.com"
] | 2270779418@qq.com |
c4463b466523f98a0389beff01c3891c2fefadb3 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0751_0800/LeetCode792_NumberOfMatchingSubsequences.py | ce718c54dd28669b15ae5ae32138582fbd1dc330 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,018 | py | '''
Created on Apr 16, 2018
@author: tongq
'''
c_ Solution(o..
___ numMatchingSubseq S, words
"""
:type S: str
:type words: List[str]
:rtype: int
"""
hashmap # dict
___ i __ r..(26
c chr(o..('a')+i)
hashmap[c] # list
___... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f15451932e3ba9e1a116e799caa28d8cafc0878c | 28b0b8b51c81cf9e355919cd33937907c6b2ef9c | /src/pyvaillant/client_auth.py | b4576d3e428d15c6576ac911f9a18159b8312cbf | [
"MIT"
] | permissive | bodiroga/vsmart2homie | 99b4329d11b1bcc9de563eba8ee1678380b4c2f1 | 4a7db9cd6585ebccfc2bf164ca12873fcd36901b | refs/heads/master | 2020-12-02T00:14:41.213023 | 2020-01-25T20:51:34 | 2020-01-25T20:51:34 | 230,826,105 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # Python library for managing a Vaillant / Bulex MiGo Thermostat
# Based on the pyatmo library by Philippe Larduinat
# Revised July 2019
# Public domain source code
"""
This API provides access to the Vaillant / Bulex smart thermostat
This package can be used with Python3 applications
PythonAPI Vaillant/Bulex REST data... | [
"riturrioz@gmail.com"
] | riturrioz@gmail.com |
d6927765c0f6ebbf69b62da25a3e7947b7feab43 | a5d0642bc4e484cc0fe73b304e6f27384a1d07a8 | /testunittest/name/__init__.py | 3730a0f040a5a630896636a3141752c7fcde75b9 | [] | no_license | lijunyang0210/testunittest | 1a3b8413bcef963c86ce3d42db594ef63034f555 | 5365ebf12c396aabd5d72d5dea98ed461eb4645b | refs/heads/master | 2020-07-20T05:34:53.466950 | 2019-09-05T14:36:21 | 2019-09-05T14:36:21 | 206,582,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # -*- coding: utf-8 -*-
# Author : 李俊阳
# @Time : 2019/9/3 21:14 | [
"lijunyang0210@126.com"
] | lijunyang0210@126.com |
3ab3e27fb739a45761ef77b83f03b45a6dab15f9 | b00efc53bec9b05f91703db81387325fae0a771e | /MAI/olymp/17.02.05/a.py | 364918dd1e8451ebddaa61670614cbf7012cf250 | [] | no_license | 21zaber/MAI | ac88eb1dd4b8f6b9d184527a3b1824a05993a9e1 | 45f25bdd5996329fd05f3e0ec7eb1289443f17b5 | refs/heads/master | 2021-01-17T07:12:22.303754 | 2018-02-08T15:05:30 | 2018-02-08T15:05:30 | 54,101,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | n = int(input())
q = n+3
t = [[[[0 for i in range(q)] for i in range(q)] for i in range(q)] for i in range(n+1)]
# len vs max last
t[1][0][0][0] = 1
for l in range(1, n):
for vs in range(l+1):
for mx in range(l):
for lst in range(mx+1):
c = 0
if t[l][vs][mx][ls... | [
"zaber.eng@gmail.com"
] | zaber.eng@gmail.com |
8e2fa93b471ea7b39d26ee5e82734a1cfc35e3eb | e5b224b9f2be43500271349d96ab8bf92824d55e | /0523/selc04.py | 997979d0f6fe9c5a3515c21dae2cc1ef4a972b11 | [] | no_license | byunwonju/2020_programming | c28f914dcffe7d74b7cbc5923197481410287cd1 | 3e0bec7b30ca7d2f90b557e0b78a9cb8734ed617 | refs/heads/master | 2022-11-18T05:33:45.577071 | 2020-07-25T02:46:02 | 2020-07-25T02:46:02 | 256,646,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | num = int(input("정수 입력:"))
if num%2 ==0:
print("짝수입니다.")
else:
print("홀수입니다.")
| [
"noreply@github.com"
] | byunwonju.noreply@github.com |
5550bfec020aeb4768c5366f4bf1d82e1c1d4201 | e98e10df36810879d05cde11c5846dafafafdd76 | /from_one_to_ten.py | 0d513618ab437314f99fd0b2ba72fd117691615f | [] | no_license | wojtekidd/Python101 | 99fb576e5a0bc33a86b299adbebf238fca01b12c | abb0fdb1bc2582139b6f84eb1ba6be8095d0a050 | refs/heads/master | 2022-04-06T12:46:05.370984 | 2020-02-16T13:02:00 | 2020-02-16T13:02:00 | 207,164,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from random import randint
user_number = int(input("Give me a number from 1 to 10: "))
comp_number = randint(1,10)
while True:
if user_number == comp_number:
print("You win!")
else:
print(f"You loose! Computer has chosen {comp_number}")
break
| [
"wojtek@Wojteks-MacBook-Air.local"
] | wojtek@Wojteks-MacBook-Air.local |
630ded532beaa7555113b8688e55a536d630fc5b | 9e97741db42ec8a71e6f3d28c1a389fd129083f0 | /zipf.py | e686a0c51a0eef30cffb262fcb561cdb745ed2eb | [] | no_license | MatthewWolff/NLP_Genomics | 1ad04fc74a8b5cb64bd6181e75963448658ededc | febe99cc6b86c0fc047073a1ca02f25cffb61413 | refs/heads/master | 2020-03-18T00:21:52.531282 | 2018-08-11T02:11:32 | 2018-08-11T02:11:32 | 134,090,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,466 | py | def rep(x, y): # too lazy to go through and change R code + regex was being wonky -> 'rep\("([A-Z])", {1}([0-9])\)'
return list(x * y)
codons = ["GCU", "GCC", "GCA", "GCG", "CGU", "CGC", "CGA", "CGG", "AGA", "AGG", "AAU", "AAC", "GAU", "GAC", "UGU",
"UGC", "CAA", "CAG", "GAA", "GAG", "GGU", "GGC", "GGA... | [
"noreply@github.com"
] | MatthewWolff.noreply@github.com |
0484e045d8e8d78ad0a42b20eb77acd6b255b100 | fdf5d76af2b8f4a9dc08af2ec8ed69ce7e063be4 | /data_20210601.py | b6098affe8e4329409061d6080797aeeadb412e0 | [] | no_license | tone0623/IQA-System | 262ef66a4f1dc4b57bb794386139a24167a70990 | 51742c325f0a27642f3168a41a1465c7406fe4a1 | refs/heads/main | 2023-06-12T15:55:25.552257 | 2021-07-05T02:02:51 | 2021-07-05T02:02:51 | 382,509,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,020 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import math
import joblib
import glob
import re
import matplotlib.pyplot as plt
import cv2
import numpy as np
import numpy.random as rd
from settings_20210601 import settings
import os
#コントラスト類似度計算
import... | [
"tone0623@icloud.com"
] | tone0623@icloud.com |
21498c9b54373452b5aa80042dafbd03aaedf1f0 | 1682819d41445adf38f39591cc57b9af9b1e0dcf | /layer.py | bbf33d03495edc36b8a4e670132b4b2694cba649 | [] | no_license | favalon/ZoomMovies | 268a5490ddcc40fbf6e4ac3bae1d53c32b826383 | b8f68a2a5186a074032bf7f3e746951bfde004c3 | refs/heads/master | 2021-01-03T00:58:36.465200 | 2020-02-11T21:30:21 | 2020-02-11T21:30:21 | 239,847,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,021 | py | '''
Created on Dec, 2018
@author: Zixiao Yu
'''
import os
import json
import numpy
import csv
'''
Input files: movies800.json, reverseDict.json.
Output files: output is 3 json files(layer1, layer2, layer3) in following format:
not filter:
All_final_layerindex
with filters
1. genre_final_layerin... | [
"yuzixiaoepm@gmail.com"
] | yuzixiaoepm@gmail.com |
1ecf217ac3f73bc4e4f65a2a705ed8b490973479 | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/easyloan/testAction/loginAction.py | 1ffce9a91563013b011f796bed0bf0a925d88370 | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-04-23 下午 2:33
@Author : 罗林
@File : loginAction.py
@desc :
"""
import requests
import json
from common.myConfig import ConfigUtils as conf
from common.myCommon.Logger import getlog
from common.myConfig import MysqlConfig as ms
from c... | [
"romy@romypro.local"
] | romy@romypro.local |
98f361a03b331d28d3cf116f86c6349213cb986b | 461884dcdc6594fe16df51bdf9c14c632df5dd67 | /python/test-python/100tests/ex6.py | f47dddc9431f6f81b9a39d3a36595ca652ededab | [] | no_license | gu3vara/summary1 | cbfc85360da590a6749b9aa560f707eec687bc1e | fbee01bd77928cbff0e95f996bddd89edb2cf25d | refs/heads/master | 2020-05-31T16:30:04.912132 | 2018-08-28T08:54:25 | 2018-08-28T08:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | # -*- coding: UTF-8 -*-
'''
题目:斐波那契数列。
程序分析:斐波那契数列(Fibonacci sequence),又称黄金分割数列,
指的是这样一个数列:0、1、1、2、3、5、8、13、21、34、……。
在数学上,费波那契数列是以递归的方法来定义:
F0 = 0 (n=0)
F1 = 1 (n=1)
Fn = F[n-1]+ F[n-2](n=>2)
'''
def fib1(n):
a,b = 1,1
for i in range(n-1):
a,b = b,a+b
return a
# 输出了第10个斐波那契数列的数
print fib... | [
"1271432244@qq.com"
] | 1271432244@qq.com |
c44dbdd0a83d99e5b8661803ca317dd0cfa5f046 | 61503f1d9bf38a3e0a453bbe84c10804c83da280 | /Assignments/Assignment2B/pa2b/doc_classification.py | f6a3308bec2175cffaffccb56db352c6e65498bf | [] | no_license | Lucasfallqvist/appliedML | f2d81f93e2ff2e9423ecb34832e54d760c65481c | d5f94e87ff98d82c117a14a388920021aa400bab | refs/heads/master | 2023-01-19T15:19:31.032487 | 2020-11-17T22:06:49 | 2020-11-17T22:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py |
import time
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.preprocessing import Normalizer
from sklearn.pipeline import make_pipeline
from sklearn.feature_selection import SelectKBest
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
from pa2b.a... | [
"julio-ponte@hotmail.com"
] | julio-ponte@hotmail.com |
1da0e0c28a5640c4a55d164cbaf34969058e3ba1 | d3a4e8e5e46a7b90be1fcb20b23314582644ef8c | /docs/source/conf.py | 565a9f1fbe87ee160de5a976fee560ca94073b12 | [
"MIT"
] | permissive | reaganking/scrapenhl2 | b02cbcbd6b129a3e1ad16a3d214175e8e4d33c0c | a9867f03d002773da852fc150f2976adc2ba8c25 | refs/heads/master | 2020-03-28T23:35:48.453111 | 2018-02-16T02:18:59 | 2018-02-16T02:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,961 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# scrapenhl2 documentation build configuration file, created by
# sphinx-quickstart on Sun Oct 1 17:47:07 2017.
#
# 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
#... | [
"muneeb.alam@gmail.com"
] | muneeb.alam@gmail.com |
2e4c319c80a704585fbab79e4c5ae8329e38f201 | ddc7e22952de6298d14b9297e765db29f327cfcb | /BFS/medium/minKnightMoves.py | ec82adee4ecf9c80d54548712c8789fa3cbcdfdb | [
"MIT"
] | permissive | linminhtoo/algorithms | 154a557b4acada2618aac09a8868db9f3722204f | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | refs/heads/master | 2023-03-21T23:01:58.386497 | 2021-03-16T07:13:32 | 2021-03-16T07:13:32 | 296,247,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # leetcode is premium problem
# see https://www.geeksforgeeks.org/minimum-steps-reach-target-knight/
# https://www.hackerrank.com/challenges/knightl-on-chessboard/problem <-- slightly harder version of the same problem (SCROLL DOWN)
# BFS
class Cell: # don't have to use this, can just use a tuple also (x, y, dist)
... | [
"linmin001@e.ntu.edu.sg"
] | linmin001@e.ntu.edu.sg |
3db3bb47ca46ce9c36f857f173351d7c8ab44a38 | 97d84cd9719d194487bc986886756f2fe83ab16f | /courses/urls.py | 9592a601ba15d04ba34a52fc8ae04ba668284be9 | [] | no_license | ariasamandi/courses | 184a36c8e7df2ea12bef52e64846fb716cc420cc | 0e64012bb1aa287d776c0bf6a865eb259d9203f1 | refs/heads/master | 2020-03-11T17:51:27.758564 | 2018-04-26T23:07:02 | 2018-04-26T23:07:02 | 130,159,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | """courses URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"ariasamandi@gmail.com"
] | ariasamandi@gmail.com |
6f92dc3b1e46aec56a6ea497917e884f922966d1 | a23ec1e8470f87d1b3fa34b01506d6bdd63f6569 | /algorithms/967. Numbers With Same Consecutive Differences.py | 3750ace278b12334a762bdf37e95b48783d3f618 | [] | no_license | xiaohai0520/Algorithm | ae41d2137e085a30b2ac1034b8ea00e6c9de3ef1 | 96945ffadd893c1be60c3bde70e1f1cd51edd834 | refs/heads/master | 2023-04-14T17:41:21.918167 | 2021-04-20T13:57:09 | 2021-04-20T13:57:09 | 156,438,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | Dfs problem.
each time we add one digit, we make sure it satifiy the condition.
Code:
class Solution:
def numsSameConsecDiff(self, N, K):
"""
:type N: int
:type K: int
:rtype: List[int]
"""
if N == 1:
return [i for i in range(10)]
if K == 0:
... | [
"noreply@github.com"
] | xiaohai0520.noreply@github.com |
27c6bad3c7dabc08b3b759b10ee20b6a114f08b7 | c00c53a7150a7831435430985fd6199b79af6390 | /test.py | f996a231b73b46371b32fb89f6a3833a1b32318f | [] | no_license | gbogumil/code | a1ebca0bba7e46535ae49b04c0f738fafbf26b1a | af239d1c4c36915f87b6bf6f4b9140903b6a8cff | refs/heads/master | 2021-01-10T20:57:02.840233 | 2018-11-21T13:54:27 | 2018-11-21T13:54:27 | 12,446,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | <<<<<<< HEAD
from pygame.locals import *
import pygame
import logging as log
class maze:
def __init__(self, board):
self.board = board
self.boxSize = 10
class app:
def __init__(self):
log.basicConfig(level=log.DEBUG)
log.info('setting board')
board = [
[1, 1... | [
"gbogumil@gmail.com"
] | gbogumil@gmail.com |
d75833b190a19259f80442cc1117191339c61d5b | 1c1e4761a008868d3b071780fe5bdfd6325a6a8e | /whatsapp_web_bot.py | 5e3de03530f5b739ddb68257aa810ed0f2ea1d04 | [] | no_license | dev-est/whatsapp_web_bot | 8a368ef591a71ab44d1c1b90afddb393c8a4ce9f | cb115e68e4f5804d10bd736b0bd99d3a78e4cad7 | refs/heads/master | 2022-11-28T17:03:14.528441 | 2020-07-25T20:05:55 | 2020-07-25T20:05:55 | 282,511,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | import selenium
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
import time
class whatsapp:
def whatsapp_... | [
"devrishi.sagar@gmail.com"
] | devrishi.sagar@gmail.com |
82f8118697fc92a42d2c7448a0d8d17badaa4da5 | 17216898027c2b2ec895a3e266e920bcf63c618a | /setup.py | 297dff8307bc2ef5086039d7eb9ca81b1d49b712 | [
"MIT"
] | permissive | Boolean263/python-markdown-latuni | 2086444308af3263ef4010bd5fd2c5ca248ce89e | a88a6de1673b5e1c3b7eaf07d95c5a2799d544f2 | refs/heads/master | 2023-02-21T15:50:56.437850 | 2021-01-25T11:59:43 | 2021-01-25T11:59:43 | 261,772,125 | 2 | 1 | MIT | 2021-01-25T11:59:44 | 2020-05-06T13:47:43 | Python | UTF-8 | Python | false | false | 2,658 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This was originally based on the wonderful example at
# https://github.com/navdeep-G/setup.py
# It's been changed since then, but that's still a good site to check out.
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev... | [
"d.perry@utoronto.ca"
] | d.perry@utoronto.ca |
bb86d0390075919840304aeeec10106cc7c997ee | 3a0ec993dc97c485c394fd17faac6e03627abec3 | /client/icons.py | 32b19e107b9f62b5a2430dd995a44d1f2d2a8382 | [] | no_license | hileamlakB/tuxcut | c49317bf8b02b9978caaee14a08debafbca3f191 | a963f4fc64bac0935acef11f17f05f0aafada701 | refs/heads/master | 2022-12-10T15:20:15.301280 | 2020-08-27T11:57:00 | 2020-08-27T11:57:00 | 290,762,337 | 0 | 0 | null | 2020-08-27T11:54:15 | 2020-08-27T11:54:15 | null | UTF-8 | Python | false | false | 20,527 | py | #----------------------------------------------------------------------
# This file was generated by /home/ahmed/.virtualenvs/TuxCut/bin/img2py
#
from wx.lib.embeddedimage import PyEmbeddedImage
alias_32 = PyEmbeddedImage(
b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAA'
b'CXBIWXMAAA... | [
"a.3talla@gmail.com"
] | a.3talla@gmail.com |
fd340134c630935c8dff1c7e83d8d2b1a4bd61dc | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/qt/close_dialog.py | 732b8043635aa9a35802bd6867ad50d908c18473 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | #!/usr/bin/python
#\file close_dialog.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Apr.01, 2017
# http://stackoverflow.com/questions/14834494/pyqt-clicking-x-doesnt-trigger-closeevent
import sys
from PyQt4 import QtGui, QtCore, uic
class MainWindow(QtGu... | [
"info@akihikoy.net"
] | info@akihikoy.net |
4a6dbdd4885cee44bd5fdc4be7108423b6b61ffd | e95322e4a14f3a0e6504ef3997f7fac1e2bce387 | /utils.py | 6220939a692f27077944fe4fac25f6e70f6044c4 | [] | no_license | redhat12345/adversarial-domain-adaptation | c3af6dc9a038723f715ab883bbf2610ac1ee3a42 | 47ea0b7eb9a3743796f877d4b5e190af226fcad9 | refs/heads/master | 2020-03-29T16:19:21.201889 | 2018-09-23T23:38:57 | 2018-09-23T23:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import tensorflow as tf
import matplotlib.pyplot as plt
plt.switch_backend('agg')
def log(x, eps=1e-8):
return tf.log(x + eps)
def normalize(x, max_value):
""" If x takes its values between 0 and max_value, normalize it between -1 and 1"""
return (x / float(max_value)) * 2 - 1
def unnormalize(x):... | [
"arthur.pesah@gmail.com"
] | arthur.pesah@gmail.com |
02acda62b0acb6f8e73d02a5004433c4db8c0653 | 44fe52c822f73fdd8a66f4090bbe4b630024ae3c | /FlaskTraining/113SQLAlchemy/app.py | ce6664dfea88dd9644b27404d694223c23e3c528 | [] | no_license | rohitvishal7/flask | 69edfd076bd17e3e421ab65c6e622af335e4d97e | ca64d5c47c0ff669185ec347955baca578c8bb9c | refs/heads/master | 2021-01-11T01:54:36.423409 | 2016-09-30T09:26:37 | 2016-09-30T09:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | from flask import Flask, request, flash, url_for, redirect, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///students.sqlite3'
app.config['SECRET_KEY'] = "random string"
db = SQLAlchemy(app)
class students(db.Model):
id =... | [
"noreply@github.com"
] | rohitvishal7.noreply@github.com |
4514eac9ff495b8f6a3dc717b7d4580f119de12d | 2c55946200a55dc86951b2fc676d60600028614e | /settings.py | 032b757d324e65d77d5aec1033b7fc2dd43ee2b0 | [] | no_license | ahishn27/Practice | 7b19106adb196dc9d53df6174162094056ec2946 | cd6d476623cc0ffd41f5c6c1a4630e7f4dd7d72c | refs/heads/master | 2020-04-17T03:08:19.808140 | 2019-02-04T09:13:33 | 2019-02-04T09:13:33 | 166,168,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #Package imports
import os
import dotenv
#searching the .env file in the directory
found_dotenv = dotenv.find_dotenv('.env')
#Loading the .env file to get access to the variables
dotenv.load_dotenv(found_dotenv)
#apply_functions
def apply_func(func):
return lambda x:func(x)
#common function
from_env = apply_fu... | [
"Ahish.N@42hertz.com"
] | Ahish.N@42hertz.com |
6e49e63174591b977f3dedd690bd4266cfc1453c | 9ba9491d26187838dd318f07e17abdc6ccb48c64 | /core/templatetags/extras.py | 140ab3e208fd8520fd27c0b61a95fd2da405a3b2 | [
"Apache-2.0"
] | permissive | bugulin/gymgeek-web | dc4cfa819b6d13f306605d69ef0c0977768f0868 | 1def491392add2526fb0e8a53098d49ad2fdf983 | refs/heads/master | 2021-07-11T04:23:36.341115 | 2017-12-18T15:18:04 | 2017-12-18T15:18:04 | 95,215,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from docutils.core import publish_parts
register = template.Library()
@register.filter(name='rst')
@stringfilter
def rst_to_html5(text):
parts = publish_parts(text, writer_name='html5'... | [
"petriczech12@gmail.com"
] | petriczech12@gmail.com |
cfebfef778ac23b6285c76677175d328f20cb65a | 2d5753c42f2c20e03be8a1cf5aeb2469c24263a1 | /misc/LSTMTagger.py | 19cba5f91f3757d1badc77e8c2bac6eefa22fcb4 | [] | no_license | jonathanhans31/seq-model | 0c9ff91e888788e23b1f0f0565e93ac9efe78687 | 785f65d77c2e7d089e4d804f2136a2ccd417aa5e | refs/heads/master | 2020-03-22T14:54:12.423105 | 2018-08-23T01:27:58 | 2018-08-23T01:27:58 | 140,213,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
class Model(nn.Module):
"""docstring for Model"""
def __init__(self, embedding_dim, hidden_dim, vocab_size, tagset_size):
super(Model, self).__init__()
self.hidden_dim = hidden_dim
self.word_em... | [
"jonathanhans31@gmail.com"
] | jonathanhans31@gmail.com |
a43822a9657a1661bdf8eec5626ddb1f8fb0ae2c | 5a2fdbcfe7f9218e332ff506608cde78043256ff | /nova/db/sqlalchemy/migrate_repo/versions/279_fix_unique_constraint_for_compute_node.py | 820fa3f696047c0989ac87fc9dbea37b9d0db2ec | [
"Apache-2.0"
] | permissive | starlingx-staging/stx-nova | 6d4aad0899bad527d8765f6cc07971e40581e4d3 | 23e7930b35f8a0d61ee6c5798bbef1a281bfc070 | refs/heads/master | 2022-07-27T18:12:57.404225 | 2019-08-06T11:23:04 | 2019-08-06T11:23:04 | 134,120,491 | 7 | 19 | Apache-2.0 | 2022-07-06T19:52:40 | 2018-05-20T04:46:47 | Python | UTF-8 | Python | false | false | 1,274 | py | # Copyright (c) Intel Corporation.
#
# 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 ... | [
"hejie.xu@intel.com"
] | hejie.xu@intel.com |
4852b83b2264cd75b2dfc36bc578fc47b1f9e399 | cf5efed6bc1e9bd27f94663d2443c6bdd1cb472a | /1-pack_web_static.py | 1688b66bfe9161d9b0827db23d9332f8638567fd | [] | no_license | yulyzulu/AirBnB_clone_v2 | 593db702ede02ac17b6883b3e99b6e1eb36a33ee | 1a40aec60996dc98ad9ff45f5e1224816ff6735b | refs/heads/master | 2021-05-25T15:33:22.100621 | 2020-04-23T23:23:25 | 2020-04-23T23:23:25 | 253,810,650 | 0 | 0 | null | 2020-04-07T14:02:36 | 2020-04-07T14:02:35 | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/python3
"""Module that execute functions"""
from fabric.api import local
from fabric.decorators import runs_once
from datetime import datetime
from os.path import getsize
@runs_once
def do_pack():
local("mkdir -p versions")
date_time = datetime.now().strftime("%Y%m%d%H%M%S")
command = local("ta... | [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
b9968479d3d506d21dff4da4876d0a85ef697e4a | 15fca27f60ab7fd42fe21511da4f18f2dae51bc7 | /applications/ks/ksData.py | 8f3f11e57526eb15c59cd87c40677d2638a8d3ed | [] | no_license | dingxiong/research | 1bae45c54a0804c0a3fd4daccd4e8865b9ebebec | b7e82bec1cf7b23cfa840f3cb305a2682164d2f3 | refs/heads/master | 2021-03-13T01:50:57.594455 | 2017-08-30T06:42:46 | 2017-08-30T06:42:46 | 38,164,867 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from ksHelp import *
case = 10
if case == 10:
ksp = KSplot()
fileName = '../../data/Ruslan/ks22h1t120.h5'
a, T, nstp, theta, err = ksp.readPO(fileName, ksp.toStr('ppo', 1), False, hasNstp=False)
| [
"dingxiong203@gmail.com"
] | dingxiong203@gmail.com |
8087a586a08d86c2630e2cd577c77d550102a37d | 3090c81bc67cb5e42a4bef0b460577c2695b3877 | /fizzbuzz3/fizzbuzz_module.py | 7512f2cc73eab5913191eaa8e66368479d91632e | [] | no_license | CodecoolBP20161/python-pair-programming-exercises-2nd-tw-adam_david | 44f8b6146670fc2a455e29f6a8d354e62665cad4 | f1be4b46849ab22f07d81038f90e8dfec697e555 | refs/heads/master | 2016-09-13T22:49:49.731694 | 2016-05-26T07:37:22 | 2016-05-26T07:37:22 | 59,470,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def fizzbuzz(number):
result = number
if number % 3 == 0:
result = str(result).replace(str(number), "") + "Fizz"
if number % 5 == 0:
result = str(result).replace(str(number), "") + "Buzz"
return result
def main():
for i in range(1, 101):
print(fizzbuzz(i))
if __name__ == '... | [
"feherkeee@gmail.com"
] | feherkeee@gmail.com |
5953d5e80fc94ed4ad2ce7b9db46fa744fce156b | 06d583192baa32a5b1e4c99296482d37962a2a23 | /TSL2561.example.py | 0f0fe1d74d03415ef98b102548c3f32371e3491a | [] | no_license | janheise/TSL2561 | d2b7d70a7f7fd8996509369dca4e421cdb2c2c31 | 3fbed5d910bf5b11aba8603475b07f79007169b4 | refs/heads/master | 2016-09-05T16:06:27.185370 | 2013-02-01T14:55:48 | 2013-02-01T14:55:48 | 7,959,402 | 42 | 5 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python3
from TSL2561 import *
tsl = TSL2561()
if tsl.foundSensor():
print("Found sensor...")
tsl.setGain(tsl.GAIN_16X);
tsl.setTiming(tsl.INTEGRATIONTIME_13MS)
x = tsl.getFullLuminosity()
print("Full luminosity value: %d" % x)
print("Full luminosity value: %#08x... | [
"jan@janheise.de"
] | jan@janheise.de |
bc152200d29fb65d3f15389a83a766eb2af27faf | 1f874c6a515f7c86047378d507be652f18925eb5 | /mergeLinksTXP.py | 11f6d2459fbb87e7d74021579fa59ab876037a2d | [] | no_license | BeenleTian/TempCauseRelPro | b2325183123f80879e148e90b8b8462c34b9de86 | 4e554863ac4f5c8e5feb20bdc81c4517c1ce74db | refs/heads/master | 2020-12-30T14:19:35.216223 | 2015-10-26T14:22:18 | 2015-10-26T14:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | import sys
import os
def ensureDir(f):
d = os.path.dirname(f)
if not os.path.exists(d):
os.makedirs(d)
def getFieldValueTxp(fieldname, cols):
fields = ["token", "token_id", "sent_id", "nr_pos", "nr_lemma", "nr_deps", "tmx_id", "tmx_type", "tmx_value", "nr_ner", "ev_class", "ev_id", "role1"... | [
"paramita@fbk.eu"
] | paramita@fbk.eu |
a9999691c3e277bd3c41bb28c97ea2216afad0fb | 508cd804441ce076b318df056153870d2fe52e1b | /sphere.py | e43689710948ecd61748515c08b01fe57e116aba | [] | no_license | archibate/taichi_works | ffe80e6df27b7bcb3ce1c4b24e23ceeb0ac4ff8a | 9aaae1de9fe53740030c6e24a0a57fc39d71dd71 | refs/heads/master | 2022-11-18T19:07:37.122093 | 2020-07-17T08:45:36 | 2020-07-17T08:45:36 | 276,714,718 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import taichi as ti
import taichi_glsl as tl
import random, math
ti.init()#kernel_profiler=True)
dt = 0.01
kMaxParticles = 1024
kResolution = 512
kKernelSize = 16 / 512
kKernelFactor = 0.5 / kKernelSize**2
kGravity = tl.vec(0.0, -0.0)
kUseImage = False
kBackgroundColor = 0x112f41
kParticleColor = 0x068587
kBoundaryCo... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
3f933be9bb65ede470247841a0737d4ef523395d | 8d8c276f32dbc3917bb64fc5d1d0e83e5c4884ce | /interviewBit/math/primeSum.py | 844de1eb6c7c84cd983b9f2a7e18096b5f4e2c98 | [] | no_license | UddhavNavneeth/DSA-practice | a29b1ca27d72a1af36fb9e4d2e515ac00c99eb38 | 9f7d03145a8f026420a7e4672098f7c7a0361570 | refs/heads/master | 2021-06-22T08:09:08.590179 | 2021-03-12T07:11:10 | 2021-03-12T07:11:10 | 204,329,462 | 3 | 3 | null | 2020-10-01T07:06:15 | 2019-08-25T17:47:34 | Java | UTF-8 | Python | false | false | 535 | py | # Link to the question:
# https://www.interviewbit.com/problems/prime-sum/
def isPrime(a):
for i in range(2,int(math.sqrt(a))+1):
if a%i==0:
return False
return True
class Solution:
# @param A : integer
# @return a list of integers
def primesum(self, ... | [
"uddhav.navneeth@gmail.com"
] | uddhav.navneeth@gmail.com |
50be32c063b21f51fb59e29080e17d63f03faeea | 77c2010bb9533ecbdfa46cd41c16ee5ae26e94fa | /library/migrations/0001_initial.py | d100e69ebfc03b3f1d153433b33548151de3b8ec | [] | no_license | dimansion/portfolio-django | b2cbb28dff97dd03cdf795f0bc661d39bcfae83d | 2dffe0e8579b2a426cb7aceb1ee085933b122d90 | refs/heads/master | 2020-05-23T08:15:38.205372 | 2017-03-05T14:44:14 | 2017-03-05T14:44:14 | 70,251,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-09 06:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations =... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
75ca5aefe50b77509bfaaec7f261eccde8978151 | 02de8f705f354f0b130177621b886c7079e9c1d3 | /Task_10.py | 42d3053218a84b96e7bb7142e17ed914c1713d97 | [] | no_license | yekeenfatai/basecamp | d528e7984ff5e48c59dceab73e266b6374bf8a7d | 1b0bf11d8628167a6ea50460eff0cf6bd76bca28 | refs/heads/master | 2023-06-17T11:41:52.742260 | 2021-07-18T21:46:49 | 2021-07-18T21:46:49 | 387,271,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | def frequentChr(word):
"""frequentChr: accept a string as input and returns
the most frquently occured element as dictionary"""
#Verifying that the input is type string
try:
#To ensure that the parameter is a string not an array
if (type(word) in [list,set,dict]):
return f"Note... | [
"yekeenfatai10@gmail.com"
] | yekeenfatai10@gmail.com |
9ac566e98381467e354fc7fd6819e02e8ea73f10 | f9069ee014718a2d8e072a4a9490c4b5415a8760 | /38.py | 8c2efdc596fdec7d66bde8aa9f20651c95d42613 | [] | no_license | subhashl7/subhashpython | 1e74aa03576c55caccf4624837e2eff05289a2f4 | 7bb4eb050fe88da72cd672459ff0fe5b3d8962e9 | refs/heads/master | 2020-03-24T06:41:02.970001 | 2018-08-31T07:15:27 | 2018-08-31T07:15:27 | 142,537,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | N,K = input().split()
N,K = int(N),int(K)
N = N ^ K
K = N ^ K
N = N ^ K
print(N,K)
| [
"noreply@github.com"
] | subhashl7.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.