blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa9e74de9960aafc87cf37002938ddea36129615 | f7b3c8f6c10a742c742ca21184f797f0ad737408 | /svn2git.py | b172a8a5d083d46fd3735a02aa1a7d7abca7f490 | [] | no_license | mcdonc/svn2git | 88488a415c8e0a514a0cc42d7dd4bf5d9ea9504b | f37b624e3b25746ae61fab07045cdb728f84828c | refs/heads/master | 2020-04-20T15:52:18.217285 | 2011-08-18T18:21:10 | 2011-08-18T18:21:10 | 1,415,728 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | # usage:
#
# python2.7 svn2git.py \
# http://svn.repoze.org/repoze.catalog \
# git@github.com:repoze/repoze.catalog.git \
# branch1 \
# branch2
#
# (branch specs are optional, otherwise only trunk and tags are imported)
#
# users.txt should be in /tmp/users.txt
#
# requires pytho... | [
"chrism@plope.com"
] | chrism@plope.com |
cdd207946758af304736b74d5fb083e7c096090c | 5c099927aedc6fdbc515f40ff543c65b3bf4ec67 | /algorithms/combination-sum-iii/src/Solution.py | 0a4d6205ea8f236eb6dd457b917b0509fb19bddc | [] | no_license | bingzhong-project/leetcode | 7a99cb6af1adfbd9bb1996a7f66a65679053c478 | ba82e7d94840b3fec272e4c5f82e3a2cfe4b0505 | refs/heads/master | 2020-04-15T09:27:33.979519 | 2020-03-10T03:43:07 | 2020-03-10T03:43:07 | 164,550,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | class Solution:
def combinationSum3(self, k, n):
"""
:type k: int
:type n: int
:rtype: List[List[int]]
"""
def dfs(target, k, start, paths, res):
if k == 0:
if target == 0:
res.append(paths)
return
... | [
"zhongyongbin@foxmail.com"
] | zhongyongbin@foxmail.com |
8765c2225d5837e8d7fd36b6dc4044e605ab5686 | 039a274d8a8bfbfb90b3c884024edf8c18507150 | /examples/logisticRegression.py | 3fecc9725f6e1545a2e1b879c0744400da271f67 | [
"MIT"
] | permissive | JayceeLee/TheanoProject | 1e33ae2a58a188cfce6c5bcbd8a2f6f9fbd36a0d | be1f5f09aa84d64ad3df7b798cf6ff74a08bf3b7 | refs/heads/master | 2021-05-11T09:12:50.278105 | 2017-04-09T08:55:03 | 2017-04-09T08:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | #! /usr/bin/python3
# -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals
import numpy as np
import theano
import theano.tensor as T
__author__ = 'fyabc'
RNG = np.random
def main():
N = 400 # training sample size
feats = 784 # number of input variables
# genera... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
f3edbdc52fa052152bcf4d6e714ac29123c16186 | 2eb8e3606a8df45d432fdf56ee9aa24942304526 | /rocketgram/api/inline_query.py | cc10fabfbdd6a9c87cdb80a8c3c80a24aeaecdd4 | [
"MIT"
] | permissive | KulZlaK/rocketgram | 22848293980ba44dd9fb63db28f34be36c437c84 | 09587deecffcd7ccc9529f4d9e51221888870f23 | refs/heads/master | 2022-07-27T23:25:51.254444 | 2020-05-15T21:36:57 | 2020-05-15T21:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | # Copyright (C) 2015-2020 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import Optional
from .location import Location
from .user import User
@dataclass(frozen=True)
class Inli... | [
"vd@"
] | vd@ |
17abd873c71413e3e69a0166b662cadde12a971d | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_OpenCV_Nightly/source/tensorflow/contrib/crf/__init__.py | 80a31cc3341a2c7cf1867eef2ef3e463a325667f | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,633 | py | # Copyright 2016 The TensorFlow Authors. 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 applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
b16e2983b29295ca79df7a58ce01944eb1bc078d | 3879d1ca43c573c209f962182cd1e7f7fe978fbf | /leetcode/207. Course Schedule/207.py | 38345c4258f98161245c91f343273e5b8b1ee969 | [] | no_license | DoctorLai/ACM | 34a5600a5adf22660c5d81b2d8b7a358be537ecf | aefa170f74c55c1230eb6f352770512b1e3f469e | refs/heads/master | 2023-09-01T02:13:01.604508 | 2023-08-31T15:42:07 | 2023-08-31T15:42:07 | 146,173,024 | 62 | 18 | null | 2020-10-11T13:19:57 | 2018-08-26T11:00:36 | C++ | UTF-8 | Python | false | false | 979 | py | # https://helloacm.com/teaching-kids-programming-topological-sort-algorithm-on-directed-graphs-course-schedule-bfs/
# https://leetcode.com/problems/course-schedule/
# MEDIUM, TOPOLOGICAL SORT, GRAPH
class Node(object):
def __init__(self):
self.inDegrees = 0
self.outNodes = []
class Solution(object... | [
"noreply@github.com"
] | DoctorLai.noreply@github.com |
963ad59463139f848c367bf564d5b5d04be6a85a | d802cb112c080f99fc800effe23b2a7ca55a694b | /tests/test_updater.py | d3e372ada57fb325e58edc6929cffb630c5c5bbd | [
"Apache-2.0"
] | permissive | zjj2wry/dvc | 211ce55c00856abc7d08408c79b93b47cff538a8 | c9df567938eefd7b1f5b094c15f04e5ce704aa36 | refs/heads/master | 2020-04-17T20:34:00.368060 | 2019-01-21T22:19:15 | 2019-01-21T22:19:15 | 166,911,251 | 0 | 0 | Apache-2.0 | 2019-01-22T02:13:23 | 2019-01-22T02:13:23 | null | UTF-8 | Python | false | false | 1,148 | py | import os
from tests.basic_env import TestDvc
class TestUpdater(TestDvc):
def test(self):
# NOTE: only test on travis CRON to avoid generating too much logs
travis = os.getenv('TRAVIS') == 'true'
if not travis:
return
cron = os.getenv('TRAVIS_EVENT_TYPE') == 'cron'
... | [
"kupruser@gmail.com"
] | kupruser@gmail.com |
c6a662e4deb03a754003a41447bcac49368a9cfa | a9243f735f6bb113b18aa939898a97725c358a6d | /0.11/_downloads/rt_feedback_server.py | 292a32b002948df77bf8eebf9e06156a38d1071c | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 4,945 | py | """
==============================================
Real-time feedback for decoding :: Server Side
==============================================
This example demonstrates how to setup a real-time feedback
mechanism using StimServer and StimClient.
The idea here is to display future stimuli for the class which
is pred... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
2ce249532f1a3348bba6d0f7f78e80def67cb3a9 | a39adde99c75c2bf9b25b59fb0d6769196e74a63 | /datasets/hscic/load.py | ae0c205010a46e9d2e59aa6ad24fd23ad88fdd39 | [
"MIT"
] | permissive | uk-gov-mirror/nhsengland.publish-o-matic | 51624d52df562089f7acf4ac91aabcb37ac6d63b | dc8f16cb83a2360989afa44d887e63b5cde6af29 | refs/heads/master | 2021-06-09T06:17:50.473307 | 2016-08-18T10:29:50 | 2016-08-18T10:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | """
Publish HSCIC Indicators to CKAN !
"""
import logging
import sys
import ffs
import slugify
import dc
from publish.lib.metadata import get_resource_path
from publish.lib.helpers import download_file, to_markdown, filename_for_resource
from publish.lib.upload import Uploader
from datasets.hscic.curate import Curato... | [
"ross@servercode.co.uk"
] | ross@servercode.co.uk |
d25bc04e3fb0cd7456802691f219db394d38c4f8 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /l10n_chart_uk_minimal/__terp__.py | b4881867bb86055b6eb6e5cb179dee319e413791 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
b77b296b642288c01694999600780b625adcc2da | 7ab22a9b23502f6cf3dafa02ac68067f7aacca56 | /test/test1.py | 2b7029a6553abd58dff1dee5efe0ddcef5609e88 | [] | no_license | to2bage/flask_first | 62ba6e40f0df7b46cd3f9bff91a8a0a1d41df9be | 098f1d81f516c7d369375cf9c48ec8bb6efa3a80 | refs/heads/master | 2022-11-22T01:29:53.526222 | 2020-07-24T06:51:50 | 2020-07-24T06:51:50 | 281,608,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # webserver的概念 java php nginx apache tomcat iis
# app.run()使用的是单进程, 单线程处理请求
#Local: 使用字典的方式实现的线程隔离
#LocalStack: 封装了Local, 实现了线程隔离的栈
"""
from werkzeug.local import Local
from threading import Thread
import time
my_obj = Local()
my_obj.b = 1
def worker():
my_obj.b = 2
print("in new thread b is ", my_obj.b)
... | [
"to2bage@hotmail.com"
] | to2bage@hotmail.com |
130cb2f1bd3d8c3aa0903d0a6039d875dae49c00 | 6f1e1c378997bf76942ce6e203e720035169ce27 | /sort/8-counting-sort.py | 731b1a6a22acd113ba2c815055e3f06458f47a35 | [
"MIT"
] | permissive | yuenliou/leetcode | a489b0986b70b55f29d06c2fd7545294ba6e7ee5 | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | refs/heads/main | 2021-06-16T07:47:39.103445 | 2021-05-11T09:16:15 | 2021-05-11T09:16:15 | 306,536,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
def countingSort(arr):
"""
工作原理:其核心在于将输入的数据值转化为键存储在额外开辟的数组空间中
编码要素:计数排序要求输入的数据必须是有确定范围的整数
"""
#序列比较集中,如果过大:基于0的偏移量
#将数组长度定为max-min+1,即不仅要找出最大值,还要找出最小值,根据两者的差来确定计数数组的长度。
bucket = [0 for _ in range(max(arr) + 1)]
for i, val in enumerate(... | [
"liuyuan@aplum.com.cn"
] | liuyuan@aplum.com.cn |
390a467424adb2bcd0c7434b36bd29a5310d3333 | a3855396e382ec8e5be2bd54d9864feda584546b | /20 Flask REST API with Threadding Run task in background.py | 95633da11872e90ea1ba2763b883145d836b907f | [] | no_license | raj713335/REST_API_VIA_FLASK | 6930862c7c993222f876de475f08257acb2dbfec | 0b6fca7bbfbb7571e468a3b292d9bbe0d79cc6fa | refs/heads/master | 2022-12-31T08:15:58.769835 | 2020-10-26T00:05:10 | 2020-10-26T00:05:10 | 306,668,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from flask import Flask
from flask_restful import Resource,Api
import time
import threading
app=Flask(__name__)
api=Api(app)
def task():
print("Started Task...")
print(threading.current_thread().name)
time.sleep(6)
print("completed ...")
class HelloWorld(Resource):
def get(self):
thread... | [
"raj713335@gmail.com"
] | raj713335@gmail.com |
6ab5f1183af1a2d2c4981ad8344956be938f629a | 58654f5f9f01813da08ecb4f151e7dae32f18cad | /quant_mech/src/test/hierarchy_solver_steady_state_test.py | 45604b0638fe003db261f3defb9eb367f1e40e6b | [] | no_license | rstones/quant_mech | 57c2f106adfe6fcd1880ab3c50d6f68012963beb | 4dc8f59d66e131cca0cc896638f548d9fcae66e4 | refs/heads/master | 2021-01-19T02:58:24.027297 | 2018-11-26T11:15:04 | 2018-11-26T11:15:04 | 11,790,263 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | '''
Created on 15 Mar 2017
@author: richard
'''
import numpy as np
import quant_mech.utils as utils
from quant_mech.OBOscillator import OBOscillator
from quant_mech.UBOscillator import UBOscillator
from quant_mech.hierarchy_solver import HierarchySolver
import scipy as sp
print sp.__version__
'''Ishizaki and Fleming... | [
"r.stones@ucl.ac.uk"
] | r.stones@ucl.ac.uk |
41f450bc4cbe94baee0ef10c1f5414f0977a3a3f | 13e93cd07fb45f9fd3bc2a1de78d6d7d4a8f8d25 | /backend/theloungeconsole_28185/settings.py | 8a505b7264581a8cc9636fc340d22846b95ad478 | [] | no_license | crowdbotics-apps/theloungeconsole-28185 | fb8a246c44d781101fa924e77a83dc5cf6f541f0 | 57c9122f1865abdcb00fbe91a02598c599575c61 | refs/heads/master | 2023-05-30T04:29:22.662494 | 2021-06-23T11:01:55 | 2021-06-23T11:01:55 | 379,573,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,132 | py | """
Django settings for theloungeconsole_28185 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
""... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1b52a8c073aa7b1299327b714f40bfab360ae620 | ca850269e513b74fce76847310bed143f95b1d10 | /build/navigation/map_server/catkin_generated/pkg.develspace.context.pc.py | d70657140fd79ea2f8707d898a32909e8b49fded | [] | no_license | dvij542/RISS-2level-pathplanning-control | f98f2c83f70c2894d3c248630159ea86df8b08eb | 18390c5ab967e8649b9dc83681e9090a37f3d018 | refs/heads/main | 2023-06-15T03:58:25.293401 | 2021-06-20T20:20:30 | 2021-06-20T20:20:30 | 368,553,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/dvij5420/catkin_ws/src/navigation/map_server/include".split(';') if "/home/dvij5420/catkin_ws/src/navigation/map_server/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;nav_msgs;tf2".repla... | [
"dvij.kalaria@gmail.com"
] | dvij.kalaria@gmail.com |
b97f9e2e6819731ed2e72f322fe82fc21b408239 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_20/models/support_response.py | 6615baa58a213837986445ba7e3bc77ac6e1937e | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,781 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.20
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
d3cdc7a0077856a2b97391ea48f1c5b7b2add971 | af2fca9931bd9d9531d7e3a7fba3df02fea1bfd3 | /bin/dl | 99e68cdd0bae029ebaf686b93fc8873ba55c2de9 | [] | no_license | hukkelas/Dotfiles | 21c5fa5500bf0a0ee3e4dfa1bd069d45c66738df | b0439f612261f1aa0c4f2bb89f06095a08dad990 | refs/heads/master | 2021-06-28T12:26:04.478573 | 2020-09-21T07:18:17 | 2020-09-21T07:18:17 | 136,961,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | #!/usr/bin/env python3
import subprocess
import argparse
from termcolor import colored
parser = argparse.ArgumentParser()
parser.add_argument("docker_name")
args = parser.parse_args()
keys_to_print = ["Image", "Status","RunningFor", "Names"]
query = "docker ps -a --format '{{.Names}}'"
wanted_idx = [1, 3, 4, 5, 6]... | [
"hakon.hukkelas@ntnu.no"
] | hakon.hukkelas@ntnu.no | |
eee551a4414a19d3f9c93aa595e307f5d736289e | ac4dbe322dcb666abdbd5450ecf1194dd7fa21aa | /learn_pipe/model/opt_params.py | 7edcc46f16441c7e31765e0bf7154e2e93798abc | [
"MIT"
] | permissive | tpimentelms/meaning2form | 432a1cc1b83e54f6b3e3eed54d8d336ae00079a8 | 624b3947b3ac2a7a521cf35c762fb56508236f74 | refs/heads/master | 2022-12-13T21:50:10.196711 | 2020-03-12T10:29:09 | 2020-03-12T10:29:09 | 188,860,052 | 3 | 1 | MIT | 2022-12-08T05:15:50 | 2019-05-27T14:36:40 | Python | UTF-8 | Python | false | false | 804 | py | import pandas as pd
def _get_opt_params(fname, lang, delimiter='\t'):
results = pd.read_csv(fname, delimiter=delimiter)
instance = results[results['lang'] == lang]
embedding_size = int(instance['embedding_size'].item())
hidden_size = int(instance['hidden_size'].item())
word2vec_size = int(instanc... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
4aa8df812330ebe7963dd961c6485a55d2669e95 | 433cf60d4a3bb69f126ab6b55c43eb34a79aaa8f | /state.py | 1c7863b94d133fba8d527416442c94ae094eeba5 | [] | no_license | pockerman/odisseus_raspberry_pi | 2d84460db859d4b9d52af10a433899945cd44f4c | b6ca2ebf9178411dcb71246880bfb97adcffbad0 | refs/heads/master | 2021-07-13T09:50:33.113891 | 2020-05-23T15:55:43 | 2020-05-23T15:55:43 | 199,181,066 | 2 | 1 | null | 2020-05-23T14:42:37 | 2019-07-27T15:19:03 | Python | UTF-8 | Python | false | false | 587 | py | """
State describe the state of Odisseus
"""
import numpy as np
class State(object):
@staticmethod
def names():
return ["X", "Y", "Vx", "Vy", "Theta"]
def __init__(self, init_cond):
if init_cond:
self._state = init_cond
else:
self._state = np.array([0., ... | [
"a.giavaras@gmail.com"
] | a.giavaras@gmail.com |
e6e31132160cc9877eb1dd9ceee62b6a99180cc9 | 7b36801dd87a1df93b2836db74f68b5e00682638 | /scripts/02_MP2RAGE/04_apply_reg.py | 652c4181b66a141c87daf9611f9e9d2bd2b4e656 | [
"BSD-3-Clause"
] | permissive | ofgulban/meso-MRI | c873bf227ae1048a84ffa7999c7ece72f3a8c3f8 | 2afd70a3bb7576f401dd98eeb07df38368f42baf | refs/heads/main | 2023-04-11T19:49:50.837267 | 2022-10-24T13:31:49 | 2022-10-24T13:31:49 | 327,944,487 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | """Apply registration."""
import os
import subprocess
import numpy as np
import nibabel as nb
# =============================================================================
NII_NAMES = [
"/home/faruk/data2/DATA_MRI_NIFTI/derived/sub-05/T1/02_upsample/sub-05_ses-T1_run-02_dir-RL_MP2RAGE_T1_crop_ups2X.nii.gz",
... | [
"farukgulban@gmail.com"
] | farukgulban@gmail.com |
a7520b92dd939d6051721286e33af5bdb7690a8d | eb82e06402be351e1d41dfc0a2646426d26eace6 | /mkt/files/migrations/0001_initial.py | 6b85d73be2712eebb1cf43058d6865cbabce8250 | [] | permissive | sarvex/zamboni | 34c28697f007b40131444af10fa943b19244fa24 | 5fa5400a447f2e905372d4c8eba6d959d22d4f3e | refs/heads/main | 2023-08-19T04:53:22.857291 | 2023-08-14T10:04:05 | 2023-08-14T10:04:05 | 32,572,674 | 0 | 0 | BSD-3-Clause | 2023-09-10T15:16:10 | 2015-03-20T08:41:50 | Python | UTF-8 | Python | false | false | 3,661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mkt.site.models
from django.conf import settings
import uuidfield.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"ashort@mozilla.com"
] | ashort@mozilla.com |
95d7af9ddf3ad428c306a3dda706de52e90220f3 | baad8c0884d2a0ff57dfb70f766a2f2c05f3f5cc | /douyu/douyu/spiders/douyuapp.py | 6b13e7cb5737b91e470ca568702e56f087646506 | [] | no_license | ShaoLay/douyu | ee96f9bd09fd7136de8078284baa2b4f2ede274f | 6b2fe2c3f05a58d5e7a323c6e72b7ba447fc74dd | refs/heads/master | 2020-04-14T18:59:58.695098 | 2019-01-04T02:36:24 | 2019-01-04T02:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import scrapy
import json
from douyu.items import DouyuspiderItem
class DouyuSpider(scrapy.Spider):
name = "douyu"
allowd_domains = ["http://capi.douyucdn.cn"]
offset = 0
url = "http://capi.douyucdn.cn/api/v1/getVerticalRoom?limit=20&offset="
start_urls = [url + str(offset)]
def parse(self, r... | [
"javs_shao@163.com"
] | javs_shao@163.com |
183946b6075590e313dcdd943ff083cf360204a4 | b0fdcd6038f8f51ac6fb88abd3698656d9df6ef5 | /HCI_LAB/line_detection/main.py | 14ba7d421926ef79a0388b5fc6345187f040f210 | [] | no_license | ShineySun/HCI_Deep_Lane_Detection | a5b40c3b9df5eaf6afc7cb9983574009199e1af9 | 0b7b7a97f03258942d1d2cd9d86e42348bebab15 | refs/heads/master | 2021-01-02T06:55:59.600259 | 2020-05-15T09:59:33 | 2020-05-15T09:59:33 | 239,537,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | import sys
# print(sys.path)
# sys.path.append('/lib/python3.7/site-packages')
import opts
import math
import importlib
from preprocess import *
import _init_paths
import torch
from PIL import Image
import torchvision.transforms as transforms
from torch.autograd import Variable
import cv2
import numpy as np
# python3 ... | [
"ksp2246@naver.com"
] | ksp2246@naver.com |
371c31e5fc3bcc1a0141df7f8659376578c4ebf1 | 786de89be635eb21295070a6a3452f3a7fe6712c | /numpy/tags/V00-01-05/SConscript | 6f45a7e075210962a1c9f52bd87171f239eeedf9 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package numpy
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file fo... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
feb42e71803ec62191f6593b4b79a9c6a75d36a1 | b53e3d57d31a47a98d87141e44a5f8940ee15bca | /test/programytest/parser/pattern/matching/test_set.py | 002785e6fa43cb2e1fb506957d39ed763fe19deb | [
"MIT"
] | permissive | Chrissimple/program-y | 52177fcc17e75fb97ab3993a4652bcbe7906bd58 | 80d80f0783120c2341e6fc57e7716bbbf28a8b3f | refs/heads/master | 2020-03-29T13:20:08.162177 | 2018-09-26T19:09:20 | 2018-09-26T19:09:20 | 149,952,995 | 1 | 0 | null | 2018-09-23T06:11:04 | 2018-09-23T06:11:04 | null | UTF-8 | Python | false | false | 4,013 | py |
from programytest.parser.pattern.matching.base import PatternMatcherBaseClass
from programy.mappings.sets import SetLoader
class PatternMatcherSetTests(PatternMatcherBaseClass):
def test_basic_set_match_as_text(self):
loader = SetLoader()
if self._bot.brain.sets.contains("SEX") is False:
... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
3a72b003e889d606d91992540708d221eb06875b | ca47fe64364188b9317cf27c08c31c4af0ddf65f | /app/auth/forms.py | bb504b77ba7cf9b1984ba3ac07559dd5942d140d | [] | no_license | Kennedy128/kennedy-project3 | 79d1cfe2d90bec1c34cfc9135106dab2e1008e3b | a5523fcbf86acaae29759895002712cc046fafc4 | refs/heads/master | 2022-07-05T21:52:03.865036 | 2020-05-13T20:57:48 | 2020-05-13T20:57:48 | 263,722,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,BooleanField,SubmitField,ValidationError
from wtforms.validators import Required,Email,EqualTo
from ..models import User
class RegistrationForm(FlaskForm):
email = StringField('Your Email Address',validators=[Required(),Email()])
u... | [
"santa@northpole.com"
] | santa@northpole.com |
7f21588272c702b2fbfae216a5ae2764f36efb80 | 5891051796778cfb44a255248ce38789bfef9e70 | /P_base/faith_class/loading.py | 22388fec3e0227782de7fce6f4d8ec6eb0d8f417 | [] | no_license | Faithlmy/Python_base | cc546a5d86b123e102a69df1227cde9b6e567493 | 5a43557e6375dc9dbe5f6701d7c10e549873a5ab | refs/heads/master | 2021-01-01T17:07:04.097978 | 2018-03-31T16:44:01 | 2018-03-31T16:44:01 | 98,000,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
python的重载
"""
class human:
__age = 0
__sex = ''
__heigth = 0
__weigth = 0
name = ''
def __init__(self, age, sex, height, weight):
self.age = age
self.sex = sex
self.heigth = height
self.weigth = weight
def s... | [
"lmengyy@126.com"
] | lmengyy@126.com |
9873106f27cd3a0141597de96df0b53e68ca1d87 | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /Data Types and Variables/elevator.py | 8863fad20ce9dfa6fc628d6a3a681caa5f3725d6 | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | number_of_people = int(input())
capacity_of_elevator = int(input())
total_courses = 0
if number_of_people > capacity_of_elevator:
total_courses += number_of_people // capacity_of_elevator
if not number_of_people % capacity_of_elevator == 0:
total_courses += 1
else:
total_courses += 1
print(total_cou... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
ad19d9d129e4da03fb6bf7e6eab0b113ab9f3769 | b84f0d7cf248452d7becfdfb672bc91dba4ea46c | /benchmark.py | f50f9d2cbc7fc03c03e6b82c560e6569d2992d0c | [
"MIT"
] | permissive | saurabhkulkarni77/bert-as-service | 35a467c1140333ef1319c8b40987f70dcd86d492 | d5d5670b7aa79746163ff8061fe76398e7146d5b | refs/heads/master | 2020-04-17T17:04:19.314059 | 2019-01-19T06:06:29 | 2019-01-19T06:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import random
import string
import sys
import threading
import time
from collections import namedtuple
from bert_serving.client import BertClient
from bert_serving.server import BertServer, get_args_parser
from numpy import mean
PORT = 7779
PORT_OUT = 7780
MODEL_DIR = '/data/cips/save/chinese_L-12_H-768_A-12'
common... | [
"hanhxiao@tencent.com"
] | hanhxiao@tencent.com |
59fd38d364beae081dd066ea60debcfc76d65e69 | 1fb2da0e6f73652f0b0126c82a84562f6a8d3535 | /935. Knight Dialer.py | 0c6faf5974ebdf4a997d8c9f4c72c190f73e9101 | [] | no_license | JaylenZhang19/Leetcode | be3456fcb45270c8aad797f965f4c7a1781c0e61 | 178546686aa3ae8f5da1ae845417f86fab9a644d | refs/heads/master | 2023-02-27T06:08:58.818435 | 2021-01-31T20:28:10 | 2021-01-31T20:28:10 | 287,661,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | class Solution:
def knightDialer(self, n: int) -> int:
moves = [
[4, 6],
[6, 8],
[7, 9],
[4, 8],
[3, 9, 0],
[],
[0, 1, 7],
[2, 6],
[1, 3],
... | [
"noreply@github.com"
] | JaylenZhang19.noreply@github.com |
4727e9204aeccf1fa3855c1e6fdd478abea9f146 | 0734fe314483192e630272bb212aa7817d627628 | /parsl/tests/test_aalst_patterns/test_python_AND_SPLIT_P2.py | e9d383b559002bd1e8e680c61361fecb9d98ea66 | [
"Apache-2.0"
] | permissive | djf604/parsl | 9798f1043a2196d3b538c8683de6d34d57d8f279 | 118af3a52be1811a3355c79a7adadda5ea66afde | refs/heads/master | 2020-12-02T16:27:10.252111 | 2017-06-29T01:47:09 | 2017-06-29T01:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | ''' Testing bash apps
'''
import parsl
from parsl import *
import os
import time
import shutil
import argparse
#parsl.set_stream_logger()
workers = ThreadPoolExecutor(max_workers=4)
dfk = DataFlowKernel(workers)
@App('python', dfk)
def increment(x):
return x+1
@App('python', dfk)
def slow_increment(x, dur):
... | [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com |
0269fdda7a60854c67452fee04e6583d65eb2c04 | 6ff8b7b7ed534d36da6456feeda6ded80464a7de | /chains/tasks.py | d982b814bba7ac7e5b34a9a7950e17f285d6187f | [
"Apache-2.0"
] | permissive | denismakogon/aiorchestra-chain-plugin | c14c4fc1e8417edfbd0a60cc5e28542006928040 | 8607f2a547234952eeb4008aba48eb168b20d217 | refs/heads/master | 2021-01-17T08:46:54.599774 | 2016-07-05T11:02:45 | 2016-07-05T11:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | # Author: Denys Makogon
#
# 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 t... | [
"lildee1991@gmail.com"
] | lildee1991@gmail.com |
4e618d4077b4c800d20aaf59ebaad94e9cddd0cb | 9defbebd427f77ac549548ea83280f253e335ea3 | /ltp/transformer_rel_linear.py | 820743317af12009087f3fe14b0d74f356c67ef9 | [] | no_license | okokyou/ltp | d992378ccff0c955852f9f2f948541ce63808a11 | f3d4a25ee2fbb71613f76c99a47e70a5445b8c03 | refs/heads/master | 2023-07-31T15:44:36.220184 | 2021-09-10T01:50:48 | 2021-09-10T01:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,774 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*_
# Author: Yunlong Feng <ylfeng@ir.hit.edu.cn>
from argparse import ArgumentParser
from typing import Optional
import torch
from torch import nn
from torch.nn import functional as F
from transformers import AutoModel
from ltp.nn import BaseModule, RelativeTransformer, CR... | [
"ylfeng@ir.hit.edu.cn"
] | ylfeng@ir.hit.edu.cn |
74377d062ee0d17bd11f3abf5d882d2cd8718a03 | 87e520f16911077e3944f27be142b028110239d9 | /guild/commands/package.py | 05fa5c9ad67a1dc7299619e61860d652e0a2ec07 | [
"Apache-2.0"
] | permissive | cfregly/guild-python-1 | 06c81e5c633be231f18318604f2402e8ac24bce9 | 543889469251e20c1ac55e358100952cdc33e58d | refs/heads/master | 2021-07-12T13:38:31.291333 | 2017-10-16T22:01:17 | 2017-10-16T22:01:17 | 107,252,039 | 0 | 0 | null | 2017-10-17T10:14:47 | 2017-10-17T10:14:47 | null | UTF-8 | Python | false | false | 1,841 | py | # Copyright 2017 TensorHub, 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"g@rre.tt"
] | g@rre.tt |
96af65b743081e61f0620630af27fb2aa2652125 | 8efb4caeafe2cfb024827ce194b5abae6fdfc9a4 | /test/functional/rpc_named_arguments.py | d3557ce2777061179531d4a6c6782b345379400b | [
"MIT"
] | permissive | Worldcoin-Network/worldcoin | cd8ac9631154666cb11603d5f07e3a9dc2e1653a | 4f14d8baadda3f46363c26dc327a68b33f14e28c | refs/heads/master | 2022-03-04T01:50:14.783972 | 2021-10-26T15:21:47 | 2021-10-26T15:21:47 | 156,328,955 | 15 | 9 | MIT | 2021-05-10T16:58:07 | 2018-11-06T05:08:32 | C++ | UTF-8 | Python | false | false | 1,217 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The Worldcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test using named arguments for RPCs."""
from test_framework.test_framework import WorldcoinTestFrame... | [
"quentin.neveu@hotmail.ca"
] | quentin.neveu@hotmail.ca |
a235367cf7e0587291907ad9357befc485578b2d | 824f831ce0921b3e364060710c9e531f53e52227 | /Leetcode/Sliding_Window/LC-209. Minimum Size Subarray Sum.py | 09456da62cae8ff3353367758c2559fbab35706a | [] | no_license | adityakverma/Interview_Prepration | e854ff92c10d05bc2c82566ea797d2ce088de00a | d08a7f728c53943e9a27c33f8e4249633a69d1a6 | refs/heads/master | 2020-04-19T19:36:06.527353 | 2019-06-15T23:02:30 | 2019-06-15T23:02:30 | 168,392,921 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py |
# Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous
# subarray of which the sum ≥ s. If there is not one, return 0 instead.
#
# Example:
#
# Input: s = 7, nums = [2,3,1,2,4,3]
# Output: 2
# Explanation: the subarray [4,3] has the minimal length under the pr... | [
"noreply@github.com"
] | adityakverma.noreply@github.com |
2573678e9815d6c0d02d522c1f682042b66018a9 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /spark/crm/PROC_A_SUBJECT_D004039.py | 4324513e029099964e80d4e9191f6fdd22410f7b | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_A_SUBJECT_D004039').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
sc.... | [
"cysuncn@126.com"
] | cysuncn@126.com |
90d2e9f95d7f2972285bb2645fbe7b1c72e80b3e | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /ddpm_w_distillation/ddpm_w_distillation/config/i64_w_unet3_distill.py | 087622af189706bd2ae189e6c0d8965bd8a31c4f | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 6,776 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f840d8f08c5b3912798557561050b0c4b3506e47 | 70280955a5382d73e58395eba78c119a400f4ce7 | /comp/exawizards2019/test.py | a24b292819c9854baa39c6eac3b842189d260338 | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | N = int(input())
S = {}
for i in range(N):
s = input()
if s in S:
S[s] += 1
else:
S[s] = 1
key = list(S.keys())
value = list(S.values())
m = max(value)
Ans = []
for i in range(len(key)):
Ans.append([value[i],key[i]])
Ans.sort()
for i in range(len(key)):
if Ans[i][... | [
"callout2690@gmail.com"
] | callout2690@gmail.com |
4134622276b22025842bfa81d13980db24e39416 | 041454da30317f0831d8af04a205db9716084ce9 | /docker/f_ffmpeg_1.py | 4646622786c900380acbad86af4f391aa3a63c83 | [] | no_license | elssm/Bug-Recurrence | 3db54b60e3968058566cdaf25589e61b147fb021 | 17365424c54401f83fc00547c7425e2f5901ef14 | refs/heads/master | 2020-05-02T20:18:16.429572 | 2019-03-28T11:16:23 | 2019-03-28T11:16:23 | 178,186,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#python version 3.6.4
#简介:脚本适用于docker下的vulapps环境,使用docker run -d -p 8004:80 medicean/vulapps:f_ffmpeg_1运行环境
#具体参见github地址:https://github.com/Medicean/VulApps/commit/86ee14f3b0c2e7e4fa1aa17655d77bed4184a177
#将poc下载到c盘根目录下
#此处ip为192.168.109.141
import requests
import... | [
"noreply@github.com"
] | elssm.noreply@github.com |
8e1fec41ecc67bb074bc42051b00369bde2be3ef | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_211/ch140_2020_04_01_20_23_34_419582.py | 3947aeef47acbfc57438321e0d040d657c1d6513 | [] | 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 | 312 | py | def faixa_notas(l):
l=[]
i=0
cinco=0
cincset=0
sete=0
quantidade=[cinco,cincset,sete]
while(i<len(l)):
if(l[i]<5):
cinco+=1
elif(l[i]>=5 and l[i]<7):
cincset+=1
else:
sete+=1
return quantidade
| [
"you@example.com"
] | you@example.com |
d918e24948a40341e21650f17e4b4c41965e9398 | ab4046bba677f9378053a68fb74a150c86202a02 | /tools/tools.py | 666d4f7142cd726e30cfd0ae4b86f1375f5ce9e0 | [] | no_license | bvillasen/cooling_tools | f321100025f3b3f8a33b8afae22074f5ff947405 | f4c47776d8489944c398c91ebffb6931d46fcb39 | refs/heads/main | 2021-12-02T18:26:24.315233 | 2021-08-13T04:18:37 | 2021-08-13T04:18:37 | 229,338,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,979 | py | import os, sys
from os import listdir
from os.path import isfile, join
import numpy as np
import h5py as h5
import time
def Combine_List_Pair( a, b ):
output = []
for a_i in a:
for b_i in b:
if type(b_i) == list:
add_in = [a_i] + b_i
else:
add_in = [ a_i, b_i ]
output.append( ... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
5374d74a73bd8124eafa008ae144228c9c2bdbc9 | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/API/Android/ActionBar/File/FileConst.py | d18e3b2246eefd013a70b883052c3b54eccb6cd0 | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | class FileMenuConst:
NEW = ':newNetwork_HTML_Object'
LOAD = ':loadNetwork_HTML_Object'
SAVE = ':saveNetwork_HTML_Object'
SAVE_AS = ':saveAs_HTML_Object'
ABOUT_PT = ':about_HTML_Object'
#NETSPACE_LOGOUT = ':onLogout_HTML_Object'
#DROPBOX_LOGIN = ':dbLogin_HTML_Object'
SHARE_FACEBOOK = ':o... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
5a72cdf4e073f6fc04267e4ffd83999834f77307 | b2c0517a0421c32f6782d76e4df842875d6ffce5 | /Algorithms/Math/171. Excel Sheet Column Number.py | 394b929e34dda09459f87d61b0be287013ab7e34 | [] | no_license | SuYuxi/yuxi | e875b1536dc4b363194d0bef7f9a5aecb5d6199a | 45ad23a47592172101072a80a90de17772491e04 | refs/heads/master | 2022-10-04T21:29:42.017462 | 2022-09-30T04:00:48 | 2022-09-30T04:00:48 | 66,703,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | class Solution(object):
def titleToNumber(self, s):
num = 0
for i in s:
num = num*26 + (ord(i)-ord('A')+1)
return num
| [
"soration2099@gmail.com"
] | soration2099@gmail.com |
b3e7694ac5ff6f15948df85aa45cfdd6a80d169c | 71fafe9fb2190b6acf09f109105ca362bb9018c2 | /jcsbms/jcsbms/match_import_timer.py | 73cfe1de389815f1e235ace61b4546b089280935 | [] | no_license | zhangyibo007/bms | 1f43ca98057a72f1b62769719cb4aefbb4ffb289 | 1ae88e90415f0495d3a647112de0876da0b18e5e | refs/heads/master | 2021-06-21T05:40:24.468473 | 2017-08-02T12:35:08 | 2017-08-02T12:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | py | # coding:utf-8
import sys,os,django
from datetime import timedelta,datetime
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) #manage.py的目录
os.environ['DJANGO_SETTINGS_MODULE'] = 'jcsbms.settings' #setting的目录
django.setup()
from apscheduler.schedulers.blocking import BlockingScheduler
from l... | [
"zhangyibo@caifuzhinan.com"
] | zhangyibo@caifuzhinan.com |
dd907560daeaba856d64a8eee0f86fdab5032374 | 3cd1c0b680d3ed9b251f6afec6fb2d362d9dc8df | /sample15_download_files_via_static_view/sample15_download_files_via_static_view/__init__.py | aa7807e9d48eb800042ca5c7712fb3920bd9ad85 | [] | no_license | williamwu0220/pyramid_sample | ff34e02b6fdb06d906148a7b18c13694701d13f3 | 1b7c7b2a9c97f27912f812c0dce817eb8eeb4457 | refs/heads/master | 2020-03-14T22:14:07.336295 | 2018-05-02T08:15:00 | 2018-05-02T08:15:00 | 131,816,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from pyramid.config import Configurator
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
config = Configurator(settings=settings)
config.include('pyramid_jinja2')
config.add_static_view('static', 'static', cache_max_age=3600)
# for example:
#
... | [
"william@pylabs.org"
] | william@pylabs.org |
9facb01edf8123187c2216673316c6136a0b5655 | 7a31235b60706896351c7e2fe8dbc47217023ddf | /Progress/digital_clock.py | 53e4089d6aa1583c0493b46a886ac67bd3351408 | [] | no_license | sailendrachettri/learning-tkinter | b947e9423654c63bc7b96eb58c03b8f8e0ba99e9 | e978eaa428b71168a16e2ba66c0c54089738a47e | refs/heads/main | 2023-05-27T14:32:06.419250 | 2021-06-11T08:53:27 | 2021-06-11T08:53:27 | 375,646,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import time
from tkinter import *
from PIL import Image
from PIL.ImageTk import PhotoImage
root = Tk()
root.title('Digital Clock - Sailendra')
root.geometry("600x650")
root.configure(bg="#0075A2")
#A function for clock
def clock():
hour = time.strftime("%I")
minute = time.strftime("%M")
second = time.strf... | [
"sailendra9083@gmail.com"
] | sailendra9083@gmail.com |
19ea764231c1a94b224080d6bd26c7496422741d | 6b78bd7f62f7f407bf11d877cc4d91e7db3b62fe | /python/diamond_mine.py | 4669941ed0ebfebb735a8125bc0f2eb0f15142c5 | [] | no_license | PascalUlor/code-challenges | b85efacd4bc5999a0748d1fa1e84f503be09dc94 | 6488d0a6d2729bd50b106573f16488479fd6e264 | refs/heads/master | 2023-03-03T17:50:18.413127 | 2023-02-21T13:10:02 | 2023-02-21T13:10:02 | 212,979,719 | 1 | 0 | null | 2023-02-15T22:59:13 | 2019-10-05T10:14:29 | Python | UTF-8 | Python | false | false | 430 | py | """
1) Given a matrix of n*n. Each cell contain 0, 1, -1.
0 denotes there is no diamond but there is a path.
1 denotes there is diamond at that location with a path
-1 denotes that the path is blocked.
Now you have start from 0,0 and reach to last cell & then return back to 0,0 collecting maximum no of diamonds.
While ... | [
"pascalulor@yahoo.com"
] | pascalulor@yahoo.com |
4dff494aab4fd14ae50a55d20d20b9b04525c132 | d79a614759a818cffad595e1ad376e244b4550ed | /tests/unittest.py | db854e957be2c8ab2a8305e0b975fde48cde6063 | [
"BSD-3-Clause"
] | permissive | absszero/sublime-phpunit | 9577fc8c8b3b836a08847acf112038d0f5c59314 | 37f43378c3dae37cc88fa1910eea07da1ab4af9e | refs/heads/master | 2023-06-29T15:09:30.865548 | 2020-05-05T22:53:33 | 2020-05-05T22:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | import os
from unittest import TestCase
from unittest import mock # noqa: F401
from unittest import skipIf # noqa: F401
from sublime import find_resources
from sublime import active_window
def fixtures_path(path=None):
if path is None:
return os.path.join(os.path.dirname(__file__), 'fixtures')
ret... | [
"gerardroche@users.noreply.github.com"
] | gerardroche@users.noreply.github.com |
aafb5f0e2b2913ca35de9883987f2df7decb0f56 | 278d7f4467a112416d1adfbcd3218033ff0fd9b3 | /configs/cascade_rpn/crpn_faster_rcnn_r50_caffe_fpn_1x_coco.py | 12fdc8c8a7be3f7a59a9424662c683ff88982a17 | [] | no_license | Young-1217/detection | e3d67938b454e955b5b7a82d5ae222e62f9545fb | 6760288dac92e00ddc3e813ed0e1363c1fa1ce2d | refs/heads/main | 2023-06-01T21:41:37.998947 | 2021-06-21T10:03:01 | 2021-06-21T10:03:01 | 371,868,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | _base_ = '../faster_rcnn/faster_rcnn_r50_caffe_fpn_1x_coco.py'
rpn_weight = 0.7
model = dict(
rpn_head=dict(
_delete_=True,
type='CascadeRPNHead',
num_stages=2,
stages=[
dict(
type='StageCascadeRPNHead',
in_channels=256,
... | [
"noreply@github.com"
] | Young-1217.noreply@github.com |
be828be8e6b3ef5b3d0469a50a97f4c57b295f59 | aba00d6272765b71397cd3eba105fc79b3a346e0 | /Old_Python_projects/ITGK/øving10/sudoku.py | 11337b49d12f25436ebcbada686bb6db904a94e1 | [] | no_license | JosteinGj/School | a2c7cc090571b867637003fe6c647898ba9d8d24 | 3b5f29846e443b97f042241237dbda3208b20831 | refs/heads/master | 2023-05-02T11:07:29.517669 | 2021-04-26T09:04:57 | 2021-04-26T09:04:57 | 295,340,194 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def make_board(filename):
file=open(filename)
board=file.readlines()
output=[]
for i in board:
row=i.split(",")
output.append(row)
return output
print(make_board("test.txt")) | [
"jostein.gj@gmail.com"
] | jostein.gj@gmail.com |
6b40833fba82cb85808e5f9f3fbb03fa0177cdfa | 03d07de94fc22d1583c45ca84c711a06df8a40ff | /lc/dynamic_programming/lc_474_ones-and-zeroes.py | 92e6f2fda2baa84c8f8040ccba0e83ef0384d9a7 | [] | no_license | gaopenghigh/algorithm | 94e04293c69a2ad6903495e1cf6e1b75556535bb | f5d78c98c7201c56f9d4c3a9c0c76e9447a17985 | refs/heads/master | 2022-03-11T18:46:38.712923 | 2022-02-20T14:20:54 | 2022-02-20T14:20:54 | 54,484,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # 474. 一和零
# 给你一个二进制字符串数组 strs 和两个整数 m 和 n 。
# 请你找出并返回 strs 的最大子集的长度,该子集中 最多 有 m 个 0 和 n 个 1 。
# 如果 x 的所有元素也是 y 的元素,集合 x 是集合 y 的 子集 。
#
# 示例 1:
# 输入:strs = ["10", "0001", "111001", "1", "0"], m = 5, n = 3
# 输出:4
# 解释:最多有 5 个 0 和 3 个 1 的最大子集是 {"10","0001","1","0"} ,因此答案是 4 。
# 其他满足题意但较小的子集包括 {"0001","1"} 和 {"10","1","0... | [
"jh.gao@ucloud.cn"
] | jh.gao@ucloud.cn |
9b596c719b030f28eac270a22b939f7f9af7eb1b | 5e9de302964b59ccd74aa3d62d4786c87ca60108 | /testmachine/common.py | cc5324bbe50a67ea2ea0b142239a1e4783349923 | [
"BSD-2-Clause"
] | permissive | cid-aaron/testmachine | 6c409d356ae3a3dc45d0ab35c8954d92cb57b4bf | dc207986b0d2d74241842472c80e98dd9f536e7d | refs/heads/master | 2020-05-20T16:52:40.615042 | 2014-01-11T12:26:14 | 2014-01-11T12:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | import operator
from .operations import (
Drop,
Swap,
Rot,
BinaryOperator,
UnaryOperator,
ReadAndWrite,
Check,
PushRandom,
)
def operation(*args, **kwargs):
"""
Add an operation which pops arguments from each of the varstacks named
in args, passes the result in that order t... | [
"david@drmaciver.com"
] | david@drmaciver.com |
77cbdfeadabbc31c5a1c4debe0f00849f53dbac8 | ae71e532468e861e3a9fcb90f613eddca267ace6 | /routes/class_incoming.py | f2d93f0a50f1963382d3895bbaf47dcf3e2de6e0 | [
"CC-BY-4.0"
] | permissive | soon14/proms-4.0 | 0b4ed398125e529c13dc8f0d9b0c14e0348ae5c6 | 6c3a1fd62c9394761664e100fc1dde50fd79dc11 | refs/heads/master | 2020-09-23T20:33:56.716317 | 2019-06-09T04:01:29 | 2019-06-09T04:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from abc import ABCMeta, abstractmethod
import database
from . import w_l
class IncomingClass(metaclass=ABCMeta):
@abstractmethod
def __init__(self, request):
self.request = request
self.graph = None
self.uri = None
self.named_graph_uri = None
self.error_messages = None... | [
"m13001282105@163.com"
] | m13001282105@163.com |
1b720e6c3d0b7ff11d6d728118fb3c6214ec45a5 | 75cf6a9fd035883b64ca2309382e0178cf370b43 | /Empirical/python/sklearn/zdivers/benchmarks/bench_multilabel_metrics.py | 02a1fb8b5d83267d249892377574c05608ec6fba | [] | no_license | ygtfrdes/Program | 171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d | 1c1e30230f0df50733b160ca73510c41d777edb9 | refs/heads/master | 2022-10-08T13:13:17.861152 | 2019-11-06T04:53:27 | 2019-11-06T04:53:27 | 219,560,170 | 1 | 2 | null | 2022-09-30T19:51:17 | 2019-11-04T17:39:52 | HTML | UTF-8 | Python | false | false | 7,086 | py | #!/usr/bin/python
#!/usr/bin/env python
"""
A comparison of multilabel target formats and metrics over them
"""
from timeit import timeit
from functools import partial
import itertools
import argparse
import sys
import matplotlib.pyplot as plt
import scipy.sparse as sp
import numpy as np
from sklearn.datasets import... | [
"githubfortyuds@gmail.com"
] | githubfortyuds@gmail.com |
9108e76bcc9deddc6f24d53e3de93b4c57e58f2e | 3005ac0fbafc802212f788185138206f13b1103d | /PILtest/tests2018_4_7.py | d5ec97cc486ac983271e930705ee8380a446d523 | [] | no_license | Tony1886/python_workplace | a8903127d33d95c8e02e09dc2b4c4528a26561ad | 6d1b325ee060dda46e81e359b7ed1402d3f02bdf | refs/heads/master | 2020-05-24T15:09:50.366564 | 2019-05-18T06:51:03 | 2019-05-18T06:51:03 | 187,324,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 7 17:38:41 2018
@author: Tan Zhijie
"""
import numpy as np
import myFunction as mf
import tensorflow as tf
import matplotlib.pyplot as plt
# 生成几个随机二值图进行傅里叶变换
M = 1
N = 64
m = 2000
n = M*N
Es = np.zeros((m,M,N))
Ir = np.zeros(np.shape(Es))
for i in ... | [
"="
] | = |
f47ce709574d8f6f0b2c6c34e551d32cd278a480 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/account/wizard/account_report_common.py | da1be81acd79cea6ed6fb59206f46c531281111e | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # -*- coding: utf-8 -*-
from gerp import api, fields, models, _
class AccountCommonReport(models.TransientModel):
_name = "account.common.report"
_description = "Account Common Report"
company_id = fields.Many2one('res.company', string='Company', readonly=True, default=lambda self: self.env.user.company... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
081a6467862d8313dc76b52f240463d6543170aa | e1092274408656117bc00252bc761e3609ec437f | /python/paddle/distributed/auto_parallel/operators/dist_transpose.py | 8b40524e47315260d17e38f12bb95b5d93df39fb | [
"Apache-2.0"
] | permissive | xiegegege/Paddle | 92822623e4d7fe0263503f11b63fb22610bf2773 | df1d04ca0031da2d701f314f1c98afdbb107b1b5 | refs/heads/develop | 2022-01-13T08:34:09.835700 | 2021-12-30T07:06:03 | 2021-12-30T07:06:03 | 226,800,733 | 0 | 0 | Apache-2.0 | 2019-12-09T06:28:40 | 2019-12-09T06:28:39 | null | UTF-8 | Python | false | false | 4,337 | py | # Copyright (c) 2021 PaddlePaddle Authors. 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 appli... | [
"noreply@github.com"
] | xiegegege.noreply@github.com |
a64a16ccd106e89067e9f9d78718ab8be8dfd26c | 3e6dffad73b8d5024024b52b044c57a05e7e9655 | /assets/2020-01-18/zoogle/zdocs/migrations/0001_initial.py | 63b30f2d3ceded209f620d30b12c629ee113f1c1 | [
"MIT"
] | permissive | dhilipsiva/talks | 07f33b162d8db6e20e3d5974576d71c273629187 | 05581b6b8fdd0598d4ffed4bf75204d718719ed9 | refs/heads/master | 2022-08-05T12:27:39.932612 | 2022-07-21T07:43:36 | 2022-07-21T07:43:36 | 68,734,565 | 5 | 3 | MIT | 2021-07-30T11:24:12 | 2016-09-20T17:05:44 | Python | UTF-8 | Python | false | false | 888 | py | # Generated by Django 3.0.2 on 2020-01-17 11:51
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Zdoc',
fields=[
('id', models.U... | [
"dhilipsiva@pm.me"
] | dhilipsiva@pm.me |
b5da8a85646bf5e85130cdcf3f31dc9794265c46 | 83b5efa0d25c805971acf309146ca817f37692f2 | /src/visualization/markov_1_RMSE_comparison.py | 14c0f41a0dba1953a3e91bac58d3f03811fc6e2d | [
"MIT"
] | permissive | VictorOnink/Wind-Mixing-Diffusion | 3d104014de9e5d169c26320cca039aaaa1f490e2 | 16ac459f010ea3fd845335737a9a1e3f913b6103 | refs/heads/main | 2023-04-11T09:24:54.988598 | 2022-03-02T15:39:25 | 2022-03-02T15:39:25 | 314,201,646 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | import matplotlib.pyplot as plt
import numpy as np
import analysis, settings
from visualization import utils_visualization as utils_v
def markov_1_RMSE_comparison(x_label=r'$u_{10}$ (m s$^{-1}$)', y_label=r'RMSE', fig_size=(16, 8),
ax_label_size=16, legend_size=11, wave_roughness=False):
... | [
"31734765+VictorOnink@users.noreply.github.com"
] | 31734765+VictorOnink@users.noreply.github.com |
0afd4eee10e14e1b6303f505244a18b388f4e105 | 20132d827a96afa4f33da2424dbb52f58f01a844 | /Hash/Lessons42579/gamjapark_solution.py | bf234183778a0c3d46a8bfacfae6c1483158d56c | [
"MIT"
] | permissive | StudyForCoding/Programmers | 270cddd6e9dcfbad2916fbae7ae6f127844b64bd | bb520ba2cc188af932a222c76b9a508e3567f7f8 | refs/heads/master | 2022-07-16T03:00:25.227522 | 2020-05-21T11:32:18 | 2020-05-21T11:32:18 | 265,508,921 | 0 | 0 | MIT | 2020-05-21T11:32:19 | 2020-05-20T09:02:31 | Python | UTF-8 | Python | false | false | 965 | py | def solution(genres, plays):
answer = []
genre = dict()
for g in genres:
genre[g] = 0
PlayLength = len(plays)
play = [0 for _ in range(PlayLength)]
i = 0
for p, g in zip(plays,genres) :
play[i] = {g:p}
i += 1
for p in play:
genre[li... | [
"gojang4@gmail.com"
] | gojang4@gmail.com |
dbd9fccd7ac5204f453bf57235a36d02f7ee7daa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_342/ch7_2020_09_09_12_13_31_428073.py | 8f23596b9f6828be09ba337736b27df39a7b4582 | [] | 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 | 135 | py | def calcula_area_do_triangulo(b,h):
area_triangulo=((b*h)/2)
return area_do_triangulo
base=10
altura=5
print(base,altura)
| [
"you@example.com"
] | you@example.com |
0885fc81f9c934a44e70c6659f760daee032544c | 1a07ef7e046c6cc278cfbd2e3d2e15b03d9e11b5 | /collections-namedtuple.py | 56c2e6ab87774041da0f213182dfd47b551c928d | [] | no_license | tjguk/lightning-collections | 273b7da18ad6cf225186fb074685ad670d59bab1 | 6e78a2afbf880d611af7ebe52c8d764bf400b245 | refs/heads/master | 2020-06-02T10:26:17.518183 | 2012-09-06T12:42:35 | 2012-09-06T12:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | import os, sys
from collections import namedtuple
import csv
with open("files.csv", "rb") as f:
reader = csv.reader(f)
fields = reader.next()
Row = namedtuple("Row", fields)
files = [Row(*row) for row in reader]
for f in files[:10]:
print f
| [
"mail@timgolden.me.uk"
] | mail@timgolden.me.uk |
ac76c3ad644fa22d248fc653a359b84f9b4c9d09 | 434b9b85bb901a4e50977e14a74aa4592b583ea2 | /old/config/share/databases/defaultdb/lenny/postgresql_server/script-config | f29b1fe4c02ca77a804fc4f94c0dbd57897f5473 | [] | no_license | umeboshi2/paella | 12dd9f4785588cd501d7916171a5179b7c29bb31 | df4cf032a100ea1c109bcf02b1c74bb217bc84c6 | refs/heads/master | 2021-01-25T12:07:20.785787 | 2015-06-02T16:03:30 | 2015-06-02T16:03:30 | 7,497,284 | 5 | 3 | null | 2015-01-23T22:25:19 | 2013-01-08T07:11:58 | Python | UTF-8 | Python | false | false | 4,911 | #!/usr/bin/python
import sys
from useless.base.path import path
from paella.installer.toolkit import InstallerTools
print "config script for postgresql_server"
it = InstallerTools()
env = it.env()
recreate_template1_instructions="""UPDATE pg_database SET datallowconn = TRUE where datname = 'template0';
\c tem... | [
"umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f"
] | umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f | |
6fbc0d258e0586e2a8a11eadc79b68c6fd0decf4 | b2ccb163ea78887c32c9ce7e4513ae9db577e3cf | /Machine Learning A-Z/Part 7 - Natural Language Processing/Section 36 - Natural Language Processing/runstep3.py | 6a33dd541bda3329bc92aa552e7c08a366ff6589 | [] | no_license | Ukabix/machine-learning | f5966fec211d140e1297a2364789444f464a7caa | 0f80ff342cf186803320084bcc4a5e0e73d1fe8f | refs/heads/master | 2021-11-08T07:35:43.515249 | 2021-10-26T10:00:03 | 2021-10-26T10:00:03 | 213,165,560 | 0 | 0 | null | 2019-10-08T09:46:40 | 2019-10-06T12:36:05 | Python | UTF-8 | Python | false | false | 847 | py | # NLP - Bag of words
# Natural Language Processing
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Restaurant_Reviews.tsv', delimiter = '\t', quoting = 3) # tsv specific, quiting skips ""
# cleaning the texts
# stemming
... | [
"54454097+Ukabix@users.noreply.github.com"
] | 54454097+Ukabix@users.noreply.github.com |
eeb6e3d020373099a4465df961980ece301619ae | 11771f5dd90a74d5c76765f27f0d9a9cb044f57b | /route/user_setting_top_menu.py | b9016c93c76dfbf472686e9b9939945095559130 | [
"BSD-3-Clause"
] | permissive | openNAMU/openNAMU | cc031ea848ac6d829ad243fcf59da26adf0f0814 | 868107e4ef53e4e78af15c590673b78ee385baa5 | refs/heads/beta | 2023-08-24T10:20:00.245680 | 2023-08-23T14:09:53 | 2023-08-23T14:09:53 | 78,184,261 | 86 | 75 | BSD-3-Clause | 2023-09-13T21:36:03 | 2017-01-06T07:22:10 | Python | UTF-8 | Python | false | false | 2,222 | py | from .tool.func import *
def user_setting_top_menu():
with get_db_connect() as conn:
curs = conn.cursor()
ip = ip_check()
if ban_check(ip) == 1:
return re_error('/ban')
if flask.request.method == 'POST':
curs.execute(db_change("select name from othe... | [
"min08101@naver.com"
] | min08101@naver.com |
ff8d99be9ba8504e548a98344c65a23d7a5cdb13 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch35_2020_04_10_18_41_08_169350.py | ac2467fe93019c432612c8377d076ebdb0ddf1f0 | [] | 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 | 192 | py | x = int(input('numero: '))
soma = 0
y = True
while y:
if x != 0:
soma = soma + x
x = int(input('numero: '))
y = True
elif x == 0:
y = False
print (soma) | [
"you@example.com"
] | you@example.com |
f8f02a246f4d5c420abe71734d426e5f77389c3b | bb5b63774924abe86c2cb0d8a09795fcf1a4d822 | /chat/views.py | 0b613a45f48e1e833992141c24ab0fda3260f81c | [] | no_license | IdenTiclla/realtime_chat_app | 769bf432e993ee79cb93bd54489305db3526f4d5 | d2a5187bb9f257c5e8fefe6735d23e5d0eec64e6 | refs/heads/master | 2023-06-23T17:47:41.766605 | 2021-07-21T21:00:25 | 2021-07-21T21:00:25 | 387,920,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | from typing import List
from django.shortcuts import render, redirect
from chat.models import Room, Message
from django.http import HttpResponse, JsonResponse
# Create your views here.
def home(request):
return render(request, 'home.html')
def room(request, room):
username = request.GET['username']
room... | [
"iden.ticlla@gmail.com"
] | iden.ticlla@gmail.com |
2728b2991bd08e88147fbdd4f649c902775aeb96 | 48c65330f577d11cedb29fd970aee35788ab72c6 | /ctrl_api_magento2_tierprice__upload.py | 49630511be6a3891ec8208159908d6b16d1bc9d4 | [] | no_license | yeboyebo/elganso_sync | 309ecbaba3127493abe001cd1704cc7098234baa | 66f033a0e27a05c1fc6704ec6ba2bd474d204b7e | refs/heads/master | 2023-07-22T00:17:48.201252 | 2023-07-19T07:48:40 | 2023-07-19T07:48:40 | 173,096,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import json
from django.http import HttpResponse
from sync.tasks import task_manager
# @class_declaration interna_upload #
class interna_upload():
pass
# @class_declaration elganso_sync_upload #
from models.flsyncppal import flsyncppal_def as syncppal
class elganso_sync_upload(interna_upload):
@staticm... | [
"jesus.yeboyebo@gmail.com"
] | jesus.yeboyebo@gmail.com |
d206f151b94adc10fe4c49e4dbcce4e98915b17d | b01f25b447d5ec3d6bc08380ae2601d5badb6af3 | /sortbypower.py | 915263174c405422441a673ddfc3037fb3ddf3eb | [] | no_license | SurajPatil314/Leetcode-problems | 0b05faab17214437a599d846dd1c9a7ea82b9c4c | 9201a87246842855281c90a9705f83fce24d1137 | refs/heads/master | 2021-09-05T02:20:05.274438 | 2021-08-09T21:24:05 | 2021-08-09T21:24:05 | 203,467,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | '''
The power of an integer x is defined as the number of steps needed to transform x into 1 using the following steps:
if x is even then x = x / 2
if x is odd then x = 3 * x + 1
For example, the power of x = 3 is 7 because 3 needs 7 steps to become 1 (3 --> 10 --> 5 --> 16 --> 8 --> 4 --> 2 --> 1).
Given three integ... | [
"spatil2@umbc.edu"
] | spatil2@umbc.edu |
7e6bc2f7d0f3a1bc0d8311b35964e5b1f1bbad93 | cc632d66ccceb5f7bd739553cdb4054a0f1c0035 | /account/migrations/0001_initial.py | eee939a7d781d678f814c0532bd7e242beb8fde4 | [] | no_license | raimbaev223/django-by-example__bookmarks | b3b197c75906d0e49c495f5d8511517ddef62e08 | 59c4b35f5c739b824bd3e8073993a81b3a4e8845 | refs/heads/master | 2023-03-19T10:39:13.003427 | 2021-03-18T06:45:07 | 2021-03-18T06:45:07 | 347,860,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # Generated by Django 3.1.7 on 2021-03-15 05:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"raimbaev.223@gmail.com"
] | raimbaev.223@gmail.com |
0765de0d02b8ed5de3c97d6966c417566f8a965b | 11bb0cbe6de2a0a4e94fc0ba610f61894d5593a1 | /VBS_Zgamma/RunII2018/Ntuples_2018/PKUTreeMaker/test/Zcrab/crab3_analysisZA.py | 6048c5a01d4c8023c1caecfb688a9c6e01a15f5d | [] | no_license | AnYpku/PKU-Cluster | 0dc4a88445aeb3ca239b2d7d7f796c6a67f3f69c | f9ffbcb7988053f4618fd015c1bb656d92ff51c6 | refs/heads/master | 2022-11-01T23:46:59.442037 | 2022-10-21T06:37:43 | 2022-10-21T06:37:43 | 188,202,345 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'Z-ZA_smearing'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Autumn18_V8_MC_L1FastJet_AK4PFchs.txt','A... | [
"ying.an@cern.ch"
] | ying.an@cern.ch |
be2c6b067ca851d5e4016d68def182a7dd5a0109 | 83b67a0800ceb5d5828c8e2011ff31b5faa311f8 | /experiments/save_exp.py | 47f9c2c3deb37a6f84566cdb9566403e8279cbbc | [] | no_license | xKHUNx/scatnet_learn | 77d89da4025f9c3cdbe74c957cf2a3e8626e3a01 | 9b2efbc9764118b58146950320215d33b6dc3240 | refs/heads/master | 2022-03-29T18:42:49.644481 | 2020-01-15T13:17:21 | 2020-01-15T13:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # Fergal Cotter
#
# Future modules
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import os
import time
import git
import shutil
TEMPLATE = """Invariant Layer Experiment
==========================
This experiment was run on {day} at {time}.
T... | [
"fbcotter90@gmail.com"
] | fbcotter90@gmail.com |
de06d49e0d61870db7688cf2ef395cb2ffcc3935 | 81026fb32d5fe66e291c824f8bb8e251d6ce56d5 | /04 Functions/using_math.py | 32fbfddf7efc078860cced164909527f9c0badc5 | [] | no_license | rifqirosyidi/coding-python | b1e148d1787d741cdc0ce2c36dd13ff6b8d2c17b | 0d98d55d0aaf2cca4129f1b98365a5866eb28dd2 | refs/heads/master | 2020-08-11T12:51:57.567318 | 2019-10-29T15:38:14 | 2019-10-29T15:38:14 | 214,567,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import math
def get_luas_bidang(value):
bidang = value.lower()
if bidang == "segitiga":
bidang_segitiga()
elif bidang == "segiempat":
bidang_segiempat()
elif bidang == "lingkaran":
bidang_lingkaran()
else:
print("Hanya Menangani Segitiga, Lingkaran dan Segiempat")
... | [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
0792882963b6c69117dab0d94d597d48eff39ae2 | be9e32a9182d16fe92d937f5965a2a3a3ec11dc8 | /bundler.py | b6d11c6deacf7a9dd8756f4b1a0058978e5e60df | [
"ISC"
] | permissive | theexiled1/CageTheUnicorn | 1a649f974298109d68e4af3401976855ddf98c83 | e695a2d9660eed3bdde4909f755c52d66beef7da | refs/heads/master | 2020-12-03T11:59:29.995881 | 2017-08-21T16:43:20 | 2017-08-21T16:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import struct, sys
from glob import glob
def main(dumpdir, mainaddr, wkcaddr):
mainaddr = int(mainaddr.replace('0x', ''), 16)
wkcaddr = int(wkcaddr.replace('0x', ''), 16)
with file('membundle.bin', 'wb') as fp:
files = glob('%s/*.bin' % dumpdir)
fp.write(struct.pack('<IQQ', len(files), mainaddr, wkcaddr))
fo... | [
"cody.brocious@gmail.com"
] | cody.brocious@gmail.com |
8a555b206e436193b34566826633625c548602f5 | 4cdf99ed3fd91f2406fe908fff77284fbc2cd3c3 | /setup.py | 2c5bf3aad0abc71d2d5317b265460620b0199da7 | [
"MIT"
] | permissive | shinroo/mocr | cb4173d22413b9ba7e140118832e9ce6aac2da09 | 5d33a812172b87d126bf3f7de0238b0919c2ab86 | refs/heads/master | 2020-04-12T00:34:45.462919 | 2018-12-09T20:50:00 | 2018-12-09T20:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function
import os
import re
import codecs
from setuptools import setup, find_packages
cwd = os.path.abspath(os.path.dirname(__file__))
def read(filename):
with codecs.open(os.path.join(cwd, filename), 'rb', 'utf-8') as ... | [
"abdullahselek@gmail.com"
] | abdullahselek@gmail.com |
d2698bcccc58c5147cae9d2d59f3b99c7942463e | f7ed942c685bd0e77eb207b901ccae78b1844cfc | /three_sum.py | 4b5d927f83a2e27455519b1b6deaceb43c3a115e | [] | no_license | axu4github/leetcode.answers | beeeec30e2958a9fb5727fe1f77e5e919655becc | d2dd4a211a2c380f9816e0454c1a8c817545c1d7 | refs/heads/master | 2020-03-27T07:15:46.179010 | 2020-01-08T13:29:21 | 2020-01-08T13:29:21 | 146,176,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | # coding=utf-8
class Solution(object):
"""
15. 三数之和
(https://leetcode-cn.com/problems/3sum/description/)
给定一个包含 n 个整数的数组 nums,
判断 nums 中是否存在三个元素 a,b,c ,
使得 a + b + c = 0 ?找出所有满足条件且不重复的三元组。
注意:答案中不可以包含重复的三元组。
例如, 给定数组 nums = [-1, 0, 1, 2, -1, -4],
满足要求的三元组集合为:
[
[-1, ... | [
"axu.home@gmail.com"
] | axu.home@gmail.com |
ee3d1185c32a04865b9ad8088059e235a5492772 | eee5fc5e9e1bd9ababc9cf8ccb8add19c9219ca3 | /ABC/151/d_bfs.py | 21951db67400789ba2fc6f7fa0e087d70d5afb84 | [] | no_license | matatabinoneko/Atcoder | 31aa0114bde28ab1cf528feb86d1e70d54622d84 | 07cc54894b5bcf9bcb43e57a67f2a0cbb2714867 | refs/heads/master | 2021-11-13T04:39:13.824438 | 2021-10-31T01:42:52 | 2021-10-31T01:42:52 | 196,823,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | import queue
import copy
def main():
h,w = map(int,input().split())
maze = []
maze.append(['#' for i in range(w+2)])
for i in range(h):
tmp = input()
tmp = list('#' + tmp + '#')
maze.append(tmp)
maze.append(['#' for i in range(w+2)])
# print(maze)
dx_ = [0,1,0,-1]
... | [
"matatabinoneko0721@gmail.com"
] | matatabinoneko0721@gmail.com |
ae82513226f91ab38fa6ae76d5f8bc57af2d9873 | 6e47be4e22ab76a8ddd7e18c89f5dc4f18539744 | /venv/openshift/lib/python3.6/site-packages/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py | ef20d19c36e713bc035972b2b71b0b4bad61a1a5 | [] | no_license | georgi-mobi/redhat_ocp4.5_training | 21236bb19d04a469c95a8f135188d3d1ae473764 | 2ccaa90e40dbbf8a18f668a5a7b0d5bfaa1db225 | refs/heads/main | 2023-03-30T10:47:08.687074 | 2021-04-01T05:25:49 | 2021-04-01T05:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,378 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.11
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import r... | [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
e1f003b7a5710057b5f83fb6a06df9cb3bdbece6 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_166/for/fabio03_questao07.py | cd4394adf0a9e02d7f4115cc0e5c3e96b425cfb6 | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def programa():
numero = int(input('Número: '))
limite = numero + 1
soma = 0
for i in range(1, limite):
soma = soma + i
print('Resultado:', soma)
programa()
| [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
6dcf58f3fdc4af5e1c6f72c92a3d68ba9e34b60c | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/04 Functions/Exercises/09_Factorial_Division.py | 7a8f98167d64d2071b173c43e8018a4076dbb28f | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | def factorial(num1, num2):
first_factorial = first_number
second_factorial = second_number
for i in range(1, num1):
first_factorial *= (first_number - i)
for i in range(1, num2):
second_factorial *= (second_number - i)
return first_factorial / second_factorial
first_numbe... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
15c17f24a24cf077d10cb8262277e8ae5cbf8997 | d696454b3e3473a45e0bb486e93f3742493c86a0 | /music/views/playlist.py | 259f2b90dfa81dcf5dc5cea323f74b53d55c7dde | [] | no_license | jmg/music_camping | 430d04e1c8dec28816975daa8fa5375f2eb02435 | 72816647f70bb0afca5899bad5d1cfbaef4ff889 | refs/heads/master | 2021-06-20T01:57:30.540852 | 2017-01-04T05:11:28 | 2017-01-04T05:11:28 | 40,454,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | from base import BaseView
from music.services.song import SongService
from music.services.playlist import PlayListService
from music.models import PlayList, Song, PlayListSong
from django.conf import settings
import threading
class PlayingView(BaseView):
url = r"^playlist$"
def get(self, *args, **kwrags):
... | [
"jmg.utn@gmail.com"
] | jmg.utn@gmail.com |
f45a472394de6a4dc8569170a4d0b8cb76b5f712 | 8a5f8dfdd038590a579d14a84558cce2bb930b22 | /AICamera/app/src/main/cpp/caffe2/python/scope.py | 7aa881c0ca815c4f51643bb33d182b18b967b95a | [
"MIT"
] | permissive | blackxer/AICamera | ebc94c663e6f2ea6e8c81290a64bce4e7d369ed9 | 4f0a6a09a2288da2ec7140744b5c2862df114c78 | refs/heads/master | 2020-08-11T19:53:42.388828 | 2019-10-16T01:19:59 | 2019-10-16T01:19:59 | 214,616,987 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | ## @package scope
# Module caffe2.python.scope
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import contextlib
import threading
from past.builtins import basestring
from caffe2.proto import caffe2_pb2
... | [
"zhangwei@egova.com.cn"
] | zhangwei@egova.com.cn |
32721484c00e4274922c0d5dce36abc0b6575e1b | d1c67f2031d657902acef4411877d75b992eab91 | /swagger_client/models/team_routing_rule.py | 91124b752ab07d247307aaaa3c98962cbd641c5d | [] | no_license | Certn/opsgenie-python | c6e6a7f42394499e5224d679cc9a449042fcf9c3 | bd5f402f97d591e4082b38c938cbabca4cf29787 | refs/heads/master | 2023-01-01T10:45:13.132455 | 2020-10-27T17:40:01 | 2020-10-27T17:40:01 | 307,769,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,731 | py | # coding: utf-8
"""
Opsgenie REST API
Opsgenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class TeamRoutingRule(object):
"""NOTE: This class is auto... | [
"john@oram.ca"
] | john@oram.ca |
b962777592420ddaec641e394930ccb7f4714f4b | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /Microsoft-budgetCombination.py | 7c5b8974df0f7b5706643a7f2353cba23ce79435 | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# 给你一个menu,是一个map,key是菜名,value是价格,比如
# "apple": 3.25,
# "chicken": 4.55,
# "cake":10.85,
#
# 然后给你一个budget,比如7.80.
# 要你给出所有菜名的combination,总价要正好符合budget,次序不重要,但不能有重复。
# 比如,如果budget是7.80,他就要求结果是[["apple", "chicken"]],不能是[["apple", "chicken"],["chicken","apple"]]
# 比如,如果budget是6.50,他就要求结果是[["apple",... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
f343e24f6f579b9ecca603705a2a764f1b6153c7 | 52c5b78f3afab4573926dd6d0a49e10ee1a77e26 | /myproject/boards/models.py | be05814d747d51aef868e0b17217166717b84237 | [] | no_license | zime-py/eight | d9eefc28a00a8411f3a58b0e931807492bc5bfc2 | 2138b2a8884dea299654ff7c41060c72f183486c | refs/heads/master | 2023-01-11T23:03:53.062441 | 2020-11-14T14:43:04 | 2020-11-14T14:43:04 | 312,831,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | from django.db import models
class Do(models.Model):
name = models.CharField(max_length=100)
roll = models.CharField(max_length=100) #ForeignKey('auth.user',on_delete=models.CASCADE,)
def __str__(self):
return self.name
class Did(models.Model):
result = models.CharField(max_length=100) #Fore... | [
"mahmudhossain836@gmail.com"
] | mahmudhossain836@gmail.com |
e1b381d9aa05348e59d8373f067baaca3e76ac38 | 951d62ecd155103fa77efaa68fb7611ac4b9af4b | /testtask/views.py | 000f7b29ff9b717ae435c4111fc440ba7ef938da | [] | no_license | darkdkl/stdvor_dev | 352cb46e45d943c3b31d430bd84d684979456d7e | c4b9dc8b691f11cf15dda565214036367141765a | refs/heads/master | 2021-09-26T11:14:57.299457 | 2020-01-15T08:08:31 | 2020-01-15T08:08:31 | 234,028,893 | 0 | 0 | null | 2021-09-22T18:23:23 | 2020-01-15T07:59:51 | Python | UTF-8 | Python | false | false | 2,290 | py | from django.shortcuts import render
from django.http import JsonResponse
from testtask.models import Order, Сontact, Product
from django.views.generic import View
from django.views.decorators.csrf import csrf_exempt
from django.utils.decorators import method_decorator
from django.http import QueryDict
# Create your vi... | [
"dark.dmake@gmail.com"
] | dark.dmake@gmail.com |
2c600cd8520114fcf732b05492d70efb49e64f23 | 58af092b07edb8d34d8d03886d6bd56d5c34af42 | /english_munchers_dj/telegram_bot/migrations/0001_initial.py | 366e348ec9e185f732a5237448ed2d8c76a0051d | [] | no_license | Vido/freela-em | ced9f79cecc247bd1a42aae744a32155f07d9124 | 78d9ea732d6d869af5bdf78666e41078d7777e0b | refs/heads/master | 2022-12-08T19:27:21.186061 | 2019-03-04T21:54:29 | 2019-03-04T21:54:29 | 110,721,168 | 0 | 6 | null | 2022-12-07T23:49:35 | 2017-11-14T17:15:46 | JavaScript | UTF-8 | Python | false | false | 620 | py | # Generated by Django 2.0 on 2017-12-11 14:40
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UpdateResponse',
... | [
"vido@usp.br"
] | vido@usp.br |
c910db3bd9b777a4af8a0435d71e2fe3a8998987 | be02fd6adb789e8b5f5c8f77b2635b71b1b24a52 | /prob.py | 7e69c9913f33a9eba9130d35476f74ca184f195b | [] | no_license | pavlin-policar/rosalind | 05cd66bec512e7b3ca414effd00e4d1b4ffd563a | d9c8b2ab20e950ef543964fc5e1c47bbf21b8362 | refs/heads/master | 2021-11-25T08:20:28.083661 | 2021-11-07T17:28:50 | 2021-11-07T17:30:50 | 71,159,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import operator
from functools import reduce
from math import log10
if __name__ == '__main__':
sequence = input()
probabilites = map(float, input().split())
prob = lambda l, p: p / 2 if l in ('C', 'G') else (1 - p) / 2
logs = [log10(reduce(operator.mul, [prob(l, p) for l in sequence], 1))
... | [
"pavlin.g.p@gmail.com"
] | pavlin.g.p@gmail.com |
d98628b7b3a81ff0fe9d3ae51d115f5d3ded0262 | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/bin/python-config | f60d09bc69d85bc162d02850a5fd49608851224d | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 2,403 | #!/home/mymy/Desktop/Python_agility/cours/Hugo/Lessons_RestAPI/Lesson_RestAPI/djangoenv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix... | [
"jeremyrich@free.fr"
] | jeremyrich@free.fr | |
cae0e6ea55aba796f6f8be2d75ee40d5756d5a32 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /sLb2Fs6aGRQBYAXqQ_11.py | 87b06555ae8f879dd67c342359ad561108009eb4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | """
Given a Rubik's Cube with a side length of `n`, return the number of
individual stickers that are needed to cover the whole cube.

* The Rubik's cube of side length `1` has **6 stickers**.
* The Rubik's cube of side length ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cdbc0a4ed1d136f416ba29f80d6ac70a7f07cf3b | 5b71e2952f34dd3bb20148874d952fee06d31857 | /app/mf/crud/migrations/0068_auto_20210130_1317.py | dd034f797a90346ddce19c87f0439ee92d564331 | [] | no_license | isela1998/facebook | a937917cddb9ef043dd6014efc44d59d034102b1 | a0f2f146eb602b45c951995a5cb44409426250c5 | refs/heads/master | 2023-07-18T02:14:50.293774 | 2021-08-28T03:26:06 | 2021-08-28T03:26:06 | 400,613,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # Generated by Django 3.1.1 on 2021-01-30 17:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0067_auto_20210130_1104'),
]
operations = [
migrations.RemoveField(
model_name='sale',
name='type_exchange',... | [
"infantefernandezisela@gmail.com"
] | infantefernandezisela@gmail.com |
a04fd2d3b518817724d9cab376f37c2b71f9a3be | 6c40a17cee8777dbf4e0b6d85e624eacefd67a69 | /ez2pay/models/permission.py | 4d79a47c58bd77bd06ab42d129503eadcdf61164 | [
"MIT"
] | permissive | fangpenlin/ez2pay | ae5125c8c05bad0178d7c8bb0f0c256489e0127a | 13ce4782d3c673a0cb07003a826a10bdfbe6a9ad | refs/heads/master | 2021-05-28T06:01:56.627261 | 2013-12-03T01:46:23 | 2013-12-03T01:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from __future__ import unicode_literals
from . import tables
from .base import BaseTableModel
class PermissionModel(BaseTableModel):
"""Permission data model
"""
TABLE = tables.Permission
def get_by_name(self, permission_name):
"""Get a permission by name
"""
... | [
"bornstub@gmail.com"
] | bornstub@gmail.com |
0b5493b2e903ebb798213959fd1101e12390742e | 9f5557fd6a1d809e7026e23d58f3da57a0c0cbcc | /vega/service/user_service.py | 82ae4a5a0971b198ec36c76d8d8a0e8f7daf8b9d | [] | no_license | biao111/learn_python2 | e5150b7bb7cdd0166330ff159d83a809ca9d81d7 | 60f8fc1f7da8ae22dae2314b55dbe669b404d95a | refs/heads/master | 2023-01-07T16:56:42.123504 | 2020-11-08T05:53:10 | 2020-11-08T05:53:10 | 310,993,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from db.user_dao import UserDao
class UserService:
__user_dao = UserDao()
#验证用户登录
def login(self,username,password):
result = self.__user_dao.login(username,password)
return result
#查询角色
def search_user_role(self,username):
role = self.__user_dao.search_user_role... | [
"18211149974@163.com"
] | 18211149974@163.com |
bce6b7949363087074d3daaff106c143744040a5 | aa81ba4d6ae20dee412acb24b5ee0eccb502767f | /venv/bin/jwk_create.py | 35c37f0a49523cc2709765191324b825386ec5fa | [] | no_license | CarlosGonzalezLuzardo/SECAS | 32c3e0b9c176333d2c20b7b3fed3adc9de8c0216 | 4455de4eb61fb4bddf6cfa8a4ce9e5f9f8e9d812 | refs/heads/master | 2020-03-14T11:11:33.922067 | 2018-06-14T10:54:14 | 2018-06-14T10:54:14 | 131,585,370 | 0 | 2 | null | 2018-05-08T13:51:43 | 2018-04-30T11:00:45 | Python | UTF-8 | Python | false | false | 1,300 | py | #!/home/alejandro/Proyectos/SECAS/Internals/derimanfranco/py-multifactor/venv/bin/python
import json
from Cryptodome.PublicKey import RSA
import argparse
import os
from jwkest.jwk import RSAKey
__author__ = 'rolandh'
def create_and_store_rsa_key_pair(name="pyoidc", path=".", size=1024):
key = RSA.generate(size)
... | [
"carlos.gonzalez@edosoft.es"
] | carlos.gonzalez@edosoft.es |
1f7e38df13d990b7710695bc820c7e9bb278fe64 | a554605ff97c7b688f457a8493d521d2c54101a3 | /scripts/ratatosk_run.py | 83c4c4149ac0757140b8531bb94696f183e417ec | [
"Apache-2.0"
] | permissive | SciLifeLab/ratatosk | 9c0c9b15cc0bf1c515bb5144f38ada3dd02e9610 | 4e9c9d8dc868b19a7c70eb7b326422c87bc3d7c0 | refs/heads/master | 2020-12-25T09:57:52.696398 | 2013-03-25T13:42:36 | 2013-03-25T13:42:36 | 8,794,985 | 0 | 0 | null | 2013-03-25T13:43:17 | 2013-03-15T08:36:17 | Python | UTF-8 | Python | false | false | 850 | py | import luigi
import os
import sys
import ratatosk.lib.align.bwa
import ratatosk.lib.tools.gatk
import ratatosk.lib.tools.samtools
import ratatosk.lib.tools.picard
from ratatosk.pipeline.haloplex import HaloPlex
from ratatosk.pipeline.align import AlignSeqcap
from ratatosk.pipeline import config_dict
if __name__ == "__... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
1fbde5a70e2caec3b5424736dc0badecdc100998 | 12ec7d731a465e43ad211235882e2939cc5c031d | /bills/views.py | b359ced2a2b590bdfc286341744e1b28bc9da6a3 | [] | no_license | munikarmanish/merojob-bill | 770101e3c42be46569f26037d5e012065aa94392 | 882dd2aeafd1030f38d2d679268607b48c6a84aa | refs/heads/master | 2021-01-19T05:41:44.926766 | 2017-01-15T05:27:09 | 2017-01-15T05:27:09 | 78,848,703 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views import generic
from clients.models import Client
from .forms import BillForm
from .models import Bill
class CreateView(LoginRequiredMixin, generic.edit.CreateView):
template_name = 'bills/bill_form.h... | [
"munikarmanish@gmail.com"
] | munikarmanish@gmail.com |
8d4f206ec3a0026c9b1da9c8a234299dde23340e | fb1ea456040a36037c3be87ffdc51dc3d8aaa7bb | /setup.py | 3e2e04ec60eb274e3400eb0d1b155cd61204cfe3 | [
"MIT"
] | permissive | rpatterson/python-main-wrapper | badfb894afe7980afb261bda9d3ce84af39e8a10 | eb549cee920bf144c4021632f7784b7d425b6c40 | refs/heads/master | 2023-09-05T04:26:53.052777 | 2021-09-21T18:45:00 | 2021-09-21T18:45:00 | 259,238,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """
main wrapper foundation or template, distribution/package metadata.
"""
import setuptools
with open("README.rst", "r") as readme:
LONG_DESCRIPTION = readme.read()
tests_require = ["six", 'contextlib2;python_version<"3"']
setuptools.setup(
name="main-wrapper",
author="Ross Patterson",
author_emai... | [
"me@rpatterson.net"
] | me@rpatterson.net |
f03ceb97b4ae1e32b9355c096ce23972956537e2 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py | 6254d388103c13c07088107f6e0a113ee9601b20 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 2,093 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.