blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
761c57a80836086c5ed0b5bcbd54fefd4d6c8445 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnupturn.py | a743e9d8831cf40e9c7b0efc2df87d57666f5cf1 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 236 | py | ii = [('KembFJ1.py', 1), ('CarlTFR.py', 5), ('LyttELD.py', 1), ('BackGNE.py', 5), ('HowiWRL2.py', 2), ('EdgeMHT.py', 1), ('KembFJ2.py', 1), ('AinsWRR2.py', 1), ('RogeSIP.py', 2), ('MartHRW2.py', 4), ('NortSTC.py', 3), ('WordWYR.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
d2a8bb6f91e9567c4840e2a8a2573eb6babfd6be | a4cdb382d1f6e09e5250bb0a0758399d3e9a51af | /pyqtTest/QDialogTest.py | 8b7b12625c23aef7de2db55dd526e204fa52e5d6 | [] | no_license | lukoou3/pythonTest | 051229851b78498eafe514d229b5bd4560640c54 | 75cce072b0b7af418b540dc12ff8d123d137ba5c | refs/heads/master | 2020-04-14T23:28:01.017981 | 2019-03-20T14:59:07 | 2019-03-20T14:59:07 | 164,203,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,060 | py | from PyQt5.QtWidgets import QDialog, QApplication,QWidget, QLineEdit, QLabel, QPushButton, QHBoxLayout, QVBoxLayout, QMessageBox,QInputDialog
from PyQt5.QtCore import Qt, QEvent, QRegExp, QObject
from PyQt5.QtGui import QKeyEvent, QKeySequence, QRegExpValidator
import sys
class PasswdDialog(QDialog):
def __init__(... | [
"18638489474@163.com"
] | 18638489474@163.com |
c82f9652e81fe013195459047aa8ded23abfe217 | 63efb13760eabfc09c288d29264adfff0da6622a | /LeetCode/76_minimum_window_substring.py | fa7d01019594bf2231b3ee6e636df8eafc691ab0 | [] | no_license | KKosukeee/CodingQuestions | 59f0002ace13ebbe3a4a36976277bcb0d3766dbd | 01fe893ba2e37c9bda79e3081c556698f0b6d2f0 | refs/heads/master | 2020-05-16T04:22:31.578974 | 2020-03-30T00:27:51 | 2020-03-30T00:27:51 | 182,775,403 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | """
Solution for 76. Minimum Window Substring
https://leetcode.com/problems/minimum-window-substring/
"""
from collections import Counter
class Solution:
"""
Runtime: 156 ms, faster than 49.34% of Python3 online submissions for Minimum Window Substring.
Memory Usage: 13.3 MB, less than 17.58% of Python3 on... | [
"kousuke.newlife@gmail.com"
] | kousuke.newlife@gmail.com |
94a4ba4b454bdfb2e14e92fd86854c7270bcb9a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02823/s884950582.py | 382f8de2c4d1aaa73a2301eb89ac875b8c940d4f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | N, A, B = map(int, input().split())
ab = B - A
if ab % 2 == 1:
print(min(A - 1, N - B) + 1 + (B - A - 1) // 2)
else:
print(abs((A + B) // 2 - A))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
77e8879b338837a14672ff8761a1f0482875d6cb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s469519299.py | b96543fb5f2b096ceb444dc600d90ffe574e8436 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | MAX_A = 10**6 + 1
is_prim = [True] * MAX_A
is_prim[0] = is_prim[1] = False
for i in range(2, MAX_A):
if not is_prim[i]: continue
for j in range(i+i, MAX_A, i): is_prim[j] = False
def solve():
C = [0] * MAX_A
for a in A: C[a] += 1
pairwise = True
for p in [i for i in range(MAX_A) if is_prim[i]]:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3fdf0eb5b52be0fc6fdd2fab2f45859b6e0f847f | f766e673da95d497f55e1894f1fd0d596461334f | /shortened/views.py | da7fc66ec707c9bfd868685c2f90298f76006c50 | [] | no_license | niedzwiec/shorted_url | d555c1f1678069bca71340c383bd2f64dce5644a | 51bf28ce2d125697f8535c9dbb498e2b6cbaca63 | refs/heads/master | 2023-04-09T10:12:10.390680 | 2021-04-09T09:47:53 | 2021-04-09T09:47:53 | 355,860,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from django.shortcuts import redirect, get_object_or_404
from django.urls import reverse_lazy
from django.views import View
from django.views.generic import CreateView, DetailView
from shortened.models import UrlKeeper
class DetailUrlView(DetailView):
model = UrlKeeper
template_name = 'detail.html'
class C... | [
"sbbogus@gmail.com"
] | sbbogus@gmail.com |
e88cb059445d5e7fdb909c72cb1f450cb4ec86de | e42e8ebbdba3efab49035e459bbf6ab576f75440 | /decrees/filing.py | 97140ca0501cae3ea1e9e44ffd1152b503ecf7a1 | [
"Apache-2.0"
] | permissive | WithPrecedent/decrees | 4c9201f02e0fd27ccd3da1922e9554b6c5d0a028 | 63b72b7a2f7232824d1bdd6c0de88e30f75f1f18 | refs/heads/main | 2023-08-26T11:03:10.399343 | 2021-10-27T19:03:20 | 2021-10-27T19:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,332 | py | """
options: base configuration and file management classes for denovo projects
Corey Rayburn Yung <coreyrayburnyung@gmail.com>
Copyright 2021, Corey Rayburn Yung
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.... | [
"coreyrayburnyung@gmail.com"
] | coreyrayburnyung@gmail.com |
c9819ca7da4c4e0e91053ab838c9c3cc79fc6740 | db7986f557b23d44e17566bb2421b987e05537fb | /advection/fdadvect_implicit.py | a56b76a4673ddd24fdf4e9aeca0544a411a1b296 | [
"BSD-3-Clause"
] | permissive | slahabdellaoui/hydro_examples | 61cc486ed78aa60889ca7f658f18f0ee8852f4b8 | 0c683fc85da140d22cd818e8c81ce72310f46cad | refs/heads/master | 2020-06-12T23:39:38.340773 | 2016-10-25T19:36:11 | 2016-10-25T19:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | # first-order finite-difference implicit method for linear advection
#
# We are solving a_t + u a_x = 0
#
# The upwinded implicit update appears as:
#
# n+1 n+1 n
# -C a + (1 - C) a = a
# i-1 i i
#
# where C is the CFL number
#
# We use a periodic grid with N points, ... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
a0ea584693bccb232d091f3edbbfe86b8a33325b | 3435505aa0b760eddf175a9a8f62119952020380 | /wienerschnitzelgemeinschaft/src/shai/tunguz/22_train_sub_resxt50_4fld_kevin_rgb_oslog005.py | 272108ca58d7baede76096a9d362d793225897b7 | [
"MIT"
] | permissive | CellProfiling/HPA-competition-solutions | 2cc365b2be086eec382136856ebcf790d4eaabb9 | 547d53aaca148fdb5f4585526ad7364dfa47967d | refs/heads/master | 2022-12-16T16:58:15.578281 | 2020-07-09T23:04:55 | 2020-07-09T23:04:55 | 223,605,040 | 61 | 25 | MIT | 2022-11-22T04:37:30 | 2019-11-23T14:49:57 | Jupyter Notebook | UTF-8 | Python | false | false | 29,243 | py | from fastai.conv_learner import *
from fastai.dataset import *
from tensorboard_cb_old import *
import pandas as pd
import numpy as np
import os
from sklearn.metrics import f1_score
import scipy.optimize as opt
from random import shuffle
import pickle as pkl
import warnings
warnings.filterwarnings("ignore")
# =======... | [
"noreply@github.com"
] | CellProfiling.noreply@github.com |
7a9a721bd28d48fa78a5b7d146398922c7e750d3 | d98d80feb64bf1bede26f10c9f481ddd764bb5bb | /core/vendor/log.py | 44b2f1c4a656c60f1fbfa6f073e71ae8075e857f | [] | no_license | AndresMWeber/relative_package | c6ba52e92d9381e8da7c35d5b30b222ea6ce7dcd | 5742a225b7291080acb0bae5f7dc310428000181 | refs/heads/master | 2021-01-03T13:25:05.125486 | 2017-03-31T21:36:53 | 2017-03-31T21:36:53 | 86,857,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py |
class Log(object):
def __init__(self):
pass
| [
"andresmweber@gmail.com"
] | andresmweber@gmail.com |
198d4d886b9df6d142146891a9653c73b7fca57b | 830398bc5ae951b153ff695a40be7239742bc73e | /exercises/09_functions/task_9_2a.py | 01f44cdc345695cc1d5f5f5deeab5d7cf99adab9 | [] | no_license | dmikos/pyneng | ff67f1d617a97d73103a7785a7bf86140e7baa82 | 543fb0d9fc63a2afee45d2465af3a4c3966e4a86 | refs/heads/master | 2021-01-25T14:56:44.181140 | 2018-04-23T04:31:00 | 2018-04-23T04:31:00 | 123,739,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | # -*- coding: utf-8 -*-
'''
Задание 9.2a
Сделать копию скрипта задания 9.2
Изменить скрипт таким образом, чтобы функция возвращала не список команд, а словарь:
- ключи: имена интерфейсов, вида 'FastEthernet0/1'
- значения: список команд, который надо выполнить на этом интерфейсе
Проверить работу функции на п... | [
"dkostinov@gmail.com"
] | dkostinov@gmail.com |
e2efbb1654ab49106049097d62047efa67084226 | 8eef99280d8c821ac7ea8b275140e356f84bc7df | /Lab Exercise 12.9.2020/fraction-starter.py | 4ec7c63626e62f34051b80847dd95a8899c5b385 | [] | no_license | nmessa/Python-2020 | 7f609f383b6771bc77ea4b82be381beacb0f0fa0 | 8860a3563a89596becf897a2763a169be7f3027f | refs/heads/master | 2023-04-03T22:37:02.221375 | 2021-04-18T15:20:03 | 2021-04-18T15:20:03 | 269,480,165 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #Lab Exercise 12/9/2020 Problem 2 - Skeleton
#Author:
#fraction.py
#implementation of Fraction class
class Fraction:
def __init__(self, num, den):
#ADD CODE HERE
def reduce(self):
#ADD CODE HERE
def gcd(self, a, b):
#ADD CODE HERE
... | [
"noreply@github.com"
] | nmessa.noreply@github.com |
aee16be32fcad9186c4adc20cb2d210ba2e916fd | 318a3e867a27c5b9b2db40730994ef1204c408c7 | /gushiwen/view/__init__.py | 5e3f591c026255307b0a1891664baefe8fd0d849 | [] | no_license | mouday/gushiwen-py | dd9861cdca8a9a15fd4c2b0dfa32fe0130c4bcc9 | c978cc795c3164ce0be8f1746a277be913027330 | refs/heads/main | 2023-03-19T23:26:49.546496 | 2021-03-15T09:46:22 | 2021-03-15T09:46:22 | 347,906,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # -*- coding: utf-8 -*-
from .index import index_app
ROUTERS = {
'/': index_app
}
def register_blueprint(app):
# 注册路由
for router_url, router_app in ROUTERS.items():
app.register_blueprint(blueprint=router_app, url_prefix=router_url)
| [
"1940607002@qq.com"
] | 1940607002@qq.com |
3e827d5d419ee41b6eef811e12379344e9b603a0 | 46448e3a9d768776fccb6e681b7555e4e436759a | /backend/afaparla_20570/urls.py | 75fc700139b504657f5f20a3ebb582ef5452c7f2 | [] | no_license | crowdbotics-apps/afaparla-20570 | 8f6fccb4ad4d6ec56c98dd6ba87ac1e8606a5a30 | 013da7c47292a19a49666a245bde7df1109062cf | refs/heads/master | 2022-12-17T21:48:36.574309 | 2020-09-22T17:44:10 | 2020-09-22T17:44:10 | 297,726,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | """afaparla_20570 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4c6243fb5123cd722b846b863dee470d0d24e8ee | ef1989ac573384c32659ac21303293abee8a4e22 | /2021/17404.py | 46ffd3dfa4dd5cf9740c09616a1967fed0a455b6 | [] | no_license | Algorithm-P0/meanjung | f3605fd4e515d61d3aeedf420932a029b6037f00 | 028906eb7275485a5e739c10b8dda85dff63e341 | refs/heads/master | 2023-06-05T18:52:16.708158 | 2021-06-24T07:41:12 | 2021-06-24T07:41:12 | 262,729,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import sys
N = int(sys.stdin.readline())
RGB = [list(map(int, sys.stdin.readline().split())) for _ in range(N)]
firstRed = [[0]*3 for _ in range(N)]
MAX = 10000001
firstRed[0]=[RGB[0][0],MAX,MAX]
for i in range(1, N):
firstRed[i][0] = RGB[i][0]+min(firstRed[i-1][1], firstRed[i-1][2])
firstRed[i][1] = RGB[i][1]+... | [
"meanjunghong@naver.com"
] | meanjunghong@naver.com |
87207b70eb5a365b7a29d71f271ef9e9ee57889f | c6ed9aa97166d4778b89321b580af80c543bacc9 | /randoms/sumofgcdcontiguous.py | 06af12c7de7fd52a88b01887e8da6bd4c8d857b8 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 410 | py | def gcd(a, b):
if b == 0:
return a
return gcd(b, a % b)
if __name__ == "__main__":
n = int(input())
a = list(map(int, input().split()))
dp = [[0 for _ in range(n+1)] for _ in range(n+1)]
for i in range(n):
dp[1][i] = a[i]
for i in range(2, n+1):
for j in range(i-... | [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
cdba7b7e4796d29729b20e22f78565b3a1abcb5e | 52de8b0a910008e7fe49f1002e479943717741ca | /persistency/owners.py | 37dc3c030cf6fb89b4652c9d8a5cc8125332af7e | [] | no_license | gsuero/races-lab | 3f8b3243394759ebe410954ff9f0e7510b310342 | 2a5e3ed733e5283927a1185fef767ee2714c62d0 | refs/heads/master | 2021-05-27T01:52:18.775266 | 2012-05-22T02:40:29 | 2012-05-22T02:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | #!/usr/bin/env python
class Owner:
def __init__(self):
self.id = None
self.fullname = None
self.address = None
def get_id(self):
return self.id.encode('hex')
class OwnersPersistency:
def __init__(self, oracle):
self.__oracle = oracle
def create_owner(self):
... | [
"eigenein@gmail.com"
] | eigenein@gmail.com |
143ed7d408119cfcc88d0e2a8a4adb2aab958d29 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03759/s961745986.py | 7b4efa2994d03d6a07dc5068c164966254955de1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import sys
import os
def main():
if os.getenv("LOCAL"):
sys.stdin = open("input.txt", "r")
a, b, c = list(map(int, sys.stdin.readline().split()))
print('YES' if b - a == c - b else 'NO')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dfbc3a8bfd177f677fb02f9e12d564ca8927f3d9 | 349dadbf45b7c12a3fe41c5e0421c0488b679919 | /transformers/src/transformers/models/deberta_v2/configuration_deberta_v2.py | f7fbcd2dab63894d0039ebaed84bcaa13266d9e1 | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0"
] | permissive | salesforce/CodeRL | c772e408bac690527759f416ea22add4c97e5bec | 51db4ff983d5376e62b9e7eba150316a651c80d9 | refs/heads/main | 2023-08-18T18:38:02.740995 | 2022-11-18T16:14:28 | 2022-11-18T16:14:28 | 508,912,853 | 412 | 52 | BSD-3-Clause | 2023-08-31T07:51:27 | 2022-06-30T02:54:36 | Python | UTF-8 | Python | false | false | 7,042 | py | # coding=utf-8
# Copyright 2020, Microsoft and the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"hungle@salesforce.com"
] | hungle@salesforce.com |
55e4d50d7fcf7a02c78032ee3e98282e1b6b308f | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage3-model/pytz/zoneinfo/America/Edmonton.py | d6f32cbcf19cfd28f0e7d4eb9d8a3cd886b32a59 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,034 | py | '''tzinfo timezone information for America/Edmonton.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Edmonton(DstTzInfo):
'''America/Edmonton timezone definition. See datetime.tzinfo for details'''
zone = 'America... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
cbbbc613916d9e638d93d8ddf9f51b9251b79909 | 7e409f6490957f96a1ea17161a3b791256a2ec4f | /07 - Mengunakan URL Pada app/blog/views.py | a0182188c82be9e236619c2db36003f99a243d88 | [] | no_license | CuteCatCrying/Django | 9fb8fd06f4793ef754e6e3dfd63b9caad03317f8 | 563119a66c81bf57616f62855bc78f448204ba83 | refs/heads/master | 2022-04-02T14:13:23.700165 | 2020-02-05T09:34:46 | 2020-02-05T09:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return render(request, 'blog.html')
def recent(request):
return HttpResponse('<h1>Ini adalah recent post</h1>') | [
"zukronalviandy@gmail.com"
] | zukronalviandy@gmail.com |
391efbcd957a4033d026e09660001c5ceed14163 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/59702318e1089433368a69ed364f79583ee53bd1-<install>-fix.py | 8a08ba4dc999e7f5c9cd4921e9fcea8e27a1934e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,266 | py | def install(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos, installroot='/', allow_downgrade=False):
pkgs = []
downgrade_pkgs = []
res = {
}
res['results'] = []
res['msg'] = ''
res['rc'] = 0
res['changed'] = False
for spec in items:
pkg = None
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6ddfffe076faa4a7c97d53743504d1705be8cd49 | f9a24cd2c3a27acb699865de3552aa14a982f554 | /django_fastbill/urls.py | a2eb6a253d69d33979aa6848429b1e7d622099c7 | [
"MIT"
] | permissive | jayfk/django-fastbill | 66f4d67804c22b5bbfe9b2dcd065c4755524448f | 6d89de07dbbf7f2da81a0377052b54155693dbb4 | refs/heads/master | 2021-05-16T02:08:26.698580 | 2016-11-10T08:12:47 | 2016-11-10T08:12:47 | 22,635,082 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from django.conf.urls import patterns, url
from .notifications import notification_view
from django.views.generic import TemplateView
urlpatterns = patterns("",
url(r"^notification/$", notification_view, name="django-fastbill-notification"),
url(r"^checkout/error/$", Templ... | [
"ja.geb@me.com"
] | ja.geb@me.com |
9a1cef2c24b4368b334a4e6991417a6ccfbb9dc8 | f337bc5f179b25969ba73e7680ffb0a0616e3b97 | /python/BOJ/6XXX/6064.py | ecd373a738967a200fe4575bea67c2aa53ef7180 | [] | no_license | raiders032/PS | 31771c5496a70f4730402698f743bbdc501e49a3 | 08e1384655975b868e80521167ec876b96fa01c8 | refs/heads/master | 2023-06-08T10:21:00.230154 | 2023-06-04T01:38:08 | 2023-06-04T01:38:08 | 349,925,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """
https://www.acmicpc.net/problem/6064
6064.카잉 달력
실버1
중국인의나머지정리, 수학, 정수론
풀이3.
10 12 3 9
10 12 7 2
13 11 5 6
"""
test_case = int(input())
for i in range(test_case):
M, N, X, Y = map(int, input().split())
ans = X - 1
for i in range(N+1):
if ans % N == Y - 1:
print(ans + 1)
... | [
"nameks@naver.com"
] | nameks@naver.com |
591a336c5e2718c21c181454cfe37b307312da2e | 5cf55cff8ee9da658380cfd1e30f98f4ff64a788 | /win32_mutithread.py | c7c62bd829986cb55da8059ad537c258405a471a | [] | no_license | thhsu116/samples | 595a607123e4bd29d39951057af5b6b16780c51b | 57e05d4daa67a45d6bbcbc0f6d22698a549927a2 | refs/heads/master | 2020-04-08T14:05:39.557434 | 2019-03-29T22:00:50 | 2019-03-29T22:00:50 | 159,421,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import pythoncom
import win32com.client
from threading import Thread
def marshall_win32_handle(self, handle):
return pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch, handle)
def Worker(Thread):
def run(self):
self._args = list(self._args)
pythoncom.CoInitialize()
... | [
"noreply@github.com"
] | thhsu116.noreply@github.com |
da4ae291f09511d51178adae5b25b8df58f51fef | 7e98a8b31cc2fecf8384f4590f27540f7280659a | /v2/_cracking_code_/02_Completed/2.1_remove_duplicates.py | 93af68b83329ffbddf3bcf7bdc4a1902e83c5107 | [] | no_license | darraes/coding_questions | 62a07a6ede884fd0e3596f3dac8f50e11fd8676e | 70dcc3b859db673c39c3cf55aeb463d2bd822ed9 | refs/heads/master | 2021-01-21T07:21:18.033321 | 2020-06-15T16:25:11 | 2020-06-15T16:25:11 | 91,611,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | # Remove duplicates - Cracking the code interview - 2.1
class Node:
def __init__(self, next, value):
self.next = next
self.value = value
def remove_duplicates(head):
''' With temporaty buffer '''
if not head:
return head
seen = set()
seen.add(head.value)
cur = head
... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
cdfa4e4b85fb47f7782ddb857d97fa11aa1085c4 | cf43421567c1634abe1df885c6e185a180659708 | /Load/article.py | 22dc019e5bbbe0c91ce90d07860ad1a7429464ae | [] | no_license | fabio-gz/ETL_newspaper | 4c5239892098840a730ecf3b58452054a50e914b | 7458701eab76821a1fd65f0821356b1e7924bc97 | refs/heads/master | 2023-01-11T05:01:39.773346 | 2020-11-16T22:10:57 | 2020-11-16T22:10:57 | 292,719,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from sqlalchemy import Column, String, Integer
from base import Base
class Article(Base):
__tablename__ = 'articles'
id = Column(String, primary_key=True)
body = Column(String)
host = Column(String)
title = Column(String)
newspaper_uid = Column(String)
url = Column(String, u... | [
"fabiogomez.silva@gmail.com"
] | fabiogomez.silva@gmail.com |
ef10b5f09116793a6e3a47617912068daa632acb | 91a0a63c8908bcab67d20facb8b124fd5bb7df46 | /lib/nntable.py | f950c742a5ddff4067bd874862fe4033d99c4e98 | [
"MIT"
] | permissive | uvavision/Text2Scene | eb51e7a301f539e32f6e5a975dd89b54480432ca | 2ee5bb6490359459cb3b5812021a32e35e1f8309 | refs/heads/master | 2022-05-26T22:29:56.732535 | 2022-04-15T12:12:33 | 2022-04-15T12:12:33 | 179,596,514 | 129 | 29 | null | null | null | null | UTF-8 | Python | false | false | 3,956 | py | #!/usr/bin/env python
import numpy as np
import pickle, random
import os.path as osp
from time import time
from copy import deepcopy
from glob import glob
from annoy import AnnoyIndex
from composites_config import get_config
from composites_utils import *
class PerCategoryTable:
def __init__(self, db):
... | [
"fuwen.tan@gmail.com"
] | fuwen.tan@gmail.com |
4c22735466aeb8fd2a76509683541256c2cd5b50 | 59c9f68b36f77f7353515843224d011eb245b7cd | /app/main/view_line_data.py | 1e0ebc63f9b5af14fc95b0d57b3ca6fc521b0f9e | [] | no_license | KoiosChen/gamefast | 2b256385a46f14a2777822934dd8fdc75b636cd0 | a165af94ce7925f81177563928fba92868769e2e | refs/heads/master | 2023-08-04T15:02:50.688910 | 2020-03-16T05:17:40 | 2020-03-16T05:17:40 | 246,481,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | from flask import render_template, request, session
from . import main
from .. import db
from .forms import PostForm
import os
from ..models import UploadFile_Path, Files, Permission, Search_LineDataBank
from flask_login import login_required
from ..decorators import permission_required
@main.route('/linedata', metho... | [
"chjz1226@gmail.com"
] | chjz1226@gmail.com |
874bb835fb4720ca0b5fffaab94b3f3e8808ea62 | 189650975b01e605c72a1eb7a76f4b9c847f5f7b | /thirdproject/thirdproject/settings.py | 7aa3d23316968feff69341637125bb95d688acea | [] | no_license | vishalraghusai/django-deployement-example | 63c49e9b2aec1fc135cb00e195d2a71231da061e | cddb32c92c5e763e9d5b94b2971d629076b1fc19 | refs/heads/master | 2022-12-15T21:39:05.595528 | 2020-08-21T06:46:35 | 2020-08-21T06:46:35 | 289,195,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | """
Django settings for thirdproject project.
Generated by 'django-admin startproject' using Django 3.0.3.
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 ... | [
"you@example.com"
] | you@example.com |
f223ccca6185503c5554cd88c987955553c86012 | be7f4b54837a60c5143a00850a8ec445bf9b13e0 | /Week_7/animal-info/animals/animals/settings.py | c42babdf66017d709664c12695dc34862a797838 | [] | no_license | lienusrob/DeveloperbootcampDI | 5db277285c00f1af0a93539728abe51f8028763d | 70c880d5bf6608ec89d4b08e43cad9f64fec16fc | refs/heads/master | 2023-01-30T13:16:06.868262 | 2020-12-16T15:46:59 | 2020-12-16T15:46:59 | 305,441,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for animals project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
7ecaa32d5f5f792e25ad7fcdbf09e771f784ea52 | f62fd455e593a7ad203a5c268e23129473d968b6 | /nova-15.0.6/nova/objects/instance.py | e0d79e26eed5cdfd4cd19c9cda1f34ec28a02daf | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 61,190 | py | # Copyright 2013 IBM Corp.
#
# 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 agree... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
84e1402c0f5c05ed70319d2067c70e75f180f990 | b5167eae1fa86b3729cc149da81a253b0cf3065b | /15 Flask/page20.py | 88d5213517e2cbcde82a41df79caed193c588ee6 | [
"Apache-2.0"
] | permissive | dumin199101/DeepLearning | df379bbaf4dcfb0f5681b8a9fe343e667a5cf11a | 72d6919f8a9fc3718365b35f775d07e98b8c6f8d | refs/heads/master | 2021-07-17T20:00:51.735618 | 2021-07-16T07:37:56 | 2021-07-16T07:37:56 | 217,006,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # *_* coding:utf-8 *_*
# 开发人员:烈焰
# 开发时间:2019/12/23 14:56
# 文件名称:page20
# 开发工具:PyCharm
# 单元测试
import unittest
from page19 import app
import json
class LoginTest(unittest.TestCase):
"""
构造单元测试案例
"""
def setUp(self):
"""
在测试之前会被执行
:return:
"""
# 开启测试模式
app.... | [
"1766266374@qq.com"
] | 1766266374@qq.com |
2ee0b93f528f61f3cbe441f33d5c5e5eb77f05cf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03151/s434625471.py | bfedbed40877c3cbfa4ad3880f40d3c241765af0 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
if(sum(A) < sum(B)):
print(-1)
else:
p = []
m = []
for i in range(N):
if(B[i]-A[i] <= 0):
p.append(A[i]-B[i])
else:
m.append(B[i]-A[i])
p.sort(reverse=True)
ans = len... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9d0f4f1a1e61c1025f311f505595319b6f6910ca | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4002/codes/1798_2562.py | 179f9a07ea8537d94342bf78a74841ea7c399859 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from numpy import*
vet = array(eval(input("Primeiro vetor: ")))
while(len(vet)>1):
npar = 0;
nimpar = 0;
for i in vet:
if i%2==0:
npar+=1
else:
nimpar+=1
print(npar)
print(nimpar)
print(len(vet))
vet = array(eval(input(" ")) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6ef921595bff0b962077b6dbee984718485d65b0 | 11650a2bd7371a55279d42fdf10697944541d136 | /0x08-python-more_classes/4-rectangle.py | f0128fcc96b877661c1acb59869a4d01ffffde97 | [] | no_license | moncada92/holbertonschool-higher_level_programming | 90315be040c3836ca755be046f2ebdab53c61b38 | 8894959e9a6eca56cd58862d5ab2dcee49800960 | refs/heads/master | 2022-12-27T10:38:07.863179 | 2020-09-25T04:30:07 | 2020-09-25T04:30:07 | 259,372,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | #!/usr/bin/python3
"""
Write a class Rectangle that defines a rectangle
"""
class Rectangle:
"""
Class Rectangle validated privated instance attribute width and height
"""
def __init__(self, width=0, height=0):
"""Constructor Function using property and setter"""
self.width = width
... | [
"monk-da@hotmail.com"
] | monk-da@hotmail.com |
5071831505f2ef007d68c039fbffae662d817918 | 1508f7da93705839660e4fdfb87df7a9664bf087 | /a10API/a10API/app/scripts/axapisdk/python_sdk/system_reset/system_reset.py | d676905cafac6c67c820460ad41795ee770abdc3 | [] | no_license | Younglu125/A10_Networks | 1a1ecebb28dd225f6a1f901a7c28350300df356d | 78a177ae4c8638d58dc873e4b1c589a1d5aaa717 | refs/heads/master | 2020-06-17T00:35:30.325740 | 2016-03-21T18:17:30 | 2016-03-21T18:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,340 | py | ########################################################################################################################
# File name: system_reset.py
# Copyright(C) 2007-2013, A10 Networks Inc. All rights reserved.
# Software for all A10 products contain trade secrets and confidential
# information of A10 Networks and ... | [
"info@pythonicneteng.com"
] | info@pythonicneteng.com |
b543df0dab4985ab2994843fa52824763527cef8 | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/scipy/linalg/tests/test_special_matrices.py | b79bc15441132b0e57f71b3b7fed197f25784fce | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 19,442 | py | """Tests for functions in special_matrices.py."""
from __future__ import division, print_function, absolute_import
from numpy import arange, add, array, eye, copy
from numpy.testing import TestCase, run_module_suite, assert_raises, \
assert_equal, assert_array_equal, assert_array_almost_equal, \
assert_allclo... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
84f68e83b0062c50c7fb765859e14d5964aa807c | 4338e0cdf2e31c6c7083d1b76815e3149d46bd55 | /fae2/pageResults/migrations/0002_pageresult_excluded_urls.py | 4f9e30afbf9396a6947ae9f3f5d30d5020bcdbc0 | [
"Apache-2.0"
] | permissive | gemgin/fae2 | 52e92cb0682611999426bfe451755fd3c7fbb317 | 6f144674de4c2e66c18e3b1bd97d2add48d4b21e | refs/heads/master | 2020-09-25T14:40:26.837610 | 2019-10-31T20:08:13 | 2019-10-31T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-02-09 22:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0010_auto_20170209_1653'),
('pageResults', '0001_initial'),
]
opera... | [
"jongund@illinois.edu"
] | jongund@illinois.edu |
f355d1f6990cdc9e5b561fe71e68d53b77314831 | ec46c70a721f16031a784f54f522656fb43dfc9f | /venv/lib/python3.6/site-packages/xmlschema/xpath.py | 058684a008f72cd31ac1022c242d1ed6f0ad86cd | [] | no_license | kardelen-karatas/django-importXML | c6a62942b740697d3647ec0bc1ed9c078e751159 | b169966627bd54b684aaedd5fd6c0d7be551b973 | refs/heads/master | 2022-12-10T00:38:40.578278 | 2020-04-15T10:34:36 | 2020-04-15T10:34:36 | 125,032,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,487 | py | # -*- coding: utf-8 -*-
#
# Copyright (c), 2016-2018, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author ... | [
"kardelen.karatas@gmail.com"
] | kardelen.karatas@gmail.com |
b1438d1c7fff34e1390e4ce7899bd9b0ccc57b88 | 553a300471b79ec310586f08acb5ae93faf61d59 | /backend/hillhouse_high_scho_18131/wsgi.py | 95c47046da6ef7cdb539707916d81dc37f59fb10 | [] | no_license | crowdbotics-apps/hillhouse-high-scho-18131 | 4a44ba30da377a79927bf05f722977c2b21e2859 | c9e28afb320079c83fc9841a113a9ebfab7313dc | refs/heads/master | 2022-11-02T10:22:28.051831 | 2020-06-16T01:45:41 | 2020-06-16T01:45:41 | 272,583,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for hillhouse_high_scho_18131 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.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
57889882d3833ea97d450e48c75a0df3aea01f84 | eef776d51259b20a82f11699e37c81db6e886d49 | /lib/nier/constants.py | 88cfb67a221d1eeb1201ada3434115838c1d6eec | [
"MIT"
] | permissive | dskrypa/nier_replicant | 7189cb678431d3c50ec90354b3f9dd9d698202c2 | c3d1fd3d58beafc19e3a0286f57ab09a3e91d8e1 | refs/heads/main | 2023-07-15T17:12:57.495996 | 2021-08-28T20:35:53 | 2021-08-28T20:35:53 | 391,182,584 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,458 | py | # region Map / Zone names
MAPS = [
'World Map', '_unknown_0', '_unknown_1', 'NieR\'s Village Map', 'Lost Shrine Area Map', 'Lost Shrine Map',
'The Aerie Map', 'Seafront Map', 'Desert Map', 'Facade Map', 'Barren Temple Map', 'Junk Heap Area Map',
'Junk Heap Map', 'Manor Map', 'Forest of Myth Map', 'Undergrou... | [
"dskrypa@gmail.com"
] | dskrypa@gmail.com |
886727511043832467f6565c7929417a5a0b601f | 6f04a6ef99c581ed2f0519c897f254a7b63fb61d | /rastervision/command/__init__.py | 9d518d5924f9690aaa69ee0cbb24ac07dd65fdae | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | dgketchum/raster-vision | 18030c9a8bfe99386aa95adbf8e3ec51d204947f | fe74bef30daa5821023946576b00c584ddc56de8 | refs/heads/master | 2020-08-30T13:56:08.598240 | 2019-11-03T17:38:33 | 2019-11-03T17:38:33 | 218,400,435 | 3 | 1 | NOASSERTION | 2019-10-29T23:09:57 | 2019-10-29T23:09:57 | null | UTF-8 | Python | false | false | 745 | py | # flake8: noqa
from rastervision.command.command import *
from rastervision.command.command_config import *
from rastervision.command.analyze_command import *
from rastervision.command.analyze_command_config import *
from rastervision.command.chip_command import *
from rastervision.command.chip_command_config import *... | [
"rdemanuele@gmail.com"
] | rdemanuele@gmail.com |
ba55aac6d7ed35084fff77d768ea7b4170a3186a | 5a4d5ee624b375ece06fda1467afe18beb69c14b | /Algorithm/SW_Expert/1-25.py | 2abd0c7a8738b49ec1e58325be72c97545e77cdb | [] | no_license | Knightofcydonia51/TIL | cd10dab949659bc827118ee42b25d926336dce23 | 78d7e8617f4abed9932a557c12e68bd950f8230d | refs/heads/master | 2022-12-26T00:10:06.262200 | 2022-05-26T01:12:32 | 2022-05-26T01:12:32 | 195,938,010 | 0 | 0 | null | 2022-12-16T01:03:09 | 2019-07-09T05:22:49 | Python | UTF-8 | Python | false | false | 137 | py | ans=0
for i in range(1,101):
if i%3==0:
ans+=i
print("1부터 100사이의 숫자 중 3의 배수의 총합: {}".format(ans)) | [
"leavingwill@gmail.com"
] | leavingwill@gmail.com |
f34e5d031f8cdc5328e91827d1c0a199eac6985a | 6caa1693504322f9f7203cb9eb8788e033d79d8a | /scripts/print_high_queries_per_sessions_users.py | fc1f0746c42aaa85770b3011f3c4b4227a01c990 | [] | no_license | salspaugh/queryexplorer | 294af1131062be46197efc6667637b37006f2c1c | fc298e9a18ca9ebaefc17d9a204991791c20f147 | refs/heads/master | 2021-01-01T05:47:27.986698 | 2013-05-30T01:35:05 | 2013-05-30T01:35:05 | 8,977,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #!/usr/bin/env python
from queryexplorer import connect_db
def main():
db = connect_db()
big_sessions_cursor = db.execute("SELECT session_id, COUNT(session_id) AS cnt FROM queries GROUP BY session_id ORDER BY cnt DESC")
for (session_id, queries_per_session) in big_sessions_cursor.fetchall():
... | [
"saraalspaugh@gmail.com"
] | saraalspaugh@gmail.com |
9f4e03f24cb39690875f191fea1ff41aeac175a1 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/13037765409f2b53734e28d4f1c1bd9ef8d71056-<set_other_mpi_vars>-fix.py | 8fc40419289ddb7d239d2237501d9673339831a7 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py |
def set_other_mpi_vars(environ_cp):
'Set other MPI related variables.'
mpi_home = environ_cp.get('MPI_HOME')
symlink_force(('%s/include/mpi.h' % mpi_home), 'third_party/mpi/mpi.h')
if os.path.exists(os.path.join(mpi_home, 'include/mpi_portable_platform.h')):
symlink_force(os.path.join(mpi_home... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c9adf3e3c849147b03badc4f9312ee8c1de4d47b | 5388ba5aedb3313ad16bed97088ba24bbd6fc16a | /Basic/day1=1-2-16/random_num_day1.py | 24f3d60ba6d1eb70d367cf319b4eab879525f487 | [] | no_license | Palash51/Python-Programs | b1e79c2c0cc46c05015b6278935b894954a10da5 | dc4fb90c907bd16c092c05645e5267d5e2dd73f6 | refs/heads/master | 2021-07-30T20:06:05.147340 | 2019-11-08T09:14:47 | 2019-11-08T09:14:47 | 70,157,915 | 1 | 2 | null | 2021-07-17T17:35:21 | 2016-10-06T13:44:06 | Python | UTF-8 | Python | false | false | 45 | py | import random
print(random.randint(0,9))
| [
"palashpatidar51@gmail.com"
] | palashpatidar51@gmail.com |
5444137f82ed2bce2bf3efafcee09139c882c384 | 5410700e83210d003f1ffbdb75499062008df0d6 | /Day-2/scipy-Linearalgebra.py | 3cd2eded7508eec411232af7385fd1f8cde367df | [] | no_license | lilyandcy/python3 | 81182c35ab8b61fb86f67f7796e057936adf3ab7 | 11ef4ace7aa1f875491163d036935dd76d8b89e0 | refs/heads/master | 2021-06-14T18:41:42.089534 | 2019-10-22T00:24:30 | 2019-10-22T00:24:30 | 144,527,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import numpy as np
from scipy import linalg
A = np.random.randn(5, 5)
b = np.random.randn(5)
x = linalg.solve(A, b) # Solve A x = b
#print(x)
eigen = linalg.eig(A)
#print(eigen)
det = linalg.det(A)
print(det) | [
"myyan_yan@msn.com"
] | myyan_yan@msn.com |
aa9a5f8f3669d25ce84177b8b270e8c8a8091fd0 | 5ba73d44efb9ae680001f1b8f808648940ac5a52 | /pa-mixer-mk2.py | 743f06c39d6f7a3a0536ea5a272d752414bb5f37 | [
"BSD-3-Clause"
] | permissive | runngezhang/pulseaudio-mixer-cli | 4566894ab48fb633d6ce1498ddd63a657ee5d6e5 | 1d88123d9a060775adf13a0356e8918151dd5995 | refs/heads/master | 2022-04-27T03:15:55.782859 | 2018-11-20T09:08:02 | 2018-11-20T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,935 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import print_function
import itertools as it, operator as op, functools as ft
from collections import deque, OrderedDict
import ConfigParser as configparser
import os, sys, io, logging, re, time, types, string, unicodedata, random
import json, subprocess, ... | [
"mk.fraggod@gmail.com"
] | mk.fraggod@gmail.com |
eb247bb4584ba82b882a83698dfae8312c4bf23e | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test_001/test_baidusearch_20201126151242.py | b1e90297cbabe23b5bd3676d785fc3fbfe0341ca | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | """
使用百度搜索pytest、unittest、allure,参数化,添加标记和步骤、打开浏览器后最大化、
搜索内容后截图放到测试用例里面
加入测试用例的地址
最后退出浏览器
"""
import allure
from selenium import webdriver
from selenium.webdriver import ActionChains
import pytest
import time
import yaml
@allure.testcase("https://github.com/Allison001/test_demo",name="测试用例地址")
@allure.feature("百度搜索功能... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
c82f11423e246986c3a38e2b0435f38625fd5e25 | 2adc480da22c188af2d804a7b0571a23e6a11047 | /src/jk_mediawikiapi/MWPageRevision.py | ee5f6007cf01557748e22edca54cfb702e338108 | [
"Apache-2.0"
] | permissive | jkpubsrc/python-module-jk-mediawikiapi | dc1830e6055c67e461ac4fb44969aa93e07de7f6 | 086ea123e155c1dcf49ecee47def162e0b5c0999 | refs/heads/master | 2022-09-05T10:19:39.397195 | 2021-01-05T21:31:48 | 2021-01-05T21:31:48 | 249,476,294 | 0 | 1 | null | 2022-08-27T02:18:01 | 2020-03-23T15:56:24 | Python | UTF-8 | Python | false | false | 1,739 | py |
import typing
import jk_prettyprintobj
from .MWPageContent import MWPageContent
from .MWTimestamp import MWTimestamp
class MWPageRevision(jk_prettyprintobj.DumpMixin):
def __init__(self, revisionID:int, parentRevisionID:typing.Union[int,None], content:MWPageContent, bIsMinorRevision:bool, tags:list, timeStam... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
793085b3fd1617027db236ff65a47342f5f9e968 | b50903f9680b80ea600b0ea40ccd4e93679116a7 | /JetAnalysis/python/jets/akPu4PFJetSequence_pp_data_cff.py | 36acca64a9f1286d3c8693b9ede29e70767374d0 | [] | no_license | Jelov/Jet_Production_channel | 15f7471121a5e8e8ca0203d407dae6d1d40e3acd | 05c0e8b8145d912dcaa590729d28d99f866c773e | refs/heads/master | 2016-08-12T20:28:47.253666 | 2016-03-16T19:15:49 | 2016-03-16T19:15:49 | 51,877,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,124 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"jelov227@gmail.com"
] | jelov227@gmail.com |
a8b8143e8347e60c2ffeaa7578291e7fbca9d770 | 56ecba7ec1d5c946a1b45e029dc7085ba3c7e61d | /mxnet/mx_utils.py | 1797b751d2159f6e2252ba2006ff82ce79e8f9c4 | [] | no_license | liuxingyuxx/ppn | 6bae7b8bc6ed23662d7ea7e6a7c06b3f1d07f245 | 04809cb78e149bff7ce6ecdcd5760c4d556af321 | refs/heads/master | 2020-05-21T07:33:14.626967 | 2018-12-27T02:44:09 | 2018-12-27T02:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,197 | py | import numpy as np
import mxnet as mx
import mxnet.contrib.onnx as onnx_mxnet
import time
import matplotlib.pyplot as plt
from PIL import ImageDraw, Image
import PIL
import cv2
import os
import ipdb;pdb = ipdb.set_trace
from collections import namedtuple
keypoint_names = ['instance', 'head_top', 'upper_neck', 'l_shou... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
5dc09c928106c4a3338ae28aa65f7020ba47b806 | 7bb4954f798d295055607e1563269c2aeb10aca9 | /client/client_json_dump_test.py | d9fbb021293dfd2e94d283b98a875b335b7da77b | [
"MIT"
] | permissive | mryyomutga/PDIII | 081aca58eb4159e3543e4e59cf1d8a4b8f84dbd1 | 2dc14e741349845bfe528c1dd06c434cf4414941 | refs/heads/master | 2020-03-08T17:56:51.845215 | 2019-02-15T01:16:53 | 2019-02-15T01:16:53 | 128,282,342 | 1 | 0 | null | 2018-12-22T15:11:29 | 2018-04-06T01:09:33 | Python | UTF-8 | Python | false | false | 3,993 | py | # -*- coding:utf-8 -*-
# Last Change : Fri 02 Nov 2018 16:40:31.
import socket
import json
import threading
import matplotlib.pyplot as plt
import pickle
# {"range":float,"angle":float,"x":float,"y":float,"radian":float}
class SLAM(object):
'''recv map data and draw map'''
def __init__(self, origin=[0, 0]):
... | [
"mryyomutga@gmail.com"
] | mryyomutga@gmail.com |
9c632b5544560294f7dfb9ee2b27f211b3ba686b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/smallestWindow_20200707160143.py | ffc169b1250c4dc937f5a0f1f29e1894753bf4e9 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | def min(s,t):
no_of_chars = 256
count = 0
start,start_index,min_len = 0,-1,float('inf')
print(start,start_index,min_len)
# first check if the length of the string is less than the string of the given pattern
if len(t)> len(s):
return ""
else:
# store the occurrences of the c... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2282d8c360e3ab72a4fca76981d31ff22cdd27ef | 74ace7695f01e32c88619a7618eb68054e1c6994 | /mint/snapshot.py | c540cf261bb9d0ab0dc5dd12a051ea2e41405b49 | [] | no_license | sergey-tomin/pyBigBro | 9e0b042a9d30cdfbb6c8470e5bddfb4af39d15b1 | 9baff42bfc7e166cbdce68100d978c231c06da22 | refs/heads/master | 2021-06-21T10:42:41.851742 | 2021-06-04T06:40:48 | 2021-06-04T06:40:48 | 219,517,416 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,399 | py | # -*- coding: utf-8 -*-
"""
S.Tomin
machine snapshot
"""
import pandas as pd
import numpy as np
import pickle
import os
import matplotlib.pyplot as plt
class Snapshot():
def __init__(self):
self.sase_sections = ["SA1", "SA2", "SA3"]
# or list of magnet prefix to check if they are vary
s... | [
"tomin.sergey@gmail.com"
] | tomin.sergey@gmail.com |
53e86acd75090448f91cd165def68d5ae26dab93 | 0a418c0a2762e659f8b5035ce0eafcafb35ad770 | /高考志愿网/gkzy.py | 5961fde16588053487889ab6c33288169fff9441 | [] | no_license | xujinxue/Python_Crawler | 066a8e8e8235936620c86f1dbc0d3868647d5e1b | 23ba5cf5ad12d5d0f9f3d2376c0c0ea32fc3d2de | refs/heads/master | 2023-03-25T23:13:45.834662 | 2021-03-19T07:09:37 | 2021-03-19T07:09:37 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 4,989 | py | # coding = utf-8
import requests ,pymysql ,json
import time
from jsonpath import jsonpath
from multiprocessing.dummy import Pool
def database():
coon = pymysql.connect(
host='localhost', user='root', passwd='root',
port=3306, db='data', charset='utf8'
)
cur = coon.cursor() # 建立游标
retur... | [
"why957177569@163.com"
] | why957177569@163.com |
276dbb100c5061e078456d4482cf5db899cd505f | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-linked-list/reorder_linked_list.py | 250d7c8e5e5ae319a859e4135aeff93a33ffcb3a | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 1,096 | py | # https://aonecode.com/aplusplus/interviewctrl/getInterview/203
from ListNode import ListNode
def reorder0(head):
if head is None:
return None
c, l = head, []
while c:
l.append(c)
c = c.next
i1, i2, c, n = 0, len(l) - 1, None, None
for i in range(len(l)):
if i... | [
"agapelover4u@yahoo.co.kr"
] | agapelover4u@yahoo.co.kr |
4675ce4dff02bd41fe1ce626a7865cf6ce482dd3 | 90d3af65fc9900f2abb7eaa7631646856e115da3 | /COMP9417/Homework 1/Q2d.py | 449b9d4e9b4e0ddcd4b7f300593fc9c75094501d | [] | no_license | Tim-hyx/UNSW-Courses | d414b79b6c5b428be12456ba85e1757ac871535b | b7031ea9ac833b5a396e7938ef73cc335a2e37b7 | refs/heads/main | 2023-07-10T19:48:34.731340 | 2021-08-10T02:39:14 | 2021-08-10T02:39:14 | 300,894,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import Ridge,LinearRegression
# The data.csv is located in the desktop, so I hardcode the file name
df = pd.read_csv('C:/Users/TimHuang/Desktop/data.csv')
df2 = df['Y']
df.drop(df.columns[len(df.columns) - 1], axis=1, inplace=True)
m... | [
"noreply@github.com"
] | Tim-hyx.noreply@github.com |
7509a508be7af587ba4e569de1968206b6050469 | e210c28eeed9d38eb78c14b3a6388eca1e0e85d8 | /research/quantifying-data-leakage/src/nvflare_gradinv/utils/plot_rdlv_per_round.py | adcfe170dcf5ff8f6c8395733d1bd4e5b305b514 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | NVIDIA/NVFlare | 5a2d2e4c85a3fd0948e25f1ba510449727529a15 | 1433290c203bd23f34c29e11795ce592bc067888 | refs/heads/main | 2023-08-03T09:21:32.779763 | 2023-07-05T21:17:16 | 2023-07-05T21:17:16 | 388,876,833 | 442 | 140 | Apache-2.0 | 2023-09-14T19:12:35 | 2021-07-23T17:26:12 | Python | UTF-8 | Python | false | false | 1,817 | py | # Copyright (c) 2023, NVIDIA CORPORATION. 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"
] | NVIDIA.noreply@github.com |
1904c65a156692a52f9ab07cda0f92dae0ff4246 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/primeMover_20200714131919.py | b6cb7f2b51d02fb09c14b2137d33029c1e9240a9 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import math
def PrimeMover(num):
# maybe come up with a list of prime numbers from 0 to num+1
# return newArr[num]
# how do we come up with that list
# the len of this array should be num+1
newArr = []
count = 0
numbers = range(2,10**4)
for i in numbers:
if is_prime(i) == True:
# print(i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
73a43aab1e3b676f4f6e12dc174fad5084a4df31 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200421_python2/day12_py200530/list_1.py | fbbee32bed7ffa6f5ce78a0c23be1aab61d32f25 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | """
list - create
"""
# how to create a list
mylist = [1,2,5]
# how to create an empty list
mylist = []
# how to create a nested list
mylist = [[1,2,3],2,5]
mylist = [[1,2,3],[1,2,3],[1,2,3]]
# various datatypes are allowed
mylist = [1, 'abc',True, 2.0]
| [
"lada314@gmail.com"
] | lada314@gmail.com |
cb2177a72aac4f349a5f63ac9342b65e0d93591a | a83bafc38b514a0339a5991be15870551ac49681 | /test/test_feature.py | 0cd839ee48c5d25424d496bacca9bd151aaab3ae | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 871 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
cc2b54495af4300cfdab535502d52beee4d666f2 | a73fd25dd9a8e6df0b1bf3eee0bccf5297722bc7 | /]tasks/2018.02.09.Xregion_vs_Xcity/plot_optimal_finetune.py | 91b819e4c60ddcb9f754a36c84fb2961975b76be | [] | no_license | bohaohuang/sis | 23d0260d85903b62518fb8fb588661597248ad0d | 28a59f3182f0ba58ba582449377c6588af1d4cde | refs/heads/master | 2021-05-05T17:00:33.808099 | 2019-09-06T17:46:02 | 2019-09-06T17:46:02 | 117,362,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sis_utils
import util_functions
plt.rcParams.update({'font.size': 14})
img_dir, task_dir = sis_utils.get_task_img_folder()
lty = ['-', '--', '-.']
cmap = plt.get_cmap('Set1').colors
plt.figure(figsize=(12, 6))
for cnt_1, layer_... | [
"bohao.huang@duke.edu"
] | bohao.huang@duke.edu |
97367cdb451a077fc2aac83396ebaca8d0e7e547 | d82ac08e029a340da546e6cfaf795519aca37177 | /chapter_04_data_preprocessing/05_partitioning_a_dataset.py | 86ea37954c44fae7a04cd806c7dc822534e7d064 | [] | no_license | CSwithJC/PythonMachineLearning | 4409303c3f4d4177dc509c83e240d7a589b144a0 | 0c4508861e182a8eeacd4645fb93b51b698ece0f | refs/heads/master | 2021-09-04T04:28:14.608662 | 2018-01-15T20:25:36 | 2018-01-15T20:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import pandas as pd
from sklearn.model_selection import train_test_split
"""It is important to partition the dataset
into training and testing data. A convenient
way of doing this is using cross_validation:
"""
df_wine = pd.read_csv('../data/wine.csv')
df_wine.columns = ('Class label', 'Alcohol',
... | [
"jean.mendez2@upr.edu"
] | jean.mendez2@upr.edu |
d83ef9405c02e53e4947b0e634940348bce06a09 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/monitor/models/GetWidgetDataPointsSpec.py | 582810f5ac824f46fd2c05c306ee9956aa92bf5b | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 2,073 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
e34aeb605f514f24971e2d6b81f2fa1e83225bf7 | 2367d3f5a760b93145da0067547e0dca7c5af158 | /asset_app/migrations/0001_initial.py | ff8774a4385c5acedb3c9993d4f2e8c6c861e2bd | [
"MIT"
] | permissive | jameskomo/asset-management-system | bab4df7869e2245e552454c14f097fcdc88af321 | cb3d3fbdcdfb17758153fbf724999f639867fc44 | refs/heads/master | 2020-06-28T10:54:54.764000 | 2019-08-02T13:52:18 | 2019-08-02T13:52:18 | 200,213,391 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # Generated by Django 2.2.4 on 2019-08-02 13:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"james.komoh@gmail.com"
] | james.komoh@gmail.com |
4cb3e07ba1023f7b1b94f312dc569d17ed3deb22 | ad93373a095014886e8cd6439bbee8b0e7eb34b4 | /8.py | 72b6e17e35daa205a5f19ff869fa1366ecbec468 | [] | no_license | Zhansayaas/ICTLAB1 | a685a687bd33948edca27a8ad9ecdcf5c47d282f | 1bc781df05ddeac0a05ffcff7e446ea00573aafb | refs/heads/master | 2023-01-19T20:28:39.610301 | 2020-11-24T08:37:27 | 2020-11-24T08:37:27 | 296,074,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | widgets=int(input())
gizmos=int(input())
widget=75
gizmo = 112
print(widget*widgets+gizmos*gizmo) | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
b48c601cbf93859efbf09117001a662030d69434 | 04d82e38b9711ccd78357cf27bf9f8bc0e1f7140 | /tensorflow/contrib/learn/python/learn/tests/monitored_session_test.py | d8798be84587d00cb0217a28e61a96296b7481f0 | [
"Apache-2.0"
] | permissive | shreyashankar/tensorflow | 487caf795106359f0fd53e8877c9639abe0fa398 | e156300b9a1dcb3ff4577a9af8658c80f747a158 | refs/heads/master | 2021-01-18T18:44:52.648994 | 2016-08-11T21:50:22 | 2016-08-11T21:50:22 | 65,505,399 | 2 | 1 | null | 2016-08-11T22:21:59 | 2016-08-11T22:21:59 | null | UTF-8 | Python | false | false | 32,737 | py | # pylint: disable=g-bad-file-header
# 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/LICENS... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
62d32e68a70edebeefb79a835bba88449d630571 | 78d29d5059fc1238abcc27007e6c5c7017567cbc | /malaya/translation/__init__.py | d0969bfa4f4be0d242e59eca2308da1a2b99f327 | [
"MIT"
] | permissive | biddwan09/Malaya | 5f9c842a4d60b8e767f32148223a13c0c25c7bf3 | 334ce33dbef58dcb16b3179572205e5e9ee5891e | refs/heads/master | 2022-11-06T14:21:04.971197 | 2020-06-21T09:25:33 | 2020-06-21T09:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from . import en_my
from . import my_en
| [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
d9a989ccada93d2b9be59cc517772120089d15e3 | a9c43c4b1a640841f1c9b13b63e39422c4fc47c2 | /test/tests/exceptions_basic.py | 76c4beb834e6c5db96d188f351bde545711ea53e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | lovejavaee/pyston | be5bd8393462be17259bcc40bf8f745e157d9793 | e8f0d9667c35db043add2f07a0ea7d23e290dd80 | refs/heads/master | 2023-05-01T17:42:35.616499 | 2015-04-07T08:10:44 | 2015-04-07T08:10:44 | 33,535,295 | 0 | 0 | NOASSERTION | 2023-04-14T02:16:28 | 2015-04-07T09:53:36 | Python | UTF-8 | Python | false | false | 1,633 | py |
def f(x):
print x
try:
if x == 2:
raise AttributeError()
assert x
except AssertionError:
print "is assert"
except:
print "not an assert"
else:
print "no exception"
f(0)
f(1)
f(2)
# You can set attributes on exception objects:
e = Exception()
e.n... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
2ab03fcbd4ecc002f66f13d3fa42bf0e990f6fc3 | f59fba6b165896bca3cca1ea0aabeb31cec241a4 | /RecomSysModel.py | d776f00ff5d71f8fe2148ae85cbf9f27aeba5ef8 | [] | no_license | shengy3/RecomSystem | 98dcdee8819fbd4acb03517669e49aca88bd1661 | 4737398b91a9b5f543e355a4f7b650bdc9eef987 | refs/heads/main | 2023-04-28T15:42:49.842430 | 2021-05-16T16:06:36 | 2021-05-16T16:06:36 | 367,927,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | import torch
from torch import nn
class RS(nn.Module):
def __init__(self, reduced_dim = True):
super(RS, self).__init__()
if reduced_dim:
item_size = 1000
user_size = 1000
else:
item_size = 9560
user_size = 1157633
if reduced_dim:
... | [
"you@example.com"
] | you@example.com |
eb43180827c907dec9f4df3a2df206a56ddcfa9b | 284d7af98d731b6d6bc76657df1a7224f9b0b6d6 | /src/islandstory.py | 01d205857f65c17bc43782d6dee8da5c5b694588 | [
"MIT"
] | permissive | adrianogil/nanogenmo17 | cb5fd1d7990f9008c2f0dbf7149d35a008aaaa57 | 25c32adbc0cd002e683b59cc542d8e182386b06a | refs/heads/master | 2021-08-20T06:51:10.594087 | 2017-11-28T12:28:42 | 2017-11-28T12:28:42 | 111,999,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from random import randint
from person import Person
class IslandStory:
def __init__(self, island):
self.island = island
self.day = -1
self.new_people_comes_probability = 20
self.min_new_people = 1
self.max_new_people = 15
def update_day(self):
self.day = self.d... | [
"adrianogil.san@gmail.com"
] | adrianogil.san@gmail.com |
da9a6f9fdb9b0b11b912cbd481779b5b59cd3b56 | 40a111eac527452fe126e76d2f1cb202c77baa8e | /scripts/mrms/mrms_rainrate_comp.py | 4ef5114867c715aec758cd83f5b827575c94829e | [
"MIT"
] | permissive | Climostatistics/iem | e6b018669bec91bed50daaa61a69d3da94886cae | 4b1c381c8683f2ef52319f2bf7ff14d3cd71267b | refs/heads/master | 2021-01-01T21:21:30.607910 | 2020-02-08T22:00:38 | 2020-02-08T22:00:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,981 | py | """Generate a composite of the MRMS PrecipRate
Within a two minute window, maybe the max rate we could see is 0.2 inches,
which is 5 mm. So if we want to store 5mm in 250 bins, we have a resolution
of 0.02 mm per index.
"""
from __future__ import print_function
import datetime
import os
import tempfile
import subpro... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
7506470fd8571fabe06a1557bf8126bdf3a34256 | e4e34d1f7279337c0580421ae4c089f40cd7c1f1 | /cajovyobchudek/migrations/0008_auto_20210109_1808.py | ffba90a86e6b3b9eeeb9ccf82d7fea1f2c9129c1 | [] | no_license | just-paja/cajovyobchudek.cz | 3860076e3484dc88ef70821dfd7f1a531be0fb76 | c3592657f34971ef7d0397f8a07a1e254cc14418 | refs/heads/master | 2023-03-07T02:52:47.314623 | 2021-02-21T20:49:36 | 2021-02-21T20:49:36 | 323,167,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # Generated by Django 3.1.4 on 2021-01-09 17:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cajovyobchudek', '0007_auto_20210109_1750'),
]
operations = [
migrations.RemoveField(
model_nam... | [
"pavel@zak.global"
] | pavel@zak.global |
25b72bdb4accb1573a7d530b7ebbf393ffed2eec | fc58366ed416de97380df7040453c9990deb7faa | /tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/remail.py | 0846d28ac7c0edb9bee74a649537c0b39afe4bb2 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | users=[
#('testwm', '18611230744', 'wenbo.mao@daolicloud.com', 'g52e90t3'),
#('mingtai101', '13918234299', 'mingtai101@gmail.com', 'fjn7ued1'),
('Yuuki', '15300873506', '18021622551@163.com', 'djnbe9fi'),
('rstevens', '13501099505', '2361228@qq.com', 'bih1g95o'),
('shlallen', '15869045568', 'shlallen@zju.edu.cn', '71i8... | [
"wenxiang.wang1204@gmail.com"
] | wenxiang.wang1204@gmail.com |
7f1ee0f4e5f525f8fd334256ff4f024dfda9e69e | 4c187f0f9d244e89facdddc1581bcef33e092a93 | /benchmarks/QLib/QASM_src/benstein_vazirani_12b_secret_2.py | e220fcc2ffadb2871bcd5e28f916357280ab03b0 | [] | no_license | Gonaco/Super-Qool-Benchmarks | 419dea5306bcec7e502034527acffe371a4e8004 | a630f3dd6f22bebd4ce7601a772fd3a8cd3dd08c | refs/heads/master | 2021-01-25T13:40:57.523633 | 2018-04-03T09:31:56 | 2018-04-03T09:31:56 | 123,600,859 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from openql import openql as ql
import os
import numpy as np
curdir = os.path.dirname(__file__)
output_dir = os.path.join(curdir, 'test_output')
ql.set_output_dir(output_dir)
config_fn = os.path.join(curdir, '/home/daniel/Master/Quantum_Computing_and_Quantum_Information/OpenQL/tests/hardware_config_cc_light.json')
plat... | [
"danielmoremanza@gmail.com"
] | danielmoremanza@gmail.com |
f2706a5ced05b74b172c17042cbb4d0197b9bcf0 | 2f989d067213e7a1e19904d482a8f9c15590804c | /lib/python3.4/site-packages/django/contrib/auth/hashers.py | 1165bf6a78964bb1c146e3f0f8d57c2e79376e83 | [
"MIT"
] | permissive | levabd/smart4-portal | beb1cf8847134fdf169ab01c38eed7e874c66473 | 2c18ba593ce7e9a1e17c3559e6343a14a13ab88c | refs/heads/master | 2023-02-18T05:49:40.612697 | 2022-08-02T09:35:34 | 2022-08-02T09:35:34 | 116,001,098 | 0 | 1 | MIT | 2023-02-15T21:34:01 | 2018-01-02T10:00:07 | Roff | UTF-8 | Python | false | false | 22,352 | py | from __future__ import unicode_literals
import base64
import binascii
import hashlib
import importlib
import warnings
from collections import OrderedDict
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.signals import setting_changed
from django.dispatch import... | [
"levabd@gmail.com"
] | levabd@gmail.com |
5203681643752bff77baf107c5ce501e1bdd1fdd | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_7906.py | 32e27a996008fe82790da2cc75c0a8a7b673866b | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # Python/Gridspec height_ratio issue
grid = gs.GridSpec(2,1 , height_ratios=[2,1])
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0c369e5f716924c1f7ef1d2d3434f5f2bab6cc49 | eea8d9bc9218d8c59945e5e2da5dda842a656f35 | /lesson-18/gae-capital/main.py | 26f76851d696783e2e103f8828bfb239870a6629 | [] | no_license | MatthiasBD/wd1-exercises | 73c2e4e34079300899ea2d5bc2e3daed36d2dfb8 | dbde3db7411bc7aad0067ade39ad15a27c15ea93 | refs/heads/master | 2020-04-09T05:55:15.522332 | 2018-11-30T19:54:27 | 2018-11-30T19:54:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/bin/env python
import os
import random
import jinja2
import webapp2
template_dir = os.path.join(os.path.dirname(__file__), "templates")
jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir), autoescape=False)
class BaseHandler(webapp2.RequestHandler):
def write(self, *a, **kw):
... | [
"matej.ramuta@gmail.com"
] | matej.ramuta@gmail.com |
6e96b4a9ef2ae82bbb28097faecedec84fb8e1dc | ed90fcbfd1112545fa742e07131159bb3a68246a | /server-auth/ls/google-cloud-sdk/lib/googlecloudapis/genomics/v1beta2/genomics_v1beta2_messages.py | 130fe76faf836351e62c97c30802eaa998a79537 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wemanuel/smry | 2588f2a2a7b7639ebb6f60b9dc2833f1b4dee563 | b7f676ab7bd494d71dbb5bda1d6a9094dfaedc0a | refs/heads/master | 2021-01-10T21:56:55.226753 | 2015-08-01T13:37:06 | 2015-08-01T13:37:06 | 40,047,329 | 0 | 1 | Apache-2.0 | 2020-07-24T18:32:40 | 2015-08-01T13:26:17 | Python | UTF-8 | Python | false | false | 70,930 | py | """Generated message classes for genomics version v1beta2.
Provides access to Genomics data.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from protorpc import messages as _messages
from googlecloudapis.apitools.base.py import encoding
package = 'genomics'
class Beacon(_messages.Messag... | [
"wemanuel@symon.eightwoods.private.prv"
] | wemanuel@symon.eightwoods.private.prv |
53785721ca4240f8c6b9d977678d26c8d9b5285a | 57d2f48df3671e34a4bacbf79d97683ae5a812a2 | /updated_temp.py | 865ef0a9552be473ba96de3e64f77a20e68f3a9d | [] | no_license | emylincon/temp_sensor | 6709a774fe39869c71a1e5bc742acf32e113f257 | c12b66a952d3655f4ccd65a3f91132784bc52874 | refs/heads/master | 2020-04-22T18:47:15.990576 | 2019-11-08T12:10:05 | 2019-11-08T12:10:05 | 170,587,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | # This is a property of London South Bank University developed by EMEKA UGWUANYI
import os
import glob
import time
from drawnow import *
from matplotlib import pyplot as plt
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
base_dir = '/sys/bus/w1/devices/'
device_folder = glob.glob(base_dir + '28*')[0]
d... | [
"emylincon@gmail.com"
] | emylincon@gmail.com |
2d981b27a6179b937f11aaa89f5e69c864ca2bb1 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /FastSimulation/Configuration/python/MixingFull_cff.py | fffaef73d0b76f664bb9574b6645ba70d72b0068 | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 1,067 | py | from FastSimulation.Configuration.mixNoPU_cfi import *
from FastSimulation.Configuration.mixWithPU_cfi import *
# Gen Particles from Mixing Module
genParticlesFromMixingModule = cms.EDProducer("GenParticleProducer",
saveBarCodes = cms.untracked.bool(True),
... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
0dddfbfbcac171deaf27c3d4e19ce21729b0d384 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/280/91511/submittedfiles/testes.py | ba8c6c51bf0df491edbdc365043c44184bff467a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | valor=["X","O"]
symh=valor[0]
sympc=valor[1]
print(symh)
print(sympc)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
25833ad135ed91c3aa42f76f596143bebcef7a37 | a5c2bcbd0298b743ef86b046a37e1c303dc7ade8 | /Data_Structures/Arrays/00_Array_DS.py | ac76bf411a8ad3c9b11f0e82e1406041bdaa88dd | [] | no_license | lvoneduval/hackerrank | 911c140d9e25ef39b7cfb5c3e8afb1e6634bdd33 | be0ae48282d71fbac876962c9b0a636621615aa2 | refs/heads/master | 2021-09-14T09:37:52.676172 | 2018-05-11T12:11:59 | 2018-05-11T12:11:59 | 111,906,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/bin/python3
import sys
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
arr.reverse()
print(*arr)
| [
"lionel.duval@etu.umontpellier.fr"
] | lionel.duval@etu.umontpellier.fr |
4c9c1c89b4b0cd14b4761fb455eb75572cb25f54 | 055ead5f2477f8067785d1168d8e1e955036b58a | /Chapter1/dnspython/simple4.py | 2d97ea50cd2cf6372c90000e773f4151a319ec3a | [
"MIT"
] | permissive | MiracleWong/Automation-Operations-with-Python | 35e515efc020be79d487f056de926fef7e29c01c | 5b27ba2628d942bd550c1529904186ef0678941e | refs/heads/master | 2021-01-18T15:56:47.441384 | 2017-08-10T07:08:34 | 2017-08-10T07:08:34 | 86,697,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import dns.resolver
domain = raw_input('Please input an domin :')
CNAME = dns.resolver.query(domain, 'CNAME')
for i in CNAME.response.answer:
for j in i.items:
print j.to_next()
| [
"cfwr1991@126.com"
] | cfwr1991@126.com |
8829b12724a14423daab863b007c9153609b141c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2172.py | d42b3fded104cd3a42e27312ff2abcc0463d875c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!python
#-*- encoding:utf-8 -*-
import sys, math
def solve(C, F, X):
g1 = 0
g2 = 2
g3 = g2 + F
t_firm = 0
t2 = X / g2
t = t_firm + t2
t_new = t_firm + C / g2 + X / g3
while t > t_new:
g1 = g2
g2 = g3
g3 = g2 + F
t_firm = t_firm + C / g1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
592b876893abad97e6b6b18c61622b3edad38ba3 | 34ef83114e02b173bd2d55eb53ad399e738a8e3c | /django/test/ch3-simple-app/simple/staticpages/urls.py | 3b9a1623589deb5d0b106ce656404e22103c223e | [] | no_license | vavilon/Python3 | e976a18eb301e4953696d1e3f4730ed890da015a | 8c79729747ce51d60ad685e6a2e58292954ed7eb | refs/heads/master | 2023-01-09T13:44:37.408601 | 2018-01-25T22:41:14 | 2018-01-25T22:41:14 | 100,892,055 | 0 | 1 | null | 2022-12-26T20:29:27 | 2017-08-20T22:23:06 | Python | UTF-8 | Python | false | false | 220 | py | from django.conf.urls import url
from .views import Home_page_view, About_page_view
urlpatterns = [
url(r'^$', Home_page_view.as_view(), name='home'),
url(r'^about', About_page_view.as_view(), name='about'),
]
| [
"overon4ek@gmail.com"
] | overon4ek@gmail.com |
64b55849e689956869ef0737bb9b65b8ddaa5ee1 | a3bb911570c0eb1b545a0012841430bb13703069 | /train.py | f3c334e1ca6f97807257f77e00e8c0d28ad55f67 | [] | no_license | koryako/changeface | 7d786427474c62e8d58463ef881a17cfb3dffd3e | a327a043832ec478629caadfb2a9da218c8ab9c5 | refs/heads/master | 2021-05-01T14:30:55.844176 | 2018-02-12T06:44:39 | 2018-02-12T06:44:39 | 121,087,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,472 | py | import cv2
import numpy
from utils import get_image_paths, load_images, stack_images
from training_data import get_training_data
from model import autoencoder_A
from model import autoencoder_B
from model import encoder, decoder_A, decoder_B
try:
encoder .load_weights( "/input/data/models/encoder.h5" ... | [
"daijie@kuaikuaidai.com"
] | daijie@kuaikuaidai.com |
b0d4c4a735bf97c7a51b6813abc0c1f8549fcae1 | 1fdc846f4e5b7bda56e8740b859c8340d9b5141a | /sfepy/solvers/__init__.py | 57454d01ec2a6d6d8c4869257bfcca0de3af4b91 | [
"BSD-3-Clause"
] | permissive | olivierverdier/sfepy | b824fdab7d91e137a371c277901fbb807b316b02 | 83aefb7b33ea17f4acb83388ba8bc7314c77616c | refs/heads/master | 2021-01-18T05:39:13.127137 | 2010-10-25T13:13:18 | 2010-10-25T17:31:37 | 1,022,869 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import os
import sfepy
from solvers import *
from eigen import eig
solver_files = sfepy.get_paths('sfepy/solvers/*.py')
remove = ['setup.py', 'solvers.py', 'generic.py']
solver_files = [name for name in solver_files
if os.path.basename(name) not in remove]
solver_table = load_classes(solver_files,
... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
f30f8a8add03e88d9c8ed23f79a0cc5699aa5b03 | 344e44fd1caa2976daa11429bf57a949e6b824de | /lesson2/ForLoop3.py | 8fcebb3afe8eb46f43d720e42709d9c4b3419824 | [] | no_license | vincenttuan/ntnu_python | 621bc23c6b7443fde9d9975f6a98226ddec3c42a | e1361518ab69bf8064d38efccb743fcc9b4dd4b5 | refs/heads/master | 2020-12-15T06:23:27.338319 | 2020-02-05T07:37:09 | 2020-02-05T07:37:09 | 234,856,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | employees = {
'Tom':[70000, 1, {'m':2.5}],
'Mary':[80000, 2, {'m':1.5}],
'John':[55000, 2, {'m':3}],
}
for key in employees:
print('%s 的資料 %s' % (key, employees[key]))
print('---------------------------------------------')
for key in employees:
if(employees[key][1] == 2) :
print('%s 的資料 %s' ... | [
"vincentjava@yahoo.com.tw"
] | vincentjava@yahoo.com.tw |
3abdbc565e699451d7057e4db9abf4af8cbe8b53 | 30dfa9cea355bcfa7b2eb8210aa8326cbf9dcb97 | /code/pysubs/pysubs_nas_nosmooth_26Sep13.py | 5266eeeb9426bb0022640a4eefc9be1d8f96f399 | [] | no_license | craiglagegit/Bullet_Cluster | e96e9088f2cf90db54ad1e756cdd28c7a2609b4a | 685555c137d726a86ad02a968e1442ab0c6123f0 | refs/heads/master | 2021-04-29T18:56:08.548631 | 2018-02-16T15:42:39 | 2018-02-16T15:42:39 | 121,702,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137,933 | py | #!/usr/bin/env python
#Author: Craig Lage, NYU;
#Date: 14-Sep-12
'''
These subroutines perform various reading, writing, and plotting functions for Gadget 3 and Enzo files for simulating the Bullet cluster.
'''
import lageconfig # system specific path information
from pylab import *
from subprocess import *
from cty... | [
"cslage@ucdavis.edu"
] | cslage@ucdavis.edu |
d63a5b76d0e9ee3c7c6c544fe3bf463cf69eeb62 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/medium/11_12.py | 579a3fbacc7538426d65a5afd8b0957198f0b6ce | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,343 | py | Newspaper scraping using Python and News API
There are mainly two ways to extract data from a website:
* Use the API of the website (if it exists). For example, Facebook has the Facebook Graph API which allows retrieval of data posted on Facebook.
* Access the HTML of the webpage and extract useful infor... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
c6100c0f52871be61b380488a2d141f596ad643d | 1ea6a7cd966258f2d0fda05b2be5050cea3a4839 | /inventory/migrations/0026_auto_20180223_1445.py | efa1e13bdc5b65564bb666468d9c3709b82cf4a6 | [] | no_license | AntycSolutions/PerfectArchOrthotics | 7696cc86960d8d573f2d4f6496fb602ebd48010d | 489d691c8a43d087f8c5e1f689bd5b224313ed31 | refs/heads/master | 2022-11-07T17:55:45.806247 | 2022-11-03T22:03:20 | 2022-11-03T22:03:20 | 26,507,909 | 0 | 1 | null | 2022-04-06T21:55:23 | 2014-11-11T22:30:13 | HTML | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2018-02-23 21:45
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0025_coverageorder_customer_ordered_date'),
]
... | [
"and_555@hotmail.com"
] | and_555@hotmail.com |
424686aa159aa1afc0c023ee8275595803860210 | 4e8220573a6470e64d89e26787e535ea730c0bca | /examples/test_ts.py | 0ed92a6cedd032f02098096df36446a35bb01745 | [
"Apache-2.0"
] | permissive | xinger1997/lightNLP | ba53f27bddfc699f620c982d645fcee66efa4bd2 | 430709f0ba7e9a609aec8bc1ac1e6ffdb549f05f | refs/heads/master | 2020-11-30T01:25:00.874630 | 2019-12-26T09:34:08 | 2019-12-26T09:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from lightnlp.tg import TS
ts_model = TS()
train_path = 'D:/Data/NLP/corpus/ts/train.sample.tsv'
dev_path = 'D:/Data/NLP/corpus/ts/test.sample.tsv'
vec_path = 'D:/Data/NLP/embedding/word/sgns.zhihu.bigram-char'
# ts_model.train(train_path, vectors_path=vec_path, dev_path=train_path, save_path='./ts_saves')
ts_model... | [
"iamlightsmile@gmail.com"
] | iamlightsmile@gmail.com |
f059279de51162130e3211ed1a5bc73382cb4e17 | 7733ae47afbf86989e1d3bfd06b9c4ca3edba0e1 | /graph_theory/algorithms/traversals/dfs_adjacency_matrix.py | ecc728c91b2921a70f92c7c9a3bb8eb78b7013b8 | [] | no_license | EricMontague/Datastructures-and-Algorithms | 853ac290557e9ecf60c187401a7d576a99529ba7 | 2ce6d8b893f0b8affc8c880165fb3f7ecfdeb19b | refs/heads/master | 2021-07-25T14:59:59.059604 | 2021-01-26T18:24:44 | 2021-01-26T18:24:44 | 242,427,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | """This module contains an implementation of depth first search
where the graph is represented as an adjacency matrix.
"""
def dfs(adjacency_matrix):
visited = set()
for node in range(len(adjacency_matrix)):
if node not in visited:
yield from dfs_visit(node, adjacency_matrix, visited)
de... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
4847ada7aac82b3bdc4c3d49ae2d57f55fb0de9c | fb4afc975c4df4ea59366e6602a1359dc484aaa4 | /silvio/oldCode/DalitzPlot.py | eaeec76a475ceed002bbe031880b1d1d1c97dec1 | [] | no_license | silviodonato/DijetRootTreeAnalyzer | b63181dc526f76cc67319f5c5292136fac522071 | a47fe92d1a6d6e35b030606fe6ee837bb0a4c2ca | refs/heads/master | 2021-06-24T10:45:34.198060 | 2019-06-04T15:19:38 | 2019-06-04T15:19:38 | 114,103,862 | 0 | 0 | null | 2018-12-04T15:19:11 | 2017-12-13T09:56:24 | C | UTF-8 | Python | false | false | 3,263 | py | import ROOT
ROOT.gROOT.SetBatch()
canv = ROOT.TCanvas()
canv.SetGridx()
canv.SetGridy()
canv.SetLogz()
ROOT.gROOT.LoadMacro("/mnt/t3nfs01/data01/shome/sdonato/functions.C+")
ROOT.gStyle.SetOptStat(0)
#fileName = "/eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_reduced/ScoutingCaloCommissionin... | [
"silvio.donato@cern.ch"
] | silvio.donato@cern.ch |
991a54d9b9dc100af682b11e468e611d7aae3441 | a77fcccb2e46f06842daab98f1057209fe506b18 | /programmers/[프로그래머스]점프와순산이동.py | d6a5670026080f80b9d0a371ee5ac6cb0cfe497b | [] | no_license | gan-ta/Algorithm | 0c55344a6eb8038c9247485a50bc6324e4ef4c3e | 80313278e6e8461891519fd556a65998939bc564 | refs/heads/master | 2023-05-27T17:03:28.236320 | 2021-06-14T18:48:35 | 2021-06-14T18:48:35 | 257,796,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def solution(n):
answer = 0
while n != 0:
if n % 2 == 1:
n -= 1
answer += 1
else:
n //= 2
return answer | [
"gilmat@naver.com"
] | gilmat@naver.com |
09e3d55c4902e3fab8ae335e95191365a6f6ae56 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03544/s406810068.py | fdbd6954669014505be15eecad8c79b2a89d852a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import sys
N = int(input())
if(N==1):
print(1)
sys.exit()
ans = 0
L0 = 2
L1 = 1
for i in range(N-1):
ans = L0 + L1
L0 = L1
L1 = ans
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2a8c743838c0fc845ea23a82468d8f92cd63bfcf | 751fe2de18f00596e4f1ed342b56bd6f38ee2053 | /wisdem/orbit/core/defaults/__init__.py | cbf34fcb245fc5bd3aa577d76fa3a72534132185 | [
"Apache-2.0"
] | permissive | WISDEM/WISDEM | 42fa780915d62fd4e4203050e886093ecc806c8a | d7270ebe1c554293a9d36730d67ab555c071cb17 | refs/heads/master | 2023-08-04T01:22:43.215105 | 2023-06-22T23:36:07 | 2023-06-22T23:36:07 | 23,678,280 | 120 | 86 | Apache-2.0 | 2023-06-22T19:26:34 | 2014-09-04T20:30:24 | Python | UTF-8 | Python | false | false | 543 | py | """Default inputs used throughout ORBIT."""
__author__ = "Jake Nunemaker"
__copyright__ = "Copyright 2020, National Renewable Energy Laboratory"
__maintainer__ = "Jake Nunemaker"
__email__ = "jake.nunemaker@nrel.gov"
import os
import yaml
from wisdem.orbit.core.library import loader
DIR = os.path.split(__file__)[0... | [
"garrett.barter@nrel.gov"
] | garrett.barter@nrel.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.