blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
df3f008363ac70ee6b4b9dc957fb96ab1063495d
e37704724079fbfa189676773a51045f331f8957
/workshop/views.py
2a9b1d579681d7db35e0f02b1a343d28ddde90ec
[]
no_license
LE010AmbikaEluri/django
c7e5d5bd53830454712bf339a6d4d5968020d226
936ea740a81e826dea122b79754ab260ef405c78
refs/heads/master
2023-03-05T19:36:29.429531
2021-02-17T10:49:12
2021-02-17T10:49:12
339,304,359
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def static(request): return HttpResponse("<center><h1 style='background-color:yellow;margin-left:450px;margin-right:450px;font-family:jokerman;border-radius:30px;color:purple' ><i>This is static page</i></h1></center>...
[ "elurinagaambika@gmail.com" ]
elurinagaambika@gmail.com
a2d3bdc4874c1eb4c521a3795f70040ff4234c02
4375858b73ee22388ad31e239022e32fa2ab6bc7
/Greedy/1026.py
4f62224791724db738faf4a7c43c1ac2efb0f473
[]
no_license
ujunhwan/algorithms
3334be171179aad400ffde397bbf32ec81c13a9b
ba452c931971bc9344948f7ffbede9f3b37e6376
refs/heads/master
2022-07-04T14:02:40.738684
2022-06-22T06:54:11
2022-06-22T06:54:11
242,977,402
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) A = sorted(A, reverse=True) B = sorted(B) ans = 0 for i in range(N): ans += A[i] * B[i] print(ans)
[ "ujunhwan@gmail.com" ]
ujunhwan@gmail.com
e1a4c11831f736d1fa169f4caadb698a026fadc1
bb7523d61b416669d944403c410a883dc02ab957
/chap01-04/p3-3-1.py
d6f1607c70ea9fc867cdb1d0a14483d947d03b87
[]
no_license
Junewang0614/pypypy
e6cf5ea6125ee33c031776a66dfd9cb23ea76882
05412a5c31a2d966e4ae5c0bc6abebac48ad80b1
refs/heads/master
2020-04-06T22:40:38.990821
2018-11-29T11:52:03
2018-11-29T11:52:03
157,843,422
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
places = ['usa','fg','jnd','dg','adly'] print('the original list:') print(places) print(sorted(places)) print(places) #利用reverse places.reverse() print(places) places.reverse() print(places) print('\n') #使用sort places.sort() print(places) places.sort(reverse = True) print(places) print(len(places))
[ "1554717543@qq.com" ]
1554717543@qq.com
480d4b91a5137df36e00bde2023d0a3b25ad6d0b
abdbb23dace45fb1d189f0e65bf2bf42617a9c42
/tools.py
2f520f96d6bb63712bc401c015602b1a53a46049
[ "MIT" ]
permissive
5alt/ZeroScan
d66497b0719ef37e2416d8d3508b7af99908bf5a
6811ca6a03cf7d6d4cdb81498a9391e175ae6aa0
refs/heads/master
2022-01-04T14:45:09.553819
2019-09-18T07:02:31
2019-09-18T07:02:31
115,597,331
62
12
null
null
null
null
UTF-8
Python
false
false
14,067
py
# coding=utf8 import dns.resolver import os import socket import tldextract import requests import json import re ''' answers = dns.resolver.query('www.qq.com', 'CNAME') print ' query qname:', answers.qname, ' num ans.', len(answers) for rdata in answers: print ' cname target address:', rdata.target ''' ...
[ "md5_salt@qq.com" ]
md5_salt@qq.com
be5914138a1edfc5386b97874081327ac1ba63c5
c07351b5e0652fa710611a9ee3d2de7f8627cf7b
/gui.py
06361e29d34682a168fd6bc5a4ffb6a4955e0f70
[]
no_license
marcusfreire0504/jogo-cidades-br
d0e6b02a6879b24cd33c086a071dc8c101469ac6
54041206b3a7ce05bd06cbd7001d96a5bb307d38
refs/heads/master
2022-12-04T17:01:48.846558
2020-08-14T02:45:48
2020-08-14T02:45:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,428
py
# Adaptado de: https://www.learnpyqt.com/courses/graphics-plotting/plotting-matplotlib/ import sys import matplotlib matplotlib.use('Qt5Agg') from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox, QLabel, QGridLayout ...
[ "noreply@github.com" ]
noreply@github.com
264bc04f9c058a5ad98e9ceb9516cd3b05784fa9
431c0ff7a2c82cc0d8408863f346ef30582674e2
/log_parser.py
335294a5bf9f747ab132b08efac45ae3efce47f0
[]
no_license
petero2018/LearnPythonRepo
d1eedfb05e647da756b05af2af064f3c69262203
83dbc84646180f80be3af26cc0270e33dac998c8
refs/heads/master
2021-09-07T10:30:10.396460
2021-08-09T16:23:46
2021-08-09T16:23:46
141,932,397
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
""" Imported method by log_parser_test.py Version: Python 3.6.8 Created by: Peter Osztodi """ def return_method(log_line, return_type): split = log_line.split(" ") (ip_address, datetime, http_path, http_code, user_agent) = split[0], split[3].replace('[', '').replace(']', ''), \ ...
[ "osztodipeter@gmail.com" ]
osztodipeter@gmail.com
83cc85ec7eee020ef28767d93c92c5b64106c2da
b08b90acbe1402bd23f0adc8be9372857b795d19
/text_to_speech.py
3295ec14c7613ef7c744edbfb79ab43ce0413eb6
[]
no_license
karankrish/raspberry-pi-works-
c3aac8fc5bb5170aa1f873f90c776cf2a17cc1fa
7a3ab4cb7ea6e1a9b95546e628e671afec7ae258
refs/heads/master
2021-06-29T02:28:00.181611
2017-09-16T15:43:16
2017-09-16T15:43:16
103,761,404
2
0
null
null
null
null
UTF-8
Python
false
false
128
py
import subprocess from subprocess import call import time call(["espeak","Object found is an apple"]) time.sleep(5)
[ "noreply@github.com" ]
noreply@github.com
ab5d7ae4d2970f73c35f309d5f4cc38faad371b5
48c8f1b15848f0fcf8bf9aa16b575cf871812470
/stock_price_alert/users/forms.py
ac1edceb892054094fd6a4156c1484764caaebad
[ "MIT" ]
permissive
vinyasmusic/price-alert
d01ea3963520c9730bc54aa83e2914090f2cb201
8781bb567898ee9a60164994ceedbcf4372d6357
refs/heads/master
2020-03-25T02:17:11.200074
2018-09-08T08:20:28
2018-09-08T08:20:28
143,282,108
6
0
null
null
null
null
UTF-8
Python
false
false
960
py
from django.contrib.auth import get_user_model, forms from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from phonenumber_field.widgets import PhoneNumberPrefixWidget from phonenumber_field.formfields import PhoneNumberField User = get_user_model() class UserCh...
[ "vinyas@reckonsys.com" ]
vinyas@reckonsys.com
a8340cb3c5b1eb05201fa61d09a62ab1595c6306
f02b21d5072cb66af643a7070cf0df4401229d6e
/leetcode/explore_lessons/binary_search/first_bad_version.py
83b3e34729656e01cef998a3a4d05972fdcfb579
[]
no_license
dbconfession78/interview_prep
af75699f191d47be1239d7f842456c68c92b95db
7f9572fc6e72bcd3ef1a22b08db099e1d21a1943
refs/heads/master
2018-10-09T22:03:55.283172
2018-06-23T01:18:00
2018-06-23T01:18:00
110,733,251
2
1
null
null
null
null
UTF-8
Python
false
false
1,631
py
# 278. First Bad Version """ You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. Suppose you have n v...
[ "Hyrenkosa1" ]
Hyrenkosa1
9eec1cc400fbb7984b504da841f0536458d4af39
9e8ce8d958d76ce1f91e0c37056b479c38d7d31a
/TwitterFiles/credentials.py
940a1b0178113028ba43fabfe3298dbd05bc16dc
[ "MIT" ]
permissive
shresth26/Twitter_trends
deee6c590ed8a7d8a30922a6bf0e351395613f74
9dd0f6d434f612cfc529ab472c8aa0acf27c7ebf
refs/heads/main
2023-07-07T05:18:35.218559
2021-08-15T19:26:54
2021-08-15T19:26:54
315,066,249
1
1
MIT
2020-12-08T10:04:00
2020-11-22T15:15:26
Python
UTF-8
Python
false
false
188
py
import os API_KEY = os.environ['API_KEY'] API_SECRET_KEY = os.environ['API_SECRET_KEY'] ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] ACCESS_TOKEN_SECRET = os.environ['ACCESS_TOKEN_SECRET']
[ "asdavikant@gmail.com" ]
asdavikant@gmail.com
2657de464edf4835687d376884f8264acef4d190
fc11e7caa98e2ebd516230b1a10685b71de1ddd4
/reports/reports_viewer/settings.py
690ab2d60aa33377e8d9d945db67573938e79acd
[ "MIT" ]
permissive
tomaszpiotro/honeypot_reports
a7aed03a5442633d065e8a084ad5c48595a99266
79f59b4967dff6ba52e70309ad668c136a8c0c3d
refs/heads/master
2021-01-19T00:13:14.560650
2015-03-20T00:53:02
2015-03-20T00:53:02
30,028,721
0
0
null
null
null
null
UTF-8
Python
false
false
2,624
py
""" Django settings for reports project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
[ "tomaszpiotro@gmail.com" ]
tomaszpiotro@gmail.com
a08356777e81cc24ffeefcc14d33c6d84298bcd5
2d3665457dbdec7d1d4fb0b0f67a919477f3af49
/day18/test_day18.py
873b4bc1c16b5dc0397d93bf7aba4c089d1d0032
[]
no_license
benoxoft/adventofcode
241b0776e10d934c91dff5cf00469eb9dd43a61b
da443416e726afc9230df3f8450b2fbb9b062dac
refs/heads/master
2021-01-10T14:11:43.171721
2015-12-26T05:06:39
2015-12-26T05:06:39
47,381,121
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
step0 = ("##.#.#", "...##.", "#....#", "..#...", "#.#..#", "####.#") step1 = ("#.##.#", "####.#", "...##.", "......", "#...#.", "#.####") step2 = ("#..#.#", "#....#", ".#.##.", "...##.", ".#.....
[ "benoxoft@gmail.com" ]
benoxoft@gmail.com
522ff02dd877cc809ddfb70c82d09bfaf3dc1983
d1e986b4a69ab96ccc5719912a17d4dea451f24f
/fr_mod/fr_mod.py
8cb5b60c7ee1496ed4dd8568167f1d8297d90063
[]
no_license
meccaLeccaHi/fed_detect
98571db2316423447e12ea8d975c672f940d4c50
fa5c411a2b81f45c620eff6461808212a2665027
refs/heads/master
2021-08-17T08:17:44.099564
2017-11-21T00:18:03
2017-11-21T00:18:03
107,317,485
0
0
null
null
null
null
UTF-8
Python
false
false
5,190
py
''' Usage: import os os.chdir('/notebook/CJ/fed_detect/fr_mod/') import fr_mod foo = fr_mod.semantic_model() a = foo.get_pred_from_samples() print(a) bar = fr_mod.rotation_model() b = bar.get_pred_from_samples() print(b) ''' import os as _os import cv2 as _cv2 import numpy as _np...
[ "ajones173@gmail.com" ]
ajones173@gmail.com
7eb9c3b1844e4e11e6637154178e939473ed5c31
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/strategies/TestEntryOrdersAndExitOrdersProperties/__init__.py
ad460a97fa451a9b23b583505d01b9806d66df6f
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
4,209
py
from jesse.strategies import Strategy import jesse.helpers as jh class TestEntryOrdersAndExitOrdersProperties(Strategy): def should_long(self): return self.price in [10, 25, 30] def go_long(self): if self.price == 10: self.buy = [ (1, 10), (2, 9), ...
[ "algo@hey.com" ]
algo@hey.com
17725c334a18dda160307692e8fcbb0eeb9f72de
6cef5885b4ab108b97a38be94c326493269a2894
/update_header.py
27536d951553966d68cfd2bfbe6590e09d47391a
[ "MIT" ]
permissive
djweiss/matlab-utils
e4feae0e267b7b32566a3ae1bc25c646008091e6
47e1b939ea25d24755294e7a1f9b4d154721a847
refs/heads/master
2021-01-20T11:31:10.950584
2013-10-01T22:30:08
2013-10-01T22:30:08
6,724,947
2
2
null
null
null
null
UTF-8
Python
false
false
2,912
py
# ====================================================================== # Copyright (c) 2012 David Weiss # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # w...
[ "djweiss@cis.upenn.edu" ]
djweiss@cis.upenn.edu
c19f605ab193cc8be99874cea988ac066ac3e0a5
9f414bde21046a264f3189786a7180f9ffd79d30
/web/web/finders.py
74784abfe14fbff5f035c0d81326851720746e80
[ "Apache-2.0" ]
permissive
rcbops/FleetDeploymentReporting
ebd0ca07f099bdcf4e231d734145307e8f9bb9a5
aaab76706c8268d3ff3e87c275baee9dd4714314
refs/heads/develop
2020-03-21T16:09:25.757015
2019-02-26T16:15:52
2019-02-26T16:15:52
138,753,891
1
7
Apache-2.0
2019-02-26T16:15:53
2018-06-26T14:58:06
Python
UTF-8
Python
false
false
1,311
py
import os from django.apps import apps from django.contrib.staticfiles import utils from django.contrib.staticfiles.finders import BaseFinder from django.core.files.storage import FileSystemStorage class AngularTemplateFinder(BaseFinder): """Incomplete implementation of a finder. Only implements list.""" sto...
[ "james.absalon@rackspace.com" ]
james.absalon@rackspace.com
95982504cc9e9979f5b8822864260c17fa2f7746
012d70ca7c148a8ba192b568831cc7b770e0a1d0
/trello/migrations/0002_userprofile_photo.py
98a8b68733c18f435957e9c30aea7928618d5e72
[]
no_license
mvyuson/trello-app
58434371674227f870b95f026d48c3a1237625ae
40adcd0b5bc07217916096270fd3bee222bdeed9
refs/heads/master
2023-03-11T23:39:41.887740
2021-03-04T18:43:06
2021-03-04T18:43:06
341,892,889
0
0
null
2021-03-04T18:12:46
2021-02-24T12:26:43
Python
UTF-8
Python
false
false
407
py
# Generated by Django 2.0.13 on 2019-09-13 08:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trello', '0001_initial'), ] operations = [ migrations.AddField( model_name='userprofile', name='photo', ...
[ "madarga@email.com" ]
madarga@email.com
2176690dae448b8b2e6b44a37ead6da57cf654a8
a222c577f924c390b244beaa67b4b042c2eb7337
/bin/kt_regression.py
ffbbe2fa6643850cdc769f50a86c7be01586058e
[]
no_license
bdqnghi/sentence-ordering
59baf539e9f30876860b73805b74862d1beef804
fb62eea650f132ea3d01aabb831ea49531824183
refs/heads/master
2020-03-28T08:07:52.637593
2018-02-01T11:38:51
2018-02-01T11:38:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
import click from sent_order.models import kt_regression as model from sent_order import cuda @click.group() def cli(): pass @cli.command() @click.argument('train_path', type=click.Path()) @click.argument('model_path', type=click.Path()) @click.option('--train_skim', type=int, default=1000000) @click.option(...
[ "davidwilliammcclure@gmail.com" ]
davidwilliammcclure@gmail.com
c64e69ff6309112ac942fab5fa089e661fbdca82
76ce66176e5e2810cf1a370421aba25991a79361
/management/admin.py
7e9dd58af03ba03a9decddabd6cc4c4db8c6ee05
[]
no_license
prince-cloud/SMS
104fa27c076d7188fd49fb9987224ca8a6a51160
8b791d4b48df27a64521de1e3a04b056f31571b9
refs/heads/master
2022-10-26T15:58:38.329852
2020-06-14T10:26:45
2020-06-14T10:26:45
272,124,428
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from .models import * # Register your models here. admin.site.register(Student) #admin.site.register(Staff) admin.site.register(User) #admin.site.register(Subject) #admin.site....
[ "acheampongprince227@gmail.com" ]
acheampongprince227@gmail.com
77559e8e4820549a28dfcb8c644b624959b47cc7
ed7907d39df5ecfa2ed40f5dba77646dd680c0ba
/QTWithLayout(GridLayout).py
5a545ebb563dc54584e033aab90de5375def5a9f
[]
no_license
neighborpil/Py_EasyPython
2cc0a7b7914c6a720f9c2da426f5bceba2bf8f2d
042e82e6c67549da307800c87492145b731319ec
refs/heads/master
2021-07-06T05:28:43.364552
2017-10-01T04:41:10
2017-10-01T04:41:10
103,515,499
0
0
null
2017-10-01T04:41:11
2017-09-14T09:46:24
null
UTF-8
Python
false
false
1,354
py
#QTWithLayout(GridLayout).py #레이아웃을 사용한 QT #QGridLayout #!/usr/bin/python3 #-*- coding:utf-8 -*- import sys from PyQt5.QtWidgets import (QMainWindow, QWidget, QLabel, QLineEdit, QTextEdit, QPushButton, QGridLayout, QApplication) class GridExample(QMainWindow): def __init__(self): ...
[ "neighborpil@naver.com" ]
neighborpil@naver.com
8166369c602eeddda3af3e33260b7934a0e172da
02a388ea6370767dc5cbbb3da5394c837e3ad91e
/venv/bin/pip
cafeb0c1d349f567879fc45515ef7b3e98a37146
[]
no_license
MikolajIwan/python-test
63fb640765edb4f76cbb0a8044adc0af7997bb62
19ae424d43f993ea3726746ee04209beb05c78df
refs/heads/master
2020-03-26T03:52:21.834566
2018-08-12T15:37:33
2018-08-12T15:37:33
144,475,125
0
0
null
null
null
null
UTF-8
Python
false
false
403
#!/home/mikolaj/PycharmProjects/untitled/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) s...
[ "mikiiwan1@gmail.com" ]
mikiiwan1@gmail.com
3803627fe0eb3810269aa5de9ddec6bcc74b3e74
eac9acde5c9cf8b68fecfb8b599bd27d5ee9a016
/criar_banco.py
82e7499c0462908c513d2188143659cd6a251583
[]
no_license
raonifduarte/banco_dados
c8534871eefd1e199f59507eeb66f2307c90adc9
72ccfa0bcd66ce82a8521118ab4eb97fe6586669
refs/heads/main
2023-05-27T23:12:30.193667
2021-06-16T15:52:15
2021-06-16T15:52:15
377,549,864
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
from mysql.connector import connect conexao = connect( host='localhost', port=3306, user='root', passwd='12345678' ) cursor = conexao.cursor() cursor.execute('CREATE DATABASE IF NOT EXISTS agenda')
[ "noreply@github.com" ]
noreply@github.com
c6d713b8e117b5c4bf6f1bb48e0a2414ce980434
2ffba4aebc77356f25fd54cf9bab791751dd1964
/lusidtools/lpt/qry_scopes.py
610a48796047f560071f4f14218985c96c0e4203
[ "MIT" ]
permissive
tengineerio/lusid-python-tools
41ba8ed45a73c4bd7b83fa96f76feb9b8bc68498
fcebdf25ddd2a2ba304387e5e32cfe0054851718
refs/heads/master
2020-12-22T14:24:51.204969
2020-01-15T12:08:51
2020-01-15T12:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
import pandas as pd import dateutil from lusidtools.lpt import lpt from lusidtools.lpt import lse from lusidtools.lpt import stdargs def parse(extend=None, args=None): return ( stdargs.Parser("Get Scopes", ["filename", "limit"]) .add("--portfolios", action="store_true") .extend(extend) ...
[ "rizwan.saeed@finbourne.com" ]
rizwan.saeed@finbourne.com
a3d1f6a836ea12a99fd8603bf87b4e3ac961b6dc
5b0165d07284b93653fd7240d7974ab488090c61
/MutiDecisionTensor/roc.py
586ddd1af2aa3e36aa9702c34bf6fd3ef75abbe2
[]
no_license
molamolaxxx/BaidubaikeQMSystem
1f727540c10d6c24d0060f7531241b934f91b695
b8b6383fd77df31157595e12c4caf367ffae2bc4
refs/heads/master
2023-05-28T05:12:09.933852
2021-02-15T09:39:24
2021-02-15T09:39:24
197,353,678
0
1
null
2023-05-22T22:54:13
2019-07-17T09:00:47
Python
UTF-8
Python
false
false
2,860
py
'''评分阈值下的roc曲线''' from predict import predict_use_Weighting,pd,np,Config,confusion_matrix def run_auc(x,y): x.sort() y.sort() sum = 0 num = len(x) - 1 for i in range(num): sum += (y[i] + y[i+1])*(x[i+1]-x[i])/2 print("auc:"+str(sum)) if __name__ == '__main__': conf = Config() '...
[ "408287749@qq.com" ]
408287749@qq.com
b31271bf5b2a7f4f3e4e54511af329097f3eb676
fcec6c7b0f4d29e58c258b429b148c929d10652a
/setup.py
843faa61bb0e25ffc15b436157ca4c7a7e8b8f86
[]
no_license
teto/xp_couplage
833eb977e8032c14255f07639c8050423fbbd6ac
5c2ce3a62cf08264e49cbbc8dea903eedeea2da2
refs/heads/master
2021-01-10T21:54:05.341721
2014-01-08T14:51:26
2014-01-08T14:51:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,446
py
#!/usr/bin/python3 # echo "For instance http://79.141.8.227:8000/xpfiles" # echo "or http://153.16.49.120:8000/xpfiles" import linux import XPTest import glob import argparse import sys import os import apt import configparser import lispmob #from configparser import ExtendedInterpolation global config # modes= {...
[ "mattator@gmail.com" ]
mattator@gmail.com
7b67c8e8874cf42b79a25e09dfa6d55cfb1ff602
8eba1b64231725950018b750ef27f05c8a161259
/hotel/models/cancellation_policy.py
473f7adbf5d7bc934141fa6f52aef833fbc8d21f
[]
no_license
sam33n/hotel_management
bac13d60ea10fd5e8a6865a7794fc670ee7e7a3d
603df6bbba390c40f569766352bd6e58deea4d54
refs/heads/master
2020-03-25T10:54:29.769910
2018-08-30T12:11:38
2018-08-30T12:11:38
143,710,256
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
from odoo import models, fields, api, _ import datetime from dateutil.relativedelta import relativedelta from odoo.exceptions import ValidationError class BaCancellationPolicy(models.Model): _name = 'ba.cancellation.policies' _description = 'Cancellation Policy' name = fields.Char('Name',required=True) ...
[ "sheikhsameen@gmail.com" ]
sheikhsameen@gmail.com
df489c087490e47912132da64fe688a7e1fbff4c
de0a0e010242f28fb8715b52dc732d12821a79a9
/datacode/tng/get_sfhzh.py
6e8e1025e4893b95c335b7368cd0f29173c800fa
[ "CC0-1.0" ]
permissive
hgc4/TNG-Networks
47495f5cf2031ac94ec2b3035400a896fc4713a1
034ec7042c4f18ff8f522babfd77e344b5334b91
refs/heads/main
2023-04-10T12:50:46.906429
2022-11-24T19:47:02
2022-11-24T19:47:02
558,518,711
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
from basemodule import * from tngmodule import * # This code computes and saves the star formation and metallicity histories of randomly selected subhalos in a chosen simulation. # Choose the simulation run simulation = 100 # must be 50, 100 or 300, in int format order = 1 # must be a number from 1 to 4, inclusive, i...
[ "noreply@github.com" ]
noreply@github.com
b422a944d1f29b3f7038e03480ecbf17ddf705f8
48f092fd8191b0218df8605dc7125e526764e59e
/NestedLoops/app2.py
231571ece85b4688453d6c27e1842e5019388cf3
[]
no_license
LalityaSawant/Python-Projects
2edb430c094fe3d6b4e706cc61f885aa07e24dff
b142708256e26867f09b3063f5f3fffa305ec496
refs/heads/master
2020-05-01T03:00:26.012301
2019-03-23T22:09:33
2019-03-23T22:09:33
177,235,109
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
numbers = [0,1,2,3,4,5,4,3,2,1,1,1,4,6,7,8,9,9,9,9,8,7,7,6,5,5,5,6,7,8,8,7,6,5,5,4,4,3,3,3,3,3,3,2,2,3,3] x = 'x' for number in numbers: output = '' for count in range(number): output += '0' print(f''' {output}''')
[ "lalitya.sawant@gmail.com" ]
lalitya.sawant@gmail.com
74f2d8bb33061539d3c0eb9e25c12a0858c5a7ff
71b4ab667f24a53ac1212896e4055e5bf56d5ca6
/backend/manage.py
b65988d6aa2be9092022a1a52b487db42a73d5fc
[]
no_license
crowdbotics-apps/small-firefly-27634
d36b283d9397b5e253013a318dcce8173575fd9d
ca990c2dc7778c47af8ddbb3945c610d91ed9681
refs/heads/master
2023-05-05T22:22:21.938577
2021-06-01T00:21:39
2021-06-01T00:21:39
372,658,277
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'small_firefly_27634.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f9eb6be63dc651184245e5af213c49bb1d739776
18fdc3c0b6ea60243fec3dce3cca8b35b567ad59
/rot13.py
88bce8833e86d46dd0df98ebec1c94924e411156
[]
no_license
vanstek/daily-kata
cff57c9b2c1aa36e88e24b837910f2d80c768fc9
62ca2ab1e64ccb72b17ca58477f79f0f1eaffc58
refs/heads/master
2020-09-03T18:35:36.293186
2020-01-21T20:38:00
2020-01-21T20:38:00
219,534,745
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
#Rot13 #Level: 6 kyu ''' Create a function that takes a string and returns the string ciphered with Rot13. If there are numbers or special characters included in the string, they should be returned as they are. Only letters from the latin/english alphabet should be shifted, like in the original Rot13 "implementation"...
[ "noreply@github.com" ]
noreply@github.com
9e192df2b9a5d19c7e66005ef19a55f64a3ec28f
ae95fecede26368f9b882c13f81349e6a9831570
/examples/p132_7_3.py
456c95a2daf1a0a361767edb1903c28370781cb9
[]
no_license
geenty/quant-trading-ex-in-py
738ae5c6cf11257db3d231f59153b63e60bdfc15
847fb1252f776f50bc19370e8c3478d2489e293f
refs/heads/master
2020-04-13T03:17:06.727814
2018-12-28T17:11:56
2018-12-28T17:11:56
162,926,727
1
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
""" Example 7.3: Testing the Cointegration versus Correlation properties between KO and PEP pg 132 """ import numpy as np import pandas as pd import matplotlib.pyplot as plt from statsmodels.tsa.stattools import coint from statsmodels.api import OLS from scipy.stats import pearsonr df_ko = pd.read_excel('data/KO...
[ "jgeenty@circle.com" ]
jgeenty@circle.com
f66ea4ff1e6d9982669b153c512894197cfed009
f287a453780bb67c34ad6ff83b004ce96a7a7888
/src/Counter.py
0ebe5a1b4128aa9feca7c5ecfdbe261f19c0234d
[]
no_license
shanemoore-lewy/pootie
8d7c8ac310e7c1bfd8892ea5ff78e085598cba91
89c1590ce7edcdac320cc7e6ecdc92576d9d6a15
refs/heads/master
2020-04-28T04:15:18.809521
2019-03-10T13:00:52
2019-03-10T13:00:52
174,970,794
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
class Counter(): count = 0 def inc(self): self.count += 1 return self.count def dec(self): self.count -= 1 return self.count
[ "lennon.paul@gmail.com" ]
lennon.paul@gmail.com
d5b3329a7bdbbaade0ecc153959e6eee14c73b96
a9e6f33dd49c95ec09c1798fcbc80c1e875e8bc1
/models/bert/measures.py
7deda356197230c070c09b4d17ef9a164854e301
[]
no_license
ibm-aur-nlp/adv-def-text-dist
61726997fe8ba24892927ab67edbc9eee740cb62
9146686f9cdf5df1a7ae5d8e02e39b23fc26ddfe
refs/heads/main
2023-03-12T14:59:09.347063
2023-02-28T01:07:28
2023-02-28T01:07:28
336,163,054
6
1
null
2023-02-28T01:07:29
2021-02-05T04:26:38
Python
UTF-8
Python
false
false
11,543
py
import collections import tensorflow as tf import json import six import models.bert.tokenization as tokenization import math def f1_score(prediction, ground_truth): print('compare: '+prediction+'\t'+ground_truth) prediction_tokens = prediction.split() ground_truth_tokens = ground_truth.split() commo...
[ "antonio.jimeno@au1.ibm.com" ]
antonio.jimeno@au1.ibm.com
b9895287e59d4d083df29a36b630b6abae9c53eb
2d4d0b293a96267dde951f41ad155e895722b214
/JEC/python/L2res/occ2d_draw.py
481732bdd9b9aee823e559d76b7ac6d13697726d
[]
no_license
gqlcms/JetMET
343f7df63d6a96edde0d618d663ec506ed1f1503
d1390138d17312eac353093602436c6573ae2216
refs/heads/master
2020-07-29T11:22:11.111026
2019-05-09T12:44:46
2019-05-09T12:44:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,862
py
#!/usr/bin/env python ''' Analysis script for L3 residuals (Z balancing) ''' # # Standard imports and batch mode # import ROOT ROOT.gROOT.SetBatch(True) import itertools import os from math import sqrt, cos, sin, pi, atan2, sinh from RootTools.core.standard import * from Jet...
[ "robert.schoefbeck@cern.ch" ]
robert.schoefbeck@cern.ch
d04872bac0a950de742027fee0e7b9b5f0e2ab53
544d4f57945a08cb382b1ef04ae73fb6eaccfb29
/105.py
9c481c8d2568ed9f326e517c84e96b9ec4d3b0b3
[ "LicenseRef-scancode-unicode", "ICU", "NAIST-2003", "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
rzhang1654/pyco
7ea06a49cb169b4f70bf5d832ed39af5e416ee60
80a23c591da0f36f240f644ce8799fe8f9f5ed98
refs/heads/master
2023-05-25T11:44:14.027525
2021-06-02T14:57:17
2021-06-02T14:57:17
373,204,559
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
#!/usr/bin/env python # from atexit import register from re import compile from threading import Thread from time import ctime from urllib import urlopen as uopen REGEX = compile(r'<script type="(.+?)">') EXELON = 'https://www.exeloncorp.com/leadership-and-governance' PAGEs = { 'ethics-and-conduct': 'ethics and...
[ "run.zhang@exeloncorp.com" ]
run.zhang@exeloncorp.com
7d3c3b46f765e95c5861c07a8212a3b288df94e5
2c9a285b7cfa13b7510552301afaee19fdcbef91
/Deep_Learning/batchNorm.py
04376d3eb8d5d8d09d17363ca87dce713ba71f7d
[]
no_license
manoj2527/Mini_Projects
395b95be0539d0fe9e56be2a79fa720278ae0dc2
44987c050292ef629489af0d698b8ce1651a9413
refs/heads/master
2020-07-01T08:20:40.635617
2019-08-08T11:00:36
2019-08-08T11:00:36
201,105,723
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
import torch ##https://wiseodd.github.io/techblog/2016/07/04/batchnorm/ class batchNorm: def __init__(self): self.type = 4 self.gamma = float(torch.rand(1)) self.beta = float(torch.rand(1)) self.inputNorm = None self.var = None self.mu = None self.dgamma = None self.dbeta = None s...
[ "mcaondoejr2725@gmail.com" ]
mcaondoejr2725@gmail.com
84e923b21766411b4d9a8c97d74a2b7abe21923f
d1365cec4274ab2480749df4a8888f265a5a1631
/code/V4/readingfromfilelnx_v4.py
c5ba670c8bf82dc7df1b5d4a2ed6f50af727dd8b
[]
no_license
aat145914/Digital-Icon
ed29a13848c683e976743d87c0a9821966fada80
45c5e994181f5d89e8b5db0622158bf7c0cc638f
refs/heads/master
2021-06-02T00:55:57.370279
2021-05-01T18:58:36
2021-05-01T18:58:36
74,229,851
0
0
null
null
null
null
UTF-8
Python
false
false
3,862
py
#Renamed repository Digital-Icon import os from datetime import date from time import sleep #Check if folder contains a ver2.py (meaning updated ver) and rename ver.py, new ver 14 filelist1 = [ f for f in os.listdir('/home/pi/icons') if (f.endswith('ver2.py'))] if filelist1: #remove old ver.py filelist2 = [ f for f...
[ "A T" ]
A T
5aeb1f669afbcd1e66e5753d1261358a4685a086
8d040726d7f86e916bb0589f2ab617814badabb2
/xulrunner/gfx/skia/moz.build
a4145c5286c6d1f8a2114d095274195da3d02364
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
rojkov/xulrunner
bbf961cf03e2cae9e1315912c4b1074bc88f049e
0735fb7e8b35ea3a180402bfd64a8768f70fad89
refs/heads/master
2020-05-23T16:21:00.727567
2013-06-04T12:27:22
2013-06-04T12:27:22
10,478,034
0
1
null
null
null
null
UTF-8
Python
false
false
13,551
build
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. MODULE = 'sk...
[ "dmitry.rozhkov@jollamobile.com" ]
dmitry.rozhkov@jollamobile.com
73a1699a4c433f444322863f35d434f2f63f9906
e9daa26dbadf5ebe6237534ec08184db900108e6
/vie_creation_data.py
ce9d1a9eeb5d0b6ba594aee98545dfc4b655ab08
[]
no_license
alexandreoliveirasouza/jeu_vie
b9f4efd0671dbd0bd4398c8b82420d5d2556f233
f8d7b576d7a42fc94823ffae136409cea2c24586
refs/heads/main
2023-01-03T01:59:02.435722
2020-10-21T13:20:04
2020-10-21T13:20:04
306,018,915
0
0
null
null
null
null
UTF-8
Python
false
false
8,214
py
# -*- coding: utf-8 -*- """ Created on Sun Oct 4 15:32:12 2020 @author: alexo """ #Ce script crée un fichier appelé data_test, si vous voulez le changer complétement il faut le supprimer #sinon on va juste ecrire à la suite #Il faut paramettrer n et p comme souhaité import random import pickle impo...
[ "noreply@github.com" ]
noreply@github.com
04aeb4ca927871108dc181cb56b428477c5c3c3d
b445cff314d1aa9b4e02ad35ecb5f090a3add24a
/runoob.com/ex026.py
7e56ce5a8435e8390901d8f9ea68a8ad0c6131a1
[]
no_license
laxian/pyexcercise
c21f657291a1ca235238a370f6aa0cc506a767d5
93f3432dc17a77128b3960b8e346c8bb4ee8809e
refs/heads/master
2021-01-15T12:59:44.062720
2019-04-29T05:39:24
2019-04-29T05:39:24
99,662,792
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
#!/usr/bin/python # 递归求阶乘 def fact_r(n): if n==1: return 1 else: return fact_r(n-1)*n for i in range(1,6): print(fact_r(i))
[ "laxian2010@qq.com" ]
laxian2010@qq.com
b0a70ce46619abeca570bbb51c2cdb367ed03671
d9c728ef51726e6102844085e670f968152a9592
/24.py
04240d4afcf250c371f3d9d272369cad855596ca
[]
no_license
SamAmco/ProjectEulerSolutions
7bcf72858f447876983f01d0837bf202ab8d3847
cefafd0245b5324812a0eab341045b944c1ee150
refs/heads/master
2021-01-11T01:55:24.861300
2018-12-17T02:23:34
2018-12-17T02:23:34
66,961,744
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
def createNumber(arr): ans = 0 for n in arr: ans = (ans * 10) + n return ans def findCombinations(arr, leftSide, rightSide): if (len(rightSide) == 0): return arr.append(leftSide) for i in range(0, len(rightSide)): nextPerms = findCombinations(arr, leftSide + [rightSide[i]], rightSide[0:i] + rightSide[(i+1):...
[ "sam@mantle.tech" ]
sam@mantle.tech
8cfe6f1c79cec1a8cf025bbe1a374ed56c76b526
29e94880e546281f6a95edd280550f3668a4b2be
/mysite/views.py
8238a54b02c8776699f601c0d7026419235d3a55
[]
no_license
arapmoi/Assignment-MobileWebApp
28477f3816f60ce4d12b1495fe9e9db1767ec19a
0e69567ffd078499f83d6f1ac9792fcc271c14da
refs/heads/master
2021-01-23T12:34:42.347769
2017-06-02T14:58:21
2017-06-02T14:58:21
93,176,937
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.shortcuts import render # Create your views here. def about_me(request): return render(request, 'mysite/about_me.html', {})
[ "aremoisaac@protonmail.com" ]
aremoisaac@protonmail.com
5ffc1a48aeb8d1b430bf4fb4ffecdd36107e5d10
f2acfe325ee64b239ba68e8a2474d78f89f274bd
/cloud/infrastructure/sync_gateway/azure_3s_4sgw_20c_D16as_v4.spec
8fe646975ace7a91dd354a2c1c315394a5e4fa7e
[ "Apache-2.0" ]
permissive
couchbase/perfrunner
d12596ff3c2a53b08c488cd48f0c72475cc59c49
e76fd55bf1c733adf9988dee166da36304c36e72
refs/heads/master
2023-08-30T18:14:01.731809
2023-08-30T12:13:49
2023-08-30T12:14:32
12,786,971
23
44
Apache-2.0
2023-08-02T01:56:41
2013-09-12T15:17:58
Python
UTF-8
Python
false
false
2,535
spec
[infrastructure] provider = azure type = azurerm [clusters] couchbase1 = azurerm.azurerm_cluster_1.azurerm_node_group_1.1:kv,index,n1ql azurerm.azurerm_cluster_1.azurerm_node_group_1.2:kv,index,n1ql azurerm.azurerm_cluster_1.azurerm_node_group_1.3:kv,index,n1ql [syncgateways] syncgateways1 = azurerm....
[ "dragos.petru@couchbase.com" ]
dragos.petru@couchbase.com
a740380224548c8d1da24bf183c8a5688926ffe6
0f241436d93584dabab4ae938d87a2fd785c8cdd
/ex11.py
af6af2564f74d26be3312ea224dfc8a86412076e
[]
no_license
chenxshuo/Learn-Python-the-hard-way
5a074c1136f17b466a99852b109d40fb0ed3cd10
0b25441b471a7ab7349ed3f393d3d84bd3dd9ede
refs/heads/master
2021-01-11T22:01:32.201896
2017-01-14T02:56:53
2017-01-14T02:56:53
78,897,458
0
0
null
null
null
null
UTF-8
Python
false
false
985
py
#coding= utf-8 print "I need your information now" print "What's your name?", name = raw_input() print "How old are you?", age = raw_input() print "and how tall are you? ", height = raw_input() print "then how much do you weigh?", weight = raw_input() print "So,%s, you are %r old %r tall and %r heavy ,thank you!"%( ...
[ "noreply@github.com" ]
noreply@github.com
5b703ccc5f94202e1a501ea2e64a8c74d370ae8c
90f67259f6c87d75f3ae9c54216ed01bb0f3c0e0
/TopCoder/Bullets.py
78c14f998f38b33719428c958eda5b2813e61905
[]
no_license
jleon95/Python_Misc
b8b9adfa018ead772827172c6eac34cb1aca282a
e251d8c134832183370e27d40387db7dfb382a8c
refs/heads/master
2020-07-22T10:43:21.331670
2017-02-19T17:53:31
2017-02-19T17:53:31
73,816,057
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
class Bullets: def __init__(self): pass def match(self,guns,bullet): number = -1 for gun in guns: for start in xrange(len(gun)): for scratch in xrange(start,len(gun)+start): if gun[scratch%len(gun)] != bullet[scratch-start]: break else: number = guns.index(gun) return nu...
[ "bigfirelp@gmail.com" ]
bigfirelp@gmail.com
9daac09216ee393a282c8d58467a1c9249f97e67
e4a4b2b95e890d06aaba52336766c91fc42ae505
/tests/test_test_route.py
17f633ec8e8a938b32f2bc07f168129bc8e7f889
[]
no_license
mstoncel/fastapi_psql_boilerplate
20ef1368efc72c388287ded88cd615859915530c
62d0980d3f4054508487ab0c0e2d4f5c432165fd
refs/heads/main
2023-03-13T23:56:00.795039
2021-02-13T05:43:08
2021-02-13T05:43:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
""" Testing test route """ from fastapi.testclient import TestClient from main import app client = TestClient(app) def test_read_main(): """ Function to test route """ res = client.get("/test") data = res.json() assert res.status_code == 200 assert data == {'status': 'Success.', 'messag...
[ "abhayaman669@gmail.com" ]
abhayaman669@gmail.com
0ccc167342609bc1b6f6975b7a7f27be50ced386
ced7595bbc18ba1a593122437fe6091d87ab9f6d
/pycalc.py
7c2755f106e4a4946ce69191c2cb0cd9d6853021
[]
no_license
tfilipp/pycalc
d6c96c88f677eb6bd917ff570f7ace0a2d0aa418
71b294c6684b1a1123fc16e820bb1655604363af
refs/heads/main
2023-03-21T06:49:58.225746
2021-03-18T06:43:05
2021-03-18T06:43:05
321,707,539
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
print("Pycalc v 2.0 by tfilipp") print ("loading...") a=0 b=1 c1=a+b c2=a-b c3=a*b c4=a/b c5=a//b #целая часть от деления c6=a%b #остаток от деления c7=a**b print("Done. Changing to russian and resetting values...") a=0 b=0 while True: a=int(input("Input first number: ")) o=input("""What to do? ...
[ "noreply@github.com" ]
noreply@github.com
5e68c18493ef819954e9d6e37c63d95a3e5e12b4
c1e842a2d1bf88fc6a2aacf239fcfbea9011f4dd
/busca.py
70156a11a5a7080efab706dede56e78294805314
[]
no_license
rickpedrinha/ordenacao-de-vetores
60dee2aca0935d3e34bc91c854a4b2d651d1eb7b
a54f10c0d3bba2304403feb46ea1bcb7bb631d3d
refs/heads/master
2020-04-27T15:23:17.582828
2019-03-08T00:57:40
2019-03-08T00:57:40
174,444,033
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
def busca_sequencial(v, x): i = 0 while i < len(v): if v[i] == x: return i i += 1 return -1 vetor = list(range(100,200)) print(vetor) chave = 132 posicao = busca_sequencial(vetor, chave) if posicao >= 0: print("o elemento %d foi encontrado na posição: %d" % (chave, posic...
[ "noreply@github.com" ]
noreply@github.com
c9e58e81a27a870849d3bfed9fa9d0ddacf18134
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc038/D/4502471.py
1539cc5c3366975fe7df695b0a53f39763ae4186
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
790
py
import sys import bisect input=sys.stdin.readline N=int(input()) data=[tuple(map(int,input().split())) for _ in range(N)] data.sort() data2=[] now=[] for d in data: if len(now)==0: now.append(d) continue if now[0][0]!=d[0]: now.sort(key=lambda x:x[1],reverse=True) d...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
81a7f2ed59fc0c54ea2d63c3b44fb7ae1185397a
13439d6ff595b6ab028927bd30ce5146ce55e52d
/resnet18_v3_agd=16_aug_v2/Resnet_lightning.py
1dc5b22855e102118c74bfc304b99578a27ce85e
[]
no_license
ruichen9/3DCTLungDiseaseDiagnosis
69ee609289f2575f52c392dfe1dbb8e11c0af689
2a68fd854bc5b1806319dfc40e36e084f9c4c5d0
refs/heads/main
2023-05-01T15:01:11.506646
2021-05-28T17:20:09
2021-05-28T17:20:09
371,770,475
0
0
null
null
null
null
UTF-8
Python
false
false
4,390
py
import torch import torch.nn as nn from torch.utils import data from torch import optim import numpy as np from torch.utils.data import DataLoader import pytorch_lightning as ptl from pytorch_lightning import Trainer from pytorch_lightning.callbacks import GradientAccumulationScheduler from pytorch_lightning import log...
[ "mrchenrui@outlook.com" ]
mrchenrui@outlook.com
8f9e0a0d74316777ad735e9daa4e463e3021f408
f5d0dc67b9bd2b9d27b481ee95241c6cbfeb0eab
/checker/migrations/0001_initial.py
10883bce220af25f56fb40cc3b650da039fbfb78
[]
no_license
mikha1lov/health_checker
6316e91a30bfec779ab4784a6437fb7f6c5c6694
12f0eb2022c3aeff18a76382889581854d258d62
refs/heads/master
2020-04-08T06:03:08.112762
2018-11-26T16:43:51
2018-11-26T17:14:04
159,084,193
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-11-23 14:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Url', ...
[ "dev.mikhailov@gmail.com" ]
dev.mikhailov@gmail.com
4722d3808dbe8f989c1dbf9e7f52466a940e0850
1a4098d5d67e0e8399577e1f49c5868c8b66abe4
/scripts/get_causality_dataset_for_signor_triples.py
7a17bf2a35aa0816e8606f63fb88f4253da76486
[ "BSD-2-Clause" ]
permissive
steppi/causal_precedence_training
ff5d05c9b22e0e2e64bd64d3035df7664733e1a7
65c2e08c92be352e1c8f65b80e1071c6c2bd83d7
refs/heads/main
2023-06-18T21:26:32.797086
2021-04-26T18:36:25
2021-04-26T18:36:25
359,596,509
0
0
BSD-2-Clause
2021-04-19T20:58:17
2021-04-19T20:58:16
null
UTF-8
Python
false
false
6,593
py
import os import sys import json import shutil import pandas as pd from indra.statements.agent import default_ns_order import causal_precedence_training.locations as loc from causal_precedence_training.reach_output import \ get_reach_causality_dataframe_for_triple, get_readings_for_reading_ids def curie_from_db...
[ "albert_steppi@hms.harvard.edu" ]
albert_steppi@hms.harvard.edu
b860558d9525b80e85652f2e33d5aa57e3fd91cc
0cab535ec5b00aa1f99614062ac53017bc048333
/tensorflow_graphics/io/__init__.py
53ac26a35cb4db9576f1689a51a5b7be41d19f55
[ "Apache-2.0" ]
permissive
yangbooom/graphics
d3eb6e4940ee624b64d4d87af9de6c7e2c6d924a
2a759c0981372cc58e51e77ba939b00693cb9fdf
refs/heads/master
2022-07-13T11:12:33.204592
2020-05-17T00:23:02
2020-05-17T00:23:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
039f28a2b907c0290a9160273cfc62c3606334b8
af9886fbe6f0b201c40eefdb9cd56472b9f637f2
/ticket_creator_us.py
f32fa8da02ca0d59dcdbcfd2eb92145419552340
[]
no_license
KqSMea8/triagehelpergh
b688e97070b88c11784141b1ffc52ad05420b322
401c21e3c80f72fe707984bbbda358a271531af6
refs/heads/master
2020-05-15T11:31:22.764718
2019-04-19T08:36:51
2019-04-19T08:36:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,180
py
# -*- coding: utf-8 -* """ v2.5 2019.03.22 a. create ticket for US road test """ from DisHelper import DisHelperClass from DisHelper_us import DisHelperClass_us import getopt from jira import JIRA from jira.exceptions import JIRAError import json import re import requests from requests.cookies import RequestsCookie...
[ "gaohao@didiglobal.com" ]
gaohao@didiglobal.com
acf6fb9f47e54f8b0c090b7fe6dc50e0a77e2318
e634f90bc999a2903c92f66384a867a474b40d9c
/Source/Main.py
f6c46809d31de7e9aa6b1e9aee2033be4f65fe5d
[ "MIT" ]
permissive
Dmunch04/Plistr
69f7217fbea24e48870667c8507845ddd1a63547
39d70e3b9f1a827d48a6a951617da0892978515c
refs/heads/master
2020-07-15T21:16:55.539440
2019-09-01T14:27:04
2019-09-01T14:27:04
205,650,024
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
from Window import Window from Helpers import Loader class Plistr: def __init__ (self, Filename): self.Filename = Filename self.Items = Loader.LoadFile (self.Filename) self.Window = Window (Filename) def Run (self): self.Window.Run (self.Items)
[ "daniellmunch@gmail.com" ]
daniellmunch@gmail.com
b40c32af90ee22bf74b3928092c880ecffd075d2
9752970a0b783537da8f88d727ad5146005f90bb
/HathiTrustAgents.py
6106a7387717a98603fe4d94382b5e521b047438
[ "ISC" ]
permissive
nulib/alma-analytic-tools
cf1481e316a3ed8f16944d4235a49ef745c9c6dd
b226aa92d55726eff476b0dc01d54fa1342bc1b8
refs/heads/master
2021-01-17T05:48:31.184914
2016-03-09T15:39:34
2016-03-09T15:39:34
52,469,981
3
1
null
null
null
null
UTF-8
Python
false
false
5,081
py
# HathiTrustAgents.py # -*- coding: utf-8 -*- from AnalyticAgent import AnalyticAgent import codecs import re from string import rjust class BaseHathiAgent(AnalyticAgent): PRINT_TITLES = False def __init__(self): AnalyticAgent.__init__(self) self.noOCLC = [] self.StillLoadingSleep...
[ "deibel@uw.edu" ]
deibel@uw.edu
81120867431d79bbfad20b6629306fb294a78aea
e5654e71ad4f043bb28105c3b6f3cd833e1c52dc
/openai/venv/lib/python3.10/site-packages/langchain/embeddings/sagemaker_endpoint.py
e1371a7d99936cbd102ccb6ba13e593ba23abc8a
[]
no_license
henrymendez/garage
0b795f020a68fe2d349b556fb8567f6b96488ed5
b7aaa920a52613e3f1f04fa5cd7568ad37302d11
refs/heads/master
2023-07-19T20:16:02.792007
2023-07-07T16:58:15
2023-07-07T16:58:15
67,760,348
0
0
null
null
null
null
UTF-8
Python
false
false
7,006
py
"""Wrapper around Sagemaker InvokeEndpoint API.""" from typing import Any, Dict, List, Optional from pydantic import BaseModel, Extra, root_validator from langchain.embeddings.base import Embeddings from langchain.llms.sagemaker_endpoint import ContentHandlerBase class SagemakerEndpointEmbeddings(BaseModel, Embeddi...
[ "henry95@gmail.com" ]
henry95@gmail.com
7fede01bad23361cbb201f9ae03d1b537a916785
5068bc927a7fff73923ce95862ff70120160c491
/electrum_axe/plugins/ledger/qt.py
2c36c1397995c78a133b363be3051db888fc4fa6
[ "MIT" ]
permissive
AXErunners/electrum-axe
cdbce2dbb92e23e32e9f9b733ae9f65f51c0ae9f
7ef05088c0edaf0688fb167df353d6da619ebf2f
refs/heads/master
2021-04-03T09:40:37.109317
2020-08-27T16:53:18
2020-08-27T16:53:18
124,705,752
336
75
MIT
2020-10-17T18:30:25
2018-03-10T23:00:48
Python
UTF-8
Python
false
false
2,709
py
from functools import partial from PyQt5.QtCore import pyqtSignal from PyQt5.QtWidgets import QInputDialog, QLabel, QVBoxLayout, QLineEdit from electrum_axe.i18n import _ from electrum_axe.plugin import hook from electrum_axe.wallet import Standard_Wallet from electrum_axe.gui.qt.util import WindowModalDialog from ....
[ "slowdive@me.com" ]
slowdive@me.com
a1f64fe59c73eb835cd5f9818b3c203b2567aa32
ca54c46b571555673b2793a4049b35a82eba18d8
/settings.py
afc1eef3070944a88bfbe1e6890bc32a7acc8185
[]
no_license
alanwikid/hackthefutureclube-socialproject
ad2fda65a3117a85bd4a3e98b3dd0b6eb40f97f2
1ce1d73283687069b40cc604da622c9686ca7e65
refs/heads/master
2016-08-12T07:09:51.776197
2016-03-15T20:54:34
2016-03-15T20:54:34
53,468,422
1
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
# coding: utf-8 """ Django settings for hackthefutureclube project. author: @alanwikid 2014 """ import os import sys from decouple import config from unipath import Path BASE_DIR = Path(__file__).parent SECRET_KEY = config('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = conf...
[ "alanwiki@gmail.com" ]
alanwiki@gmail.com
5f33fea4c73318f47d528fa89c29a9d39671b35a
b5ad8b75ef8b090b14748b988870d9c4ce256259
/Constants.py
9fadc28d7a1c348576526388b3e45eb0a9ac2513
[]
no_license
ederollora/draw2p4
70fed0b768763b7793da49a68f0a5aefbe90ddde
2c7dd6f3a8409b066b73d6f63b55392852a94fbe
refs/heads/master
2020-04-07T13:21:12.319624
2018-11-21T17:31:37
2018-11-21T17:31:37
158,403,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
DEFINES_FILE = "output/defines.p4" HEADERS_FILE = "output/headers.p4" PARSER_FILE = "output/parser.p4" MAIN_FILE = "output/switch.p4" MAIN_INCLUDE = "#include <core.p4>\n#include <v1model.p4>" INCLUDE_FILE = "#include %s.p4" HEADER_INIT = "header {0}_t" HEADER_LINE = "bit<{0}>{1}{2};" HEADERS_DEF = "struct header...
[ "eoza@fotonik.dtu.dk" ]
eoza@fotonik.dtu.dk
8b7311824ab9a23ac88a7ac5fed9d86293761a1f
6d5d161269e66345a32e0e221f2dbce2a07c742a
/async_sched/server/messages.py
afca8f5818cc66f2f69f7051f2ae055bd29a5126
[ "MIT" ]
permissive
justengel/async_sched
d286c79eb6a705769aa8e59da7508d5995acb523
f980722d51d15025522b2265426b0188ff368418
refs/heads/master
2022-11-07T18:24:50.843013
2020-07-01T02:39:55
2020-07-01T02:39:55
268,154,385
1
0
null
null
null
null
UTF-8
Python
false
false
993
py
from typing import List from serial_json import DataClass, field from ..schedule import Schedule __all__ = ['DataClass', 'Message', 'Error', 'Quit', 'Update', 'RunCommand', 'ScheduleCommand', 'RunningSchedule', 'ListSchedules', 'StopSchedule'] class Message(DataClass): message: str class Error(Da...
[ "jtengel08@gmail.com" ]
jtengel08@gmail.com
cbbce7bc5e7d5301de7e54bf18dada6d58c1c3f7
b9d6107ac93ff8560209aa9cf2bb375f17fa42d1
/lights.py
85a6dcf0fbfa7fc525bb9d69a190eeb811160cc4
[]
no_license
rutvajmehta/Zumi-autonomous_driving
e6033d8189d0741d477684691a550985cf7b86f0
a05ce60fc54c3f153360349944dfa14f1c531ab8
refs/heads/master
2023-02-28T21:50:33.815336
2021-02-10T06:08:55
2021-02-10T06:08:55
290,622,218
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
numLights = input().split() for i in range(0, len(numLights)):
[ "noreply@github.com" ]
noreply@github.com
7b5d81cbcf4171c2438e06c851ff4e7d2d6a0401
76a8ea60480331f0f61aeb61de55be9a6270e733
/downloadable-site-packages/statsmodels/sandbox/rls.py
412cc4d05051951d88945554d1d310bacbbc9c20
[ "MIT" ]
permissive
bhagyas/Pyto
cd2ec3f35bec703db4ac29b56d17abc4bf03e375
907024a9b3e04a2a9de54976778c0e1a56b7b83c
refs/heads/master
2022-11-19T13:05:07.392454
2020-07-21T17:33:39
2020-07-21T17:33:39
281,886,535
2
0
MIT
2020-07-23T07:48:03
2020-07-23T07:48:02
null
UTF-8
Python
false
false
5,136
py
"""Restricted least squares from pandas License: Simplified BSD """ import numpy as np from statsmodels.regression.linear_model import GLS, RegressionResults class RLS(GLS): """ Restricted general least squares model that handles linear constraints Parameters ---------- endog: array_like ...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
ad559c1473b8d2de4ad87714fd9e27f5f99acf3a
af801cac194ceaec9fd1fa2ac7dd8b304239e45d
/model/image_processing.py
b391dda185b63054d8804a16c9142176968b1ca4
[]
no_license
hopeliu20160622/furniture
7303de3ad11fafb708938c9eff31bf12f3ddbb9a
0a7e87088b02a8cfc8c91094b9128a8ecffe56b9
refs/heads/master
2020-09-28T17:14:31.848010
2015-10-16T20:38:29
2015-10-16T20:38:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,714
py
import numpy as np import os.path from sklearn.cluster import KMeans from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA import skimage from skimage import transform from pyimage.pipeline import ImagePipeline # ------------------------------------------------------------------------...
[ "Lil@Lilis-MacBook-Pro.local" ]
Lil@Lilis-MacBook-Pro.local
29b49425f9568ca3501f31afaac38f4735f65cda
3bff3c0fd2dad9281321505edccaf101c2bb8dc5
/frontend_main/apps.py
fff09557fbcb55a4bd6b4e0340b4b51db38084ac
[]
no_license
Randomnation/Blog-Backend
d81116e8f2ef244d6dae03cb7190ed95bc527d14
0a4e5fc93694fd64d18339ee2165480d2d045a55
refs/heads/master
2020-03-17T06:41:19.818618
2018-05-14T13:32:39
2018-05-14T13:32:39
133,365,324
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
from django.apps import AppConfig class FrontendMainConfig(AppConfig): name = 'frontend_main'
[ "krammtacular@gmail.com" ]
krammtacular@gmail.com
c925362f7a177e0811dfb0b9035d7ffefbf1ec34
5c6ccc082d9d0d42a69e22cfd9a419a5b87ff6cd
/coursera/pythonHse/fourth/4.py
b721d875cacc3f42d7207d20fca81d8db4118054
[]
no_license
kersky98/stud
191c809bacc982c715d9610be282884a504d456d
d395a372e72aeb17dfad5c72d46e84dc59454410
refs/heads/master
2023-03-09T20:47:25.082673
2023-03-01T08:28:32
2023-03-01T08:28:32
42,979,807
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
# Даны два действительных числа x и y. Проверьте, принадлежит ли точка с # координатами (x,y) заштрихованному квадрату (включая его границу). Если # точка принадлежит квадрату, выведите слово YES, иначе выведите слово NO. # На рисунке сетка проведена с шагом 1. # Решение должно содержать функцию IsPointInSquare(x...
[ "kerskiy-ev@pao.local" ]
kerskiy-ev@pao.local
07eb7310d5a4a42185b9c9cdeb3b4ee034f1b55a
316dd7e4fffc0eefacba73d0d7cd4c0b63ab9fa0
/chapter08/exm.py
04e2f3492904c02f0b1928231b8ef26237c6ad55
[]
no_license
legendbabs/Automate-The-Boring-stuff
3775c4a3226f4697e9b204bbfafec09630231d1e
7fc37845d21b40f17014879581a6bc108b156c95
refs/heads/master
2023-01-22T13:18:07.348011
2020-11-30T18:40:32
2020-11-30T18:40:32
317,311,883
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
import random import pprint name = ['Tunde', 'Muhamed', 'Tolulope', 'Monsurot'] numbers = '1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k l m n o p q r s t u v w x y z \ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z' num_list = numbers.split() print(num_list) # leader = random.choice(name) # num_ = random.sample(n...
[ "tmsalami@student.lautech.edu.ng" ]
tmsalami@student.lautech.edu.ng
0129bc47af7f7dca0dcdaeb24c472cd2a497d0a7
7135e8775095f16532bbb2cff22f473c64e5b8e9
/gubi_edi_ubl/components/edi_invoice_generate_ubl.py
d12a494081383d70b8c7b2db0009999e893073f9
[]
no_license
fcoll99/gubi_edi_ubl
fdc0d509f3101976627c7da01a33942be11d26f1
0f350cdc87ecb5a081f50e10289d558c4c00654a
refs/heads/main
2023-08-22T18:12:44.683626
2021-10-20T11:03:28
2021-10-20T11:03:28
413,139,843
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# Copyright 2021 ForgeFlow, S.L. # License OPL-1 from odoo.addons.component.core import Component class EdiInvoiceGenerate(Component): _name = "edi.output.generate.invoice.ubl" _inherit = "edi.component.output.mixin" _description = "Generates UBL Invoice (ISO 810)" _usage = "output.generate" _bac...
[ "noreply@github.com" ]
noreply@github.com
6b0ac945902f5f27bf2e8be15a0debaec4c03612
b1f6f965452b9de7132635ed8d715fbdb74ec3c8
/src/inference/run.py
3325b785131470a2bdfd108d5d59a6b2125cc627
[ "Apache-2.0" ]
permissive
uw-mad-dash/Battery-SoC-Estimation
143dbda100a0c7717ed6193bb1c5af58402e5293
7413a4a0ce22ab42c753dbd8fff9aeefbafd89c2
refs/heads/main
2023-04-14T04:07:14.015434
2023-03-09T19:45:33
2023-03-09T19:45:33
589,705,095
9
2
null
null
null
null
UTF-8
Python
false
false
1,788
py
import pandas as pd import os import json import logging from tensorflow.keras.models import load_model from configparser import ConfigParser from src.inference.analysis import get_stats logging.basicConfig() logger = logging.getLogger(name="logger") logger.setLevel(logging.INFO) LABEL_FEATURE = "SOC [%]" PREDICTED...
[ "leself40@gmail.com" ]
leself40@gmail.com
6a1cadf741fbb791f0c910e8bf95a2675272e1fc
ae7ed2904cf49b1db30d48e0bf2de3e04e200c0e
/tools/phonelayout/phonelayout.py
2924fafc27cf5960969b27d3c8d87eb7678d0e4d
[ "MIT" ]
permissive
gabrielfalcao/libphone
b751ba2fc60023ea953da1f99f259a735186aa92
dab24c2ad75f2ac32ed0bd699cf16a1d4557e5be
refs/heads/master
2021-01-17T10:19:21.418845
2016-06-30T02:36:56
2016-06-30T02:36:56
62,322,363
0
1
null
2016-06-30T15:34:42
2016-06-30T15:34:41
null
UTF-8
Python
false
false
13,040
py
import xml.etree.ElementTree import sys class LayoutToCodeTranslator: def __init__(self, xmlPath, headerPath, sourcePath): self.root = xml.etree.ElementTree.parse(xmlPath).getroot() self.mockWidth = float(self.root.attrib['width']) self.mockHeight = float(self.root.attrib['height']) ...
[ "huxingyi@msn.com" ]
huxingyi@msn.com
5aa9971ec085fd2cc0f1d083ddab60ac994eeba8
2ced8097c2f38a10b9246e6434fc41f71e51b7e1
/src/python/scratch/scratch_script.py
e25554c97ce3a27ce301592b62ecfa37b6f2341f
[]
no_license
mcgeddes11/aircraft-identifier
5abe1e9ca951fdf85466eeb497ad8791a3eed50f
13917400d2d4b8f993b7a60c35ec274bef4c98e2
refs/heads/master
2020-03-28T13:38:57.914262
2018-09-12T06:17:26
2018-09-12T06:17:26
148,414,173
0
0
null
null
null
null
UTF-8
Python
false
false
3,739
py
# Time series LSTM model from here: https://machinelearningmastery.com/time-series-prediction-lstm-recurrent-neural-networks-python-keras/ from math import sqrt from numpy import concatenate from matplotlib import pyplot from pandas import read_csv from pandas import DataFrame from pandas import concat from sklearn.pr...
[ "jon.cocks@aeroinfo.com" ]
jon.cocks@aeroinfo.com
cf84a5e7754209b5dafe9b044fb8576a56dd8920
02cfc37402c08471edd0e66bf1af08555d1dfd0a
/pulsectl/_pulsectl.py
367e7870100b68a4642631d24c3fc9012ef4efd6
[]
no_license
Zolmeister/applets
803cb28ce5402f2c8f0c49ea893a5189f0c1f07a
2bed5b64a57d0b04b37dc42f0618ba8e0765c00a
refs/heads/master
2020-10-01T16:40:04.705394
2019-09-10T20:23:27
2019-09-11T05:09:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,552
py
# -*- coding: utf-8 -*- from __future__ import print_function # C Bindings import os, sys, functools as ft from ctypes import * force_str = lambda s, errors='strict': s.decode('utf-8', errors) if isinstance(s, bytes) else s force_bytes = lambda s, errors='strict': s.encode('utf-8', errors) if isinstance(s, unicode...
[ "alexander.m.mishurov@gmail.com" ]
alexander.m.mishurov@gmail.com
cacda09aaaef2e4170fc9593a18b9c06078c39cf
2e7814885646a56ffd3db0883a1c3f790cb9de46
/src/zojax/wiki/browser/wiki.py
083aa26c9e5f90104938fd17f906a76c8a3f4019
[ "ZPL-2.1" ]
permissive
Zojax/zojax.wiki_
1afa247c8797ac7316d6689d77d9c61a991eda0b
b0b9a3c3a91ffb725c5ef7e330632f18dab3d75e
refs/heads/master
2020-04-01T15:33:32.556439
2014-01-29T18:31:29
2014-01-29T18:31:29
2,038,571
0
0
null
null
null
null
UTF-8
Python
false
false
4,643
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
b2586c05639bac7f14c7ba11d52ac92fb5a38ef8
7398b0890416ede14e427d3f5f450f855514549e
/code/basic_util.py
3726c76c2a344ec60bc1858f6f2dd4120358d653
[]
no_license
catbaron0/asag
844e2f0266121606578a95b5f094673923932649
7d62c15419eefae4c65b7514e5bade32f88aab42
refs/heads/master
2021-09-05T18:19:59.276505
2018-01-30T07:03:00
2018-01-30T07:03:00
107,487,337
0
0
null
null
null
null
UTF-8
Python
false
false
7,564
py
from scipy import spatial from config import NLP import string from pylab import * import os import errno def cur_time(): return time.strftime('%Y%m%d%H%M%S', time.localtime(time.time())) def sigmoid(x): return 1 / (1 + math.exp(-x)) def token_strip(string, instance_nlp): doc = instance_nlp(clean_te...
[ "catbaron@live.cn" ]
catbaron@live.cn
d50cf41589df382aa2d99b3cc5266e45df2e6ca2
e0df07623171cadad5a8d1e17f744484eb0a5761
/neural_network/monks3_grid.py
d739e9702cd3c144a10a3148b34f2e08b7597f3c
[]
no_license
deRemo/NNLib
23f9c3b24f968df9296c40a35ef080e3648326e1
e43e94954a222898a454a521a5397e7017527c76
refs/heads/master
2021-10-11T22:53:55.164836
2019-01-30T09:38:10
2019-01-30T09:38:10
164,231,997
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
from lr_schedulers import StepDecayScheduler from grid_search import GridSearch import pickle import numpy as np # MONK PROBLEMS train_set = np.genfromtxt("../monks/monks3-train.txt", delimiter=" ", dtype="int")[:,1:-1] train_targets = np.genfromtxt("../monks/monks3-train.txt", delimiter=" ", dtype="int")[:,:1] para...
[ "valeriodc95@hotmail.it" ]
valeriodc95@hotmail.it
ac92c6cc494073720f64ded6d9dfce7c9f5e7603
cc72013ede1b3bb02c32a3d0d199be4f7986c173
/ch10/cballmaxheight.py
d1b7e7d7f8bd3735de66883c44cae85de31b5936
[]
no_license
alextickle/zelle-exercises
b87d2a1476189954565f5cc97ee1448200eb00d4
b784ff9ed9b2cb1c56e31c1c63f3e2b52fa37875
refs/heads/master
2021-01-19T00:33:19.132238
2017-09-14T23:35:35
2017-09-14T23:35:35
87,182,609
1
1
null
null
null
null
UTF-8
Python
false
false
645
py
from classProjectile import Projectile def getInputs(): a = input("Enter the launch angle (in degrees): ") v = input("Enter the initial velocity (in meters/sec): ") h = input("Enter the initial height (in meters): ") t = input("Enter the time initerval between position calculations: ") return a, v, h, t def mai...
[ "alexander.tickle@gmail.com" ]
alexander.tickle@gmail.com
8bb5900b3350dfd740a450c680d177fbf01ae4cd
85b5a8df9f0315391feaac1e285ed1dc9789a03e
/2.py
0bf5158d5365ecacfe855a78891cfc87c0578cbc
[]
no_license
c109156245/python
ad329b0283d302d4544ad47488c3a9c48998d055
b476ec3ff984cc96b663055e6d151e55006e0549
refs/heads/main
2023-04-14T15:53:07.389143
2021-04-21T07:08:56
2021-04-21T07:08:56
360,050,039
0
0
null
null
null
null
UTF-8
Python
false
false
13
py
print("gdes")
[ "C109156245@nkust.edu.tw" ]
C109156245@nkust.edu.tw
d603fc4e9d43b4652a8ac0e851fac084cd7232b0
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1/r4ghu/count.py
41bfd1280434461d73ff3977ca2f3160ac163ca2
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
688
py
input = open('input.txt','r') print 'Name of the file:', input.name results = [] T = int(input.readline()) for t in range(T): dic = {} l = [] n = int(input.readline()) if n==0: results.append('INSOMNIA') for i in range(1,25*n): p = list(str(i*n)) for j in p: ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
0169e8981f0a8439b954a7ce60d66a7af0d5db29
fbe6b8225aa31d47f36b22680a30ea00f58b80dd
/plot_bar.py
e00b9d88626e99a6d566ae1561da3001eeea623f
[]
no_license
grapySoda/lrc_sim
a21b0cb75e96f934ea0db5e858086ba9dd565267
cb8379430d38d3dc38fa423753a8639092efec44
refs/heads/main
2023-06-07T04:45:28.176571
2021-07-12T03:47:36
2021-07-12T03:47:36
363,045,870
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
#!/usr/bin/python3 import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import MultipleLocator width=0.25 # values = ['10%', '20%', '30%', '40%', '50%'] # x1=[5, 6, 7, 8, 9] # y1=(4310*8, 7277*8, 8923*8, 9891*8, 10062*8) # x2=[p + width for p in x1] # y2=(3427*8, 5264*8, 5692...
[ "grapysoda1951@gmail.com" ]
grapysoda1951@gmail.com
988a99a51f2af5ac073a415e4b7d2faa1c4cdeb5
bef92360cf806c96b7a6ebd1c0fd6662aec2ea39
/Matrix Multiplication.py
c0e0a2d7fabd3a22a3fabd5b2388f4cda7105d94
[]
no_license
mattste2000/Matrix-Multiplication
43a398b745922da6bb7831aa02ce5579a8728b25
be71ac0c4002fc47da2b15270eb1dd2a47ec4117
refs/heads/main
2023-01-02T12:50:10.369377
2020-10-29T11:53:13
2020-10-29T11:53:13
308,312,401
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
#Remember to multiply N of a must equal M of b. With result being Ma * Nb. a = [[1,0,0,0], [0 ,1,0,0], [0 ,0,1,0], [0 ,0,0,1]] b = [[5,8,1,2], [6,7,3,0], [4,5,9,1], [12,13,14,15]] #Resulting matrix !Need to edit dimensions in response to a & b AB = [[0,0,0,0], [0...
[ "noreply@github.com" ]
noreply@github.com
b3fff04a0c2475397b92de3bca6dd3408f95defc
b0e6f616ec3030d7dbb5fa4d9c35e3c2c084c6eb
/src/main/resources/scripts/cclint-0.4/cclint/file_stream.py
a47c2d5805eb5815e0bae94cb25a9cbd48cfc81b
[ "Apache-2.0", "LGPL-3.0-only", "CC-BY-4.0", "GPL-3.0-only", "CC-BY-NC-SA-4.0", "LGPL-2.0-or-later", "BSD-2-Clause" ]
permissive
doevelopper/cfs-osal
0557ea9138f3a034d5eac06040d23d3c8dde1c73
cd5a8801251e750a9c50718bf15b5e394ced20d0
refs/heads/master
2023-01-28T02:11:25.707544
2019-06-22T22:52:40
2019-06-22T22:52:40
132,522,764
0
1
Apache-2.0
2023-01-22T00:28:22
2018-05-07T22:24:52
Python
UTF-8
Python
false
false
7,847
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Olli Wang. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this lis...
[ "happyman@hotmail.fr" ]
happyman@hotmail.fr
a2bdf11d63062b262d72534401ede04f43fe30f0
5033b6384fe1ba2f4057fe03480c990ec59651bf
/furo/pkg/descriptor/specs/fieldmeta.type.spec
0493628830f03527eb82a7b2f77f2f55b1b95d02
[ "MIT" ]
permissive
veith/eclipsefuro
3a1266db3bfd56a2cd2badd6bbd57e7e6091e599
d8da79ffb1468f74fc476b9c2987abde5bc819ae
refs/heads/main
2023-06-11T21:05:29.553207
2021-07-09T16:01:32
2021-07-09T16:01:32
384,488,043
1
0
MIT
2021-07-09T16:04:05
2021-07-09T16:04:05
null
UTF-8
Python
false
false
3,943
spec
name: fieldmeta type: FieldMeta description: Metas for a field __proto: package: descriptor targetfile: descriptor.proto imports: - google/protobuf/any.proto options: cc_enable_arenas: "true" go_package: github.com/eclipse/eclipsefuro/furo/pkg/descriptor;descriptorpb java...
[ "veithz@gmail.com" ]
veithz@gmail.com
2fc86c01e74e84f6d2e23e894888678c3ea023b2
1a5fc6c00b5a9c3eede5ab3dd7f6969a3a008700
/pladat/tests/test_employer_views.py
8920406f3e87ae8e734f5917445f053e8e4b06bd
[]
no_license
applerengg/pladat-backend
190ef6cffaf26c8a69e55982ad41648242c04e10
367da74a8bf90e875d0d55699bd2429b667ccb8c
refs/heads/main
2023-05-26T07:24:01.812897
2021-03-14T16:47:34
2021-03-14T16:47:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,962
py
from django.test import TestCase, Client from rest_framework.test import APIClient from pladat.models import ( User, Student, Employer, Placement, Category, Skill, SkillLevel, Page, Image, ) import json class EmployerTestCase(TestCase): def setUp(self): self.user_employer = User.objects.c...
[ "alpgen99@hotmail.com" ]
alpgen99@hotmail.com
97fd9ea9171e2096b17f054796fa4c2f98ed3093
951d410ddd4200d698f6871fb35ef5016cf38907
/legacy/Evaluation/graph-encoder-decoder_L6_G3.py
5af0b2fc7ccf835f890ef31fe746006edcfe3d40
[]
no_license
johncava/iccv_2019
540b75cb70e1f9ce7fb147903c759d56af597624
adce3cda7c419f053f5948c3ee4c0da05597ec25
refs/heads/master
2021-09-09T01:23:44.190477
2021-08-31T22:23:45
2021-08-31T22:23:45
205,789,470
1
0
null
null
null
null
UTF-8
Python
false
false
8,102
py
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import glob as glob from torch.autograd import Variable from reader import get_depth_data from PIL import Image path = './checkpoints/GraphEncoderDecoder/L6_G3/' Train = np.load('iccv_dataset_train.npy') ...
[ "jcava@asu.edu" ]
jcava@asu.edu
8f7848638ed1bee86e225d449517fdc4ae8ca030
a1765ba082629b28b640db28cea443e8117a4857
/experiment/utils/utils.py
423aecbe386ad23eae986f39c6c5dd6cd79f8301
[]
no_license
Karina1997/math-optimization-ellipsoids-method
def0d586da80cfa29da7ce03ef3e154a57852b77
06334e51937036798a118f732d23cb9297d2d8e3
refs/heads/main
2023-01-06T23:05:33.031339
2020-11-08T16:56:05
2020-11-08T16:56:05
310,598,352
2
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
import torch import torch.nn as nn import numpy as np from sklearn.metrics import accuracy_score from sklearn.datasets import load_svmlight_file def prepare_data(dataset): filename = dataset data = load_svmlight_file(filename) A, y = data[0], data[1] m, n = A.shape return A, y, m, n def change_f...
[ "karinaanton77@gmail.com" ]
karinaanton77@gmail.com
603bb554f0ec6f6098bb4218784b7f4b8b25940c
9d2a492d54c3b8c623eb35976b2582cedf0612d7
/models/fields.py
695a4f6bfba69796c319f1cc44c6d0b04f4a25af
[]
no_license
HyeonTae/MultiFix
2363101128eb38a2f75c5613d49bbdef5aa59c62
c99a502cc766c481aa546fa457704065f9747e01
refs/heads/master
2023-02-17T04:34:39.553722
2021-01-20T11:59:12
2021-01-20T11:59:12
323,704,812
8
0
null
null
null
null
UTF-8
Python
false
false
987
py
import torchtext class SourceField(torchtext.data.Field): def __init__(self, **kwargs): kwargs['batch_first'] = True kwargs['include_lengths'] = True super(SourceField, self).__init__(**kwargs) class TargetField(torchtext.data.Field): SYM_SOS = '<sos>' SYM_EOS = '<eos>' def _...
[ "dchs504@gmail.com" ]
dchs504@gmail.com
14d5085d4f5417409d9195825adecfaf5abc1f2f
ab387915b19718e95a04525dd810b01eb8e50c58
/ads/migrations/0005_ad_favorites.py
c423300eb7f922e4f3c429e91609eabdccb23080
[]
no_license
pseudopunit/django-project
68703293b17fcb45cdebe7e5ccbf52b848cb173b
1db0c091d348dba33afc02843aadea98b96932df
refs/heads/master
2022-12-12T20:46:06.582823
2020-08-21T07:55:08
2020-08-21T07:55:08
289,205,748
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# Generated by Django 3.0.8 on 2020-08-05 18:33 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ads', '0004_fav'), ] operations = [ migr...
[ "punit.choudhary14@gmail.com" ]
punit.choudhary14@gmail.com
b6fe33c860980a82e4699c4805ad8afdc587f7b3
2e27d868591ba06197bd056058f23320808a3ee2
/godotggpo/config.py
be32026a39cc1965021327fe4128038a772c3df0
[ "MIT" ]
permissive
JubJub623D/godot_ggpo
fc5d3ab11cf59b0b3f203501df74ece05e4ac4f1
a2ab28898ffa9b9d5d1cf3979489838117fe366c
refs/heads/master
2023-03-14T23:20:12.081205
2021-03-13T02:40:32
2021-03-13T02:40:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
607
py
def can_build(env, platform): return platform == "windows" # For now, GGPO isn't available on linux or mac def configure(env): env.Append(CPPPATH=["#modules/godotggpo/sdk/include/"]) if env["platform"] == "windows": if env["CC"] == "cl": env.Append(LINKFLAGS=["GGPO.lib"]) ...
[ "noreply@github.com" ]
noreply@github.com
c783787e7f9fe893aaf48e8c2000ad0414222f05
2326406ac9cc4ca6fe02ac27e5d0901f0a52ec76
/tests/utils/mock_server.py
a5c2ca3936ae949ad1b9296b1fa15be795c42459
[]
no_license
xwzy/client
d86fad197c469e088392c73a4b2bde3c3be89379
75f976dd076656c01dafcec0a99d56771d9944cc
refs/heads/master
2022-12-31T15:43:38.959039
2020-10-22T13:11:24
2020-10-22T13:11:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,284
py
"""Mock Server for simple calls the cli and public api make""" from flask import Flask, request, g import os import sys from datetime import datetime, timedelta import json import yaml # HACK: restore first two entries of sys path after wandb load save_path = sys.path[:2] import wandb sys.path[0:0] = save_path import ...
[ "noreply@github.com" ]
noreply@github.com
957b6dfafdf01768a405f18e1263f60e635d7d82
209c876b1e248fd67bd156a137d961a6610f93c7
/python/paddle/fluid/tests/unittests/collective/fleet/test_auto_checkpoint1.py
2db7b1e8f80682670d2ed4cf48d6df45479f95a9
[ "Apache-2.0" ]
permissive
Qengineering/Paddle
36e0dba37d29146ebef4fba869490ecedbf4294e
591456c69b76ee96d04b7d15dca6bb8080301f21
refs/heads/develop
2023-01-24T12:40:04.551345
2022-10-06T10:30:56
2022-10-06T10:30:56
544,837,444
0
0
Apache-2.0
2022-10-03T10:12:54
2022-10-03T10:12:54
null
UTF-8
Python
false
false
1,771
py
# Copyright (c) 2020 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" ]
noreply@github.com
d3336030c75230312fe64f70d821674c7b8b0832
744096e063ffb4cdb017f60e6dfae410a51c789a
/ml/m08_wine2_keras.py
06ebe62cf59103482d4d188d56d1958c5811a866
[]
no_license
elf0508/Study-bit
59ddab507b02c13a45913c05a4799ff946e63f95
a773d7643cbb1c0008e7ea01c32615c9e6e3678c
refs/heads/master
2022-12-31T11:53:44.344693
2020-10-16T09:04:01
2020-10-16T09:04:01
270,950,252
0
0
null
null
null
null
UTF-8
Python
false
false
4,792
py
# keras 로 만들기 # 다중분류 import numpy as np import pandas as pd from keras.models import Sequential, Input from keras.layers import Dense, Dropout from keras.callbacks import EarlyStopping from sklearn.svm import SVC from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors import KNeighborsClassifier fro...
[ "elf0508@naver.com" ]
elf0508@naver.com
7938f354f89707152e826e71f8dae7fbbc983890
8e26849c95d6d274ba27083842d81d2ec2b87de1
/pcgain/main.py
3178e4cacaed23dc213edc5b86e8718aab63bf0f
[]
no_license
WYu-Feng/pc-gain
ef176daeb766dfc968a6384687ae778ff540732e
f1b5231339d10a11792291b2c7b6dbfc37c2c5af
refs/heads/main
2023-03-27T13:50:10.812331
2021-04-05T01:34:25
2021-04-05T01:34:25
346,615,376
8
1
null
null
null
null
UTF-8
Python
false
false
2,966
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import numpy as np from data_loader import data_loader from pc_gain import PC_GAIN from utils import rmse_loss import os def main (args): os.environ["CUDA_VISIBLE_DEVICES"] = "-1" da...
[ "noreply@github.com" ]
noreply@github.com
5cecd581d52f0ccc71dbdf9a321ddfaf51158a44
b61b6afbdc7ee622c7eb67f7b2a9aadbaef4c66a
/sampleoutput.py
7071bbf85784424cbb9b801b6b5fe3cc549122d6
[]
no_license
chaitu009/Telecom-Customer-Churn
b134655d01c3358b3ca5902871f82330c4da147b
c1d81653a801a3dc870bc9ae520947ae19be11f4
refs/heads/master
2020-03-23T05:42:50.809670
2018-07-16T16:00:10
2018-07-16T16:00:10
141,162,025
0
0
null
null
null
null
UTF-8
Python
false
false
6,058
py
#Importing the libraries import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt % matplotlib inline import math import os from sklearn import svm,datasets import matplotlib.pyplot as plt from scipy.stats import chi2_contingency from sklearn.cross_validation import train_test_split ...
[ "chaitu.vutukuru@gmail.com" ]
chaitu.vutukuru@gmail.com
1baf5dd61fbb3c8954927f4aab11069b4efc0e63
9b93f4afcf63026429a465752c0121f8650ccfe6
/src/hmm.py
d09a354e562cba40e20a2aca3eecf682fd9330d9
[]
no_license
SandroGolis/HMM_Classification
f1613b40fc6b7debcf8a498634745df447d4625e
c5be0988a50b98282178af5257a14c33b00052f8
refs/heads/master
2020-06-17T16:11:32.635255
2016-11-29T04:54:35
2016-11-29T04:54:35
74,989,213
0
0
null
null
null
null
UTF-8
Python
false
false
13,965
py
from __future__ import division import numpy as np from classifier import Classifier # from sets import Set def get_sparse_vector(fnames, map_name_to_id): names_set = set(fnames) sparse_vector = [] for name in names_set: if name in map_name_to_id: sparse_vector.append(map_name_to_id[na...
[ "golis.sandro@gmail.com" ]
golis.sandro@gmail.com
e4841e48dd2798ed1c2ba400e9e3a8c6b9d95714
cb73499c5b15cead88751dfca21cefae81483501
/docs/conf.py
6f333b8b3d818eebd843b06f85a9f8c9dc169e27
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
RichardPflaum/GalSim
dcbabfbdbd41a0ebe909ad3c28e47daabcd92818
05060e583b2465ca8e2b258126c2ba8257e358f1
refs/heads/main
2023-03-23T05:59:05.349282
2021-02-05T23:11:55
2021-02-06T00:49:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,740
py
# Copyright (c) 2012-2020 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
[ "michael@jarvis.net" ]
michael@jarvis.net
fe637ba182f3b5639692dbad26fca16b7ab047a0
93e5a45b8fba389d7b7958388c51dd80ea327df4
/api/products/migrations/0004_product_favorite.py
d498b7c767377f6cc6ec7fd3a2de642001b6815e
[]
no_license
pineapple-pizza/django_vue
78c4385e0c292267d8b097eec6ca818bf05c3f4a
4a2a3499a9a499c60f7ad909d9b84028a3c2b5d1
refs/heads/master
2023-03-07T04:23:59.140005
2021-02-15T23:45:44
2021-02-15T23:45:44
337,547,438
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 3.1.4 on 2021-02-06 20:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0003_product_substitut'), ] operations = [ migrations.AddField( model_name='product', name='favorite', ...
[ "an.aslanian@gmail.com" ]
an.aslanian@gmail.com
0cf8ae7c523939c84aea6f92da2a35fdfaa5d9f4
7b978ace57c039485cb6b574520bbd5b0201ccd1
/app.py
8815e7187a9f1c519b3daf894ec4590707f0b4da
[]
no_license
stuck3y/twinsie
db8c43c96c1582d15fbe1f4953aec101495c33ef
4ce4bec6ef0bb2689f11e40cb9b075fdb81f939b
refs/heads/main
2023-02-23T16:48:37.391162
2021-02-04T17:59:49
2021-02-04T17:59:49
334,037,662
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from flask import Flask from flask import request from . import Twinsie app = Flask(__name__) @app.route('/') def run(): return f'Welcome to Twinsie!<br>This is where two strings of text are compared and given a score between 0 and 1. \ <br><br> \ To compare two strings, send a POST request with `text1` a...
[ "68766570+stuck3y@users.noreply.github.com" ]
68766570+stuck3y@users.noreply.github.com
6bd39c2e7ade9ba56dfb313bcf2da99858ad67d9
4d2b0a1ad6134820acb563cb3b0b1ebe6a4d0b84
/Trees/validateBST.py
bb7d019453cf81df8fa47dc85d5d1879c9520f3f
[]
no_license
inzamamwaikar/Algorithms-using-Python
f72605238022ba99f20865e208f2bea791e0846f
f14ccc2931f6611d4529ad962223e8eda42e4536
refs/heads/master
2023-03-19T06:05:40.354639
2018-05-30T21:16:49
2018-05-30T21:16:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
# Time: O(n) # Space: O(h) # Definition for a binary tree node class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: # @param root, a tree node # @return a boolean def isValidBST(self, root): return self.isValidBSTRecu(r...
[ "hp1047@nyu.edu" ]
hp1047@nyu.edu
fa2dc46da873092b60d99873ee0613d3c8046731
609662164f20054e61fa4f200220a7e15e76533d
/第二期-python30天/day2 变量/变量.py
710663d6a591098097a2f7b3a714546e1e3647e2
[ "MIT" ]
permissive
zha0/punch_card_daily
1f70a1b33bf8d007b8cba078ad3e1baee9c0d84c
eccebf9fadf28ea404e5e5959aeb380ee5a12032
refs/heads/main
2023-09-01T06:09:44.720506
2021-10-28T12:36:08
2021-10-28T12:36:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
# coding: utf-8 first_name = 'liang' last_name = 'cheng' country = 'china' age = 120 is_married = False skills = ['pentest','ctf','redtem'] person_info = { 'firstname':'liang', 'lastname':'cheng', 'country':'china', 'aget':12 } print('first_name',first_name) print('last_name',last_name) print('country...
[ "46209842+olist213@users.noreply.github.com" ]
46209842+olist213@users.noreply.github.com
d39da76e972601433b710dcc1e5859950fa58a0a
21bc71395ab350c63b26e0944604a333b2212b4c
/function (part-2)/qn2.py
d5229901748b1257d039aaf52f86041a6f36ecca
[]
no_license
labinkadel/assignment2
416c9826396d2e705178ef81a9d9789868a74119
d4e8e885a2a62e6e5cca571f05673c3699e7f77f
refs/heads/master
2023-03-12T03:30:40.467831
2021-03-05T09:55:58
2021-03-05T09:55:58
344,751,583
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from functools import reduce list1 = input("Enter list: ") sp_list1 = list1.split() for i in range(0, len(sp_list1)): sp_list1[i] = int(sp_list1[i]) print(sp_list1) sum = lambda a, b: a+b res = reduce(sum, sp_list1) print(f"Sum is : {res}")
[ "labin19@gmail.com" ]
labin19@gmail.com