blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
058202bfdb3490cd33baf7a219aab8196257fdb8
ce058b1b39854bf40d46edffb9daaeeebcbe652b
/PortFolio/models.py
330c9e19abc32907fc2d93f2009f95f23441a856
[]
no_license
Pagante/SimpleProject
a1c5354446af9c0e7b9c09eab3a05d0da52a4e9f
042c50b862c312cbd9b4ac6de28b5c2dfb34d38b
refs/heads/master
2023-04-02T14:35:35.874942
2021-04-17T21:03:38
2021-04-17T21:03:38
358,924,795
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from django.db import models # Create your models here. class Course(models.Model): image = models.ImageField(upload_to='images/') summary = models.CharField(max_length = 200) def __str__(self): return self.summary
[ "55301195+Pagante@users.noreply.github.com" ]
55301195+Pagante@users.noreply.github.com
b7f3f14bcd9275609d6ac63bd04d741776860206
e3a10251156e6d83d2ae5b9b21953c6f143fc844
/home/management/commands/load_initial_data.py
ec31b5aedff5b6ef38608608806c4bebbb49da98
[]
no_license
TylerCrowdboticsTest/tyler-crowdboticstest-30
27fcc88371b3da25240ef138cad968fc45fb7007
bd73f4183aaf8026517d1601c1dcd7959dd3b0da
refs/heads/master
2020-03-18T04:33:44.110907
2018-05-21T16:14:42
2018-05-21T16:14:42
134,293,852
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
from django.core.management import BaseCommand from home.models import CustomText, HomePage def load_initial_data(): homepage_body = """ <h1 class="display-4 text-center">tyler-crowdboticstest-30</h1> <p class="lead"> This is the sample application created and deployed from the crowd...
[ "tyler@crowdbotics.com" ]
tyler@crowdbotics.com
693014d552af09d724f2600f2bfc832d44c5286b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_publisher.py
e68c9685de50649bf0b08c443667c77862c6b837
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
#calss header class _PUBLISHER(): def __init__(self,): self.name = "PUBLISHER" self.definitions = [u'an organization that publishes text or music', u'an employee of a publishing company who has responsibility for deciding what is published'] self.parents = [] self.childen = [] self.properties = [] self...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
724a21786a232a3446f95b579aa06fd411f6faf8
32b29be894b27a3aa41ce2c7ee7b3c917f342ce8
/Caltech256/sorted_10_100_hard_to_easy.py
d1b3d5fe33683180599d11760010cf9b0602c2d8
[ "Apache-2.0" ]
permissive
shiqiuwang/sample_distillation
1c56f1a24345bd1bfa43a8c0cf128751f1ef0b2c
1eae0a0efe614b0f01e97fb405e70b11297c3da8
refs/heads/master
2023-07-31T20:31:13.693139
2021-09-14T03:13:26
2021-09-14T03:13:26
406,187,904
0
0
null
null
null
null
UTF-8
Python
false
false
5,590
py
# -*- coding: utf-8 -*- ''' @Time : 2021/7/16 10:16 @Author : Qiushi Wang @FileName: sorted_10_100_hard_to_easy.py @Software: PyCharm ''' import numpy as np import torch import torch.nn as nn from torch.utils.data import DataLoader import torchvision.transforms as transforms import torchvision.models as models fr...
[ "2714049089@qq.com" ]
2714049089@qq.com
9e883e0b3bc10957af982963b81de7b2c94bf219
7b4820948845f55274b211d676ab8a6253a6298b
/addons/plugin.video.teevee/resources/lib/resolvers/hdcast.py
2c903c724f68132baff05a1cb70f60285362a44b
[]
no_license
bopopescu/mw
524c57d4b859751e298b907a12e44e9711ef72a6
5ef2acea0fb4150578e53201463c6bc5da37be20
refs/heads/master
2021-05-30T19:33:11.750160
2016-01-11T05:28:46
2016-01-11T05:28:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
# -*- coding: utf-8 -*- ''' Genesis Add-on Copyright (C) 2015 lambda This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
[ "bialagary@Garys-Mac-mini.local" ]
bialagary@Garys-Mac-mini.local
f7a8d4ea26f22ff13d2f2fbe5242f9f8960e2b9b
e646b094a8a6845199bc2913192a84b103c708f9
/optix/helpers.py
4d7fb802fa315eeb99ca5bf8c6f000efc80bc907
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
usuaero/Optix
39f0aed229ffe1651c46d116abfc0d5f5d7fab5a
4c4de6e7d09c40165b5a499abc7ae513a0baf47e
refs/heads/master
2022-08-12T06:12:52.189120
2022-08-08T15:00:45
2022-08-08T15:00:45
50,153,448
10
3
null
2016-08-15T16:09:35
2016-01-22T02:57:58
Python
UTF-8
Python
false
false
5,924
py
import numpy as np import optix.classes as c def print_setup(n_vars, x_start, n_cstr, n_ineq_cstr, settings): # Starts the terminal output print() print("Optix.py from USU AeroLab") print() print('---------- Variables ----------') print("Optimizing in {0} variables.".format(n_vars)) pri...
[ "cory.goates@aggiemail.usu.edu" ]
cory.goates@aggiemail.usu.edu
079329d4288d12f8a68c30dc6b471c558b6d5109
449147399b91db8ca3192e9960834a73967cd01d
/pandas-ml-quant/pandas_ml_quant/analysis/alias.py
553dd7eb133af4fdbfb3447818e6d07d1d5dcd1d
[ "MIT" ]
permissive
brunoreisportela/pandas-ml-quant
04b81568b900d226bb7028ccbe81ea97d0c00587
a80b06aab28f38c3c6cb298e96f497e4fcdb95a5
refs/heads/master
2022-12-18T23:51:38.297857
2020-09-08T06:14:16
2020-09-08T06:14:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from pandas_ml_quant.analysis import ta_one_hot_encode_discrete as _ta_one_hot_encode_discrete # -------------------------------------------------------------------------------------------------------------------- # # A L I A S E S ...
[ "kic@kic.kic" ]
kic@kic.kic
113ed14ae64be4d7420545b98b55565bd8c12db8
1600d6548f9d274fb152b97770fb947de1f69bbc
/blockchain_demo.py
7ecc328deb581049020bd9f55b2a2145b5a5b3a2
[]
no_license
xartisan/blockchain-learning-path
692e5739854617b3658c12a17cabaf1bf9d0ed4e
4fd35e6cf8ab661f007c96a67bef149bd33eff88
refs/heads/master
2020-03-18T21:45:39.408977
2018-05-29T13:36:29
2018-05-29T13:36:29
135,301,059
0
0
null
null
null
null
UTF-8
Python
false
false
3,240
py
import hashlib import json import time import uuid from urllib.parse import urlparse from flask import json, Flask, jsonify, request class Blockchain: def __init__(self): self.chain = [] self.current_transactions = [] self.nodes = set() # genesis block self.new_block(1, '...
[ "codeartisan@outlook.com" ]
codeartisan@outlook.com
ed649cac7caab4cb1e57de1a268ecbdba42fb302
fa89ef4a8eb06dc2015d7116637f230b6891eb8d
/refinery/units/formats/archive/xtcpio.py
3f150aa83297bad6db7062a3b5fb6e7285fb28c7
[ "BSD-3-Clause" ]
permissive
binref/refinery
f61878d9fddf616fee8edf226df22f6a35238940
4c7c3717ae45543b9d7bae60a4af4c00993cf719
refs/heads/master
2023-08-17T17:02:34.357138
2023-08-14T08:43:05
2023-08-14T08:43:05
228,019,736
439
48
NOASSERTION
2023-09-11T10:26:02
2019-12-14T12:32:06
Python
UTF-8
Python
false
false
1,857
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from contextlib import suppress from datetime import datetime from refinery.lib.structures import EOF, Struct, StructReader from refinery.units.formats.archive import ArchiveUnit class CPIOEntry(Struct): def __init__(self, reader: StructReader): def readint(...
[ "rattle@nullteilerfrei.de" ]
rattle@nullteilerfrei.de
e2dbb5a62cddc5054eae0d990e05544fad5e5cfd
93451cbf07343b1db9b03be2e16cccce157a9f52
/backup/2021-09-26/diy/addexport.py
dd174a51a8caa3fb665a85742f9bd69c902f2042
[]
no_license
New-Sina/Oreomeow_JD_Diy
89b9c7c40de76b6ee7c268bdedaa5aa2000de5b8
823d5478de8c4f40993dd297f9511266b1163b53
refs/heads/master
2023-08-22T08:55:04.276757
2021-10-28T01:50:47
2021-10-28T01:50:47
401,222,898
2
0
null
null
null
null
UTF-8
Python
false
false
3,995
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio import os import re import sys from asyncio import exceptions from telethon import events, Button from .. import chat_id, jdbot, logger, ch_name, BOT_SET from ..bot.utils import press_event, V4 from ..diy.utils import read, write @jdbot.on(events.NewMe...
[ "chiupam@126.com" ]
chiupam@126.com
35b84308b5b61c76d84794e69fc78ab844a27f9e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/30/usersdata/102/9282/submittedfiles/atividade.py
38f7c8a9a7e0d6b77d6282c1b84ae70d3a702ed5
[]
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
219
py
# -*- coding: utf-8 -*- from __future__ import division import math n=int(input('digite o valor de n:') soma=0 i=1 if n=n*(-1) while n>=0: soma=soma+(i/n) i=i+1 n=n-i print('%.5f%soma')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4381fc7be02a7f9f7cc579d4500daa21687fd6d6
dfc686228834750216b2cd6eea14d2a6d12422e4
/Hackerrank_Python_solution/Sets/SetunionOperation.py
e8abd96c05e93e2a34788c9b4041e0d3ff044452
[]
no_license
Parth-Ps/python
8466e8856bf301908544eb60ae4a68338ccf4550
bb448c2a7996d17883214fe8eb11caa61e211400
refs/heads/master
2023-01-22T13:30:50.507021
2020-12-02T07:59:53
2020-12-02T07:59:53
317,788,331
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
''' Title : Set .union() Operation Subdomain : Sets Domain : Python Author : Ahmedur Rahman Shovon Created : 15 July 2016 ''' n = input() eng = set(map(int,input().split())) b = input() fre = set(map(int,input().split())) print(len(eng.union(fre)))
[ "parth0129.certificate@gmail.com" ]
parth0129.certificate@gmail.com
fac4a021744c4a95e81f72073a2f4f6166370c41
f6c7084f91434566a9aa1b821d2739edede036f8
/Calender/CalenderSample.py
9dd31a906b5672b411b3dff65674cf54e3973e53
[]
no_license
GANESH0080/Python-WorkPlace
87fc3776e693d254661c476bfe977c696d087276
43196086bee26cbeae25fb7bbacb8dbbde85d648
refs/heads/master
2020-09-20T03:45:13.824696
2019-11-27T07:27:17
2019-11-27T07:27:17
224,369,263
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import calendar # Create an Plain text Calender # Selection of starting day, Here we have selected an SUNDAY c = calendar.TextCalendar(calendar.SUNDAY) # Selection of Year and month , Here we have selected 2019 and Feb str = c.formatmonth(2019,2) # Printing an String / Calendar print(str)
[ "ganusalunkhe@gmail.com" ]
ganusalunkhe@gmail.com
d77247011ff99369bac23ac38fcddcf4005caa7b
a4410fa34651da92dbce9ea0807d4a72a4802177
/python/hsfs/core/feature_store_api.py
db47f5c85271cf4d512a44fbdfff8191595dd524
[ "Apache-2.0" ]
permissive
logicalclocks/feature-store-api
33797e2b4681d8948998d292a3ef8f551979ac08
3e67b26271e43b1ce38bd1e872bfb4c9212bb372
refs/heads/master
2023-09-01T03:41:47.750367
2023-08-30T18:25:59
2023-08-30T18:25:59
232,286,451
59
42
Apache-2.0
2023-09-13T11:52:55
2020-01-07T09:10:14
Python
UTF-8
Python
false
false
1,238
py
# # Copyright 2020 Logical Clocks AB # # 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 ag...
[ "noreply@github.com" ]
logicalclocks.noreply@github.com
abe9e538638eee1c7724af0b63350d12215b50bc
b7bf838246bfc80edd67c297da6e96b6ef7fd68e
/bproducts/models.py
3661a1026cdad831669f3422b48ddd0f631947f4
[]
no_license
pratikmishra356/Django-blog
97a84aa3ba06142f25cea04ba37cfc6d299fd3d2
2067dd43416bc67bcdec57c5df21e98dcc697d18
refs/heads/master
2020-04-14T03:23:15.255568
2019-02-20T05:48:56
2019-02-20T05:48:56
163,606,672
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from django.db import models class Product(models.Model): title=models.TextField() description=models.TextField() price=models.TextField()
[ "you@example.com" ]
you@example.com
3559850adb8c0d1118387f47ede74ad9c8f83784
b05fee086482565ef48785f2a9c57cfe2c169f68
/part_one/8-abs_factory_pattern/assignment/__main__.py
38066e5597434f36a291103b6ffbc4acfd68c129
[]
no_license
diegogcc/py-design_patterns
76db926878d5baf9aea1f3d2f6a09f4866c3ce1e
2b49b981f2d3514bbd02796fe9a8ec083df6bb38
refs/heads/master
2023-04-01T08:28:53.211024
2021-04-05T11:48:19
2021-04-05T11:48:19
304,145,791
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from factories.investor import Investor from factories.saver import Saver for factory in Investor, Saver: cust = factory.create_commercial() cust = cust('Acme Corp') cust.report_type() cust = factory.create_government() cust = cust('Prussia') cust.report_type() cust = factory.create_retail(...
[ "diegoc906@gmail.com" ]
diegoc906@gmail.com
3a12ec4619b02475c9b5a487f510f0dc86d57a12
03d07de94fc22d1583c45ca84c711a06df8a40ff
/algorithm/graph/mst_prime.py
6504e0bcc56524b1de75dfcd043e301c036961c1
[]
no_license
gaopenghigh/algorithm
94e04293c69a2ad6903495e1cf6e1b75556535bb
f5d78c98c7201c56f9d4c3a9c0c76e9447a17985
refs/heads/master
2022-03-11T18:46:38.712923
2022-02-20T14:20:54
2022-02-20T14:20:54
54,484,549
0
0
null
null
null
null
UTF-8
Python
false
false
2,327
py
# 最小生成树的 Prime 算法 # 使用邻接表实现图 import sys class Graph: def __init__(self) -> None: self.graph = {} def add_edge(self, e: tuple): # edge is tuple: (src, dst, weight) # 无向图,所以实际上需要添加 2 条边 src, dst, weight = e if src in self.graph: self.graph[src].append(e) ...
[ "jh.gao@ucloud.cn" ]
jh.gao@ucloud.cn
12e630c139320956c4196bdf1ae26c13b30a8109
d250ff521ed87aca7d53d2c8557f904b32d9ce3b
/sba-4-api/com_sba_api/user/api.py
bfa302d6ecda33f1296eafaf41626e58c887d27b
[]
no_license
taepd/ML-study
9dc6f341761caf854a8a36a1fe0a903a4d41af9a
7e987d5eb638fc375105472a35c2d9d5a14c14b9
refs/heads/master
2023-01-05T02:14:42.555096
2020-10-27T02:43:16
2020-10-27T02:43:16
303,552,689
0
0
null
null
null
null
UTF-8
Python
false
false
2,490
py
from typing import List from flask import request from flask_restful import Resource, reqparse from com_sba_api.user.dao import UserDao from com_sba_api.user.dto import UserDto, UserVo import json from flask import jsonify parser = reqparse.RequestParser() # only allow price changes, no name changes allowed parser.ad...
[ "taepd1@gmail.com" ]
taepd1@gmail.com
5b5a9e3642f917d9e5eda1346e7154ddf55317a6
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/437/usersdata/309/95268/submittedfiles/funcoes1.py
e45745305d55627c26aaf3f14c08877d14a7e05b
[]
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
1,121
py
# -*- coding: utf-8 -*- # Inicio da função p/ verificação de lista crescente def crescente (lista): k=0 for i in range (0,n,1): if lista[i]<lista[i+1]: k=k+1 if k==n: print("S") else: print("N") # Fim da função crescente def decrescente (lista): k=0...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
cc9a3b428a68567bc30135b5bb0122f289239b62
1e35944fcd9a0e2209e069fb0056f23597e3196c
/0x0F-python-object_relational_mapping/4-cities_by_state.py
9a4fdd74077afaad18fdd7639c1f597445cba69c
[]
no_license
sonnentag/holbertonschool-higher_level_programming
1496be9390f557cfa7a3e31bb74b208a7dfbb98f
5992e3c7ff97ab3fefe33bec5632bdca4d3d8a05
refs/heads/master
2022-12-23T12:47:02.957781
2020-09-25T04:01:27
2020-09-25T04:01:27
259,382,948
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
#!/usr/bin/python3 """ lists all states from a database providing connection info as args""" from sys import argv import MySQLdb if __name__ == '__main__': db_user = argv[1] db_pass = argv[2] db_name = argv[3] db = MySQLdb.connect("localhost", db_user, db_pass, db_name) cur = db.cursor() s...
[ "zocle@zocle.net" ]
zocle@zocle.net
9d102757a6fd276872da65975028ab95f77f4b59
e585beae48f36af5aac3e586cce47fe66aec09c9
/tests/api/test_holder.py
69c1fba168aa3b928e1f36e8727036b3f3a70921
[ "MIT" ]
permissive
yinianfangxia/zvt-1
973b6fa20ab23060d975a30b1e7007f265aeeb5f
dac2a29863a87e4467fd45009f233e40a4902f65
refs/heads/master
2020-05-25T22:46:29.566558
2019-09-09T03:57:17
2019-09-09T03:57:17
188,021,722
2
1
null
2019-05-22T11:06:27
2019-05-22T11:06:27
null
UTF-8
Python
false
false
1,966
py
from zvdata.domain import get_db_session from zvt.api.api import get_top_ten_holder, get_top_ten_tradable_holder from ..context import init_test_context init_test_context() from typing import List from zvt.domain import TopTenHolder, TopTenTradableHolder session = get_db_session(provider='eastmoney', db_name='holde...
[ "5533061@qq.com" ]
5533061@qq.com
867ed117ac09238f8476b2ab358ec442d4e5574c
3bfe35a518869c4354ab1f817fd2060f0446313e
/examples/core_display_line_properties.py
a9777b99f2c9bcf8a377377bae4ef06d281ae125
[]
no_license
tankvn/pythonocc-demos-with-thumb-preview
b16b6d00b6e14bda6e4b765a354691255a7d2d43
36746225ddd8406dcce9b12a9ccd6489aa281694
refs/heads/master
2023-04-26T16:43:30.377812
2021-05-04T06:12:36
2021-05-04T06:12:36
362,368,937
3
0
null
null
null
null
UTF-8
Python
false
false
2,322
py
#!/usr/bin/env python ##Copyright 2017 Emad Dlala (emad.dlala@gmail.com) ## ##This file is part of pythonOCC. ## ##pythonOCC is free software: you can redistribute it and/or modify ##it under the terms of the GNU Lesser General Public License as published by ##the Free Software Foundation, either version 3 of the Lice...
[ "tpaviot@gmail.com" ]
tpaviot@gmail.com
61061a91877f2c1997ae1814ccb557ac6404ef6b
4cf3f8845d64ed31737bd7795581753c6e682922
/.history/GPAWarrior_20200118154452.py
59cc0b63fcc613395fb21c2f2276beb991e50814
[]
no_license
rtshkmr/hack-roll
9bc75175eb9746b79ff0dfa9307b32cfd1417029
3ea480a8bf6d0067155b279740b4edc1673f406d
refs/heads/master
2021-12-23T12:26:56.642705
2020-01-19T04:26:39
2020-01-19T04:26:39
234,702,684
1
0
null
2021-12-13T20:30:54
2020-01-18T08:12:52
Python
UTF-8
Python
false
false
1,764
py
import requests from bottle import Bottle, response, request as bottle_request import json class BotHandlerMixin: BOT_URL = None def get_chat_id(self, data): """ Method to extract chat id from telegram request. """ chat_id = data['message']['chat']['id'] return chat_...
[ "ritesh@emerald.pink" ]
ritesh@emerald.pink
9085ea98b7d3c507399ddb85c428ecf21b7578bf
e78ce85bac254f720e021f5f0ad172189da3ab77
/panoramica/views.py
f75f96aefa05842269c3fa84e689255fa9fa284b
[]
no_license
lldenisll/backend_papaiz
4d1a0a0b427e708551d57381591614b9c8bf9c55
71f1eceafadbaf120f8ef9c87741fa8e431d192a
refs/heads/master
2023-07-29T10:28:09.634047
2021-09-10T13:01:50
2021-09-10T13:01:50
405,077,417
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
from django.shortcuts import render from django.contrib.auth import get_user_model from .models import Panoramica from rest_framework.viewsets import ModelViewSet from .serializer import PanoramicaSerializer class PanoramicaView(ModelViewSet): queryset = Panoramica.objects.all() serializer_class = P...
[ "namorado@TFGcos-MacBook-Pro.local" ]
namorado@TFGcos-MacBook-Pro.local
fe8886dd04eadd6427ba239efad1280a425452b6
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/python_Convert_from_Python_to_JSON_3.txt.py
7174ce0d78826dcc17941c1bb56a981c1f614bfd
[ "MIT", "Python-2.0" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
320
py
import json x = { "name": "sanu", "age": 324, "married": True, "divorced": False, "children": ("Ann", "Billy"), "pets": None, "cars": [{"model": "BMW 230", "mpg": 27.5}, {"model": "Ford Edge", "mpg": 24.1}], } # convert into JSON: y = json.dumps(x) # the result is a JSON string: print(y)
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
3508b2a9738d2630a26f1b68a9eb7bb55d8ac130
955b968d46b4c436be55daf8aa1b8fc8fe402610
/ch07/with_example_01.py
76d0c179247ad0967c0f97479c4ee6696b2a3b96
[]
no_license
han-huang/python_selenium
1c8159fd1421b1f0e87cb0df20ae4fe82450f879
56f9f5e5687cf533c678a1c12e1ecaa4c50a7795
refs/heads/master
2020-03-09T02:24:48.882279
2018-04-07T15:06:18
2018-04-07T15:06:18
128,535,917
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # https://blog.gtwang.org/programming/python-with-context-manager-tutorial/ # http://linbo.github.io/2013/01/08/python-with # http://icodding.blogspot.tw/2016/05/python-with-as.html # 緊跟with後面的語句被求值後,返回物件的 __enter__() 方法被呼叫,這個方法的返回值將被賦值給as後面的變數。 # 當with後面的程式碼塊全部被執行完之後,將呼...
[ "vagrant@LaravelDemoSite" ]
vagrant@LaravelDemoSite
7699b850d7f8f1209eb691a2b5e13451afec93d5
18f8abb90efece37949f5b5758c7752b1602fb12
/defcon/blacksheep/core/security/sheep/shepherd.py
7be0610dc1765ba0a200dbb7a5584efc7e011fe6
[]
no_license
marceltoben/evandrix.github.com
caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516
abc3fbfb34f791f84e9a9d4dc522966421778ab2
refs/heads/master
2021-08-02T06:18:12.953567
2011-08-23T16:49:33
2011-08-23T16:49:33
2,267,457
3
5
null
2021-07-28T11:39:25
2011-08-25T11:18:56
C
UTF-8
Python
false
false
1,038
py
#!/usr/bin/env python """ BlackSheep -- Penetration testing framework by Romain Gaucher <r@rgaucher.info> - http://rgaucher.info Copyright (c) 2008-2010 Romain Gaucher <r@rgaucher.info> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the...
[ "evandrix@gmail.com" ]
evandrix@gmail.com
1fad529fea53997258a14c7bf73c5507eaa5a032
a9756859f597cc97593145cda2e0d0e795da0342
/apps/friend/urls.py
ee1b574a2b63372fa044a69454d5ecb26dd25b6f
[]
no_license
cprus/friendsdeploy
02442dac7ebedb421753abf5f9b293332f665492
4da1af1e73fac8829e86df2b880ee2d3ca0801d1
refs/heads/master
2021-05-15T10:42:42.742608
2017-10-25T00:41:42
2017-10-25T00:41:42
108,200,072
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
from django.conf.urls import url from . import views # This line is new! urlpatterns = [ url(r'^home$', views.index), url(r'^add/(?P<user_id>\d+)$', views.add), url(r'^remove/(?P<friend_id>\d+)$', views.remove), url(r'^(?P<emailuser>.+)$', views.show), ]
[ "collinprusse@mac.com" ]
collinprusse@mac.com
74c560a1b01accc1e4ec2283082eccf6c043c729
1f33b0c862f7bfa95bcc3bf67a34b43dae75d670
/car_project/manage.py
205c02d84ec5eb56eb298fbc34e1dc5f5681dc61
[]
no_license
joegotflow83/concept_car_insider
87933190b057401ea56650c765caa9f118b10d43
1af86cae78ceba2148da59449f906225ad7ccb65
refs/heads/master
2021-01-10T09:53:21.567035
2016-02-14T22:15:01
2016-02-14T22:15:01
51,716,772
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "car_project.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "joe@absolutod.com" ]
joe@absolutod.com
93a5c318afc698caa19b6f49c5dc462fab5d3708
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_oxford.py
ff2f453474f0d37b0956dafdcc1cc7d114aa7409
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
#calss header class _OXFORD(): def __init__(self,): self.name = "OXFORD" self.definitions = [u'a city in south east England, famous for its university', u"a type of fairly formal man's shoe, usually made of leather, that fastens with laces"] self.parents = [] self.childen = [] self.properties = [] self...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
2138ece616eccdfba99bad86ba6bfeb9cac40cee
d160bb839227b14bb25e6b1b70c8dffb8d270274
/MCMS/Main/Scripts/IsdnEncryption_03.py
e65b65163d3996534a4bf200cc73acec986397f8
[]
no_license
somesh-ballia/mcms
62a58baffee123a2af427b21fa7979beb1e39dd3
41aaa87d5f3b38bc186749861140fef464ddadd4
refs/heads/master
2020-12-02T22:04:46.442309
2017-07-03T06:02:21
2017-07-03T06:02:21
96,075,113
1
0
null
null
null
null
UTF-8
Python
false
false
5,441
py
#!/usr/bin/python #*PROCESSES_PROFILE_FOR_SCRIPT=Profile_No_Valgrind ############################################################################# # # Date: 22/01/08 # By : Ron S. ############################################################################# from McmsConnection import * import os #-------------...
[ "somesh.ballia@gmail.com" ]
somesh.ballia@gmail.com
480a98701ad3ef5b1c3050243640565d061425f2
db053c220094368ecb784fbe62375378c97457c2
/423.reconstruct-original-digits-from-english.py
40095b74e88b81bfdd3f39c30f771ecc2f29e027
[]
no_license
thegamingcoder/leetcode
8c16e7ac9bda3e34ba15955671a91ad072e87d94
131facec0a0c70d319982e78e772ed1cb94bc461
refs/heads/master
2020-03-22T14:51:45.246495
2018-07-09T00:00:06
2018-07-09T00:00:06
140,211,147
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
# # [423] Reconstruct Original Digits from English # # https://leetcode.com/problems/reconstruct-original-digits-from-english/description/ # # algorithms # Medium (44.82%) # Total Accepted: 15.4K # Total Submissions: 34.3K # Testcase Example: '"owoztneoer"' # # Given a non-empty string containing an out-of-order En...
[ "sharanbale@yahoo-inc.com" ]
sharanbale@yahoo-inc.com
165f232abaa5bb01c9a9f1b8e6d2b4e3f31a41e8
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_009/ch25_2019_08_23_19_19_21_190391.py
128ebfc360e41093ad00394aeb4f9d65762ab0f3
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
km = int(input('km: ')) if km <= 200: print('{0:.2f}'.format(km/2)) else: print('{0:.2f}'.format((200 * km) + ((km - 200)*0.45)))
[ "you@example.com" ]
you@example.com
2d7a94489300e90aa1a93f214ef82262119299c1
a689a72d3699883d7b58bd4ee3103373270bd0d5
/BOJ/Python/Failed/BOJ1800.py
773ce4c784a3c0fdf5a42b3b7ea5ad69c9392da3
[]
no_license
Oizys18/Algo
4670748c850dc9472b6cfb9f828a3ccad9c18981
45caafe22a8a8c9134e4ff3b227f5f0be94eefe7
refs/heads/master
2022-05-11T08:35:06.812539
2022-05-07T01:30:41
2022-05-07T01:30:41
202,690,024
4
1
null
null
null
null
UTF-8
Python
false
false
3,434
py
# BOJ1800 인터넷 설치 import sys sys.stdin = open('BOJ1800.txt','r') from pprint import pprint as pp from time import time from collections import deque,defaultdict start = time() # N,P,K = map(int,input().split()) # edges = {i:[] for i in range(N+1)} # mat = [list(map(int,input().split())) for _ in range(P)] # for p in...
[ "oizys18@gmail.com" ]
oizys18@gmail.com
6dd66ea5a131d6eebcb51931f9595b0a2836ddf6
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/spiders/ieee_20210208201519.py
575940035182bc3a960690ba8440873c591fc9f5
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
6,981
py
import scrapy import logging import re from scrapy_splash import SplashRequest, request from article.items import ArticleItem import json class IeeeSpider(scrapy.Spider): name = 'ieee' allowed_domains = ['ieee.org'] lua_script = """ function main(splash, args) assert(splash:go{ splash.a...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
18984251d9f4fae631b8f22c0f8c9fde8f7da367
4da3cedb744321f5e0f9cdd0b6c836c27f449338
/losses.py
0c46fbc5b70b1497196431e9b09c678b54ea7e6f
[ "MIT" ]
permissive
standardgalactic/SplinePosEnc
99dabfee822c383d7c2588fbc70792ddf2c96deb
af63f825e715ebd45849d57692e3ab057f735b9f
refs/heads/main
2023-07-27T15:49:37.517004
2021-09-09T08:46:11
2021-09-09T08:46:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,663
py
import torch import numpy as np def calc_gradient(y, x, grad_outputs=None): if grad_outputs is None: grad_outputs = torch.ones_like(y) grad = torch.autograd.grad(y, [x], grad_outputs=grad_outputs, create_graph=True)[0] return grad def img_mse(output, gt): return 0.5 * ((output - gt) ** 2).mea...
[ "wangps@hotmail.com" ]
wangps@hotmail.com
938a05198f81eaf287bb0566ef1a8628d6681c23
13ad53bd54e0fea96a8718a12486e6bca2cde5e3
/Python/8kyu/Welcome.py
5fd31656bb4d9a59a3763b19e4283c13686dfb39
[]
no_license
WinrichSy/Codewars_Solutions
5cb354b15998167010416bba0b09855e717019b2
6904719eb05cf804694f26dbbb11277b90296d97
refs/heads/master
2023-02-02T22:09:08.453192
2020-12-23T19:51:30
2020-12-23T19:51:30
256,636,224
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
#Welcome! #https://www.codewars.com/kata/577ff15ad648a14b780000e7 languages = {'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst', 'dutch': 'Welkom', 'estonian': 'Tere tulemast', 'finnish': 'Tervetuloa', 'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen', 'irish': 'Failte', 'italian': '...
[ "winrichsy@gmail.com" ]
winrichsy@gmail.com
c58e946efa472d449f869ec60f578c026b41af1b
b24e45267a8d01b7d3584d062ac9441b01fd7b35
/Usuario/.history/models_20191023123702.py
9c2c0df4995f068de96ebbef424adb8e5d294125
[]
no_license
slalbertojesus/merixo-rest
1707b198f31293ced38930a31ab524c0f9a6696c
5c12790fd5bc7ec457baad07260ca26a8641785d
refs/heads/master
2022-12-10T18:56:36.346159
2020-05-02T00:42:39
2020-05-02T00:42:39
212,175,889
0
0
null
2022-12-08T07:00:07
2019-10-01T18:56:45
Python
UTF-8
Python
false
false
1,756
py
from django.db import models class Usuario(models.Model): nombre = models.CharField(max_length = 50) usuario = models.CharField(max_length = 50, null = True, unique=True) rol = models.CharField(max_length = 50) identificador = models.CharField(max_length = 250) foto_perfil = models.FileField(upload...
[ "slalbertojesus@gmail.com" ]
slalbertojesus@gmail.com
30fe088a88568b630c58d8dbbc1baeae26cc42a3
e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6
/plugins/module_utils/network/enos/enos.py
69627326d19e7716cec4cbf89a4f643a88929b59
[]
no_license
ansible-collection-migration/misc.not_a_real_collection
b3ef8090c59de9ac30aca083c746ec3595d7f5f5
7ab1af924a3db4ada2f714b09bb392614344cb1e
refs/heads/master
2020-12-18T13:48:51.849567
2020-01-22T17:39:18
2020-01-22T17:39:18
235,400,821
0
0
null
null
null
null
UTF-8
Python
false
false
5,506
py
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by # Ansible still belong to the author of the module, and may assign their own # license to the complete wo...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
3236f8a1d88b3f9d8286a2812fae2edada8d734d
7659eacd729cae7f1a87d1790094907835fe2158
/Web+Python学习笔记/day79(批量生成学生学习记录、modelformset组件)/IgCrm/app01/migrations/0009_auto_20181120_0929.py
8c7d2f110015e6693541fea5fde0dce527863d32
[]
no_license
13950090228/Web-Python-LearningNotes
a75fc0bdbb82f22b3562dcc0b130ddbc8e171b3c
092266c23bd79d3d05fabf0fd145c1b53604bf0d
refs/heads/master
2023-01-05T11:41:24.822471
2020-11-07T15:55:15
2020-11-07T15:55:15
310,878,381
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# Generated by Django 2.1.1 on 2018-11-20 01:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app01', '0008_classstudyrecord_student_studentstudyrecord'), ] operations = [ migrations.AlterField( model_name='classstudyrecor...
[ "506713537@qq.com" ]
506713537@qq.com
febf32fa9f505264caded121629c8410240194df
0ef924c1e06156c58e93b96fe097082a070d5fc1
/iatikit/standard/organisation_schema.py
db2b3b28797a872a37206942f753113339760451
[ "MIT" ]
permissive
codeforIATI/iatikit
1ee0e16120595feb21a7fe04e937689dd7af221c
dd2e7ab2295f0512f85696eed547af9d0e9cf999
refs/heads/dev
2022-09-21T20:33:19.919439
2022-08-25T20:35:39
2022-08-25T20:35:39
148,625,048
4
0
MIT
2021-05-07T00:54:49
2018-09-13T11:00:14
Python
UTF-8
Python
false
false
1,747
py
from ..utils.exceptions import SchemaError from ..utils.types import StringType # pylint: disable=too-many-ancestors class OrganisationSchema101(object): version = '1.01' @classmethod def id(cls): # pylint: disable=invalid-name return cls.org_identifier() @classmethod def org_identifier...
[ "a.lulham@gmail.com" ]
a.lulham@gmail.com
386e6e90a9f6652646b748e1ef70372e0391f205
e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc
/django_evolution/mutations/sql_mutation.py
cbbaeee8271a02deb7bf574a1880d64abf690929
[ "BSD-2-Clause" ]
permissive
beanbaginc/django-evolution
19a775a223b61861f503925216fb236b822122c0
756eedeacc41f77111a557fc13dee559cb94f433
refs/heads/master
2023-06-22T07:25:32.401292
2022-11-10T03:23:50
2022-11-10T03:23:50
14,189,401
22
13
null
2015-01-07T01:15:08
2013-11-07T00:04:43
Python
UTF-8
Python
false
false
5,192
py
"""Mutation for executing SQL statements. Version Added: 2.2 """ from __future__ import unicode_literals import inspect from django_evolution.errors import CannotSimulate from django_evolution.mutations.base import BaseMutation from django_evolution.signature import ProjectSignature class SQLMutation(BaseMuta...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
8b79e8d2293cf3bd64469d77cb243802b45c36b0
cc3a436bdbd82b0f4887ed2e038688abe30dd84e
/db_beispiele/sql_thema_lager/test_4_executemany_context_manager.py
a38c79e2612bd3bf49c8910aa6b174b867758ea0
[]
no_license
enextus/python_learnstuff
05673348bc66114fe30670aa11cff58fedade19a
76b6acdab9dc0d685fd3b1265fd2a3ebe72c6dae
refs/heads/master
2021-01-07T05:10:33.616407
2020-02-19T13:12:55
2020-02-19T13:12:55
241,564,349
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
import sqlite3 # DB anlegen connection = sqlite3.connect("lagerverwaltung.db") try: with connection: cursor = connection.cursor() werte = ( (10, 1145345345, "Grafikkarte Typ 1a", "1FC", 10), (20, 2245345345, "Grafikkarte Typ 2a", "2FC", 20), (30, 3345345345, "Gra...
[ "enextus@gmail.com" ]
enextus@gmail.com
1024c67c8586e45972b26f9c5150925363e335cf
eaecb9cc09c45561f68ab888adc82ba41e4aef68
/day1/1_5.py
bb1592f958c24a211c9541faf38af3ec8b56da40
[]
no_license
NyangUk/Python
4e90823e3c88394b89a618c3f466a913091a5402
c3470cc78f90072114e06ffdabba768ed97b3df2
refs/heads/master
2021-02-04T19:52:30.750424
2020-03-15T14:07:04
2020-03-15T14:07:04
243,703,965
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
#문자열 더하기 a = "hello" b = "world" print(a+b) # 문자열 곱하기(문자열의 반복) print(a*3) #인덱싱과 슬라이싱 str = "You make me happy" print(str[2]) print(str[15]) # 해당 인덱스부터 해당 인덱까지 슬라이싱 print(str[4: 8]) # 해당 인덱스부터 끝까지 슬라이싱 print(str[-5:]) print(str[4:]) # 처음부터 해당 인덱스까지 슬라이싱 print(str[:3]) # 모두 출력 print(str[:])
[ "lobgd9150@gmail.com" ]
lobgd9150@gmail.com
6807b0c4401dc1cb9f40723462b632eca12325f1
dfcb9827b966a5055a47e27b884eaacd88269eb1
/ssseg/cfgs/pspnet/cfgs_ade20k_resnet101os16.py
b6aa35c78713c6329e4f3286f41f547c6ee3b419
[ "MIT" ]
permissive
RiDang/sssegmentation
cdff2be603fc709c1d03897383032e69f850f0cd
2a79959a3d7dff346bab9d8e917889aa5621615a
refs/heads/main
2023-02-05T12:52:35.391061
2020-12-27T05:59:58
2020-12-27T05:59:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
'''define the config file for ade20k and resnet101os16''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'ade20k', 'rootdir': 'data/ADE20k', } ) DATASET_CFG['test'].update( { 'type': 'ade20k', 'rootdir...
[ "1159254961@qq.com" ]
1159254961@qq.com
d48013e92e429cfbb437f1a9fb93beea0da6ced8
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/eye/own_life/call_problem_at_fact/work_or_same_way/try_right_company/hand.py
546e23910136fff2113be1592a5b42000d72e81c
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
#! /usr/bin/env python def find_bad_time(str_arg): other_person(str_arg) print('small_work') def other_person(str_arg): print(str_arg) if __name__ == '__main__': find_bad_time('young_work')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
6c0e0d53a24b21ccaed3bb9638496199be3bdcbe
23fc74d366e4f0ffef7d37d1c75227adc9ab2ff9
/nab/items.py
a23d5f8192ac89e8750ff0eb5a6b34c6960ad46f
[]
no_license
SimeonYS/nab
be5c86c24dc2f40fbd762e9ee7ff0b72e9a23179
1b0c64b9641e9c493281bf3b005901f83a9e70cb
refs/heads/main
2023-04-08T23:43:50.480985
2021-04-21T10:30:12
2021-04-21T10:30:12
360,128,000
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
import scrapy class NabItem(scrapy.Item): title = scrapy.Field() content = scrapy.Field() date = scrapy.Field() link = scrapy.Field() category = scrapy.Field()
[ "simeon.simeonov@adata.pro" ]
simeon.simeonov@adata.pro
1a2f915a17f8ecf95b094df79b794144d5162b93
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_4/142.py
691e77898129a1b22200d504e458ba959b2f1b43
[]
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
357
py
f = open('A-large.in') t = int(f.readline()) def plu(x,y): return x+y for i in range(t): n = int(f.readline()) a = map(int,f.readline().split(' ')) b = map(int,f.readline().split(' ')) a.sort() b.sort(reverse = True) ab = reduce(plu,map(lambda x:x[0]*x[1], zip(a,b))) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f2abd89f8fc1cabc07435ed5cb04587a27fe755c
ae8d2c7d27817c39b28444517f1f6222137147b5
/snake/variaveis/variaveis.py
b922642a5db11e1d9e8646690caf5b401a5193b6
[]
no_license
FailBoatBigBrains/atividades-intro
27b1799337862cc1f707888eeecb9f97df090699
4a2faff8bdd3dd1855946ce5ceed45fa8624964b
refs/heads/main
2023-05-02T13:59:17.501540
2021-05-25T01:48:27
2021-05-25T01:48:27
370,130,895
1
1
null
2021-05-25T01:38:09
2021-05-23T18:39:48
Python
UTF-8
Python
false
false
152
py
inteiro = 6 texto = "Paulo Victor" numReal = 3.2 logico = True print(type(inteiro)) print(type(texto)) print(type(numReal)) print(type(logico))
[ "rodrigondec@gmail.com" ]
rodrigondec@gmail.com
a40c7c1db9f60095ccb86766aae8923aad9c8b61
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/RJySHrDkBjSAj5gzq_0.py
c848015327c952d1f64b0acba95645ec5ffab932
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
def nespers(lst): inner_nespers = [nespers(l) if type(l)==list else 1 for l in lst] return prod(range(1,len(lst)+1)) * prod(inner_nespers) ​ def prod(lst): p=1 for i in lst: p*=i return p
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a6ee2c31e22c693e3587c38c11d3048f374e123f
fe31c3cb21bac1cf7d06bb8dbb00ad7c09994403
/untitled/venv/bin/easy_install-3.5
55592bba055f632a51481e2b362984bd88585ea1
[]
no_license
bsakari/Python-Projects
87718827daa9ff4ac16bf0855e04cadef329aa1d
41104d8d1df84c27255f2d221ff68f219de8c84f
refs/heads/master
2020-03-21T03:16:42.332439
2018-06-20T14:39:34
2018-06-20T14:39:34
138,045,571
0
0
null
null
null
null
UTF-8
Python
false
false
454
5
#!/home/kingwanyama/PycharmProjects/untitled/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.0.1','console_scripts','easy_install-3.5' __requires__ = 'setuptools==39.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\....
[ "sakaribenjamin@gmail.com" ]
sakaribenjamin@gmail.com
0c7912e526ccb358b821db0007d73274a074a257
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
/app/src/main/java/com/syd/source/aosp/frameworks/compile/slang/lit-tests/lit.cfg
09d304e090a7fe9440d8f2fd66ea314e1fa7d904
[ "NCSA", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
lz-purple/Source
a7788070623f2965a8caa3264778f48d17372bab
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
refs/heads/master
2020-12-23T17:03:12.412572
2020-01-31T01:54:37
2020-01-31T01:54:37
237,205,127
4
2
null
null
null
null
UTF-8
Python
false
false
3,562
cfg
# -*- Python -*- # Configuration file for the 'lit' test runner. # name: The name of this test suite. config.name = 'slang_lit_tests' # suffixes: A list of file extensions to treat as test files. config.suffixes = ['.rs', '.ll'] # testFormat: The test format to use to interpret tests. import lit.formats config.test...
[ "997530783@qq.com" ]
997530783@qq.com
abe61b3d6719f6a8c8cb023d951e49eb48b00576
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_142.py
e9dd75c58f733f5b61a2c04c5361b1837726c11d
[]
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
180
py
# python curses.ascii depending on locale? In Python, is there a concise way to use a list comprehension with multiple iterators? [ (i,j) for i in range(1,3) for j in range(1,5) ]
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
37454adc17ccc4b5d78654a4827a312ec0be412f
666898bf873aa812f5dcc66e67617668c3dcfe2b
/plugins/effects/PhxShaderSimVol.py
80f83b40a11c9246dee5d6f369e1e57bd9087878
[]
no_license
ISRAELAVLIS33/vb30
752b31c6e8cb9f7690c4c568c832a0cbe9c1347f
ac5278a2ec28c704f0c3e73ad338d910ab3a7330
refs/heads/master
2021-01-20T21:19:32.096384
2014-08-22T14:38:50
2014-08-22T14:38:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
# # V-Ray For Blender # # http://chaosgroup.com # # Author: Andrei Izrantcev # E-Mail: andrei.izrantcev@chaosgroup.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the...
[ "andrei.izrantcev@chaosgroup.com" ]
andrei.izrantcev@chaosgroup.com
02ab42c5c8badbbe590644d21545d1ba4ab4d0dd
30d61ce0b728f31a830db6b6b1954a32551990b2
/src/main.py
a470e7a4ea2faf9f82c75807851c1a0dd64d1968
[ "MIT" ]
permissive
hgiesel/anki_set_randomizer
6755dc8489b703887c55a5427bbbdab858f58a65
1a9a22480eb6c0e7f421dc08d36d14920e43dd3e
refs/heads/master
2022-08-24T05:45:13.339132
2020-01-15T17:04:26
2020-01-30T13:56:50
197,258,760
5
0
MIT
2022-07-20T17:28:42
2019-07-16T19:56:27
JavaScript
UTF-8
Python
false
false
492
py
from aqt import mw from aqt.qt import QDialog, QWidget, QAction from anki.hooks import addHook from .lib import config from .setup import setup_editor, setup_menu_option, setup_addon_manager # from .occluder.custom.sr_occluder import SROccluder # def debugOpenWindow(): # dialog = SROccluder(mw) # dialog.setu...
[ "hengiesel@gmail.com" ]
hengiesel@gmail.com
4469a63ba80c88335dffc1c5c727ec4f2a7ca15a
6096761c409494f402826d39fea631df6de3c538
/ldLib/GUI/Box.py
6464786bc91bbb64cfb43fd81b0653eaea4c689e
[]
no_license
Bobsleigh/LD39
b2b7a785edf53279d011efef296b137721bc0828
66963968aa84fe1abfe2dbf3732fb0a0dde7808b
refs/heads/master
2021-01-01T19:48:55.818426
2017-07-31T23:13:10
2017-07-31T23:13:10
98,695,704
2
0
null
null
null
null
UTF-8
Python
false
false
1,761
py
import pygame import os from app.settings import * class Box(pygame.sprite.Sprite): def __init__(self,pos, size): super().__init__() x = size[0] y = size[1] TILEX = 32 TILEY = 32 upLeft = pygame.image.load(os.path.join('img', 'GUI', "GreyUpLeft.bmp")) upMi...
[ "philippe.gendreau.2@ulaval.ca" ]
philippe.gendreau.2@ulaval.ca
df3b7b97135f87ff488c16c0aa9b5365e35d0091
c24fef69a42ac1da33c892eb85c955acc743354c
/minSteps.py
78e5189330d5367e4bd6326c19ab54b3ef5826d5
[]
no_license
Arithmeticjia/leetcode-python
e3c1d5c5a2733c56637ee2fb51222c7465dc6425
a24869d88cb41e53fb0abe482ba87dd1e54b2167
refs/heads/master
2021-08-15T21:55:11.511687
2021-01-03T03:50:54
2021-01-03T03:50:54
237,393,853
1
0
null
null
null
null
UTF-8
Python
false
false
396
py
class Solution(object): # 将一个数从2除到N - 1 # 遇到能整除的就不是素数,反之就是 def minSteps(self, n): ans = 0 d = 2 while n > 1: while n % d == 0: ans += d print(d) n /= d d += 1 return ans if __name__ == '__main__': p...
[ "1097197237@qq.com" ]
1097197237@qq.com
b77eb3aeb34b85c37ffa57c467c252cd52526fa6
316b8375a7ef8095f09973d13f5a49bc7fbe7580
/famous_company_mianshi/36.py
039a0176eb7c628cdf53041f293633bcf3fe4d84
[]
no_license
zhaolijian/suanfa
9a8d23fbca01d994f7eef24631783c4b7ed25683
4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32
refs/heads/master
2023-06-08T17:12:41.522937
2021-06-27T08:13:16
2021-06-27T08:13:16
313,269,459
1
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
# 给定数组arr,设长度为n,输出arr的最长递增子序列。(如果有多个答案,请输出其中字典序最小的) import bisect class Solution: def LIS(self , arr ): # write code here n = len(arr) # 每个位置对应的长度 dp = [1]*n lenth = 1 # 递增序列 array = [arr[0]] for i in range(1, n): if arr[i]>array[-1]: ...
[ "820913569@qq.com" ]
820913569@qq.com
9bc3e0af0b981fcc67ba1e93a31e1299923fa78e
43b1ba0e9d98fd4c8b2612f00a4b9b55b7a7cb57
/test/stress_test.py
f6c846dfa023aee4d7f657e46d2f20577c237b3f
[ "MIT" ]
permissive
yuan-xy/libra-client
11604e6fcd9ee6d38cbf0fa838ceea720c50fe96
697058bfa7bc8e8a7a2598dae4bb289f44524dba
refs/heads/master
2021-06-16T07:09:02.750346
2020-07-02T09:49:21
2020-07-02T09:49:21
207,316,691
30
12
MIT
2021-06-02T00:26:18
2019-09-09T13:33:17
Python
UTF-8
Python
false
false
2,023
py
import libra from libra.transaction import * import os, time import pytest import pdb def is_in_ci(): if 'TRAVIS' in os.environ: return True if 'CI' in os.environ and os.environ['CI'] == 'true': return True return False def run_stress_test(): return 'STRESS_TEST' in os.en...
[ "yuan_xin_yu@hotmail.com" ]
yuan_xin_yu@hotmail.com
068cd0e8af0be84c210ae53c6054e13ba56cc747
ff47f05ded47d70215cdff9be5869fbf1c834f24
/main/models.py
36b366630a9bd423f8a70fd4c737a6b6a913cb86
[ "MIT" ]
permissive
azul-cloud/cityinfo
d213c9fb3846ed6fe36cef6dae0049e27c869860
5655020fbe0215681960a3593cdc3a280a573f3f
refs/heads/master
2021-01-02T08:32:45.361189
2014-12-18T17:55:04
2014-12-18T17:55:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,539
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.text import slugify class TimeStampedModel(models.Model): ''' An abstract base class model that provides selfupdating created and modified fields. ''' created = models.DateTimeField(auto_now_add=True...
[ "awwester@gmail.com" ]
awwester@gmail.com
6f9f132770740e72b39e901d80b4022a053caf43
13a416a2694d1f6aa1a68cd47610236bf61cafbc
/0521/0521/src/main10.py
49ff0389ada708db45f20887b397e9f05252d42f
[]
no_license
Highjune/Python
c637f7d0f9e5d1ac9d6ad87b4e54833b8ff4ae11
1be43816d22f5f3b8679cf0cd3939e9d9f54497a
refs/heads/master
2022-11-24T01:20:54.470172
2020-07-27T18:01:47
2020-07-27T18:01:47
263,271,337
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
class Member: def __init__(self, name, age): self._name = name self._age = age def __str__(self): return 'Name = {}\tAge={}'.format(self._name, self._age) # # mylist = [] # mylist.append(Member('한지민', 24)) # mylist.append(Member('박지민', 34)) # mylist.append(Member('김지민', 44)) import pic...
[ "highjune37@gmail.com" ]
highjune37@gmail.com
b7ce2e513324ae270999609f7d90295f5b41301b
9afbb6993450d1e0c3bae68e86844bd06d4419ee
/Matplotlib/pie1.py
ceb5ad4aa47ca8b4ac3b8cace43bc88d2d4da881
[]
no_license
Jigar710/Python_Programs
6f331caac30878655d4cca4ad97d4214c0262088
714a6306487eb6712f32ccb51b6a2407a81873fa
refs/heads/main
2023-02-25T12:24:44.874199
2021-01-28T15:43:24
2021-01-28T15:43:24
332,869,164
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from matplotlib import pyplot as plt exp_vals = [1400,600,300,410,250] exp_labels = ['Home Rent','Food','Phone / Internet Bill','Car','Other Utilities'] #plt.axis('equal') #plt.pie(exp_vals,labels=exp_labels,radius=1.5,autopct='%0.2f%%',explode=[0,0.3,0,0,0],shadow=True,startangle=45) plt.pie(exp_vals,labels=exp_labe...
[ "jigar.shekhat.777@gmail.com" ]
jigar.shekhat.777@gmail.com
2b4b4cd1460b03d4452e7a08ef358552d7d94102
eb3683f9127befb9ef96d8eb801206cf7b84d6a7
/testing/test_programs/stypy_code_copy/stypy_copy/code_generation_copy/source_code_writer_copy.py
cc3502fab2dc0be8c3ed59103934043d6c7b7137
[]
no_license
ComputationalReflection/stypy
61ec27333a12f76ac055d13f8969d3e0de172f88
be66ae846c82ac40ba7b48f9880d6e3990681a5b
refs/heads/master
2021-05-13T18:24:29.005894
2018-06-14T15:42:50
2018-06-14T15:42:50
116,855,812
2
0
null
null
null
null
UTF-8
Python
false
false
413
py
import os def write_python_source_code(source_file_path, src): """ Writes Python source code to the provided file :param source_file_path: Destination .py file :param src: Source code :return: """ dirname = os.path.dirname(source_file_path) if not os.path.exists(dirname): os.ma...
[ "redondojose@uniovi.es" ]
redondojose@uniovi.es
3d93ab4b8aa0b181a49a1187c4294ece82068360
6e69f2b3bbbdc559fcfff3b21d5c72d6f8be9297
/dolo/tests/test_model_import.py
032e8d328ab31d897d99277e346aa38e64835c49
[ "BSD-2-Clause" ]
permissive
compumetrika/dolo
8e0a3cd0a5557c444f36b6f9f7751241baf49879
eabc232ffc3d15937639276f2ffbaaec6a522dec
refs/heads/master
2020-12-28T23:05:05.360177
2014-10-29T16:09:26
2014-10-29T16:09:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
import unittest import numpy from dolo import yaml_import def test_web_import(): model = yaml_import("https://raw.githubusercontent.com/EconForge/dolo/master/examples/models/rbc.yaml") assert(len(model.symbols['states'])==2) def model_evaluation(compiler='numpy', data_layout='columns'): #model = yaml_...
[ "pablo.winant@gmail.com" ]
pablo.winant@gmail.com
f8572068431e4fb492804c42745205932066ecf6
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_0/Python/LiranR/pancakes.py
d52201d60d69a84e45131570da46bcaec7c332cc
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
167
py
T = int(raw_input()) for w in xrange(1,T+1): S = raw_input() + "+" ans = sum([S[i-1] != S[i] for i in xrange(1,len(S))]) print "Case #%d: %d"%(w,ans)
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
c3afb220ec9fbf1ff6b0d1cd5fa69fbf6d1990d4
bd37e10ba5aa2e241c82c0f707e832e2d2c98448
/delivery_app/coupons/views.py
2a062b64c0b5da79d62e0dd1fe0b402b451bb24a
[]
no_license
DmitriyBul/DimkaDeliveryApp
9d88aaf733fee5345fe1ff0ca4a83242b3ca73c4
22fe0229bbd17e978bdc279751e41c98584a0e44
refs/heads/main
2023-08-23T16:34:42.470321
2021-11-05T07:06:40
2021-11-05T07:06:40
402,777,939
1
0
null
null
null
null
UTF-8
Python
false
false
855
py
from django.shortcuts import render # Create your views here. from django.shortcuts import render, redirect from django.utils import timezone from django.views.decorators.http import require_POST from .models import Coupon from .forms import CouponApplyForm @require_POST def coupon_apply(request): now = timezone...
[ "128dmitriy128@gmail.com" ]
128dmitriy128@gmail.com
283fdc87bf1002aaa79adb4c5814d8ebb1806045
fafb89a3552e4dbb47d134966462ef5f3f37f576
/2nd_order-Yee/PyCUDA/101-block1d-grid1d-smem-register.py
34d08f7b1ae5857296154bec98c86b30e96e3398
[]
no_license
EMinsight/fdtd_accelerate
78fa1546df5264550d12fba3cf964838b560711d
a566c60753932eeb646c4a3dea7ed25c7b059256
refs/heads/master
2021-12-14T03:26:52.070069
2012-07-25T08:25:21
2012-07-25T08:25:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,194
py
#!/usr/bin/env python import numpy as np import pycuda.driver as cuda import pycuda.autoinit MAX_GRID = 65535 kernels = """ __global__ void update_e(int nx, int ny, int nz, float *ex, float *ey, float *ez, float *hx, float *hy, float *hz, float *cex, float *cey, float *cez) { int tx = threadIdx.x; int idx = blockI...
[ "kh.kim@kiaps.org" ]
kh.kim@kiaps.org
2a9e8851128546350c7abee83e1bc9fbf7a24bf8
f640dc2a1925123878bcd92b11135a8773711710
/Python学习/窗口界面开发/爬虫day01/CSDN爬虫/V0.0.1-csdn博客爬取.py
780873a6a1584ccb53836dabf3834d4e0822da5c
[ "Apache-2.0" ]
permissive
gengzi/PycharmProject
62c4a9c801947077bab7b1115c4f3d8953389e7c
2e2c66e9e403fe2d2043a13a4780914dae8fe823
refs/heads/master
2022-04-24T03:11:22.244970
2020-04-24T01:15:33
2020-04-24T01:15:33
122,830,287
3
0
null
2020-04-24T01:13:43
2018-02-25T11:33:48
Python
UTF-8
Python
false
false
3,092
py
#!/usr/bin/env python2 # -*- coding:utf-8 -*- # Hello world - 西蒙.科泽斯 这是“向编程之神所称颂的传统咒语,愿他帮助并保佑你更好的学习这门语言 import re import urllib import urllib2 """ 目的:使用正则表达式对csdn爬取博客数据 版本1 :最终效果: (0)模拟登陆csdn网站 (1)自动爬取用户所关注的csdn用户 (2)自动爬取关注用户的所有文章页面,并对每一篇文章的必要数据解析 ...
[ "1164014750@qq.com" ]
1164014750@qq.com
acc5002760a39b2af4bef188ba482854e4181a74
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/XNALaraMesh/write_ascii_xps.py
7e32c78673d9ac2faaf5933f2b020aabb037f152
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,579
py
# -*- coding: utf-8 -*- # <pep8 compliant> import io import operator import os from . import ascii_ops from . import mock_xps_data from . import read_ascii_xps from . import read_bin_xps from . import xps_const from . import xps_types import bpy from mathutils import Vector def writeBones(bones): bonesString = ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
dd8fdd54b11276228668cccfd945243340d67dba
ac216a2cc36f91625e440247986ead2cd8cce350
/appengine/findit/common/constants.py
5dbce09cdf5f5d6e9720f0c7b8b33695cce71b99
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
3,225
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Includes all the constants of module names, queue names, url paths, etc.""" import os import re # OAuth2 client_id of the "API Explorer" web app. API_EXP...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
f97760ca1bf4c07bff0404d75870085147e3fac8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/171/61734/submittedfiles/testes.py
a341b35cef7824be8d50453d8b9dd564d6e0356a
[]
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
143
py
# -*- coding: utf-8 -*- import math #COMECE AQUI ABAIXO def media(a): if a>0: return(a) n=int(input('digite n':)) print(media(a))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
04318f2ed6e372d3b4f7df0dd70b0c0936b57f71
f1d2a86b7dd93f4ddafa8961780775a28e7b4508
/GeneralPractice/TopologicalSort_Method1.py
36addad7c26f7a5c16adc5ee9609ac14416dc41f
[]
no_license
deepika087/CompetitiveProgramming
76f8c1451fce1a8e3c94656f81a5b04363987dc6
d40c24736a6fee43b56aa1c80150c5f14be4ff22
refs/heads/master
2021-06-12T02:26:22.374506
2021-02-20T19:27:57
2021-02-20T19:27:57
70,208,474
10
6
null
null
null
null
UTF-8
Python
false
false
985
py
__author__ = 'deepika' #This method usses Topological sort # This approach asusmes it is Directed acyclic graph # as done by https://github.com/mission-peace/interview/blob/master/src/com/interview/graph/TopologicalSort.java def sortProcess(process): result = [] #Act like stack visited = set() for vertic...
[ "deepika_087@yahoo.com" ]
deepika_087@yahoo.com
3a9df567dbd6e5969a903d1b203ca696a011a695
96237c354775cf9c1e54b52e7501f14bbe47db44
/scripts/combine-oflc-data.py
300aea2008c2796f19a344a60192568f72a436d7
[]
no_license
BuzzFeedNews/H-2-certification-data
c2eef67651000ee540591563d5368431eb9e9586
bd2f1dc922ad6927e90b9fbb82ca001965a7dce0
refs/heads/master
2022-12-25T05:34:34.858773
2022-05-19T16:22:48
2022-05-19T16:22:48
45,624,801
13
7
null
2022-07-06T21:32:43
2015-11-05T16:42:03
Python
UTF-8
Python
false
false
6,681
py
#!/usr/bin/env python import pandas as pd import namestand import us import glob import sys, os import itertools import re import six flatten = lambda x: list(itertools.chain.from_iterable(x)) t = namestand.translator standardizer = namestand.combine([ namestand.downscore, t(re.compile(r"address(\d)"), r"addre...
[ "jsvine@gmail.com" ]
jsvine@gmail.com
f03dbd7d9753ab4f73da86d30a04f7ec8d81afc4
1d0c89ecaa7598e5cb6a26a20a1bdd5f51d60123
/apps/compra/models.py
f21f2a2b26e9244025f9a97b38301dc4ce3984f0
[]
no_license
chrisstianandres/american_audio
a1fee70e798a151fcbfd492ed75878a8524c783b
ee31f01af4212cc2484188003900648064811fcb
refs/heads/master
2023-02-01T02:36:59.824789
2020-12-09T23:17:45
2020-12-09T23:17:45
307,203,032
0
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
from datetime import datetime from django.db import models from django.forms import model_to_dict from apps.empleado.models import Empleado from apps.producto.models import Producto from apps.presentacion.models import Presentacion from apps.proveedor.models import Proveedor estado = ( (0, 'DEVUELTA'), (1, 'F...
[ "Chrisstianandres@gmail.com" ]
Chrisstianandres@gmail.com
3dbfc9c3c4c8b0b6bece13fa6cbcf6ed63e2b3ee
6976df580fc9970d7ea725e442460cda516669ab
/archeage_packages/archeage_packages/asgi.py
c61035d973a7d732e0acf8c36c264ac6f4fb4a70
[]
no_license
Ksieciu/django-for-shiro
93c9273bc91f7e1aee3979a1c046f5e0855f9bec
581715750683cdf82654589996cf2ba817d3e5fc
refs/heads/main
2023-01-09T04:11:41.731905
2020-11-10T23:54:05
2020-11-10T23:54:05
312,014,562
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for archeage_packages project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
[ "30780278+Ksieciu@users.noreply.github.com" ]
30780278+Ksieciu@users.noreply.github.com
4b677287e7310404928570e30130c86320d49fc0
59de7788673ade984b9c9fbc33664a7cbdba67d3
/res/scripts/client/messenger/proto/bw_chat2/search_processor.py
65783704c8b92516855cbde21df3a4adeb4c08c1
[]
no_license
webiumsk/WOT-0.9.15-CT
3fa24ab37a6c91b7073034afb2f355efa5b7fe36
fbd194fbaa6bdece51c7a68fc35bbb5257948341
refs/heads/master
2020-12-24T21:27:23.175774
2016-05-01T13:47:44
2016-05-01T13:47:44
57,600,180
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,408
py
# 2016.05.01 15:25:06 Střední Evropa (letní čas) # Embedded file name: scripts/client/messenger/proto/bw_chat2/search_processor.py from debug_utils import LOG_WARNING from messenger.m_constants import PROTO_TYPE from messenger.proto import proto_getter from messenger.proto.events import g_messengerEvents from messenger...
[ "info@webium.sk" ]
info@webium.sk
431c40192e68966f6cc88752b5a46be65e4add61
724f0c3ed438e20b48f04952f8316e3779b95120
/hw/hw_06/log_config/server_log_config.py
31035811a8aabd78dbdbb9183d5914eec7687e20
[]
no_license
SKO7OPENDRA/python_messanger
d1572c8dd8ae8e4752b4a86cc342637e7f4b9d3e
af341c4ee1447a628ae93de7bcb3452a6e8520d3
refs/heads/master
2021-05-19T11:55:20.693807
2020-03-31T18:51:15
2020-03-31T18:51:15
251,680,118
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
import logging import sys import os from logging.handlers import TimedRotatingFileHandler sys.path.append('../') SERVER_LOGGER = logging.getLogger('server') formatter = logging.Formatter( "%(asctime)s %(levelname)s %(module)s %(message)s ") PATH = os.path.dirname(os.path.abspath(__file__)) PATH = os.path.join(PA...
[ "58439768+SKO7OPENDRA@users.noreply.github.com" ]
58439768+SKO7OPENDRA@users.noreply.github.com
46fa7a83657149d4b97f999d88ebe07aa6150d12
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/6a880b78a2305ea71f211b741f16873b41538c1f-<main>-fix.py
b881b8815a1bf39ef737cc4b65695f67d2e98f47
[]
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
3,326
py
def main(): argument_spec = ovirt_full_argument_spec(state=dict(choices=['present', 'absent'], default='present'), data_center=dict(required=True), id=dict(default=None), name=dict(required=True), description=dict(default=None), comment=dict(default=None), external_provider=dict(default=None), vlan_tag=dict(default...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
6110c5ad3475b11e2c8b245b32c87ccbeed8f6f4
d73844728e49155fbfee3157fd19a615eea93cf3
/Ayush_stuff/Priya_practice_01.py
4f00fa11ac652d871cf2489dd09aee77f45528e9
[]
no_license
thorenscientific/py
962c98a44d36e54661416f79c6149de59f9e2674
05dc170f7d488d403d40c01316717e7c151fc350
refs/heads/master
2021-01-11T12:30:03.699074
2017-11-24T01:22:09
2017-11-24T01:22:09
79,374,946
1
1
null
2020-07-23T21:52:18
2017-01-18T19:17:29
Python
UTF-8
Python
false
false
520
py
# -*- coding: utf-8 -*- """ Created on Sun Oct 01 19:08:31 2017 @author: Priya """ print("priya's while loop") year = 2005 while year < 2017: print(year) year = year + 1 print("Priya's for loop") groceryList = ["milk", "bread", "eggs", "coffee"] for item in groceryList: print(item) ...
[ "thorenscientific@gmail.com" ]
thorenscientific@gmail.com
2c93bb48352a1b6a6df2c637a68de53df949aaad
3a751dd11ad893d4222cc52148d0829de9f4029f
/django/django_extras/mini_register/register_login_app/models.py
344d665a338c728fb789f923b786b9fed611299f
[]
no_license
higashizono33/python_stack
76b5fc63a63913e309a545b7f586a99c684fa0d2
5ec93e384e911b9d05de54af232d464928b76e7e
refs/heads/master
2023-04-18T23:18:21.569125
2021-04-26T02:40:55
2021-04-26T02:40:55
339,864,117
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
from django.core.exceptions import ValidationError from django.db import models # Create your models here. # our validator def validateLengthGreaterThanTwo(value): if len(value) < 3: raise ValidationError( '{} must be longer than 2 letters'.format(value) ) class User(models.Model): ...
[ "takashizono@gmail.com" ]
takashizono@gmail.com
2251ac8d84a4d828ff70c410f272fd4675deab29
922b67efc75a8f923c411d4444603552286efcd6
/TIY8-3.py
9402884885a4c2f6f68f50b8f3cdbecaa726ef16
[]
no_license
EthanPassinoFWCS/Chapter8Anthis
a7e879283be108802811129ac711dc8fbd13ff3f
e6b0176ef9fd2884134286c4500ac5fcc6c8e9bf
refs/heads/master
2022-12-26T08:15:38.938982
2020-09-14T18:03:25
2020-09-14T18:03:25
295,477,040
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
def make_shirt(size, text): print(f"Shirt will have the text {text} and is the size of {size}.") make_shirt(10, "Python Coding") make_shirt(size=12, text="Python Coding")
[ "ethan.passino@fwcsstudents.org" ]
ethan.passino@fwcsstudents.org
1b87ff8bb17f4d6863dbc7deba9b66f9766479cc
05938c3d5fadd69f1fa8ff9b4a940ddc8590846c
/code/flask/ch11-logging-activity/pypi_flask_ch11/pypi_org/viewmodels/admin/editpage_viewmodel.py
056921807290ea6a0ae5ff59e3555cde9b9fd31d
[]
no_license
hellroft9711/adding-a-cms-to-your-web-app-course
8ed9c545aa094d47784a162e92ad8d543a6e1709
c80e6339ba752b860495ef0170bb2937bb5154ad
refs/heads/master
2022-12-28T23:41:59.453311
2020-10-15T06:18:23
2020-10-15T06:18:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
from pypi_org.services import cms_service from pypi_org.viewmodels.shared.viewmodelbase import ViewModelBase class EditPageViewModel(ViewModelBase): def __init__(self, page_id: int = 0): super().__init__() self.page_id = page_id self.page = None self.is_shared = False self...
[ "mikeckennedy@gmail.com" ]
mikeckennedy@gmail.com
176e1f6208c048f89e4a32ed1b9fbeb86ee776fc
538fde0022ac6dddaa5cda3aef541c820039108d
/Lecture6/Pr6.10.py
4514c665ed158684d5139d8d928f7319dae32d90
[]
no_license
P4SSER8Y/MITx-6.00.1x
db2ef41a27dd53cb4b16d6ce787a056b05f60e51
10cdb474ee13d0b4e71d88fac1471d6db0527d7d
refs/heads/master
2021-05-29T18:53:06.892800
2015-10-09T15:59:17
2015-10-09T15:59:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
def howMany(aDict): ''' aDict: A dictionary, where all the values are lists. returns: int, how many values are in the dictionary. ''' # Your Code Here result = 0 for t in aDict.values(): result += len(t) return result animals = { 'a': ['aardvark'], 'b': ['baboon'], 'c': ['coati...
[ "beobachter70@163.com" ]
beobachter70@163.com
ab780c0d83bccd542799c642c411f9ba11c28cd5
1cfa92c882c5f655454916ff95919d9843f8942b
/library/pippy/game.py
a31e58a15aff365fb3666426ff28ac47b6c8c642
[]
no_license
sugar-activities/4256-activity
915789d11c2cb2bdce13d28826e9259a13a0bcc8
db7b27bda49fedb3307d444a4cd39aa984084ea2
refs/heads/master
2021-01-19T23:14:17.532092
2017-04-21T05:12:18
2017-04-21T05:12:18
88,938,009
0
0
null
null
null
null
UTF-8
Python
false
false
2,578
py
"""pygame support for pippy.""" # Copyright (C) 2007-8 One Laptop Per Child Association, Inc. # Licensed under the terms of the GNU GPL v2 or later; see # /usr/share/licenses/common-licenses/GPLv2+ for details. # Written by C. Scott Ananian <cscott@laptop.org> def pause(): """Display a "Paused" screen and suspend....
[ "ignacio@sugarlabs.org" ]
ignacio@sugarlabs.org
b47a621c1dc24eef21c89e89f2d5e7409325241d
38d1e0b40d9cc54e4aa272ae5c2872fca378002a
/python_stack/django/django_full_stack/python_project/matchmaking_app/models.py
9794e42602379703738fdea8d1eff6406c24855d
[]
no_license
taichikoga/Dojo_Assignments
0a8974a6fcb3ce83973fd481803f1bb7126ca3ba
4c7e82bd652286d281ce86fe9c14491182c3ecde
refs/heads/master
2022-11-22T23:19:02.431639
2020-07-20T17:53:37
2020-07-20T17:53:37
274,190,553
0
0
null
null
null
null
UTF-8
Python
false
false
1,898
py
from django.db import models from user_app.models import User # Create your models here. class LobbyManager(models.Manager): def lobby_validator(self, post_data): errors = {} if len(post_data['title']) == 0: errors['no_title'] = "The lobby name cannot be blank." if len(post_da...
[ "63776416+taichikoga@users.noreply.github.com" ]
63776416+taichikoga@users.noreply.github.com
7080ecd33499952594cbe115fd1444bd2ef3cdcc
6527b66fd08d9e7f833973adf421faccd8b765f5
/yuancloud/recicler/website/payment_sips/__yuancloud__.py
89f0d1ac0074b23b9edfe543324237d8d58301a4
[]
no_license
cash2one/yuancloud
9a41933514e57167afb70cb5daba7f352673fb4d
5a4fd72991c846d5cb7c5082f6bdfef5b2bca572
refs/heads/master
2021-06-19T22:11:08.260079
2017-06-29T06:26:15
2017-06-29T06:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright Eezee-It # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
[ "liuganghao@lztogether.com" ]
liuganghao@lztogether.com
de74647547727a3e2802a56e07990f5a8a140714
73afed0a2a5993e15b8813702af07d941f094823
/817.py
12c84fd248bf0fcc1bb8340fdd558a0a5d0eb261
[]
no_license
Pennylele/Algorithms-fun-daily
6d83196354aa22bb7dc0423f2c82f802ef4dad8d
ce8d4a366244d335f97a5d045d101810a1c6920e
refs/heads/master
2023-05-28T08:29:53.390530
2021-06-08T17:14:41
2021-06-08T17:14:41
363,510,125
1
0
null
null
null
null
UTF-8
Python
false
false
297
py
class Solution: def numComponents(self, head, nums): set_nums = set(nums) ans = 0 while head: if head.val in set_nums and (head.next == None or head.next.val not in set_nums): ans += 1 head = head.next return ans
[ "fangle0121@gmail.com" ]
fangle0121@gmail.com
5cac5e8d48e957d723f50768c2ea893d9d1b41db
911d644fc8aba5c026ab51fa2ffb33698f7618a7
/droidlet/perception/robot/detectron/detector/properties_head.py
65cc5f48af91f165e1741ea6267e10541e1a5632
[ "MIT" ]
permissive
adamlerer/droidlet
3df03e89f0a3d6236152d96fa68c4e89a7d8701f
ada38d191dadcea9aba12330e35e8e7d6d1663d9
refs/heads/main
2023-05-15T07:38:22.731918
2021-06-09T07:09:28
2021-06-09T07:09:28
375,388,047
0
0
MIT
2021-06-09T14:40:15
2021-06-09T14:40:14
null
UTF-8
Python
false
false
4,738
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging from typing import List import torch import numpy as np import fvcore.nn.weight_init as weight_init from torch import nn from torch.nn import functional as F from detectron2.layers import Conv2d, Linear, ShapeSpec, cat, get_norm from...
[ "yuxuans@fb.com" ]
yuxuans@fb.com
363311b7302fc4413181af5d5d00a274b00c3222
5f5ce7dda4b28c3897359c7ea08ec985889265e5
/classical-ml-algorithm-implementation/supervised/py-decision-tree/deprecated/py-identification-tree/branchDisorderCalculus.py
e907b34e04746da66c0552bf6b9757578526df21
[]
no_license
FelSiq/machine-learning-learning
1d8a4ed497331c79f248e4b10e2a74ccea8922dc
6cfed782f48da8259cdeb00ca413982afe8cc86d
refs/heads/master
2021-11-21T06:46:44.939256
2021-11-07T21:09:20
2021-11-07T21:09:20
97,542,279
4
2
null
null
null
null
UTF-8
Python
false
false
1,341
py
import numpy as np import math def subsetEntropy(subset, base=2): classes, absFreqs = np.unique(subset, return_counts=True) probs = absFreqs / len(subset) return -sum( [(probs[i] * math.log(probs[i], base) if 0.0 < probs[i] < 1.0 else 0.0) for i in range(len(probs))]) def setEntropy(ins...
[ "felipe.siqueira@usp.br" ]
felipe.siqueira@usp.br
9fc0b3b1a85f34ecb856822e11cb3ada34bef459
cfa4c756333d2a321b1a85126c74f9728649281c
/src/cogent3/maths/stats/kendall.py
944c20600e299dbddc955234395eb256dfc7cdbc
[ "BSD-3-Clause" ]
permissive
genomematt/cogent3
f86d8d0f906387064ebd588ef7194a91c3faa5a8
d4b561c6ad06a44f82a79940e7699b3ffce71442
refs/heads/develop
2023-01-30T10:12:38.233989
2022-01-23T08:20:47
2022-01-23T08:20:47
240,843,994
0
0
BSD-3-Clause
2023-01-23T19:02:17
2020-02-16T06:33:35
Python
UTF-8
Python
false
false
3,719
py
""" Computes kendalls tau statistic and associated probabilities. A wrapper function is provided in cogent3.maths.stats.kendall_correlation Translated from R 2.5 by Gavin Huttley """ from numpy import array, floor, sqrt from cogent3.maths.stats.distribution import zprob from cogent3.maths.stats.number import Catego...
[ "Gavin.Huttley@anu.edu.au" ]
Gavin.Huttley@anu.edu.au
81d590e7e42ef28d25bb603571370db2b3eee464
b1962b701230e8fe3235676b6a9a659b1ad921ef
/app/client/forms.py
ec9deba05127fe1dd1cd5137777a969f1b9617e0
[]
no_license
volgoweb/wt
8e08dc0ff83ac120992bd81c209a420b207df966
3a88b8d7d6e1f925b363bfecb94008e14d15943f
refs/heads/master
2021-01-23T09:29:42.209757
2016-02-05T21:24:10
2016-02-05T21:24:10
42,570,795
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
# -*- coding: utf-8 -*- from django import forms from helper.forms import BootstrapFormMixin from .models import Client class ClientsListFilters(BootstrapFormMixin, forms.Form): needle = forms.CharField( required=False, widget=forms.TextInput(attrs={ 'placeholder': 'Найти по словам в ...
[ "volgoweb@bk.ru" ]
volgoweb@bk.ru
ec9f79146afece701b6e1266c2775b68175cea9a
1126705b1be73c8b0e80fc955135c81e6ba30080
/emission/net/usercache/formatters/android/location.py
b459f63008787a151f7015a9ca21bdb3b20d8f5e
[ "BSD-3-Clause" ]
permissive
asiripanich/e-mission-server
40cede3fd81d726a43c3ccb08ecad0ed2fafab21
00e7c4edfa2617800b1b512f5d37c11dd62f0660
refs/heads/master
2023-07-07T18:41:15.988655
2022-11-10T02:51:32
2022-11-10T02:51:32
549,350,112
0
0
BSD-3-Clause
2023-06-27T23:43:16
2022-10-11T03:46:37
Jupyter Notebook
UTF-8
Python
false
false
1,576
py
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import * from past.utils import old_div import logging # It is not clear if we need to...
[ "shankari@eecs.berkeley.edu" ]
shankari@eecs.berkeley.edu
a3dd69ee58772d489bde477099bd670f8e1f08fe
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/vBEm4jimnvxaFhdgs_11.py
2412beea37c789a406d5b2a887fc6b2a76353d7d
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
years_in_one_house = lambda age, moves: age // (moves + 1) if age % (moves + 1) == 0 or age == 31 else age // (moves + 1) + 1
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8932b31f08873f41d6369cce38a1b82edde90f9f
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/yukicoder/300-399/306.py
ea7f6d128bdd432ad58c5e76213dac385b5235c9
[]
no_license
roiti46/Contest
c0c35478cd80f675965d10b1a371e44084f9b6ee
c4b850d76796c5388d2e0d2234f90dc8acfaadfa
refs/heads/master
2021-01-17T13:23:30.551754
2017-12-10T13:06:42
2017-12-10T13:06:42
27,001,893
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll xa, ya = map(float, raw_input().split()) xb, yb = map(float, raw_input().split()) xb *= -1 y = (ya - yb)/(xa - xb) * (0 - xa) + ya print "%.10f" % y
[ "roiti46@gmail.com" ]
roiti46@gmail.com
ded2b484c15fb27590e08f30eb041f8c84226431
cc578cec7c485e2c1060fd075ccc08eb18124345
/cs15211/PushDominoes.py
802b3538644ba17b3ce82a76ec7e8ba6f8c973f0
[ "Apache-2.0" ]
permissive
JulyKikuAkita/PythonPrac
18e36bfad934a6112f727b4906a5e4b784182354
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
refs/heads/master
2021-01-21T16:49:01.482561
2019-02-07T06:15:29
2019-02-07T06:15:29
91,907,704
1
1
Apache-2.0
2019-02-07T06:15:30
2017-05-20T18:12:53
Python
UTF-8
Python
false
false
5,507
py
__source__ = 'https://leetcode.com/problems/push-dominoes/' # Time: O(N) # Space: O(N) # # Description: Leetcode # 838. Push Dominoes # # There are N dominoes in a line, and we place each domino vertically upright. # # In the beginning, we simultaneously push some of the dominoes either to the left or to the right. # ...
[ "b92701105@gmail.com" ]
b92701105@gmail.com
2f4e822cfa7fc07280ba4bdb88b374d54a1dc256
a71d8a1d000f6443fd62708a026db2bd918f29aa
/_pramp/200308/time_planner_mine.py
01f08fcb44d5fcb02f2dcaa3e8bc2bafb4e12d18
[]
no_license
scottwedge/algorithm
68172e3cb6d65d7e6096ab2cf51b110f3e0a046d
832c3e580e936b9e9cbd0c492d5b80eeac455c34
refs/heads/master
2022-12-03T10:33:53.713400
2020-08-09T14:09:10
2020-08-09T14:09:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,967
py
""" Time Planner Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is of duration dur. If there is no common time slot that satisfies the duration requirement, return an empty array...
[ "myungwoo.ko@gmail.com" ]
myungwoo.ko@gmail.com
8aaae0d0e5abdb11090ec7658532ff232cbdfa8d
347792b1a0870b88e6d975dea1cdb0cc0bb1c30b
/info_collector/management/commands/load_info.py
61b1b14c3d081c8d3d7c471f9fb11329e7bf4172
[]
no_license
MakeBugsEveryday/fruits_learning
e0df3d77cc97157d6809a33bcd519f7d62ef3f8a
fb3560b59328287b163965030a445f4aa82c7336
refs/heads/master
2020-04-14T08:44:18.553489
2018-09-02T08:30:24
2018-09-02T08:30:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
""" This command load info from a json file produced by sync_info """ from __future__ import absolute_import import os from django.core.management.base import BaseCommand from django.core import serializers from django.conf import settings from django.utils import timezone from datetime import timedelta from ...model...
[ "fruitschen@gmail.com" ]
fruitschen@gmail.com
ed6334cd993c64d8622b6ed9ec674611632bf090
a46ccf3496712f85e92e15bac27b9f9df23436a4
/notebooks/_solutions/90_package_numpy20.py
314ffe3bd1543db441756d795761d25b72bd31d6
[ "BSD-3-Clause" ]
permissive
jorisvandenbossche/DS-python-geospatial
a30ef43daa1d8cfd9d5652ab047bd828573bb493
cd5d63057a335e0cb157faf12b945ec664da4c10
refs/heads/main
2022-11-24T09:55:06.552714
2022-11-20T22:15:50
2022-11-20T22:15:50
244,412,214
134
39
BSD-3-Clause
2023-09-14T17:10:54
2020-03-02T15:57:19
Jupyter Notebook
UTF-8
Python
false
false
189
py
# Assign the new values according to the classes b4_data_classified[b4_data < 0.05] = 10 b4_data_classified[(0.05 <= b4_data) & (b4_data < 0.1)] = 20 b4_data_classified[0.1 <= b4_data] = 30
[ "noreply@github.com" ]
jorisvandenbossche.noreply@github.com
7c4e89f29a4f597b9a96bba25f75587ed64a5c46
daee54824cb107f9b5749e3c12e7f09f544bac0e
/modules/filters/ICPTransform.py
aed4ac43f48c32a42df1f3549e5c42e480f2f7cd
[]
no_license
JoonVan/devide
8fa556d2b42c5ad70c3595303253f2a171de0312
586225d68b079e2a96007bd33784113b3a19a538
refs/heads/master
2020-12-26T06:25:01.744966
2017-01-22T19:47:50
2017-01-22T19:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,099
py
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class ICPTransform(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
[ "cpbotha@users.noreply.github.com" ]
cpbotha@users.noreply.github.com
7c4f5dc27015cab044ad2d937f18c0efc89f1e60
adef987d8985651c0e7063f4c61025027a459236
/dist/Basilisk/simulation/coarse_sun_sensor/__init__.py
2e373128cf089b3a34cb60bde81a79ebf997caaf
[ "ISC" ]
permissive
maxprofs-llcio/basilisk_mag
cab6202b10f8a29e7f57de79d2bb6190a05a2567
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
refs/heads/master
2022-03-19T15:51:48.295046
2019-04-08T19:09:09
2019-04-08T19:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
# This __init__.py file for the coarse_sun_sensor package is automatically generated by the build system from coarse_sun_sensor import *
[ "ian.cooke@colorado.edu" ]
ian.cooke@colorado.edu