blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a811c97b51393a2eaedfda149c3031abea217fdf | 420447baf4f9ec631dad6dc53694d19bbcc643a5 | /section-4/examples/aa.py | 0e5c9eff8d4f5afcc1c016c86ea07e26ff69407e | [] | no_license | shamim-ahmed/udemy-python-masterclass | deae51e38b550e42d4a04d39168769d4953894af | b0789e398d4d022eeadba421b5ddb0f0986961c4 | refs/heads/main | 2023-08-12T12:56:31.420529 | 2021-09-23T12:42:07 | 2021-09-23T12:42:07 | 109,475,858 | 0 | 0 | null | 2021-09-28T13:14:40 | 2017-11-04T07:28:34 | Python | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/env python3
x = 23
x += 1
print(x)
x -= 4
print(x)
x *= 5
print(x)
x //= 4
print(x)
x /= 5
print(x)
x **= 2
print(x)
x %= 5
print(x)
greeting = "Good "
greeting += "Morning"
print(greeting)
greeting *= 5
print(greeting)
| [
"shamim.buet.99@gmail.com"
] | shamim.buet.99@gmail.com |
958fc768494ec3c7056fc6c7e6555e4a4a2b2dd8 | 34a633e2d60c5adf0e9f420bcc9587ac66b6766b | /kats/tests/models/test_stlf_model.py | ffe21a735545d553826036ca2afecdb1086247f7 | [
"MIT"
] | permissive | kpbMarques/Kats | 5cdd7ac61e23218cb5588ef775ca194224abe739 | 259fdf8f80f628b44f9ee8881f112b1e9fd7a85f | refs/heads/master | 2023-07-02T15:55:30.915358 | 2021-08-10T19:47:44 | 2021-08-10T19:49:02 | 394,783,804 | 1 | 0 | MIT | 2021-08-10T21:19:45 | 2021-08-10T21:19:45 | null | UTF-8 | Python | false | false | 2,529 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from unittest import TestCase
import pkgutil
import io
import pandas as pd
from kats.consts import TimeSeriesData
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
22a152ea94ccbc1c22feb2095dac25d8a3c7f763 | c607902a48125eaa724452ef9988d450ab5b32b2 | /ctasks/year_2021/month_06/day_20210618/L00100275_v1.py | 3647eb49b131d97ff6256a4e723cfdba99d7f45c | [
"MIT"
] | permissive | nesen2019/everyday | 8571e00275546b7a437dbb4da5e6d95a6be60f5a | 8439d99b12a938cb8325cdaceef8861af062abc5 | refs/heads/main | 2023-06-21T05:02:47.713360 | 2021-07-28T15:27:23 | 2021-07-28T15:27:23 | 376,860,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | '''
剑指 Offer 03.数组中重复的数字 LCOF
剑指 Offer 03.数组中重复的数字
https://leetcode-cn.com/problems/
shu-zu-zhong-zhong-fu-de-shu-zi-lcof
找出数组中重复的数字。
在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。
示例 1:
输入:
[2, 3, 1, 0, 2, 5, 3]
输出:2 或 3
限制:
2 <= n <= 100000
class Solution:
de... | [
"228730267@qq.com"
] | 228730267@qq.com |
23a017b6985b9075f84884d1e3f47eb3c33db526 | 94c20b83ecf16ff34e8feeb3ac1cdc7a514a7496 | /Django/Django/boston/music/migrations/0002_auto_20170402_0716.py | 22207ebef1b618bc22d01e5159e3ffd432e346a9 | [] | no_license | shivanshuisin/sample | ecb4678327b50539946c9327856c966a66144b27 | ae9724776cc11e63daf28ab671317121aa145dd6 | refs/heads/master | 2021-01-23T11:09:32.577188 | 2017-06-02T06:06:02 | 2017-06-02T06:06:02 | 93,127,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-02 07:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | shivanshuisin.noreply@github.com |
45fb8b4a825288850eb34bba58d4a38f849754d2 | afb3f5dd51047b292c65c41ce9f05d87e0601eef | /URI-Python/1045.py | ddb320ab3b338c0bf9f9394f88ae3bf3bcc8a487 | [] | no_license | gustavogds/URI | 4e22111290523847a7936c3104da995f24a68ce7 | 67d0a6c1cea94df780ff7ab9daf4157ce7b1534b | refs/heads/master | 2023-02-08T17:48:18.666576 | 2020-07-31T23:28:53 | 2020-07-31T23:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | nums = input().split()
n1, n2, n3 = nums
lista = [float(n1), float(n2), float(n3)]
s = sorted(lista, reverse = True)
a = s[0]
b = s[1]
c = s[2]
if a >= b+c:
print('NAO FORMA TRIANGULO')
else:
if a**2 == (b**2 + c**2):
print('TRIANGULO RETANGULO')
elif a**2 > (b**2 + c**2):
print('TRIANGULO ... | [
"gustavogds9@hotmail.com"
] | gustavogds9@hotmail.com |
3c5cf7a046a24b6b946834f4dd1e73195c28d8af | 6a3805c0e3a1f1a17dafde998b07dff724fa3432 | /fixedwing/migrations/0003_remove_fixedwingpost_user_name.py | bc069521c1e8eb8d325b7a1382518dea94a5cc49 | [
"MIT"
] | permissive | shivam675/avation | de85bd7bceb88f4567f2d549c914b6bee978d216 | 9f39a9fbeb2ad7d27d88816b0085cdd814b9ae35 | refs/heads/main | 2023-04-14T14:54:20.213381 | 2021-05-02T10:35:05 | 2021-05-02T10:35:05 | 358,865,969 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 3.2 on 2021-04-21 07:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fixedwing', '0002_auto_20210421_0522'),
]
operations = [
migrations.RemoveField(
model_name='fixedwingpost',
nam... | [
"samarkale.15@gmail.com"
] | samarkale.15@gmail.com |
cc5b182b31c15e0834f851a86264418069dace1b | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/refinement/tst_occupancy_selections.py | 00e45d369bbd20f50d9ca7e271fc4920cf51cc44 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 67,722 | py | from __future__ import absolute_import, division, print_function
from mmtbx.monomer_library import pdb_interpretation
from mmtbx.refinement.occupancies import occupancy_selections
from mmtbx.command_line import fmodel
import mmtbx.model
from iotbx import file_reader
import iotbx.pdb
import iotbx.phil
from libtbx.test_u... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
a6c9e1c6485b4e005358f2fb9fc61b222dbcca23 | 191547132fcbea34a1ebd6694fdbbce75c17e4a7 | /Scheduler/venv/lib/python3.6/genericpath.py | 3810bec1f6c6a25e0279efc82a513fbe69eeebb9 | [] | no_license | kanadas/IO | 24c42ba6bdf6757a56ad15fe5ce291812c0051f7 | 85a735c2186b4544ef527112ec6c697525539630 | refs/heads/master | 2021-04-09T13:00:12.050356 | 2018-06-03T17:27:35 | 2018-06-03T17:27:35 | 125,632,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | /Users/bartoszgromek/anaconda3/lib/python3.6/genericpath.py | [
"bartoszgromek@Bartoszs-MacBook-Pro.local"
] | bartoszgromek@Bartoszs-MacBook-Pro.local |
8b9586e7b4d8ccf822cc2fac6c8e2a66e0cace0c | b5a9d7b62693aab6d04fc3e58643100e4c93a923 | /other/test3.py | 50773976518df587b0d91a3d9a4d1a0faf4487b4 | [] | no_license | baobaobaozhu135/credit-4 | f6df207a0c302a9e0d2bd33f84bfc5633353d983 | fa9e0226313a0f2339107137e393ba09304a3bf6 | refs/heads/master | 2020-03-27T07:16:07.498588 | 2018-08-27T07:52:07 | 2018-08-27T07:52:07 | 146,176,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # _*_encoding:utf-8_*_
import re
style = 'width: 100%; -moz-user-select: text;"' \
' value="2018-10-25" name="dateclosed" size="1" aria-invalid="false" data-errorqtip=""'
print style.find("value")
print style[style.find("value"):]
new_style = style[style.find("value"):]
print new_style[7:17]
print new_style[0:... | [
"jiayunxiaoju@sina.com"
] | jiayunxiaoju@sina.com |
489a78e8ffb4d1cf110c0af54cad92b01c4d83b7 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /9. Generic Trees/take input Tree .py | 035d0395b6c16a2194ca74782181cd193b973a60 | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
class TreeNode:
def __init__(self,data):
self.data = data
self.children = list()
def printTreeDetailed(root):
if root is None:
return
print(root.data,end=':')
for child in root.children:
if child != None:
print(child.data,end=',')
print(... | [
"noreply@github.com"
] | Jashwanth-k.noreply@github.com |
57ed110bbfd9c0df5ac08a2247a9e6c8b61b0f54 | 6110288c46c7436c58c4ca6987ebb8d2e5452904 | /框架/test_学校/a_3.py | 86bfd29985a7012aba3b40e07985f569ef658387 | [] | no_license | liuyy6/python | f87fca456b99a2460afdba9b7a1b3896a88295a4 | a05b1e8d425b8271cc7ab66c2baa99dc5fca94dd | refs/heads/master | 2020-04-10T04:37:05.900484 | 2018-12-08T08:11:35 | 2018-12-08T08:11:35 | 160,803,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
#--*-- coding:utf-8
import unittest
from 框架.data_读取文件.a_2 import duqu
from 框架.config_配置_公共性.a_1 import 学校_查询
class haofenshu(unittest.TestCase):
shuju=duqu().tes_shuju()
jiekou=学校_查询.学校_快查
def test_1(self):
html = self.jiekou(self.shuju[0][0])
self.assertNotEqual(html['... | [
"17839210919@163.com"
] | 17839210919@163.com |
02ec8af28553499e98bf2dd4e3f5f615f381ca80 | 44b73d2d2e7f6f10f9bbe37b30f80102b9c3b6c7 | /polls/migrations/0001_initial.py | e1f0b36c8a082d2134fecc1c40e71bd63effa101 | [] | no_license | wulliam/django_tutorial | 275afbdb8787a561111bce480ca752151da64a6e | 295c358d632639249f5c8e5d905ef24673c8519d | refs/heads/master | 2021-01-21T11:15:15.500110 | 2017-03-03T07:09:08 | 2017-03-03T07:09:08 | 83,539,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 09:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"wulliam@gmail.com"
] | wulliam@gmail.com |
a0c7e8eb0549e6970d3dbecb906888251e0eb0c7 | d2a818967193f8f7f9e980ef5ba7decea6cb1065 | /CondTools/L1TriggerExt/python/L1O2OTagsExt_cfi.py | 15e998d6699339aaa62dab53e6f99ab3f70740b5 | [
"Apache-2.0"
] | permissive | panoskatsoulis/cmssw | 1f5bfc6664856032db6609fad1b793d63b31afa6 | 5e32e53f9a775ea197e83fdb1462f99d4c9cb1a9 | refs/heads/l1t-integration-CMSSW_9_2_8 | 2022-08-14T15:22:14.881299 | 2017-09-01T06:17:20 | 2017-09-01T06:17:20 | 102,378,833 | 0 | 1 | null | 2021-02-12T12:09:50 | 2017-09-04T16:01:18 | C++ | UTF-8 | Python | false | false | 1,171 | py | def initL1O2OTagsExt():
import FWCore.ParameterSet.Config as cms
from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
initL1O2OTagsExt.tagBaseVec = [None] * L1CondEnumExt.NumL1Cond
initL1O2OTagsExt.tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ] = "Stage2v0_hlt"
initL1O2OTagsExt.tag... | [
"kkotov@cern.ch"
] | kkotov@cern.ch |
b7d91ee98e930d3065eac0f1d1dd754aa4bac987 | 2191c690328f5b03df0f6a43bb2e103aecd620e4 | /RLpytorch/Policy_Gradient/Policy_gradient.py | 6e2e94fadd38dbe18bb79e50dbf5878a9ae17881 | [
"Apache-2.0"
] | permissive | hq-liu/RL_pytorch | 35170b21dc16c97b3ad31bcb823713b50c9e8710 | 301badf44c5b026dbc798e7eec8a9d37b7e943e5 | refs/heads/master | 2021-09-02T08:38:37.423578 | 2018-01-01T03:29:27 | 2018-01-01T03:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | from torch import nn
from torch.nn import functional as F
import numpy as np
from torch.autograd import Variable
import torch
from torch import optim
from torch.nn import init
class policy_gradient_net(nn.Module):
def __init__(self, state_dim, action_dim, num_hidden=3, hidden_size=128):
"""
Policy... | [
"noreply@github.com"
] | hq-liu.noreply@github.com |
6fff91f6be14b4821b639c1e16c3f315292f7e05 | a4c440231d2f41fc4c9d132029a4571d486a977a | /classfiturwarna.py | eaf121cf6f386d39ffc278fd468d834653ed1a46 | [] | no_license | bubgum/image-processing | 58951f51179dfa04477db5d498013529d2cddc79 | f6f0d40dec5ec9b3f16482079e2afb116c2e4c86 | refs/heads/master | 2016-09-14T07:17:29.680007 | 2016-05-16T04:20:07 | 2016-05-16T04:20:07 | 58,688,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 18 23:59:49 2016
@author: bubgum
"""
import cv2
import numpy as np
import matplotlib.pyplot as plt
import math
from function import *
class classfiturwarna:
global maksWarna
maksWarna = 64
bins = 256 / maksWarna
func = function()
f... | [
"dwi.put4@gmail.com"
] | dwi.put4@gmail.com |
2bddd66670f5baf95cf4765691bae735b9839edd | 746f30ec200992dc274b2d1f37400714d4dc7f0a | /lesson7.py | b31f40ffcdce6eedf54198b3b88dc1a36454b7c1 | [] | no_license | DmytroLuzan/My_home_study_python_part2 | feadc6b72c1351939c927900f9bed62d3ffc48f1 | 74814cf7219edb0d0adbb0d0f10017fb8a351e93 | refs/heads/master | 2023-07-30T12:21:10.443439 | 2021-09-20T20:46:34 | 2021-09-20T20:46:34 | 408,593,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # test = None
# test = 123
# print(test)
# x = 1
# y = 5
#
# print(x, y)
#
# z, w = (3, 7)
# print(z, w)
print(type(my_true))
print(type(my_false))
str() int() float() bool()
x = 5
print(x, type(x))
x = bool(x)
print(x, type(x)) | [
"dimaluzan9@gmail.com"
] | dimaluzan9@gmail.com |
608ff5607f98ac53fee0da1e7bce9d79ee3a95bc | 2615f86b7bbcd230ef1fe76a601c239d722f9625 | /accounts/migrations/0004_remove_user_active.py | 7badb5f2122301de57e153d6c9fb49c8759527a7 | [] | no_license | sheriffyusuf/eCommerce | bf576b77e77df99672c6d764d8a033f626ed22fd | e6bf4b3846398ddb6ebc70569d89a54cffdca07d | refs/heads/master | 2022-08-02T08:17:22.455494 | 2018-05-11T13:40:43 | 2018-05-11T13:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-04-17 14:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_user_is_active'),
]
operations = [
migrations.RemoveField(
... | [
"halex.alex@yandex.ru"
] | halex.alex@yandex.ru |
0ecab6beb8846f90119b772c94a608c39ed4b8ea | f0417264adb22d064b0b83b5a24ae33208c0a62b | /H2TauTau/scripts/harvest_old.py | e4891de4db0866345f1c6c3f5b38d618c20264e6 | [] | no_license | cbernet/cmgtools-lite | 6ae1a0bfc45ff03b14195ab0f05b353ffde9cd2e | 359209cd4f982cd1b9d8e3cb366de32b7b46113d | refs/heads/htt_9_4_11_cand1_v1 | 2021-01-18T15:56:14.845371 | 2019-10-24T14:00:32 | 2019-10-24T14:00:32 | 86,693,438 | 1 | 0 | null | 2019-06-07T09:04:05 | 2017-03-30T11:09:21 | Python | UTF-8 | Python | false | false | 382 | py | #!/usr/bin/env python
from CMGTools.H2TauTau.harvest.harvest_old import harvest, get_options
if __name__ == '__main__':
options, args = get_options()
src = args[0]
harvest(src,
subdir_pattern=options.subdir_pattern,
tgz_pattern=options.tgz_pattern,
apply_ff=options.... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
bbbb98922649b61e90795c6fd283613ad91677fd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayTransferThirdpartyBillCreateResponse.py | 5eec748f112c295bae2984605e0dddffe8587281 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,301 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayTransferThirdpartyBillCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayTransferThirdpartyBillCreateResponse, self).__init__()
self._order_id = No... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
9a3688a9982dfc32e2b669954d7acea5edfc7b99 | df97001ba51f360d3091ee99eaca21e617d6861e | /exp_replication.py | c9fef17915f40f53ce53deea953c071fffc011c4 | [] | no_license | lucaspetry/news-similarity | be96948e5c00ec759786827cb312b91f9db4f684 | 36b877ae3215694d3567461e528d9f8b4a038d60 | refs/heads/master | 2022-12-13T08:20:24.099264 | 2020-11-09T00:36:01 | 2020-11-09T00:36:01 | 150,455,570 | 6 | 2 | null | 2022-12-08T07:37:04 | 2018-09-26T16:18:55 | Python | UTF-8 | Python | false | false | 6,004 | py | import os
import gc
import pickle
import numpy as np
import pandas as pd
from joblib import Parallel, delayed
import multiprocessing
from sklearn.metrics.pairwise import cosine_distances
from exp_corpus_loader import load_cleaned_news
from exp_corpus_loader import get_corpus_bow
from exp_corpus_loader import get_corpu... | [
"lucasmaypetry@gmail.com"
] | lucasmaypetry@gmail.com |
254a416690e6e5351afff80f1d54dccebdb3bb22 | 3ccee0248d282d9e2f19d98992fe40a6eb3b8052 | /NN_HW_liuchang/util.py | cc9f209f92a51dc8833f4b2d7f3d83d879b2b92d | [] | no_license | Alin666/BiLSTM-readability-classification | 2feeea57326e5340a5a52ab518eeb97610200517 | 52f274728c0c0e82298486887c6216a83907e521 | refs/heads/master | 2020-12-02T15:59:23.483754 | 2019-12-31T08:48:44 | 2019-12-31T08:48:44 | 231,057,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # encoding=utf-8
import pandas as pd
import csv
import tensorflow as tf
from sklearn.metrics import classification_report
def _read_tsv(input_file, quotechar=None):
"""Reads a tab separated value file."""
with tf.gfile.Open(input_file, "r") as f:
reader = csv.reader(f, delimiter="\t", quotechar=quotec... | [
"tyling6666@163.com"
] | tyling6666@163.com |
f6610dd5ba71b486ffe45995b39618ca7c982fa4 | 2d12bc48087222318aba7f3e38edca014022c5b5 | /scripts/infer-traffic-threshold/compute_max_th.py | c1ce9acf112835ce14ddee89111ae0cc435f0c68 | [
"Apache-2.0"
] | permissive | djdubois/smart-speakers-study | c6d8fb968474cca67f1488509a2f0937e4c4fa08 | 1cf04d955d4e59df9468fc11c4bc3860506442c9 | refs/heads/master | 2022-11-24T01:42:43.178233 | 2020-06-16T10:04:55 | 2020-06-16T10:04:55 | 272,668,271 | 3 | 3 | Apache-2.0 | 2020-07-14T20:25:22 | 2020-06-16T09:38:25 | MATLAB | UTF-8 | Python | false | false | 2,132 | py | import pandas as pd
import numpy as np
from datetime import datetime
import sys
df = pd.read_csv(sys.argv[1], error_bad_lines=False, sep=";")
#th=float (sys.argv[2])
mac_dev = sys.argv[2]
bob_ips = ["52.94.233.109","52.94.233.109","54.239.21.157","54.239.21.157","52.94.229.122","52.94.229.122","52.119.197.96","52.1... | [
"d.dubois@northeastern.edu"
] | d.dubois@northeastern.edu |
d38f2d2d93c871de5b8f3bdd3821e533926b5216 | a7872ecce16922ae991458c40d4d2b0e4ce1eca1 | /scrape.py | 435efc5e551c275c88db2e52d7b7af2f078705e1 | [] | no_license | canadian-open-sea-lab/scrappy | a15a715725e42856da502cd504bcfd4915264451 | b8d1eaee883e6d7cc7c01d20fb023a461a4df5b5 | refs/heads/master | 2021-09-05T23:30:08.059601 | 2017-11-06T13:22:04 | 2017-11-06T13:22:04 | 109,267,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from owslib.wms import WebMapService
import mapapi_connector
import config
def main():
connector = config.MAPAPI_DATABASE_CONNECTOR
with mapapi_connector.WMSConn(connector) as conn:
# Process WMS
for s in config.wms:
print("Connecting to: %s" % s)
wms = WebMapService(s... | [
"bradcovey@gmail.com"
] | bradcovey@gmail.com |
4f390d0eed7af74bc9ea62e24d6c3d8cb845873d | 0a89b8ecca5912cbf086f17de25d543c17d225a0 | /LABS/Labs-3-1/lab3-1-5.py | 1249ef8f4a4cbd762731de4f83c08244842be63d | [] | no_license | meighanv/05-Python-Programming | 0072051149b8ed3b668250b2c1d4d5503715b0b6 | 5493fc2adfbf5fbf5a03a1e027c269646b639332 | refs/heads/master | 2020-08-29T14:21:19.646870 | 2020-03-13T18:36:07 | 2020-03-13T18:36:07 | 218,059,331 | 0 | 0 | null | 2019-10-28T13:58:16 | 2019-10-28T13:58:16 | null | UTF-8 | Python | false | false | 338 | py | #Declaring variable for speed calculation
speed = 0
time = [5, 8, 10]
distance = 0
#Getting user input for speed
speed = input('How fast in MPH are you traveling?\n')
#for loop to go through the time intervals
for i in time:
print('If traveling at {} for {} hours, you will have traveled {} miles.\n'.format(speed,... | [
"jubei421@gmail.com"
] | jubei421@gmail.com |
5b3e180cb61affd2e21d1bdf589c262dc1567e5d | c09c74117c5e29fabb71921c7b473a0feb0be11f | /jun10.py | b0c472d27928780a37b78f44e76d714c829e1f78 | [] | no_license | BrodyCur/week5_reinforcement | cc80e16bcdbb6519196a186ba821277458c7a0c9 | 6a24e1326cda31f73e6dbf620dba4bfa786ea4cf | refs/heads/master | 2020-05-28T04:07:58.406807 | 2019-07-19T20:35:15 | 2019-07-19T20:35:15 | 188,875,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,116 | py | import random
reinforce_dictionary = { 'response': {
'status': "ok",
'userTier': "developer",
'total': 9772,
'startIndex': 1,
'pageSize': 10,
'currentPage': 1,
'pages': 978,
'orderBy': "relevance",
'results': [
{ 'id': "film/2017/jul/25/daniel-craig-judi-dench-and-idris-elba-toronto-film-festival",
'type': "article",
... | [
"brodycurrie@gmail.com"
] | brodycurrie@gmail.com |
515abe39a4b083f36ba29a7d297e46acd12b68d2 | ed5530eac95cdbd91a16c8f67c4d3fa6183665ec | /users/models.py | 9979bd3b6a5ebd2d0596e8d94d88f67fdf5911cf | [] | no_license | soccerplayer16/DjangoBlog | cee2474b4af64bb957593ef5beff8f9726119685 | c5e3e2a89e8187a2290110f02bc7264d873cfbd9 | refs/heads/master | 2023-02-05T04:32:56.732156 | 2020-01-04T20:41:39 | 2020-01-04T20:41:39 | 231,824,250 | 0 | 0 | null | 2023-01-20T23:39:17 | 2020-01-04T20:30:37 | JavaScript | UTF-8 | Python | false | false | 635 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
### model 其实就是一个Table
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
def _... | [
"yanrusen@gmail.com"
] | yanrusen@gmail.com |
5ce59ccf65ce1cfc60df21590be80eceb7e53e92 | 532b7ff485001ec8741cf044a89ad160599dcb32 | /iti/students/urls.py | ea9e1a61844dedc9a00faa74446273c97bef7331 | [] | no_license | NohaAShehab/DjangoDimST21 | 9ca2ea43b7703367e020c0d8b626f660b2338fa9 | 55fba09f6bcc8d5edd76f190e95d1d7016a34d84 | refs/heads/main | 2023-07-18T07:13:53.732630 | 2021-09-06T09:13:47 | 2021-09-06T09:13:47 | 402,746,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.urls import path
from students.views import listStudents, viewstudent
urlpatterns = [
path('', listStudents),
path('<stdname>', viewstudent),
]
| [
"nohashehab.iti@gmail.com"
] | nohashehab.iti@gmail.com |
040c1fcf9186eb659cdafd55bb4f2dd109ab33c3 | 3da45afe0b6f67306b1fba83c54c348ec34803c0 | /Task05/TextRNN变长/MyDataset.py | ef5c9ae93e088de991136df957c23f1690c8a92b | [] | no_license | lyj1998/nlp_learning | ec748caf69c21d84abde1f7c780877bd92a12ad4 | 9877c66b446d4261312d4ead9d93e3d91fafd456 | refs/heads/master | 2022-12-02T02:03:34.692211 | 2020-08-03T16:20:48 | 2020-08-03T16:20:48 | 285,043,264 | 1 | 0 | null | 2020-08-04T16:54:20 | 2020-08-04T16:54:20 | null | UTF-8 | Python | false | false | 1,092 | py | import torch
from torch.utils.data import Dataset
class MyDataset(Dataset):
def __init__(self, model_embedding, corpus, corpus_label=None, max_length=600, with_label=False):
super(MyDataset, self).__init__()
self.corpus = corpus
self.with_label = with_label
if self.with_label:
... | [
"372198787@qq.com"
] | 372198787@qq.com |
db8858d3d0b03c9346f4b028be2f3a4fc6c900e7 | 37db56765276c0835a2c7e3955c412ce204836c1 | /1732.py | a3221be6890f5768a8a8d1a01f9b713a2f3c54bd | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | class Solution:
def largestAltitude(self, gain: List[int]) -> int:
curHeight = 0
maxHeight = 0
for g in gain:
curHeight += g
maxHeight = max(maxHeight, curHeight)
return maxHeight | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
afe9951dde3fd1a96076c03a9c8e9fa17b1c506c | 291007cc365cb2bbca1ad49d13b55c3ef427db60 | /blakeden | f45405a01de0b7c9747ed05c8b9cd704ae7a6c13 | [] | no_license | npbarnes/hybridtools | a403b9d52827b3b6d9a52d8b20c38ca9458e9797 | aa2d84f91873bbc889d0995de7a1dc6dbd62f771 | refs/heads/master | 2022-11-14T13:59:42.320930 | 2022-11-10T00:02:50 | 2022-11-10T00:02:50 | 95,045,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/usr/bin/python
import numpy as np
import os
import matplotlib.pyplot as plt
from FortranFile import FortranFile as ff
f = ff('c.np.dat')
f.seek(0,os.SEEK_END)
data = f.readBackReals()
data = np.reshape(data, [100,12,100], 'F')
plt.pcolormesh(data[:,6,:])
plt.show()
| [
"npbarnes@alaska.edu"
] | npbarnes@alaska.edu | |
d86ff068794b921e38b791674c460f3f27e2b0cb | d121170375f73bdea9254f36aae552f71700be2c | /book/views.py | 68996e68152c226cd3a6f31dc722a00e222c69f5 | [] | no_license | tuanna1503/django_book_lib | fe0c85e3091f2428972a3d2894c4682c52566192 | 7bf0d965bffe6c79f69eca9f1516f1d733041dc1 | refs/heads/master | 2020-06-14T23:28:48.175183 | 2019-07-04T02:22:15 | 2019-07-04T02:22:15 | 195,154,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | import io, datetime, re
from django.contrib import messages
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import loader
from django.shortcuts import get_object_or_404, render, redirect, render_to_response
from django.urls import reverse, reverse_lazy
from django.views import g... | [
"anhtuan.prime1st@gmail.com"
] | anhtuan.prime1st@gmail.com |
501c0eef2e3e24a14f185a846e3c3e83001d15e2 | d95f8a38dbd4ba85e9f2da8055d092a182be6364 | /apps/backups/utils.py | 6fcc3fd6b964f1905cb8c68b2c7b069e8c444a52 | [
"MIT"
] | permissive | fylein/fyle-backup-app | c2e45b3257f85acdd62ec2ab082f4d0abb96cf57 | 80eeb9d6fa583a788d34cd7248dacdc168a14fc6 | refs/heads/master | 2022-12-19T03:32:27.506439 | 2022-12-16T03:52:50 | 2022-12-16T03:52:50 | 246,866,072 | 0 | 1 | MIT | 2022-12-16T03:53:13 | 2020-03-12T15:16:25 | Python | UTF-8 | Python | false | false | 5,272 | py | import json
import logging
import traceback
from apps.user.models import UserProfile
from apps.data_fetcher.utils import FyleSdkConnector
from fyle_backup_app import settings
from .models import Backups, ObjectLookup
logger = logging.getLogger('app')
class BackupFilters():
"""
Fetch filter values based on bu... | [
"noreply@github.com"
] | fylein.noreply@github.com |
15dfd4b7c8e60897f161dcf8e6db68f0a3882e15 | 366a2251b52c5238ae0e8856769d455894b5024b | /web-app/reports/migrations/0002_auto_20190310_1129.py | bb76258cbfcb19397d470f30882a9ef0cc5a6a9e | [] | no_license | juliarosenrauch/cmd-f-2019 | 953a592cb2290feb198f83792568dc7374d658d4 | e22019fa1376dad2427211644464da3954c461a2 | refs/heads/master | 2022-10-03T17:24:30.479068 | 2022-08-31T23:27:06 | 2022-08-31T23:27:06 | 174,753,003 | 0 | 0 | null | 2022-08-31T23:27:07 | 2019-03-09T22:29:01 | Java | UTF-8 | Python | false | false | 1,053 | py | # Generated by Django 2.1.5 on 2019-03-10 11:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Report',
fields=[
('id', m... | [
"carol@carolkng.com"
] | carol@carolkng.com |
247ea9b72ec5fb8eb33e372f7f76a5968669f60b | 9e649e0bba4aa9c76992e9f3b102963aea5eaed5 | /Atividade61.py | 0eab2010044865095fe336e14afb41c03b7d0065 | [] | no_license | SandroS22/Curso-Python | fd49e28cebfefe0e58e7e8aec55a110bb6a494f5 | e8750e69c5242663e184bb86de3c273bfba5ea94 | refs/heads/main | 2023-08-23T06:51:23.380910 | 2021-10-25T02:32:01 | 2021-10-25T02:32:01 | 417,292,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | term = int(input('Qual o primeiro termo? '))
raz = int(input('Digite a razão: '))
n = 1
while n <= 10:
print('{} -> '.format(term), end='')
term += raz
n += 1
print('FIM!!!')
| [
"noreply@github.com"
] | SandroS22.noreply@github.com |
80d44d90e8e12efff1922220a0aba55abdd309d5 | 5dcaa0a339ceae6248e0e58b907a2b7a808377b0 | /2018 EPJST figures/Make Figure 4 C and D.py | 0358136e43f30f74f2ca8151aaf3b3d62743afb9 | [
"MIT"
] | permissive | vivarose/using_trackpy | 6d5d0edbd33b97897e9492a8e05ef89376c63807 | 3e93f212aa2925aa4df4d03483ad0cc69283c286 | refs/heads/master | 2021-07-06T01:27:05.024076 | 2021-06-02T03:54:20 | 2021-06-02T03:54:20 | 51,491,621 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | ## Run this cell in the tracers notebook
## drift subtracted vs non drift subtracted.ipynb
## Then send the png and pdf files to Viva
import seaborn as sns
sns.set(style='ticks')
sns.set_context('paper')
#sns.set_palette(sns.husl_palette())
# Big font
#font = {'size' : 9}
#plt.rc('font', **font)
plt.subplot(1,2, 2... | [
"vivarose@gmail.com"
] | vivarose@gmail.com |
4c2f052e47f331249f8d010f61215fab0048cba4 | 4f2f71beee2fb016550598996e100ce176100dcb | /python/etl/etl.py | 9bbd5ca4f54b1b3e9ae65cbba66894797f2bf174 | [] | no_license | charles-wangkai/exercism | d2723bd160573b2d3ee9051ff63972e5be900d87 | c283a5078e3d0f05ff3d86b2c208ae086d3896a4 | refs/heads/master | 2023-05-11T13:11:23.776323 | 2023-04-30T17:40:56 | 2023-04-30T17:40:56 | 102,832,444 | 2 | 4 | null | 2020-03-14T15:49:13 | 2017-09-08T07:31:36 | C++ | UTF-8 | Python | false | false | 151 | py | def transform(legacy_data):
return {letter.lower(): score
for score, letters in legacy_data.items()
for letter in letters}
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
783c3f96c270a8323efbe58ab9ad72e3ffc8e029 | 1c6a7125c8ea024050045fb18a685daadcfbcb0f | /codeforces/random/B_Equal_Candies.py | 5666b59c9804f96384bfdd8bf152e6b93b45323e | [] | no_license | HurayraIIT/competitive-programming | 0e2f40cf1cae76129eac0cd8402b62165a6c29e4 | 3b9bc3066c70284cddab0f3e39ffc3e9cd59225f | refs/heads/master | 2022-12-10T18:33:10.405727 | 2022-12-06T13:15:15 | 2022-12-06T13:15:15 | 236,779,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Abu Hurayra
import sys
from collections import defaultdict
# import threading
# threading.stack_size(2**27)
# sys.setrecursionlimit(2**21)
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(sys.stdin.readline())
def ria(): return list(map(int, sys.stdin.readline().split()))
def ws(s): sys.stdout.wri... | [
"hurayraiit@gmail.com"
] | hurayraiit@gmail.com |
35488866c24bd360ea370d1014afbe7e4ed4e555 | b33d1d4b74d375a2050baf80cda5b8571aff7462 | /s14/day01/homework2.py | 1a595d08faafbc21bfeba3287a464e606179d299 | [] | no_license | sunwang33/code | e979e1b11209200fba07a99d926d76f09c83b514 | 377f3e919555bf0f02ef56c9395d57992c84fcfd | refs/heads/master | 2021-01-16T18:10:08.358744 | 2018-01-01T02:58:43 | 2018-01-01T02:58:43 | 100,045,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Author:Sun Wang
menu = {
'北京':{
'海淀':{
'五道口':{
'soho':{},
'网易':{},
'google':{}
},
'中关村':{
'爱奇艺':{},
'汽车之家':{},
'youku':{},
},
'上地':{
'... | [
"330463670@qq.com"
] | 330463670@qq.com |
324b400d9ddcc89c488b9ff5ea8d861eccab41f4 | 450b1edc16dc0a5418ba3b55412e9c331a427067 | /e-com/Lib/site-packages/setuptools/_distutils/command/register.py | dc166e8fa6031c73d45c9d8a491c9a9232a0b196 | [] | no_license | bkablam11/E-commerce-django | a438f96fc412f141638b4eea9acfe8d6db07811b | 14d32ea5aef19f41a7dba317b5048964c2e62b63 | refs/heads/master | 2023-06-29T02:06:37.486754 | 2021-08-08T01:45:54 | 2021-08-08T01:45:54 | 393,053,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,715 | py | """distutils.command.register
Implements the Distutils 'register' command (register with the repository).
"""
# created 2002/10/21, Richard Jones
import getpass
import io
import urllib.parse, urllib.request
from warnings import warn
from distutils.core import PyPIRCCommand
from distutils.errors import *
from distut... | [
"bkablam11@gmail.com"
] | bkablam11@gmail.com |
f8810d55e42892220406b09915f49bcc8e9e6c17 | dc4189a5130071ae9deec432d3632f9c644706f1 | /JSmodel.py | bc59f41dac82d3ac389ba9816b449dae2c246ed8 | [] | no_license | Jerseyshin/JSmodel | e515fb9cdd55d14a49ba7fe97bbdf361e2a803e8 | 73fee31c506e74bc71d194f8a19c07129428c17c | refs/heads/main | 2023-01-19T02:32:34.982153 | 2020-11-24T12:00:21 | 2020-11-24T12:00:21 | 315,618,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | import torch
import torchvision
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import coremltools as ct
PATH = './JScifar_net'
transform = transforms.Compose(
[transforms.ToTensor(),
... | [
"noreply@github.com"
] | Jerseyshin.noreply@github.com |
69c092950f4db463506ab6a6d11d94f52f9e0535 | c5f7019c52cd91a3d9505943b9d866539f2fb0bc | /synapse/models/transport.py | 189fc28633f8945726bba6d076022c1b92bc10b3 | [
"Apache-2.0"
] | permissive | vertexproject/synapse | ce31699fcb10cb2c870d448915f4d4524247e2d0 | 1808dff78921b4bfdb451a12ee5d03427a5295b9 | refs/heads/master | 2023-09-03T23:48:26.584015 | 2023-08-31T20:34:35 | 2023-08-31T20:34:35 | 37,228,107 | 307 | 63 | Apache-2.0 | 2023-09-14T21:53:32 | 2015-06-10T23:29:41 | Python | UTF-8 | Python | false | false | 15,787 | py | import synapse.lib.module as s_module
class TransportModule(s_module.CoreModule):
def getModelDefs(self):
modl = {
'types': (
('transport:direction', ('hugenum', {'modulo': 360}), {
'doc': 'A direction measured in degrees with 0.0 being true North.'}),
... | [
"noreply@github.com"
] | vertexproject.noreply@github.com |
72cd4e6fde17b03b12738b441ec9e9f9e86204b8 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_REPO/MICROSOFT/computervision-recipes/utils_cv/detection/references/utils.py | b477c887d61384e3e724535c9061f46326984030 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | 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 | 10,311 | py | from __future__ import print_function
from collections import defaultdict, deque
import datetime
import pickle
import time
import torch
import torch.distributed as dist
import errno
import os
class SmoothedValue(object):
"""Track a series of values and provide access to smoothed values over a
window or the... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
b89903e243a4e3f01446a14528a24f69dc433505 | 7f9a98410bed5c3b0823b362b20fc977339326bd | /hr/views.py | 69db247f8ece721f7cf34d2a42a70fc3f365facb | [] | no_license | sotsi/app1 | 8ba94fda46c146823c4d68fe68ad38622766ef12 | f4603abe71407fd9a883c79271304dac36e37329 | refs/heads/master | 2020-04-02T04:10:21.028966 | 2016-06-08T11:07:21 | 2016-06-08T11:07:21 | 60,513,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | #from django.shortcuts import render
# Create your views here.
import django
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import mpld3
from mpld3 import plugins, utils
# import Figure and FigureCanvas, we will use API
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
f... | [
"so.tsivras@gmail.com"
] | so.tsivras@gmail.com |
a558d1799604d17b04c567410500e302ce442646 | cc0e5ab7d5660cd75140286f845867e39ae8708d | /featurescom.py | 4ff0ae9b7d2bf38eceadb45ea1b5cde29b9dec6c | [] | no_license | edysuardiyana/micro_annotation | 6903419a3d0e3d63a804539a2528eaeb9822c84b | 5397e12ff4556720f275001acd2a378b99ad81e4 | refs/heads/master | 2020-04-15T10:50:48.481994 | 2017-06-20T13:26:10 | 2017-06-20T13:26:10 | 50,419,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,847 | py | __author__ = 'ArseneLupin'
#this code is for calculating and combining the features
from numpy import sqrt, mean
import numpy
import integrator
import emafit
import csv
import mytilt
import energyFeat
import smaFeat
import source_var
def featurescom (fullarray, micannot,act_state):
samp_rate = source_var.sampli... | [
"putrai@uni.coventry.ac.uk"
] | putrai@uni.coventry.ac.uk |
9493637dc94aa8fbd154efceeef1ecd79af3be07 | cf5b9cca63fb98c5d3c51c8a223eea67c5b934d4 | /product/forms.py | 84200088e5f37d6aad8ec1a01b37485f3bb1894f | [] | no_license | lopinho/tcc | da50239d3fea8769efc5448dc10ff7c8cd8d4216 | 1847eb8be6509ca71c329083a72365755f8c3ad1 | refs/heads/master | 2020-05-29T11:52:22.476131 | 2015-11-02T18:27:26 | 2015-11-02T18:27:26 | 45,647,972 | 0 | 0 | null | 2015-11-06T00:07:18 | 2015-11-06T00:07:18 | null | UTF-8 | Python | false | false | 2,273 | py | #coding:utf-8
from django import forms
from core.forms import BaseSearchForm
from product import models
from extra_views import InlineFormSet
#
# Product Forms
#
class ProductSearchForm(BaseSearchForm):
product_number = forms.IntegerField(
label='Número do Lote',
required=False)
model__bra... | [
"edgabaldi@gmail.com"
] | edgabaldi@gmail.com |
cacd05c74fbf20c30a1536f358316fa99c9c50cb | dab075d6fe2cba2750c80838ccbf3cfc4bdf1ce5 | /ChatBot/chatbot_search/chatbot_sentence_vec_by_word.py | c79dd6ff27d710ba743ee56b1504b46ccab06cbc | [
"MIT"
] | permissive | yuxuan2015/nlp_xiaojiang | 324d880265ebfbbb0b2dd3efdb854e5b5a641732 | 2b03d0fcec16d926b0d08c8c5907c76b6d4be9f1 | refs/heads/master | 2020-05-20T05:45:13.276559 | 2019-05-06T23:43:42 | 2019-05-06T23:43:42 | 185,414,058 | 1 | 0 | MIT | 2019-05-07T14:03:13 | 2019-05-07T14:03:12 | null | UTF-8 | Python | false | false | 7,687 | py | # -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/4/4 10:00
# @author :Mo
# @function :chatbot based search, encode sentence_vec by word
from conf.path_config import w2v_model_merge_short_path, w2v_model_wiki_word_path
from conf.path_config import projectdir, chicken_and_gossip_path
from utils.t... | [
"noreply@github.com"
] | yuxuan2015.noreply@github.com |
4af845e1f971176a5206c5bffb5b78b46436f77c | e18538dc767cdecabc752b0d7ff7bea695494305 | /keys.py | 61f62de7a4398b8594f47816a3eca02666f40a4e | [] | no_license | gabeochoa/snackr | 0a826b473a817eb7eab036f21cba5085fc0acc54 | 9139f0b6880707e7712e3837aa4194774e0b430a | refs/heads/master | 2020-12-24T18:42:25.835699 | 2016-04-17T05:23:19 | 2016-04-17T05:23:19 | 56,400,831 | 0 | 0 | null | 2016-04-17T02:51:30 | 2016-04-16T19:01:56 | JavaScript | UTF-8 | Python | false | false | 218 | py | READ_MONGO_URL = "mongodb://abcdef:abcdef@ds011311.mlab.com:11311/snackr"
WRITE_MONGO_URL = "mongodb://SNACKR_AUTHOR:snackrpass@ds011311.mlab.com:11311/snackr"
NUTRITION_API = "WzOb3NLVwI5Z0WvgXMsWQBGAJm0oP5fZrF6LRbQb" | [
"gabe1118@yahoo.com"
] | gabe1118@yahoo.com |
358da0267b6022cdf9e060a5ac49c737a3d5856e | d74f1cfee530967b54aa1aa961a498e2fbb18c7d | /todo/accounts/forms.py | 52a9ff8963fa8620a8b6c3ccf92f32eac23b49c9 | [] | no_license | leoconstancio/todo-list | 92b7dbd7b5420d9a3acf49bd053134208ec35dff | 2b184e1031adc0092e079cb4b017defa7c3a5be5 | refs/heads/master | 2020-03-21T04:11:43.398932 | 2019-04-21T17:28:50 | 2019-04-21T17:28:50 | 138,051,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django import forms
from django.contrib.auth.models import User
class UserForm(forms.ModelForm):
first_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Ex.: Darth'}))
last_name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholde... | [
"leo.constancio@hotmail.com"
] | leo.constancio@hotmail.com |
97df8e6ee3b240ee0ccaa29aedf3e30de4fddcb7 | d0c168ea109f87355c012aa44a7f160725368d86 | /Linux/鱼眼项目文件/ubantu-opencv/try/x86ff/gedit/plugins/snippets/library.py | c60695fa41ab5f8fe01484a0a99c5eebd99bec46 | [] | no_license | ShawnOfMisfit/FishEye-Correct | 04838a9b1162035f52e66c80de33d5d6310e0633 | 605475e061bdff3b2f9851f7153d9936feafe578 | refs/heads/master | 2021-01-22T05:42:50.346149 | 2015-03-20T01:57:42 | 2015-03-20T01:57:42 | 47,732,123 | 0 | 4 | null | 2015-12-10T02:17:09 | 2015-12-10T02:17:08 | null | UTF-8 | Python | false | false | 36,227 | py | # Gedit snippets plugin
# Copyright (C) 2005-2006 Jesse van den Kieboom <jesse@icecrew.nl>
#
# 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 License, or
#... | [
"guochunwei@xarkit.com"
] | guochunwei@xarkit.com |
3cad3a7f0c739a5e2e8aa5effbc6fe398ab7bd71 | 12d99cdb0e7d761098329cb86bc1dcc0ce396acf | /lib/python3.7/site-packages/findspark.py | 6e5c12e1884ba9826f043b427a5ca89a727becae | [] | no_license | jodiemorton/GA_Capstone_Flask | be548cfc7d232b5a2789fb786d2697cd7d36411e | 8bf8b5c04336519b68b85bfc7bd2e982c21c683e | refs/heads/master | 2022-06-11T05:44:20.748030 | 2020-05-06T16:32:58 | 2020-05-06T16:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,509 | py | """Find spark home, and initialize by adding pyspark to sys.path.
If SPARK_HOME is defined, it will be used to put pyspark on sys.path.
Otherwise, common locations for spark (currently only Homebrew's default) will be searched.
"""
from glob import glob
import os
import sys
__version__ = '1.3.0'
def find():
""... | [
"58299782+jasonchia89@users.noreply.github.com"
] | 58299782+jasonchia89@users.noreply.github.com |
24eab0073b819cc196e8f7657f4052507436ad3f | 007f7d8c93725457bc5692715587227d6c8acc0c | /blender/.blender/scripts/renameobjectbyblock.py | eeea815c650127d2b64e7c557b1b425a00e90a67 | [
"GPL-2.0-only",
"PSF-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Nicoeevee/sketchfab_download | cf1c72ab45a88bebb0e08d7fb984fa01a3be97fa | a81ad3a2053e715608e657fd62c9dc1194ffe290 | refs/heads/master | 2023-04-21T08:05:28.322657 | 2021-05-13T18:01:30 | 2021-05-13T18:01:30 | 354,547,290 | 0 | 0 | Apache-2.0 | 2021-05-14T12:04:21 | 2021-04-04T13:13:28 | Python | UTF-8 | Python | false | false | 4,863 | py | #!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'Object Name Editor'
Blender: 232
Group: 'Object'
Tip: 'GUI to select and rename objects.'
"""
__author__ = "Jean-Michel Soler (jms)"
__url__ = ("blender", "blenderartists.org",
"Script's homepage, http://jmsoler.free.fr/didacticiel/blend... | [
"2966764421@qq.com"
] | 2966764421@qq.com |
32d3d654ca3b38073ca67cd20c209e4c1bd06b03 | 4004167478be0cc0389b5a86299206fdf991f65b | /5.7 Extended Unpacking.py | 11a83b3a0bf4abfe656876f82224323166c4ee5f | [] | no_license | mohamad97mj/PYTHON-deep_dive_part1 | ca5ae2e1cec16fb91c752690e18e1c9ba9a9a18a | 812853e03023c01b42f209dd72dfa1cd5b86bb8a | refs/heads/master | 2023-01-16T07:39:56.039158 | 2020-11-16T20:12:02 | 2020-11-16T20:12:02 | 305,733,807 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | a, *b = [-10, 5, 2, 100]
print(a, b)
a, *b = (-10, 5, 2, 100)
print(a, b)
print(type(b))
a, *b = 'XYZ'
print(a, b)
print(type(b))
a, b, *c = 1, 2, 3, 4, 5
print(a, b, c)
a, b, *c, d = [1, 2, 3, 4, 5]
print(a, b, c, d)
a, *b, c, d = 'python'
print(a, b, c, d)
# wrong
# a, *b, c, *d = [1, 2, 3, 4, 5, 6]
l1 = [1, 2... | [
"mohamad97mj@gmail.com"
] | mohamad97mj@gmail.com |
708047d155a312ce3ae3a7a006c7e151b4a21727 | 6dae645a54129c4f6d3b5d608e2b7c3c99474851 | /GraficaTendencia_Nacional.py | 1d7d52b2a28683521f834488078c795c03a29a71 | [] | no_license | alexrobl/Graficos_Coronavirus | 38ab221467fdbe25c32c3c4c54d209091ba7b064 | 3d5e1028d0cd2039b1e21eb2a1e15cb1bff92c17 | refs/heads/master | 2021-04-22T17:12:22.289828 | 2020-03-25T01:57:43 | 2020-03-25T01:57:43 | 249,863,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import pandas as pd
import numpy as np
import datetime
import plotly.offline as pyo
import plotly.graph_objs as go
df = pd.read_csv('data-240320.csv',sep=';')
df['Fecha de diagnóstico'] = pd.to_datetime(df['Fecha de diagnóstico'])
df = df.rename(columns={'Fecha de diagnóstico': 'fecha'})
df = df.rename(columns={'ID... | [
"vandermicra@hotmail.com"
] | vandermicra@hotmail.com |
a0e80b9a8d92ec000788fca8095d5b687aa71639 | 13cf53b5f8c96429902781dadd23b0f9e838a0f9 | /Programs/modular/promotion.py | ff170d05f185b6937cb7a41f4e2246aaa5058d31 | [] | no_license | maheshss/pythonpractice | 354fa606756e981818393c8a53c9b94ba0787321 | 0e626dc7818657e51331c85e9d8eb5ceb03a1873 | refs/heads/master | 2020-03-29T00:52:19.567319 | 2017-06-27T11:50:22 | 2017-06-27T11:50:22 | 94,637,382 | 0 | 1 | null | 2017-06-17T20:19:16 | 2017-06-17T16:58:27 | Python | UTF-8 | Python | false | false | 104 | py | #This file contains the promotional discount module for coffee
def discount(price):
return 0.90*price
| [
"maheshsaboo25@gmail.com"
] | maheshsaboo25@gmail.com |
e01a13130ccc128e63bdb0486285772b63f84edf | a155780658a6d2c9b4e4adfaf822ba465f8f6be8 | /controller/jellyfish-mods/jf_phoneme.py | 9a4988ea5646229664603c154277d4e59983d701 | [] | no_license | stcybrdgs/NLP-Matching | e77ab6c63281d6d859f9a68be31c8913be20d9e6 | 6b4725e68eb4233844273d3a96b0f36b14ce8e80 | refs/heads/master | 2020-05-25T18:21:55.009741 | 2019-06-13T07:15:47 | 2019-06-13T07:15:47 | 187,928,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 31 19:15:42 2019
@author: Stacy
jellyfish modules for use with the controller program
"""
import jellyfish
def soundex():
tokens = ['Ball Bearing',
'bll brng',
'Centrifugal',
'centrifigal',
'PUmp',
... | [
"stcybrdgs@gmail.com"
] | stcybrdgs@gmail.com |
84cf00e420320db8d06fe270ec7e15349dc4abb0 | 5a5ed42b27b83cadc065a770fdfd7c0e0225ea11 | /infrastructure/local/wait_for_local_stack.py | d678dab1083d0f3b7f56587af37dab9807d065b8 | [] | no_license | codemacs/localstack_terraform_python_lambda_ex | 662e300956d7653636fcb46e45fc7d69bfeb742b | 36ab38744757f606bce29e24c4ce5c7b889ff949 | refs/heads/master | 2022-09-11T13:42:55.616302 | 2020-05-27T01:13:13 | 2020-05-27T01:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import os
import requests
from dotenv import load_dotenv
from time import sleep
load_dotenv()
def wait_for_local_stack_services(host, port, services):
status = get_local_stack_status(host, port)
while not are_services_ready(services.split(','), status):
print('Local stack services are not ready, retrying in 3 ... | [
"jacobveal90@gmail.com"
] | jacobveal90@gmail.com |
7b4c0ee8e9c21c8ba5b2ba673a2c0b26d51be6a7 | 5394122fc755b642849dcefc25d6056e49272120 | /mpi/mpi4py/P_ex03I.py | 426871110a4259ea82ed9bde310a0f7c1c5cf538 | [
"Unlicense"
] | permissive | timkphd/examples | 3e2a0c514322a8537671c80c909d835eeca5aec9 | e84f249a4f72e45767d29ca889f5ea286ba0de1a | refs/heads/master | 2023-09-01T02:51:00.798436 | 2023-08-19T22:39:44 | 2023-08-19T22:39:44 | 188,473,532 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | #!/usr/bin/env python3
#This is a simple isend/irecv program in MPI
# numpy is required
import numpy
from numpy import *
# mpi4py module
from mpi4py import MPI
import sys
# Initialize MPI and print out hello
comm=MPI.COMM_WORLD
myid=comm.Get_rank()
numprocs=comm.Get_size()
print("hello from ",myid," of ",numprocs)
... | [
"tkaiserphd@gmail.com"
] | tkaiserphd@gmail.com |
960540a6f9a5e5fdc7c3bb222cfbfd59bf548e8d | bf2d010229aece071359662f4fef44e48ba57951 | /dynamic_range_time_step_plot.py | ce67b22b30e65b9b6c4f46b93df1df6ec14a9916 | [] | no_license | Osrip/CriticalEvolution | b97398f74e2fc5b54c9ab92765b08ce3bf97257e | f77cae8acc626cb4c6d64d5a44fdf00310309c2e | refs/heads/master | 2021-06-24T03:44:03.283017 | 2021-04-03T13:09:42 | 2021-04-03T13:09:42 | 215,332,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,728 | py | import os
import numpy as np
from automatic_plot_helper import load_isings_specific_path
from automatic_plot_helper import attribute_from_isings
from automatic_plot_helper import all_folders_in_dir_with
import copy
import pandas as pd
import glob
import pickle
from run_combi import RunCombi
import matplotlib.pylab as p... | [
"jan.prosi@hotmail.com"
] | jan.prosi@hotmail.com |
0e536a419c8eaf8064d4388c6bd6fbf237af1039 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /client/full/src/UDSWindow.py | 86e5b3b9b59538fda5013a6802deb4d95ceee0e4 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 4,671 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UDSWindow.ui'
#
# Created: Mon Apr 27 21:41:43 2015
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attr... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
c8eaaea75b6e51740f05c80b5ee3c3dfc6fa2213 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/pyproto/components/data_reduction_proxy/proto/client_config_pb2.py | d1f0ee35068d28902cf5e4a9b884c2deee8f29be | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,912 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: client_config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | [
"wasmview@gmail.com"
] | wasmview@gmail.com |
632789f2b0dcf3c03c1d6fd2e945bda51a359db3 | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/cx_Oracle/MessageProperties.py | 641ade26f658f4b7e5bbfa26034ba4823d3e2d0f | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # encoding: utf-8
# module cx_Oracle
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\cx_Oracle.cp37-win_amd64.pyd
# by generator 1.146
# no doc
# imports
import datetime as __datetime
from .object import object
class MessageProperties(object):
# no doc
def __init__(self, *args... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
c6df7141adff7d26b3af93a38899f01eac16e914 | d0430e75fd1c30ee1f780b2a4ca8773aa1430a68 | /apps/oclib/utils/encoding.py | 3998c41d7fdb120a4cce22dd907fec43e23d28f7 | [
"Apache-2.0"
] | permissive | leigeng2014/sango2 | 7139a90e75e683f56127acdd6f79f1ffb664dd55 | aa0a3ed1a316d8afc9482f072f2aa57cffe9a10f | refs/heads/add-license-1 | 2021-01-10T08:38:22.885241 | 2020-10-28T02:41:00 | 2020-10-28T02:41:00 | 44,725,363 | 0 | 0 | Apache-2.0 | 2020-10-28T03:02:25 | 2015-10-22T06:03:55 | JavaScript | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python
# encoding: utf-8
"""
字符串,unicode转换
Copyright (c) 2011 Rekoo Media. All rights reserved.
"""
def force_str(text, encoding="utf-8", errors='strict'):
t_type = type(text)
if t_type == str:
return text
elif t_type == unicode:
return text.encode(encoding, error... | [
"519087819@qq.com"
] | 519087819@qq.com |
49bbdb23a2f3d25143f85c0b2ffbbfd9c4688e33 | 8fa2564325ce27ac04f6236b0a7ec65314113b69 | /echarts/python/朴素贝叶斯。词向量/sklearn_sx_demo 改正后.py | bed7526aa00249439491f0562790718da0baf8f9 | [] | no_license | wwyys/echarts | 5ef4aefeebe24ab640f07fc5a1bf830d38b6c5d9 | 5c269706b62b9fd92c40ccc52fd09cf9455c8ba3 | refs/heads/master | 2022-06-20T16:29:38.648090 | 2020-05-08T11:25:23 | 2020-05-08T11:25:23 | 262,302,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #coding="utf-8"
import os
import jieba
import pandas
import numpy
from sklearn.feature_extraction.text import TfidfTransformer,CountVectorizer
from sklearn.naive_bayes import MultinomialNB
"""
1、数据集我们已经有了---无----爬虫
2、构建MNB()形参数据类型
3、fit()训练
4、predict(X)未知的X预测
"""
"""
1、数据集我们已经有了---无----爬虫
2、构建MNB()形参数据类型
功能: 数据集我... | [
"2327813233@qq.com"
] | 2327813233@qq.com |
d3244e423fcdc57fd0a4c2ee7944be54e8f1e5c2 | 989c310cd676fe3dcf3163d110802052a6be4e45 | /aci_labs/LAB-6.py | 73c5d899df9cbb8e97094bce08e41484ba8bef57 | [] | no_license | pnegron2002/aci_dev | 3dc5813cf7afb7067b154d42fd22ed68ba542e4d | d0501e3346bc19be1d26cbdd2218a64201eaa92e | refs/heads/master | 2020-04-10T22:21:34.299675 | 2018-09-10T04:09:37 | 2018-09-10T04:09:37 | 124,299,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #! /usr/bin/env /Users/pnegron/anaconda/envs/Python35/bin/python
# import the neccessary modules
import sys
import requests
import getpass
import simplejson as json
print(sys.version)
# setup the variables used in the script
def Login_ACI():
ip = '192.168.10.1'
username = "admin"
password = getpass.getpa... | [
"pnegron@pauls-mbp-2.home"
] | pnegron@pauls-mbp-2.home |
801919a9041392d2a230ba8ee57d69d20020fb7b | 1dde336f31cf8ef9124cb69f228b83582344f164 | /haigha/transports/__init__.py | b125ee1e01e504cf0aaa8eaf559475bad3592706 | [
"BSD-3-Clause"
] | permissive | joeyimbasciano/haigha | ed011e646a66fbba6e46beb2d6ead90a972f98bb | 0bd2e1603e54406f674303ab51e47761b91fe50b | refs/heads/master | 2021-01-20T22:50:58.104289 | 2012-12-04T18:52:04 | 2012-12-04T18:52:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | '''
Copyright (c) 2011, Agora Games, LLC All rights reserved.
https://github.com/agoragames/haigha/blob/master/LICENSE.txt
'''
from transport import Transport
| [
"aaron.westendorf@gmail.com"
] | aaron.westendorf@gmail.com |
eaad3f802c87690e95229debd652157688d7f318 | 34e03b02692e677124f217c57f13eec8f8d075f2 | /Python_Data/d9/pred_plot9.py | c1d8ee31272e085d6c9bb5bb1aadf9ced46c5c34 | [] | no_license | dingkwang/DroneLiDAR | 3d81defd7af4d0dae700d77db408979dbba9c8e9 | 8c2f3b82934e2cccd0b799a8db528cc1808a4573 | refs/heads/main | 2023-06-03T00:00:44.625617 | 2021-06-15T14:52:37 | 2021-06-15T14:52:37 | 353,464,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | import numpy as np
import matplotlib.pyplot as plt
import joblib
from sklearn.metrics import mean_squared_error
def prep(file_name):
gft = (np.genfromtxt(file_name,delimiter=','))[1:, :] # generate from text
gft = gft[~np.isnan(gft).any(axis=1)] # remove nan
return gft
#%%
path = ""
fn1 = 'test1.cs... | [
"wangdk93@outlook.com"
] | wangdk93@outlook.com |
72c03beb9b0700405b06efd9f97b32a0c3121230 | ae5196cde80fca21dee4476402aebd4068efb2ba | /env/bin/celery | 9d6555597283d738bce6d7ca3230fcaee4176789 | [
"MIT"
] | permissive | NarminSH/e-commerce-sellshop-project | 14f6574d75fa8e62ad36477f715ce6519a4ba20a | a753038c8265473021e21f75b6b095bdc25f43d6 | refs/heads/master | 2023-07-09T06:58:38.539380 | 2021-08-14T05:36:49 | 2021-08-14T05:36:49 | 391,944,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/narmin/E-commerce-Sellshop-Fuad-Nermin/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"narmin@Narmins-MacBook-Air.local"
] | narmin@Narmins-MacBook-Air.local | |
a69e06de247ad3631563edfd5c4b3257cf2749ed | 7c8bff784568691c516833ac81afc967857d24e2 | /jacc/migrations/0019_entrytype_identifier.py | effb3d0f203ab8c4e4ea27554b71aa4fcc456877 | [
"MIT"
] | permissive | kajala/django-jacc | b71f2c3df1321b9bb31e1e648895931b735949a6 | 4acb8ca2d32b11fd5afa3b5316b13be223b20ec6 | refs/heads/develop | 2023-08-18T14:12:38.196880 | 2023-08-11T15:18:57 | 2023-08-11T15:18:57 | 121,229,896 | 11 | 5 | MIT | 2021-07-12T15:02:36 | 2018-02-12T10:02:20 | Python | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.1.2 on 2018-10-18 15:36
from django.db import migrations, models
from django.db.models import F
def migr_code_to_identifier_0019_entrytype_identifier(apps, schema):
EntryType = apps.get_model("jacc", "EntryType")
EntryType.objects.all().update(identifier=F("code"))
class Migration(m... | [
"kajala@gmail.com"
] | kajala@gmail.com |
12358f25a48a53f1851f8ac5027fdd19a6973bab | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/lobby/crewoperations/__init__.py | bd54d7b315bf7025de933b9384553c691e7e1edd | [] | 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 | 1,734 | py | # 2016.05.01 15:21:39 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/crewOperations/__init__.py
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework... | [
"info@webium.sk"
] | info@webium.sk |
2bcbb735cff5789e85181f5727d8cd8b179d8ebe | 8063aea3d2027dd276833920241191bd0f5c7c24 | /models/db.py | cc95dd973e90c29097def05e7e30218826303c09 | [
"LicenseRef-scancode-public-domain"
] | permissive | AneeshNi47/studentPortal_v2.0 | 941aeca2a93cab2b317545bc36f9586584f1d746 | 6f1c9c3761c1a721e673e2357523ebbd478ed857 | refs/heads/master | 2022-08-19T10:35:03.237836 | 2020-05-19T11:56:19 | 2020-05-19T11:56:19 | 265,229,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# AppConfig configuration made easy. Look inside private/appconfig.ini
# Auth is for authenticaiton and access control
# -------------------------------------------------------------------------
from gluon.contrib.appco... | [
"dr2633@gmail.com"
] | dr2633@gmail.com |
9baff287e239eb05a1ef6a35cf6304506d4adb99 | a6c4bffcdb9341fc0a78b1b6c8ab164a21cf1b88 | /src/test/jython/scenarios/create-ci.py | 642d6acfed594fb1d9bca760b2eb801f9ba8c96b | [] | no_license | acierto/xld-simple-itest | 5d4299475512305b4637e8907ed77b3d7b02309e | b574d87f29946d2940110975cc846ea39615b24d | refs/heads/master | 2023-08-02T10:31:18.616262 | 2021-10-09T19:30:15 | 2021-10-09T19:30:15 | 402,369,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from asserts import assert_true
from variables import *
repository.create(factory.configurationItem(my_ci_id, 'udm.Application'))
assert_true(repository.exists(my_ci_id))
| [
"bogdannechiporenko@gmail.com"
] | bogdannechiporenko@gmail.com |
78004d7910e21fa37c84577915f342739ccd0289 | a318a50ccaf875312ec7006749d90c8c74b45230 | /FF2Actual/pirRUN.py | 419ba99ef010864967069f3788c4af171a3750e8 | [] | no_license | freelfeel/freel-feel | b7585d575a77ec6dce3473538cd94a211b43df15 | 4ea0f37e7abcc4239544f14e86ed64a6f6f05dbf | refs/heads/master | 2020-07-20T18:40:06.739874 | 2019-09-14T15:17:29 | 2019-09-14T15:17:29 | 206,693,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | import sqlite3
from time import sleep
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM) # set up BCM GPIO numbering
# Set up input pin
GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
# Callback function to run when motion detected
def motionSensor(channel):
if GPIO.input(21): # True = Rising
glo... | [
"js5986@mcla.edu"
] | js5986@mcla.edu |
8e913422bd3786eec0ad23c71117784facfb577a | a5d595758a9e7ade25dc9fefef0a34c7c5d29793 | /dbcheck/backup20190411/urls.py | 7eeaabf07ec2a0083849559b98884f1ea6475800 | [] | no_license | jimleelcc/db_check | 617f9333580980e59d4dc23210cb6837bd5a0a85 | e612d88fd02887a7792654fb39b7f8a810c29cb8 | refs/heads/master | 2020-05-07T06:04:13.710198 | 2019-04-29T07:55:02 | 2019-04-29T07:55:02 | 180,300,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | """db_check URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"jimleelcc@163.com"
] | jimleelcc@163.com |
37d941f792fa48d7a9e004ef6b72e23c49be792e | a1f2243b12574b3cc661fbf5c43025f6f35bb302 | /app/test/test_user_model.py | bf7b547cf21484f5167103572328fe4538f10c0a | [] | no_license | HeshDeng/flask_restful_plus | f1130c5ecbcc136b444794fc89320aa63e579273 | 88333667af94c91273bc0991ee66043bdbde3d7b | refs/heads/master | 2023-03-07T18:46:56.489526 | 2021-02-19T18:25:33 | 2021-02-19T18:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import unittest
import datetime
from instance import db
from app.auth.model.user import User
from app.test.base import BaseTestCase
class TestUserModel(BaseTestCase):
def test_encode_auth_token(self):
user = User(
email='test@test.com',
password='test',
registered_on=... | [
"danielmutubait@gmail.com"
] | danielmutubait@gmail.com |
d1d76cd6e4cb3c8a367de07f3c437ae79778c91d | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/differential_privacy/pate/ICLR2018/smooth_sensitivity_table.py | 4ea0a7f5a9b072437eded0fb6fc00d919ef95d9e | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 14,228 | py | # Copyright 2017 The 'Scalable Private Learning with PATE' 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
#
# ... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
7b9bd540581484c8680a1ae63384c40888b2f12c | 7b4820948845f55274b211d676ab8a6253a6298b | /addons/plugin.video.icefilms/resources/lib/resolvers.py | 36e1264a0b0330c1387add5a845b2d5bbb7ed891 | [] | 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 | 38,586 | py | import xbmc,xbmcgui
import os
import urllib, urllib2
import cookielib
import re
import jsunpack
''' Use addon.common library for http calls '''
from addon.common.net import Net
from addon.common.addon import Addon
net = Net()
addon = Addon('plugin.video.icefilms')
datapath = addon.get_profile()
cookie... | [
"bialagary@Garys-Mac-mini.local"
] | bialagary@Garys-Mac-mini.local |
6b3d9e4221301ea07db8eefe6a5341450fc2ac6b | a852baf869d2433488b5c7563004ee95bb561ab5 | /member/models.py | e7e20f08e2d2fa9574d776dd788281ddb2cd9b54 | [] | no_license | jhoncortez/approval | 082568eae4abbdc081e2a2634dd916e3f2f10750 | 18d0107cd68c240c7730c19828bddb3c0b88fb76 | refs/heads/main | 2023-02-05T15:40:06.316318 | 2020-12-20T08:59:58 | 2020-12-20T08:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from django.db import models
from datetime import datetime
class User(models.Model):
# personal information
nickname = models.CharField(max_length=30, unique=True)
last_name = models.CharField(max_length=2)
first_name = models.CharField(max_length=3)
# login information
email = models.CharFi... | [
"yejun1060@daum.net"
] | yejun1060@daum.net |
1e7b7465c43faa8bb4dfb5af99ccffd1b8f01c61 | 9c0005c49a5613482f8e9587ce5fd6c2a187cfae | /app/common/models.py | 389ef569b30b50fbbe271c09d60a8486ced4823f | [] | no_license | hathehuyen/dms | 66f6f0b2642d76385d0ffe7bd4992e78faf7877e | b30f6a7589d57cc44ee498f5040b2b94f0766643 | refs/heads/master | 2021-01-19T11:48:52.985507 | 2017-03-01T07:00:41 | 2017-03-01T07:00:41 | 82,259,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | from app import db
from datetime import datetime
class DC(db.Document):
name = db.StringField(max_length=255)
class Rack(db.Document):
name = db.StringField(max_length=255)
dc = db.ReferenceField(DC, reverse_delete_rule=3)
class Server(db.Document):
name = db.StringField(max_length=255)
ip = d... | [
"hathehuyen@gmail.com"
] | hathehuyen@gmail.com |
a02af27a56a97577f714967d39b2441d5aecd93c | fb55b3e010383b947f2ab4fbe196fe9d37638ea3 | /convNet/CNN/loadExperiment.py | 1d71266f7ac46d51b86e3393eea875eaa7643215 | [] | no_license | leenachennuru/objectDetector | 0bee35558359899c7847a16753f9ffed6684212f | 93692ba6edba9eb7bfa425571402ede7ecd30109 | refs/heads/master | 2020-11-27T06:19:37.061460 | 2019-12-20T21:10:35 | 2019-12-20T21:10:35 | 229,336,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
from Utils import DataUtil
import MCCNNExperiments
def loadExperiment():
modelDirectory = ""
networkTopology, trainingParameters, experimentParameters, visualizationParameters,networkState = DataUtil.loadNetworkState(modelDirectory)
print networkState
saveNetworkParameters... | [
"leena.bitspilani@gmail.com"
] | leena.bitspilani@gmail.com |
0a6458bdf8565d19e20fe92d7fda935c45dc7498 | b24d392755dabd84fb773c90a3bf1e03d0cd11c5 | /Microsoft/MaximumLengthofAConcatenatedStringwithUniqueCharacters.py | e781f02252862b0374325b12c9736d6db6761e6e | [] | no_license | Shivani161992/Leetcode_Practise | 5b884268707c19cc1a3012c0fb2321c58d5147c0 | dd6f9a9ac3365562c606947c082f043e5100df05 | refs/heads/master | 2023-08-16T06:34:22.010913 | 2021-09-16T02:01:58 | 2021-09-16T02:01:58 | 279,668,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from typing import List
arr = ["cha","r","act","ers"]
class Solution:
def maxLength(self, arr: List[str]) -> int:
print()
obj=Solution()
print(obj.maxLength(arr))
| [
"shivani@Shivanis-MacBook-Pro.local"
] | shivani@Shivanis-MacBook-Pro.local |
14c05659bfcf17e4fd5989ae12e8a8272b62a798 | dfe0798a322dca6b90e10743936c500e618ff078 | /Sample_Project/env/lib/python3.8/site-packages/sipconfig.py | 1dd5c9bc7e2d6bcd641e27dea9ab88bf6031ba90 | [
"Python-2.0"
] | permissive | SenthilKumar009/Udemy-MLandDS-CompleteMastery | 7d0ff9d2ffa688ba35de5667441eafc443f9792a | ca5e867134ad2bbf03d158d78b34905390ab58b2 | refs/heads/master | 2022-11-21T16:01:51.416001 | 2020-06-16T03:15:48 | 2020-06-16T03:15:48 | 270,206,193 | 1 | 1 | null | 2022-11-16T05:57:51 | 2020-06-07T05:44:20 | Jupyter Notebook | UTF-8 | Python | false | false | 97,321 | py | # This module is intended to be used by the build/installation scripts of
# extension modules created with SIP. It provides information about file
# locations, version numbers etc., and provides some classes and functions.
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file i... | [
"senthilkumark.nitt@gmail.com"
] | senthilkumark.nitt@gmail.com |
54cb94089dd749e840ba0fb3d63c0f51b17ef44d | 62aa8f8b60211dae22edeb6092dca002bbd2df10 | /manage.py | 833110e0d5cf0fae04b48dd98793b82ef0f89988 | [] | no_license | DrewCCannedy/nanoweb | 6cc9e2b276077e6b47455f001c1b458d78b93686 | 7600a89d1f1460997b5fd5c50378921fac9be468 | refs/heads/master | 2020-04-14T03:40:40.165577 | 2019-01-27T23:41:17 | 2019-01-27T23:41:17 | 163,613,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nanoweb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"dxc142830@utdallas.edu"
] | dxc142830@utdallas.edu |
5aa8cd6d7c27f89e24f69be0c37b13775f267832 | c09d67a91fe45d8d8677af8793ac922e4d8edc5e | /users/migrations/0001_initial.py | a89489f9551f0e07e5ddc9fff121ca6ac7e0b793 | [] | no_license | django-py3/hw1-cw | 90a6b5e0a539b9187deb996b3811d04862bf113a | 61c2ee1cfe054239e77843b8d7ee91f856ddff50 | refs/heads/main | 2023-02-04T19:18:00.698759 | 2020-12-24T09:32:23 | 2020-12-24T09:32:23 | 324,118,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # Generated by Django 3.1.4 on 2020-12-24 09:14
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"admin@cpnc.ru"
] | admin@cpnc.ru |
1a1d21f483e121dd2943b331e40dd918bb4e8f46 | c81a43219c129226b5b8a15c22a09a58c32c6a46 | /Project Files/Desktop Apps/edit.py | 8600d560ae630f834e15388ba14a63caab35de12 | [] | no_license | Arbind15/Digital-Election-System | 60d99c514712d93d17985e588daa5827a13137d6 | 7e24999fe36d32a7370f3ad0972db388986d68f1 | refs/heads/master | 2023-04-29T18:03:12.714873 | 2021-05-15T08:58:49 | 2021-05-15T08:58:49 | 367,583,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from tkinter import *
from tkinter import ttk
import sqlite3
from ttkthemes import ThemedTk
from tkinter import messagebox
nsc=ThemedTk(theme="Clearlooks")
tctzn = StringVar()
nsc.title("voter_list")
nsc.geometry("400x300")
nsc.resizable(False,False)
nsc.iconbitmap("gov2.ico")
def sreh(*args):
global vid
c = ... | [
"mehtaarbind67@gmail.com"
] | mehtaarbind67@gmail.com |
30675481c763c437ca3ad16be59f3b96c205bdd5 | a62da0b36dab65f967fa815f6ae8afca0fee143d | /matpro/settings.py | 8bd9c09ce649686342688ade542b17952b35809f | [] | no_license | tngscstewa/webapp1 | 5ee41ff07c6078986bfb2266fc93542ea2d062a5 | ccc0f74c49a167735707167ab51d54789a1d1f5e | refs/heads/master | 2021-01-19T04:41:19.347454 | 2017-04-06T04:53:20 | 2017-04-06T04:53:20 | 87,387,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | """
Django settings for matpro project.
Generated by 'django-admin startproject' using Django 1.6.
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.8/ref/settings/
"""
# Build paths i... | [
"mravikumar281@gmail.com"
] | mravikumar281@gmail.com |
b421f5e2d10199b35ff6dac26b1833a2b4494e64 | 7003e1063fa4d49e980513ceff977b320ce8f946 | /Alexa_Lambda/lightbulb.py | 1e71f31c05e88a37b26a9daae598a769ccd14090 | [] | no_license | Blacklagoon21/alexa | 1bc1e01e35df27cc97aa2268fdaa8a7a00451619 | e857a9b20dc29276b9aa44d5716e2fd83c687ad0 | refs/heads/master | 2021-01-12T06:43:49.299996 | 2017-03-12T02:13:20 | 2017-03-12T02:13:20 | 77,425,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | import boto3
import json
client = boto3.client('iot-data', region_name='us-east-1')
def lambda_handler(event, context):
access_token = event['payload']['accessToken']
if event['header']['namespace'] == 'Alexa.ConnectedHome.Discovery':
return handleDiscovery(context, event)
elif event['header'... | [
"jskim@wahaha.com"
] | jskim@wahaha.com |
b0e69a031739077a767cdafd2511b0f7aa533072 | acd3b502c2b9ed9ebaec6b327bbac9ce4e8a2351 | /PlexxiControlConfig.py | f303b33f57aaf5b0f631c7dc68c759338582d6c8 | [] | no_license | Plexxi/PlexxiControlCLI | 2601e1ad8604b37bf4e437d03f1f5623ba409650 | b832f2887ace04505fcb8f4376a2559b44e26363 | refs/heads/master | 2020-12-30T10:23:40.249129 | 2013-12-23T19:15:33 | 2013-12-23T19:15:34 | 15,348,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | # # Copyright 2013 Plexxi, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"github@plexxi.com"
] | github@plexxi.com |
01b9d1dfee913af7088cefd35643f63890bd0718 | c761e7af80ddc703b00f8791f185798c415b4fec | /include/netloader.py | 43c3eb520fbf362c69d8156f678837b0a4342d3c | [] | no_license | hinthornw/freespace | 3b0ad1f8f3c153ac7fe0a2bac791632459852b06 | 3d117ad0e433a7205de8e25397fd098a6add8fe1 | refs/heads/master | 2021-06-22T05:16:42.851558 | 2017-08-24T01:01:47 | 2017-08-24T01:01:47 | 98,390,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,887 | py | import torch.utils.data as data
import torch
import numpy as np
import numpy.random as rand
from PIL import Image
import cv2
import os
import os.path
IMG_EXTENSIONS = [
'.jpg', '.JPG', '.jpeg', '.JPEG',
'.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP',
]
def is_image_file(filename):
return any(filename.ends... | [
"hinthorn@momenta.ai"
] | hinthorn@momenta.ai |
4ef37dccd854b3f0c8840a637f5106f0cb309ae1 | 68d1ca476ef78673f3bd5a87c3f27ef4c175e048 | /src/service/extra.py | a405e57e4e37b02be48c27b110f7056574819949 | [] | no_license | yashjhaveri05/e-bazaar | 919c28e3ae23d873ea407357a0165fc33c3d143d | 30b9fff5e63986271daf3c4a8f00dd1650564b0d | refs/heads/master | 2022-11-15T05:19:14.547823 | 2020-07-05T04:04:24 | 2020-07-05T04:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,045 | py | from flask import Flask, jsonify, request, json, session
from flask_session import Session
from flask_mysqldb import MySQL
from passlib.hash import sha256_crypt
from functools import wraps
import json
from flask_cors import CORS, cross_origin
app = Flask(__name__)
SECRET_KEY ='e-bazaar'
SESSION_TYPE = 'filesystem'
cor... | [
"yashj65@gmail.com"
] | yashj65@gmail.com |
eb7705bd6b9d8e6677c1899be7ba4d2bdc3f42a1 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201114185225.py | 1f3117e89b2e0690542e5f302aea450246571448 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from django.db import models
import re
class UserManager(models.Manager):
def basic_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_name'] = "First name must b... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
2a9ec919aa12c00f7699703cd9f9a960cd3df308 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s927043333.py | 8af9a814da95dcba853bbf295beefd9db08be572 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n = input()
s = input()
ss = s
for i in range(50):
s = s.replace('()','')
l = s.count(')')
r = s.count('(')
print('('*l+ss+')'*r) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4f1483114b60a70f6e62341fea4736adc8e4abbf | 35f9695acb95029f2dd87a2cc214b0b34935de17 | /update.py | 9f4da1693c181b6386fe9b140233603190f5e838 | [
"BSD-3-Clause"
] | permissive | dragonix11/aurdiff | b5382e7fd38f4d2c370ad157fcaf18d8ba48c0d9 | b4ffdb2afcd30cac7cf24ca42fab0f0cdc7130e0 | refs/heads/master | 2021-01-18T18:43:29.145163 | 2013-11-10T10:19:26 | 2013-11-10T10:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | # Copyright 2013 Virgil Dupras (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package.
import os.path as op
from urllib.request import urlopen
import subprocess
import json
from bs4 import BeautifulSoup
HERE =... | [
"hsoft@hardcoded.net"
] | hsoft@hardcoded.net |
f9d5e2852c279495088d3720a464eafb1411bdd6 | 0607fa7255fa47608407b3cfd819e83d55ba9eab | /InvenTree/stock/views.py | 26a957a64403ad18198d94f4949cfe424beec2bd | [
"MIT"
] | permissive | IsThisNameGoodEnough/InvenTree | f7d71aa8c33f69654b2bb4d3827d4a60290df8ad | fa789036e0ae7d56ced3c9e1f2d2ff596983a365 | refs/heads/master | 2020-07-26T02:31:34.316571 | 2019-09-13T14:14:45 | 2019-09-13T14:14:45 | 208,505,299 | 0 | 0 | MIT | 2019-09-14T21:20:24 | 2019-09-14T21:20:24 | null | UTF-8 | Python | false | false | 31,264 | py | """
Django views for interacting with Stock app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.views.generic.edit import FormMixin
from django.views.generic import DetailView, ListView
from django.forms.models import model_to_dict
fro... | [
"oliver.henry.walters@gmail.com"
] | oliver.henry.walters@gmail.com |
8d39d513b953e20af76adb3ade5e4b70e784465d | 8d4eda3d503ee6a1b0070277d10d7cf56a9eeba1 | /airflow/dags/main_dag.py | 32384d0ed17a9363192ccf210f6a7c247d3a9cea | [] | no_license | nickrinaldi88/open-media-airflow-task | e828ae4fea4d95bb55ee965c55279d709f5a5083 | 5de1adc996cf1eb7947322a50b64a70ac5e1fc9d | refs/heads/main | 2023-06-12T19:40:04.348117 | 2021-07-13T07:41:06 | 2021-07-13T07:41:06 | 385,518,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | from airflow import DAG
from airflow.operators.python import PythonOperator
from airflow.utils.dates import days_ago
from airflow.utils.email import send_email
import requests
import smtplib, ssl
# NYTimes API_Key
the_key = "W3dEB3luQTF3eQkVjBzctrnJiTPAnwEm"
# functions
def fiction(**kwargs):
fict_link = "https:/... | [
"noreply@github.com"
] | nickrinaldi88.noreply@github.com |
9224e3b6fd5ee51d5e3bedab4db8f511118ba694 | 4dc36ab07a02b3e0fa8102c4e86cb69c402e0b96 | /openai_spinning_up/src/visualization/visualization.py | 06252f230ee1ad3eafbcffc9b9b5b76b50387625 | [] | no_license | fritjofwolf/rl-zoo | 0ba628dbc2a49118743bdf50f6f6edcaa7f6095b | a4ca0a656479e4c0a30ccf937ddab7d1c4a57eac | refs/heads/master | 2020-03-23T15:36:53.075300 | 2019-11-26T18:06:16 | 2019-11-26T18:06:16 | 141,761,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | import matplotlib.pyplot as plt
import numpy as np
def visualize_episode_return(episode_returns, colors, smoothing_window = 100, title=''):
n_runs = len(episode_returns)
episode_mean_returns = [[np.mean(episode_returns[j][i-smoothing_window:i]) for i in range(smoothing_window, len(episode_returns[j]))] \
... | [
"fritjofwolf@gmail.com"
] | fritjofwolf@gmail.com |
515f75202332f89c654fa7985d43c883e1dc74bf | 24b37153f7cfd5ea8166f5cff2cf543ae92bc665 | /lxml/bfolder.py | 269ef4bc984b8e47a0bcdc319ba66716a5958db1 | [] | no_license | scythargon/mad-skillz | 4b03abf4410f278e6d5eafc8387281ccd0791416 | 91b69123d43da8baa2f8cfc10fbc0109c13714fa | refs/heads/master | 2020-05-18T17:50:55.126464 | 2014-03-13T08:25:19 | 2014-03-13T08:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#//*[@id="allEntries"]/table/tbody
# //*[@id="allEntries"]/table/tbody/tr[1]
#http://bfolder.ru/photo/vse_podrjad/2
#phtTdMain
import urllib2
from lxml import etree
from StringIO import StringIO
main_url = 'http://bfolder.ru/photo/skrinshoty/48-'
mu_end = '-0-0-2'
def ge... | [
"scythargon@gmail.com"
] | scythargon@gmail.com |
2c2f2040fde54d6c77504275f121070bd8c62399 | f67469cba32f16399ef2e65d2731c5eae36a53b3 | /config/settings/base.py | 0fc9bcb527d5fe44323aef0ac7bfc93b4daf6ca8 | [
"MIT"
] | permissive | ZedeLab/WhatsUpAddis-BE | 1f3fecc9c5705eca500f13aa5a831fcf81fb5faf | 702d14eff969673ce88dbd6f4cad690cbb580c30 | refs/heads/master | 2023-04-06T03:53:57.537028 | 2018-11-30T21:54:24 | 2018-11-30T21:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
fro... | [
"eyobtariku@gmail.com"
] | eyobtariku@gmail.com |
4c8e78db4ffb26d284ea68f60686fd8c790bf8d5 | 78c7b0219af84c63c1ea0de3c91ad358cacc1067 | /Deep Learning In Python/Optimize a neural Network/Scaling for multiple points/for multiple points.py | 612d908cf96cc2fc8e1aac09d29429f23502ca87 | [] | no_license | rahuls321/Data-Camp- | 576ef5b2d8682eed4a729cf319d6c22bb0c21dbf | 414698a7d4ac0118362e7cc29770d4beb09d1813 | refs/heads/master | 2021-08-28T06:27:20.385444 | 2017-12-11T12:11:23 | 2017-12-11T12:11:23 | 107,133,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 17 18:52:00 2017
@author: hp
"""
"""Scaling up to multiple data points"""
from sklearn.metrics import mean_squared_error
# Create model_output_0
model_output_0 = []
# Create model_output_0
model_output_1 = []
# Loop over input_data
for row in inp... | [
"noreply@github.com"
] | rahuls321.noreply@github.com |
a7c50385510fa1aef180144873059fe6347ffd58 | 9816c7cc09cc1129b6c9d68a5c07a4b2d8368f52 | /upload-lambda.py | 1fdac0470ebbfb2edf8cbb06eed89da379d2b9ab | [] | no_license | lukeblanchard/aws-serverless | c7c31d3808c045ef3d70aa56022c0a791f3545f0 | 7dea9a2700aa7fa049943826b2ba95f1755a9be3 | refs/heads/master | 2020-09-12T04:49:24.095654 | 2019-11-18T21:48:51 | 2019-11-18T21:48:51 | 222,312,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import zipfile
import boto3
import mimetypes
import os
import tempfile
def lambda_handler(event, context):
s3 = boto3.client('s3')
sns = boto3.resource('sns')
topic = sns.Topic('arn:aws:sns:us-east-1:171754680472:deployPortfolioTopic')
location = {
"bucketName": "portfolio-build-blanchlu",... | [
"lucas.blanchard@accenture.com"
] | lucas.blanchard@accenture.com |
7c31f7d64627e78b8f3832a823a1b501d4c78424 | 48e1cf7a4a39df57a38246da1f67f3f4dc8f2020 | /With_Sql/main/buy_product_form.py | 59abb15f507001600bb719ae5117f96c258b1c99 | [] | no_license | mdarifulislamroni21/django_website | 601d1d0e5422419895363968a0f4d1c50dfd9daa | 28562e3e8f07ddac49057eba07411f05b08918ff | refs/heads/master | 2023-06-23T22:30:32.317834 | 2021-07-23T04:25:37 | 2021-07-23T04:25:37 | 388,668,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django import forms
from main.models import user_details
#create New Form
class user_details_connect(forms.ModelForm):
class Meta:
model=user_details
fields="__all__"
widgets={
'buydate':forms.TextInput(attrs={'type':'date'}),
'product':forms.TextInput(attrs={'pl... | [
"mdarifulislamroni21@gmail.com"
] | mdarifulislamroni21@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.