blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f26cdfe8c9414fad6874292ee6a42386645ef4f | 75716fadd5592ac172188d3c9f04fff05ca9c453 | /csky/csky-elfabiv2/lib/big/ck807/libstdc++.a-gdb.py | fdc2c3c14d69a7ca6b35294ccacbf16109ad9857 | [] | no_license | yz-wulala/iServer01Bkup | 3f98983c98349f7d49d6408853d992dc82eaad1c | 1be06709fab95ca37d7de5911169a8aee2e05d34 | refs/heads/master | 2022-11-20T12:23:20.578411 | 2020-07-26T17:30:04 | 2020-07-26T17:30:04 | 270,225,610 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # -*- python -*-
# Copyright (C) 2009-2016 Free Software Foundation, Inc.
# 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 option) any later versio... | [
"yzjiang18@fudan.edu.cn"
] | yzjiang18@fudan.edu.cn |
d3a1c9a2af6d1dffcac8c7788fcb38022aba262c | 27b2a74627b185ea754f1145db0003cb2ab3344d | /06/solution.py | b6d3325272a2065724452a59a5367f467330c543 | [
"MIT"
] | permissive | lbenedix/aoc2020 | b39de1f61deb834b78beaa118c82953fd9120013 | fcb001bb6648c6db78cff0b3ef4e56baeef4decd | refs/heads/main | 2023-01-29T10:24:57.920779 | 2020-12-07T07:45:58 | 2020-12-07T07:45:58 | 317,469,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from pathlib import Path
lines = Path('input').open().readlines()
part_1 = 0
group = []
all_groups = []
for line in lines:
line = line.strip()
if len(line) > 0:
group.append(line)
else:
all_groups.append(group)
distinct_letters = set(''.join(group))
part_1 += len(distinct_l... | [
"lbenedix@googlemail.com"
] | lbenedix@googlemail.com |
7c522e09e37bfa9cd52933f4b3a202340868c5d4 | 8c95e2185100db97f74d948407f9f6ac563905e5 | /metronotation/routemap.py | 8a6691a352602ddc2fcb031cd4e836d9009a1748 | [
"MIT"
] | permissive | kitao/metro-notation | c5fec21fccba4ef2a21c3294575fd29498ff8ebc | 34a9d2ca9fe17452c8eb5426636484f7cc29c605 | refs/heads/main | 2023-08-20T15:02:04.631092 | 2021-10-30T04:28:17 | 2021-10-30T04:28:17 | 321,700,124 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,037 | py | LAYER_TP = 0
LAYER_MD = 1
LAYER_BT = 2
LAYER_TM = 3
LAYER_BM = 4
LAYER_AL = 5
DIR_UP = (0, -1)
DIR_DN = (0, 1)
DIR_LT = (-1, 0)
DIR_RT = (1, 0)
DIR_LU = (-1, -1)
DIR_RD = (1, 1)
LETTER_TABLE = [
("R", (LAYER_TP, DIR_UP, 1)),
("M", (LAYER_MD, DIR_DN, 1)),
("L", (LAYER_BT, DIR_DN, 1)),
("U", (LAYER_TP, ... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
49ec6ca3b4c19afae7c996dfc69df388f79a6d93 | d813d2fd748f534f75c55f0a174bb72bf872e47d | /tests/test_chrome_gdoc_pageend.sikuli/test_chrome_gdoc_pageend.py | 1d6fccab2f0400abfbdc8b5dec4498136e118c68 | [] | no_license | MikeLien/Hasal | 7889bf50f8b80281607f20723ca9baa75e67f26f | 8049a67ee514bc49809326c7d1d2e6da1f9dac52 | refs/heads/master | 2020-12-25T22:58:25.064393 | 2016-04-21T06:35:40 | 2016-04-21T06:35:40 | 55,055,080 | 0 | 0 | null | 2016-03-30T10:43:33 | 2016-03-30T10:43:33 | null | UTF-8 | Python | false | false | 338 | py | sys.path.append(sys.argv[2])
import browser
import common
import gdoc
com = common.General()
chrome = browser.Chrome()
gd = gdoc.gDoc()
chrome.clickBar()
chrome.enterLink("https://docs.google.com/document/d/1EpYUniwtLvBbZ4ECgT_vwGUfTHKnqSWi7vgNJQBemFk/edit?hl=en")
chrome.focus()
gd.wait_for_loaded()
wait(3)
type(K... | [
"wachen@mozilla.com"
] | wachen@mozilla.com |
04daea66a40d45b05d5e069646a555609e285927 | caaa87102b710e1973f4a434d1ecf2c80a972395 | /newsletter/pandas/pandas/tests/indexing/test_coercion.py | 23600e1f4241c143f5b266935a18a452b0513844 | [
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | SKNIRBHAY/TechWise-1 | e0df8868af17133a32da8e2341fa30aa0349af10 | 027895cb91aada1d8eecc1ddbb79e41fa66cdc75 | refs/heads/master | 2020-05-24T21:22:31.458963 | 2017-03-14T02:11:05 | 2017-03-14T02:11:05 | 84,881,955 | 1 | 0 | null | 2017-03-13T22:48:51 | 2017-03-13T22:48:51 | null | UTF-8 | Python | false | false | 20,644 | py | # -*- coding: utf-8 -*-
import nose
import numpy as np
import pandas as pd
import pandas.util.testing as tm
import pandas.compat as compat
###############################################################
# Index / Series common tests which may trigger dtype coercions
#################################################... | [
"ubuntu@ubuntu.ubuntu-domain"
] | ubuntu@ubuntu.ubuntu-domain |
12dfb84448a69a860cb2cc5e01f180a55448328f | 7b38b2cd39340474a042789c03cadf90da279dc8 | /webapp/python/venv/bin/snakeviz | 78098a6757b8d9c9720f6ec13b90784a16d7ed5c | [
"MIT"
] | permissive | koucs/isucon8q | 7dba9d07d962e6db3ba48244fafda0bced23dc5d | f273a7c072e70c1bbb41d491ee6ff6de9a812a04 | refs/heads/master | 2022-12-04T08:52:24.235762 | 2020-08-29T18:08:29 | 2020-08-29T18:08:29 | 289,645,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/isucon/torb/webapp/python/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from snakeviz.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kou.cshu@gmail.com"
] | kou.cshu@gmail.com | |
b043ed9fa8b36f548c4387b356e9a3489a921a96 | 0a27ebb2d590d08685f0b63a4fd10023ce03dfee | /selection/migrations/0003_alter_floor_floor_levels.py | 124ba53bb7ca799a0be461f974a53deca3911666 | [] | no_license | RebecaDumitrascuta/office-booking-app | 66eedd4d14ea5820451e36d7e6349a986a6934fb | 6214a47f174ab6ae1c173744a51aea02c84caca0 | refs/heads/master | 2023-09-05T01:13:46.763058 | 2021-11-25T15:53:07 | 2021-11-25T15:53:07 | 406,746,316 | 0 | 1 | null | 2021-11-25T15:53:08 | 2021-09-15T12:04:10 | JavaScript | UTF-8 | Python | false | false | 451 | py | # Generated by Django 3.2.7 on 2021-10-25 20:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('selection', '0002_office_zone'),
]
operations = [
migrations.AlterField(
model_name='floor',
name='floor_levels',
... | [
"rebecadumitrascuta02@gmail.com"
] | rebecadumitrascuta02@gmail.com |
5224d8389d28f53149bb9a84556ad05b34511670 | 32711a21edff968fdbf9fa9baf0e0f8373d0e131 | /authapp/forms.py | fa7e7e88283332593f25f77dbbd8f2f33b5d24c6 | [] | no_license | acid-n/GeekShop | ca836a4daeb97754fafd44d36e705f0e160c8d4d | 9749debe92e6ded46ed01082fbdb497a5f8485fa | refs/heads/master | 2023-01-15T15:29:18.172547 | 2020-11-25T18:34:39 | 2020-11-25T18:34:39 | 296,569,582 | 0 | 0 | null | 2020-10-04T18:39:29 | 2020-09-18T09:02:03 | JavaScript | UTF-8 | Python | false | false | 2,620 | py | import hashlib
import random
from django import forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, UserChangeForm
from authapp.models import ShopUser, ShopUserProfile
class ShopUserLoginForm(AuthenticationForm):
class Meta:
model = ShopUser
fields = ('username', 'p... | [
"acid_n@mail.ru"
] | acid_n@mail.ru |
3fb870fae8110b6233d35ad50a8c39fce9fb7372 | 99c41b3d58247e457d2c14c8a7200c8a72cbe258 | /Quetion5.py | accc1b39cb0e5b654ed6bd3ec689e14c4863730b | [] | no_license | atharvspathak/CloudCounselageLp3 | 75d3f701256fca5d143672626c7d873c90fdb8af | 87ba91876e960273571409c0b42e20fb069f916f | refs/heads/master | 2022-10-23T02:14:15.006245 | 2020-06-12T08:30:52 | 2020-06-12T08:30:52 | 262,038,140 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | '''
Program:Remove duplicates charecters from string
Input:String
Output:String without duplicate charecters
'''
x=input()
li=[0]*122
y=''
for i in x:
ascii = ord(i)
if li[ascii]==0:
li[ascii]=1
y=y+i
print(y)
| [
"noreply@github.com"
] | noreply@github.com |
4f5f6cf6b975bc75e55183392098c5035bdaf30d | a742bd051641865d2e5b5d299c6bc14ddad47f22 | /algorithm/牛客网/55-链表中环的入口节点.py | cb9f7c566cc7b629c3e7d7a7aef88c03f3a1a921 | [] | no_license | lxconfig/UbuntuCode_bak | fb8f9fae7c42cf6d984bf8231604ccec309fb604 | 3508e1ce089131b19603c3206aab4cf43023bb19 | refs/heads/master | 2023-02-03T19:10:32.001740 | 2020-12-19T07:27:57 | 2020-12-19T07:27:57 | 321,351,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py |
"""
给一个链表,若其中包含环,请找出该链表的环的入口结点,否则,输出null。
思路:
双指针法
快指针先走两步,慢指针走一步
当两个指针又相遇了,此时指向的节点可能是环的入口节点
再次让慢指针回到链表头,然后和快指针一起走,再次相遇时,就是环的入口节点
否则,快指针不存在时,表示没有环
或:
先让快指针走n步,n=链表的长度
之后再让快指针和慢指针一起走,直到相遇,此时就是环的入口节点
"""
class ListNode:
def _... | [
"525868229@qq.com"
] | 525868229@qq.com |
36947ff60d9483b71bca94ec94dc5aea17a9862c | 75d9be48e266ea4802edc5c61461ef96769517f9 | /src/code/mf_imp.py | ab0780fa05fd340b7bca85f8465fbd461e20996d | [] | no_license | PV-LN/Movie_rec_rwr | 74d413e4101ceaba1043e042371e5b5d5a302849 | 66d544adf51fb59d44d4652a585f96d8fdabb4b1 | refs/heads/master | 2020-08-17T20:03:01.993751 | 2019-10-17T06:31:26 | 2019-10-17T06:31:26 | 215,705,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | """""""""""""""""""""""""""""""""""""""""""""""""""""""""
MFRWR
- A comparative study of matrix factorization and
random walk with restart in recommender system
Authors
- Haekyu Park (hkpark627@snu.ac.kr)
- Jinhong Jung (jinhongjung@snu.ac.kr)
- U Kang (ukang@snu.ac.kr)
from Data Mining Lab., Seoul National Univer... | [
"noreply@github.com"
] | noreply@github.com |
0c602c4d5aba8185e74b266e1050df2cd0ec026c | 111082d7fd02a5f64cd1784b923a109cc95dc557 | /dj_rulitool/wsgi.py | 7ac1fe5349618d888f4dc721c11e7dfd58b406e3 | [] | no_license | 270466585/dj_rulitool | ba65a6ef1bc44b599f19ac1172d86e8d4b2a12af | 0d2e97454c66d30537780d81b2a0b4b2f953b2ed | refs/heads/master | 2020-04-14T20:25:36.592762 | 2019-01-04T10:28:18 | 2019-01-04T10:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for dj_rulitool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"27066585@qq.com"
] | 27066585@qq.com |
c0a76cd341cf357e4792a24b8c7dab2578e28b9e | ddc41e2a37ff82eb65404b9fd434a47a33ceb743 | /api.py | 8f3c3acf232085551caeb5c4d8b866ae002533d2 | [] | no_license | abdullah-algumar/ArabicMorphologicAnalysis | 30028ab808c3334a43a136b87e9e6796034ef296 | f695bed7045b4330d42713bf96bcd7d9418e748e | refs/heads/master | 2023-02-03T08:19:35.066362 | 2020-12-19T16:26:08 | 2020-12-19T16:26:08 | 322,889,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from flask import Flask, make_response, jsonify
from nlp_naftawayh import nlp_naf
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
app.config['JSON_SORT_KEYS'] = False
@app.route('/')
@app.route('/morfolojik/<string:sentence>', methods=['GET', 'POST'])
def find_stem(sentence):
try:
nlp_result = ... | [
"54884686+abdullah-algumar@users.noreply.github.com"
] | 54884686+abdullah-algumar@users.noreply.github.com |
6b8caec8ea96cb715c6ece897689627a1d8ec789 | eb5c7ddab43fbb24b91c29a4560749a2386490fb | /tensorflow/contrib/learn/python/learn/estimators/head_test.py | 99bdcc7d8fe281c928257d70ff31d4db8ac7f386 | [
"Apache-2.0"
] | permissive | ivankreso/tensorflow | 8fb3f599564a6afe8c054bf05ea5a63aa8f4ec3d | 38d8238edb041b9fbf3b2762b09df450937a5b40 | refs/heads/master | 2021-01-21T16:27:58.859552 | 2017-01-31T10:33:22 | 2017-01-31T10:33:22 | 80,117,846 | 0 | 1 | null | 2017-01-26T13:42:27 | 2017-01-26T13:42:27 | null | UTF-8 | Python | false | false | 41,317 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
737cbcf0fa9ca6c5ac71c112d5726ac3704e5da5 | ffb7e32769cf5928fcca5abf3a60f86e456bb79a | /base_folder/type_folder/type_.py | ea021ebcb24a63aee9d5be8892f8a7673a82a70f | [
"Apache-2.0"
] | permissive | relax-space/python-learning | 92f8173af26d05beae89e928b1df4aa907b5701b | 45457fc6c3a6583cb28bd14161439ec557c4ce2b | refs/heads/master | 2022-05-03T13:33:45.646838 | 2021-11-30T21:38:06 | 2022-03-19T15:34:22 | 250,942,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from typing import Dict, List
class Dto:
def __init__(self,name):
self.name = name
err_list: List[str] = []
err_list.append(12121)
print(err_list)
err_list: List[Dto] = []
err_list.append(Dto(name='1'))
print(err_list[0].__dict__)
print('1212{0},1212{1}'.format(5, 6))
from string import Formatter
yo... | [
"xiaoxm_001@163.com"
] | xiaoxm_001@163.com |
e9742b2d398fb6e4bd6b6e5b85cc647b302f8db7 | 2e1dde592cb2076dd42ce300319a816a905b3b31 | /src/examples/ConquestService/testNetwork.py | 87eee1a62167483dff50532c0b1a9c7f943ce7b2 | [
"MIT"
] | permissive | mikesneider/YAFS | 601ec4fe224b408770988cb129fb14ae3b0a996e | 1b805cb0dc5ceb438ab335c347750e1cb1cdd34a | refs/heads/master | 2021-01-07T14:54:33.985507 | 2019-10-17T13:19:54 | 2019-10-17T13:19:54 | 241,733,345 | 1 | 0 | MIT | 2020-02-19T21:47:04 | 2020-02-19T21:47:03 | null | UTF-8 | Python | false | false | 1,116 | py |
import networkx as nx
import json
data = json.load(open('exp1/networkDefinition.json'))
G = nx.Graph()
for edge in data["link"]:
G.add_edge(edge["s"], edge["d"],BW=edge["BW"],PR=edge["PR"])
# ok
print len(G.nodes)
minPath = nx.shortest_path(G, source=0, target=3)
print "Min path %s"%minPath
for path in nx.al... | [
"isaac.lera@gmail.com"
] | isaac.lera@gmail.com |
26316ce49a825944d441fc9e9660c411724a665c | e99b52816d4c89fd248f524db1875afb02e34b9d | /tareas/Tarea 7/Tarea7.py | f0a895aec92a5fef2f4d535bba5ba89fa63fce6c | [
"MIT"
] | permissive | mdmirabal/uip-prog3 | 6a96165651ac6aa6c2c4a052aa3fdbd01d525cb3 | e093bea7ee0f6146293719621ec0beaa26343516 | refs/heads/master | 2016-08-03T22:37:59.684547 | 2015-12-13T00:26:26 | 2015-12-13T00:26:26 | 42,831,348 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from kivy.app import App
lista = []
def guardar(name):
lista.append(name)
print(lista)
def exportar():
archivo = open('asistencia.txt', 'wt')
archivo.write(str(lista))
archivo.close()
class AsistenciaApp(App):
def build (self):
pass
if __name__ == '__main__':
AsistenciaApp().run()
| [
"vmdaac@mail.com"
] | vmdaac@mail.com |
b4e490e5958a77b59810b424835b255f12306e78 | 498912dfdbf6d30d2ecf48831a77d810b0c6feaf | /case/migrations/0001_initial.py | a71cd7fc289bb8cbf5fb4a002950bffc4ad982e1 | [] | no_license | sout001/case | 23ad7049e94496e300f592a28898628b9a77fc1c | 37dc8ae0f3b545516f0f5feee4c3c54f4d25a3bc | refs/heads/master | 2023-02-16T17:17:46.662422 | 2021-01-14T09:07:53 | 2021-01-14T09:07:53 | 326,878,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | # Generated by Django 2.0 on 2021-01-05 02:26
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FileUpload',
fields=[
... | [
"chenshaoqiang@huanyin.onaliyun.com"
] | chenshaoqiang@huanyin.onaliyun.com |
fab63b0499414f2346a1e35802c0ee084f7e31f4 | 3ec57d7c860b048a9978d769c8dd99732d437b66 | /firstapp/loginsys/views.py | b58654195a75fc60eb845521258bb832e21d44fc | [] | no_license | WolfgangGrimmer/Test | 69c19fa1c07fd63a369900bbea8510afb9e613bf | f403275c6f314115b3f66afde1abbfae47b90bd2 | refs/heads/master | 2020-04-09T19:21:47.909605 | 2018-12-05T16:05:08 | 2018-12-05T16:05:08 | 160,541,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response, redirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
from django.core.context_processors import csrf
def login(request):
args = {}
args.update(csrf(request))
print "test"
if request.POST... | [
"noreply@github.com"
] | noreply@github.com |
2175fe3f2ecea3f112a13f9afcf4c4e90e474152 | a8dd7eb5b7901178e24d51cf768c6d40e61b3fde | /dijkstras_algorithm.py | 8d9628a2fcc6c48d8929117ad38ae9326594b2f7 | [] | no_license | Pasha-lt/Algorithm_and_small_program | 06462f1fbfc648c92edea72453aa20976183ac27 | 09c6697f0755b75056d00ac293f651b7cc7e0838 | refs/heads/master | 2023-08-25T03:11:22.028375 | 2021-10-24T06:59:19 | 2021-10-24T06:59:19 | 215,867,752 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | raph = {}
graph['start'] = {}
graph['start']['a'] = 6
graph['start']['b'] = 2
# print(graph['start'].keys()) # Для получения всех соседей начального узла.
# Включаем в граф остальные узлы и их соседей:
graph['a'] = {}
graph['a']['fin'] = 1
graph['b'] = {}
graph['b']['a'] = 3
graph['b']['fin'] = 5
graph['fin'] = {} ... | [
"noreply@github.com"
] | noreply@github.com |
70b83b4e8d4e43fd66482974cc9405558e7acd9d | 45681de2f46bb8712ab65588fc0f8dece7ef97b2 | /bipolar/open_dns_relay_ip_from_es.py | 4635dbd1401c166be050d3c323e95d64a625a113 | [] | no_license | cleverhandle1/bipolar | 3db51315c574367df383d27d24f07d1c645236ca | 36b66a7b299ebbc875c8d9263e98a70548b1a1fe | refs/heads/master | 2020-04-05T18:14:38.197680 | 2019-02-12T06:23:51 | 2019-02-12T06:23:51 | 157,093,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #!/usr/bin/env python
import json
import sys
from elasticsearch_dsl import Search
from elasticsearch_dsl.query import QueryString
from elasticsearch import Elasticsearch
query = "recursion AND true"
es = Elasticsearch('192.168.0.69')
start = sys.argv[1]
end = sys.argv[2]
s = Search(using=es, index="celery")
s = s.q... | [
"cleverhandle1@protonmail.com"
] | cleverhandle1@protonmail.com |
a4536f0fe2f8a612a01725277078ce3b79778683 | 5707a6e95d6388a320416d7c06c275daf61e3406 | /Unidad2/ej1.py | 54e6a486f22b1ad338b6cbaf6b579ebbc1bebc68 | [] | no_license | hectorrdz98/lenguajes-y-automatas-1 | ed3406e8a7b7eaad489c530146cddac5a972bc81 | 0004c4696a92cdd33a86a24f82d0f9b7e01e455c | refs/heads/master | 2022-01-21T21:24:21.819330 | 2019-05-29T12:42:42 | 2019-05-29T12:42:42 | 167,203,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py |
"""
Autor: Hector Rodriguez
"""
"""
Este codigo lee el archivo doc.txt (debe estar al mismo nivel de carpeta que este archivo)
y muestra en consola para cada linea del documento que tipo de elemento o a que categoría pertenece.
Estas son mis condiciones:
1.- Entero: Números de 0-9
2.- Flotante: Números de 0-9 segu... | [
"="
] | = |
8ada0d71b51aba2305aa55b8d1b6763a39766144 | 76b49bab52dc088828816bf00605471af4536dbc | /server/aplicacionesweb/settings.py | a28d868116ac3be06e430bde862039a2e9266b1b | [] | no_license | mboscovich/Kerberus-Control-Parental | a5352d53c588854805f124febf578345f3033ed2 | 5025078af9ebdcf7b3feb4b0d5efa6cbde6e6a37 | refs/heads/master | 2020-12-24T16:58:51.288519 | 2015-05-25T15:18:25 | 2015-05-25T15:18:25 | 23,494,363 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | # Django settings for aplicacionesweb project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Maximiliano Boscovich', maximiliano@kerberus.com.ar'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' ... | [
"maximiliano@boscovich.com.ar"
] | maximiliano@boscovich.com.ar |
8ae5df63ca9e208144fb5f3e5afdb6e50e2d4245 | 9657a5bc5deb8125001463b15e6003fb525d6d87 | /{{cookiecutter.repo_name}}/features/environment.py | bca9d99b15a02c3412cfe9969ec4edd40dff9db9 | [] | no_license | ajaxon/cookiecutter-django | d6ded5febb902a032de23b331a9e68b870928a77 | 2c07704d39130b1ae033e264724710406c28eec8 | refs/heads/master | 2020-12-26T03:33:04.226196 | 2016-03-26T14:14:56 | 2016-03-26T14:14:56 | 49,108,599 | 0 | 0 | null | 2016-01-06T03:06:49 | 2016-01-06T03:06:49 | null | UTF-8 | Python | false | false | 890 | py |
from behave import *
from selenium.webdriver.firefox.webdriver import WebDriver
from django.core import management
def before_all(context):
# Unless we tell our test runner otherwise, set our default browser to PhantomJS
context.browser = WebDriver()
def before_scenario(context, scenario):
# Reset the ... | [
"jaxon77@gmail.com"
] | jaxon77@gmail.com |
09997d079fdba85719df5fe4ccf2d3f6d5988d74 | 0e9789668dcfeeedacf78aa9917bb95ec9a5f763 | /preprocessing/load_data.py | 5ff6f999bcc4fb4aae3d0baad46dc27ccc9be878 | [] | no_license | mma1979/Simple-Sentence-Similarity | 76151619bcdfd39054f8b6cbe1e26af99d0f6a37 | dfacb34c325df771056f34f85c7927148d69691c | refs/heads/master | 2022-04-11T00:15:07.415752 | 2020-01-28T13:06:42 | 2020-01-28T13:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import os
import pandas as pd
import requests
import tensorflow as tf
def load_sts_dataset(filename):
"""
Loads a subset of the STS dataset into a DataFrame.
In particular both sentences and their human rated similarity score.
:param filename:
:return:
"""
sent_pairs = []
with tf.gf... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
6ac6c0894bfa4d2f46e20bd466eb57471523bfb5 | ed78041a12c60e46bb0c4d347c47536e84307a96 | /app/__init__.py | ea59f07f74501ccfe1fe861e921ef187326337da | [] | no_license | Garfield247/news_nlp | 4875842af4249def6ffdc65a6e5896b02610dd8d | e18d178824ea9bf11d3895c58037a211f4b21cb6 | refs/heads/master | 2022-12-11T21:00:36.967826 | 2019-03-15T02:32:46 | 2019-03-15T02:32:46 | 161,159,779 | 0 | 0 | null | 2022-12-08T04:52:15 | 2018-12-10T10:48:41 | JavaScript | UTF-8 | Python | false | false | 945 | py | # -*- coding: utf-8 -*-
from flask import Flask, render_template
from app.config import config
from app.extensions import config_extensions
from app.views import config_blueprint
# 封装一个方法,专门用于创建Flask实例
def create_app(config_name): # development
# 创建应用实例
app = Flask(__name__)
# 初始化配置
app.config.from_ob... | [
"Garfield_lv@163.com"
] | Garfield_lv@163.com |
362b027f6cef1cd2e40667e05c2c92ed58d5fc91 | cd1364be99f4e7b439fd2f6decc6e2b215f17507 | /networks.py | 8777825c5c4443fbba07db3c7a489dd5332d6ea5 | [] | no_license | kargenk/ECO_scene_classifier | 44f4d8d28f961fdbc0d7d36f5612e4cda2e5ed30 | 8fee70276a055640e0f7ab8809df88cc2ae78896 | refs/heads/master | 2022-11-24T05:10:49.074319 | 2020-07-20T18:14:44 | 2020-07-20T18:14:44 | 280,678,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,175 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import torch
import torch.nn as nn
class Conv2D(nn.Module):
""" conv -> batchnorm -> relu の標準的な畳み込み層クラス. """
def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0):
super(Conv2D, self).__init__()
self.conv = nn.Sequentia... | [
"gengen0630@gmail.com"
] | gengen0630@gmail.com |
d5dafb6d91a7f3772bf48f1ae18150067f839a20 | 57be2b50c04433f97f5b3880d4fe0814d65b3d36 | /django/apps/users/views.py | 831215956e652389e19be4a39f3091626b49cbc1 | [] | no_license | ojbkaaaa/- | 279005ee6c32403f34a3663092aa9ad1f04c9e88 | 465ccf33bd3cca1a768077c56bdbdcc1dc9a10c0 | refs/heads/master | 2020-03-16T21:09:11.213994 | 2018-04-02T06:41:11 | 2018-04-02T06:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,978 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.views.generic import View
from django.core.urlresolvers import reverse
import re
from users.models import User, Address
from django import db
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from django.... | [
"wgf@zenmeasure.com"
] | wgf@zenmeasure.com |
e1aa506829b30e945319226cb301e841dd6bc86d | ebb524cef91d9e1e6979c4e12a66c8aeb22658a1 | /AIND-Planning/tests/test_my_planning_graph.py | 2050bcaaaa9712e8d9cc4c5455c4e1ef502020a7 | [
"MIT"
] | permissive | kalyancv/Udacity_AIND_Projects | 4cc370d0e1cd704d5158fc28fd825257eca25ce8 | 3e1bdd678cafc880bf083a395a04dcca4a46b22c | refs/heads/master | 2020-04-26T10:10:07.403392 | 2019-03-03T07:20:44 | 2019-03-03T07:20:44 | 173,479,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | import os
import sys
parent = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(os.path.dirname(parent), "aimacode"))
import unittest
from aimacode.utils import expr
from aimacode.planning import Action
from example_have_cake import have_cake
from my_planning_graph import (
PlanningGraph , P... | [
"noreply@github.com"
] | noreply@github.com |
a5c8acc3f261fc484e471a9c6729ba0a2951f7ea | 6cc37dfc44880f57823bb9523ea5f8206d5e3f22 | /python_OOP/labs_and_homeworks/09_decorators_exercise/07_execution_time.py | 672ebddef602603926ee47bec252adbc7b08d114 | [] | no_license | dimitar-daskalov/SoftUni-Courses | 70d265936fd86712a7bfe0586ec6ebd1c7384f77 | 2054bc58ffb5f41ed86f5d7c98729b101c3b1368 | refs/heads/main | 2023-05-31T06:44:35.498399 | 2021-07-11T10:16:08 | 2021-07-11T10:16:08 | 322,896,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | import time
def exec_time(func):
def wrapper(*args):
start = time.time()
func(*args)
end = time.time()
time_spend = end - start
return time_spend
return wrapper
@exec_time
def loop(start, end):
total = 0
for x in range(start, end):
total += x
ret... | [
"dimitar.daskalov22@gmail.com"
] | dimitar.daskalov22@gmail.com |
cfe30dfb145e5c7610d9b424ad9cb71f37e95724 | 09e63e204cf3f70b0f878fe237f231af0786611e | /LifeQA/LSTM_QA.py | 2e7249b817077a5418b4be8df812dcb9c1c1f866 | [] | no_license | shubham14/Machine_learning_research | 8f00788366abf2d330afe8914e48d4279fcd8aea | b134e4e6b1e6c110fad8cb38b033c92c34d3c8ce | refs/heads/master | 2022-11-08T13:24:58.722027 | 2019-11-10T09:21:28 | 2019-11-10T09:21:28 | 132,386,307 | 3 | 2 | null | 2022-10-17T15:36:25 | 2018-05-07T00:16:38 | Python | UTF-8 | Python | false | false | 3,186 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 16 16:55:06 2018
@author: Shubham
"""
import numpy as np
from keras import backend as K
from keras.layers import Embedding
from keras.layers import LSTM, Input, merge, Lambda
from keras.layers.wrappers import Bidirectional
from keras.layers.convolutional import Convoluti... | [
"shubham.ddash@gmail.com"
] | shubham.ddash@gmail.com |
ef6d646a37c629648bf8804c3e3265b1c7146eeb | 9d403bf658c47beff876eeae99d10110f28b924a | /check_ec2_spot_price | 3a1f84ab7e7ecc282739a52cdfe471329507d651 | [] | no_license | kozdincer/nagios-ec2-spot-price-plugin | 8de01d871da89ff01f4a58977ec4f18c646b6bcd | 640190ba5d24439ac36b3df26a76d4db00ec85e2 | refs/heads/master | 2021-01-16T20:43:51.887044 | 2012-07-07T21:27:45 | 2012-07-07T21:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,955 | #!/usr/bin/env python
#
# Copyright Gareth Bowles 2010
#
# Based on the check_svn plugin written by Hari Sekhon
#
# 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 ... | [
"gareth@optimalops.net"
] | gareth@optimalops.net | |
856a7efd13311564c72105c9170b5e1b7289b241 | 4fb8f756e9a8aa8cb082192887f2adac6d02aaf3 | /RGAT-GloVe/test.py | 7ed9ef17426177bd4f809ee75dbf51f474682c26 | [] | no_license | wuharlem/AHRGAT | a2bc8153b2a63a625a5eaa65ed27e926df78ac07 | 8f9e3aa85759754b0e7af6c1b22e488e4338ab4e | refs/heads/master | 2023-06-30T11:07:12.072698 | 2021-08-04T01:30:16 | 2021-08-04T01:30:16 | 368,099,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,891 | py | # encoding=utf-8
import sys
sys.path.append('../')
import torch
import random
import argparse
import numpy as np
from vocab import Vocab
from utils import helper
from sklearn import metrics
from loader import ABSADataLoader
from trainer import ABSATrainer
from load_w2v import load_pretrained_embedding
import wandb
from... | [
"harlemwu0930@gmail.com"
] | harlemwu0930@gmail.com |
f0a2ebbd8db8f2b4791838bb672c3f3becad2b37 | ff71e9daa14f0733b1f87b23bcd756e72ca4fb2f | /examples/login_by_css_tag_id.py | 5b974f5b2b3f653f68e10c65682523737b5af5bc | [] | no_license | aikram96/selenium_basic | 541c4ad14ef77815d35da271aa18b4951f808ca7 | 12f185aac195da10a053825885a1c8272270cd4b | refs/heads/master | 2023-04-06T14:33:36.584203 | 2021-02-13T22:41:33 | 2021-02-13T22:41:33 | 332,104,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from selenium import webdriver
import time
driver = webdriver.Chrome(executable_path="../drivers/chromedriver.exe")
driver.maximize_window()
driver.get('https://opensource-demo.orangehrmlive.com/')
time.sleep(1)
username = driver.find_element_by_css_selector('input#txtUsername')
password = driver.find_el... | [
"marcia.gutierrez.castillo@gmail.com"
] | marcia.gutierrez.castillo@gmail.com |
7400ad3efefe2756cac43ed0443e0292298504eb | af1938a4185d7c512c1856a070e3c81104876cae | /Check-Box².py | 502f4e8366555f2f83736a37baca5e016158fa49 | [] | no_license | marcofigueiredo224/Selenium-Python | 1cd186ab3e9e7d02470680d9e01866fa2f03d9f0 | dcbf68490640faf571a7cf7cbe85a0c1a424a015 | refs/heads/main | 2023-06-16T23:42:53.277537 | 2021-07-05T18:09:15 | 2021-07-05T18:09:15 | 380,259,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from random import choice
lista_de_selector = ['tree-node > ol > li > ol > li:nth-child(1) > span > label > span.rct-title',
'#tree-node > ol > li > ol > li:nth-child(2) > span > label > span.rct-title',
'#tree-node > ol > li > ol > ... | [
"noreply@github.com"
] | noreply@github.com |
488718466f0f0e87ffa34be480e9e92c0c8df57a | 9a701c23ef6e70dc3704f012ffbb1e2689f7a8cb | /Lib/zDogPy/box.py | 5006b0c8963abce56336c69e361803f02212a395 | [
"MIT"
] | permissive | gferreira/zdogpy | a832db713524d1343b85de1c8215511f438a2e41 | 41304e5db7cc2e145d43b6b2f7d77d25ec3c8b08 | refs/heads/master | 2020-05-30T07:50:24.621323 | 2019-09-11T09:30:59 | 2019-09-11T09:30:59 | 189,606,401 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | '''Box composite shape'''
from importlib import reload
import zDogPy.anchor
reload(zDogPy.anchor)
import zDogPy.shape
reload(zDogPy.shape)
import zDogPy.rect
reload(zDogPy.rect)
from zDogPy.boilerplate import hexToRGB, TAU
from zDogPy.anchor import Anchor
from zDogPy.shape import Shape
from zDogPy.rect import Rect
#... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
1d96ee2f279714a545379c36f976344ed44bc81b | c3509799f2623e80eab30535ed97d40e93aa963b | /PYTHON/Programmers/연습문제/서울에서김서방찾기.py | a19433994678a0768231549f9252fdf898da8e54 | [] | no_license | jjmin321/Algorithm | a0d99099e118b8d76df45836ed791c0eb6e202ec | 619d6ce1f897d35c5c80b222494bb0137cb60171 | refs/heads/master | 2023-05-05T12:58:57.456622 | 2021-06-04T00:08:00 | 2021-06-04T00:08:00 | 277,247,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | '''
https://programmers.co.kr/learn/courses/30/lessons/12919
풀이 : 파이썬 리스트 내장함수를 통해 Kim의 인덱스 위치를 찾고 그에 맞게 반환하였습니다.
'''
def solution(seoul):
return '김서방은 {}에 있다'.format(seoul.index('Kim'))
seoul = ["Jane", "Kim"]
print(solution(seoul)) | [
"jjmin321@naver.com"
] | jjmin321@naver.com |
f61072493bf553dd506507e12612a22d103fa400 | 8326a2b9a0b3ba2c47ad4a48f278d481b2b8b6d0 | /openapi_client/test/test_paginated_moderation_list.py | d4d1627d44d0bd80dfe4f28a0fa3523d3694ff78 | [
"MIT"
] | permissive | osuka/dognews-scraper | 1101f92f00569388e81d7d4b8d2c72b7d5a7d59e | 12373064061157083a48ced8e2cabf9d1ace30a5 | refs/heads/master | 2023-07-09T18:45:05.718450 | 2021-08-15T21:50:28 | 2021-08-15T21:50:28 | 209,788,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | """
Dognews Server API
Dognews Server client API # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.moderation import Moderation
globals()['Moderation'] = Moderation
fro... | [
"486736+osuka@users.noreply.github.com"
] | 486736+osuka@users.noreply.github.com |
801368db205f7329c25d94329502d145a0be6f36 | 95fb24ce069b957dde2ab455fe36330dde05c184 | /Online learning ML.py | eec41d7a333b014fd6dd2442bd47a0bd23f4b5be | [] | no_license | RitikDutta/Onlineline-Learning-basic--ML | c0f2d3f18b9d1ec555c5949ae23cfeaf316f2a94 | 015266b20b8abbec33e90763a38c401271821401 | refs/heads/master | 2020-03-21T02:51:15.786447 | 2018-06-20T11:37:08 | 2018-06-20T11:37:08 | 138,024,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | import numpy as np
from matplotlib import pyplot as plt
%matplotlib inline
class OnlineLearn():
from sklearn.linear_model import LinearRegression
regg = LinearRegression()
def onlineLearn(self):
num_array = list()
num = input("Enter how many elements you want:")
print ('Ente... | [
"noreply@github.com"
] | noreply@github.com |
4b77e30eb184d924f372874506bbda39b571225f | ca8be92d186022018ce5157a56f365602eb70158 | /src/201408/click_0003.py | fd98326f44771e3e9994c36ac33c7e3d325a88cf | [] | no_license | songgz/toys | 05a8214cd86b747bb14b0870c1a12be4794299dd | f808e7c4ed1a76db4800c8e1ee6d163242df52cc | refs/heads/master | 2020-06-19T15:36:11.175281 | 2014-09-28T13:54:41 | 2014-09-28T13:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | '''
Created on Jul 29, 2014
@author: fcmeng
'''
import click
@click.group()
def cli():
pass
@click.command()
def hello1():
print 'hello 1'
@click.command()
@click.argument('arg1')
def hello2(arg1):
print 'hello 2'
print arg1
cli.add_command(hello1)
cli.add_command(hello2)
if __name__ == '__m... | [
"fanchao.meng@rea-group.com"
] | fanchao.meng@rea-group.com |
7656d7d6387213b075923c6d3acd0f845b561202 | bf2f215b3686eb0e02bb83676d1f56eca1b319dd | /utils/jietu.py | 5b6527ea0ce80a7a07223766ed085a1bd3e559d6 | [] | no_license | liangshu-code/selenium_jicheng | d8b5377eeafdc21c1313294cf37b94a928a5f8ee | 9c7ad5e4497451810325be3b23d3f32e2b953f8a | refs/heads/main | 2023-02-17T12:55:45.035912 | 2021-01-19T15:38:38 | 2021-01-19T15:38:38 | 331,023,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import time
def jietu(driver, Cname):
now = time.strftime("%y-%m-%d")
now_1 = time.strftime("%y-%m-%d %H_%M_%S")[9:]
driver.get_screenshot_as_file(".\\report\\" + now + "\\png\\" + Cname + "_" + now_1 + ".png")
| [
"hls1948287451"
] | hls1948287451 |
89fb6f38062500309cf03e18cdb6d858bc663305 | 379c28104ea1b9f392463defeda71f60ca24c8c6 | /app.py | e6079714d840f176be394bd20ae91e8a0066d8d6 | [] | no_license | markStone141/flasker | 7a2bb491bb8c2b21cb9d7d8133acba37f68130cd | f224d181f0a15c8b6137bafadff9e09847df89c8 | refs/heads/main | 2023-07-12T02:23:00.942534 | 2021-08-27T22:32:37 | 2021-08-27T22:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from flask import Flask, render_template
# Create a Flask Instance
app = Flask(__name__)
# Create a route decorator
@app.route('/', methods = ['GET'])
def index():
first_name = "John"
stuff = "This is the text"
favorite_pizza = ['Pepperoni', 'Cheese', 'Mushroom', 41]
return render_template('index.html', fi... | [
"65819197+markStone141@users.noreply.github.com"
] | 65819197+markStone141@users.noreply.github.com |
1a6ea7d278f3045c4f5e026e1485d457be6d8432 | e2f65f808d637acc2997adc14e575c4f0368ef4c | /applications/blog/urls_subdomain.py | 73d132c4d9ab3362f1a6133a4aba128a56dfe526 | [] | no_license | amoisoo/APPJINYOUNG | 4f9c445b91afecd7494f9172cfd35c62275784a9 | 83db043fb3dc5795c0407d6b2ddcbb348d10ee83 | refs/heads/master | 2023-02-12T12:47:54.323228 | 2021-01-08T23:24:02 | 2021-01-08T23:24:02 | 328,032,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.conf import settings
from django.urls import include, path
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpatterns = [
path("", include("applications.blog.urls" ) , nam... | [
"dev@amoisoo.com"
] | dev@amoisoo.com |
2d74ed4c1052a28ef94510b2ea4cf998943f87cf | 2bae293897774a4612b5216562f9347fd95b7a28 | /hacktheglobe/bin/s3put | 5939f15ddc784b5721806bf720ebba7b59072319 | [] | no_license | xwinxu/DOC | c73a54a62a22edd87eedcd07533be8d38b173716 | b8de83d65c294c3a86a20b4878bdda656bfafdd7 | refs/heads/master | 2020-04-29T08:27:15.043833 | 2019-03-20T21:43:04 | 2019-03-20T21:43:04 | 175,987,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,883 | #!/Users/winniexu/Hack-the-Globe-Team12/hacktheglobe/bin/python3
# Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without res... | [
"winnie.xu97@gmail.com"
] | winnie.xu97@gmail.com | |
85bbb1146b933e5be79b70692edba72d7199c1ed | 1f08a7e8191cce4d8d4e88b9a29d0b579ad1ffeb | /quickstart/checklist/models.py | 37273dcff771f13c32bbc138dd206a3ba7b99f30 | [] | no_license | Learning-Something/django-rest | 2be341346bf19e5e52023257a79d85ddeb47de9f | dfb766bc946972daf9d2088fb29961b4fc677d57 | refs/heads/master | 2021-07-03T14:12:20.151867 | 2017-09-23T22:05:32 | 2017-09-23T22:05:32 | 103,187,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from django.db import models
# class Relatorio(models.Model):
'''
Relatório 1
'''
class AcompanhamentoCantina(models.Model):
data = models.DateField()
responsavel_preenchimento = models.CharField(max_length=100, blank=False)
responsavel_informacao = models.CharField(max_length=100, blank=False)
es... | [
"vitor.nere@hotmail.com"
] | vitor.nere@hotmail.com |
33b9a0b28178626117cfa52bbee000bdf746fae2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QcswPnY2cAbrfwuWE_1.py | 3dc657a83394c0074459ebb833c7727b69c41094 | [] | 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 | 173 | py |
def filter_factorials(n):
def is_fact(x):
i=1
while(True):
if x%i<1:x//=i
else:break
i+=1
return x==1
return[i for i in n if is_fact(i)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
778c63b312887248dd0acb4685c2ef035c4ed8e6 | be3143e12bdbf2b19967f2782351356270db34ab | /apps/users/models.py | 52c6fc91cde2e0052f7b76d348422063016865b7 | [] | no_license | proysistem/corporacion | 5dd2d71f7f0c8f33af0ffa1e351f1bbf19531a52 | 67f2c189ab2b8eb0ea7659e4634dc21a447fec31 | refs/heads/master | 2021-01-24T01:27:53.158384 | 2018-03-09T03:43:13 | 2018-03-09T03:43:13 | 122,807,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
class UserManager(BaseUserManager, models.Manager):
def _create_user(self, username, email, password, is_staff, is_superuser, **extra_fields):
email = self.normalize_email(email)
... | [
"proysistem@yahoo.com"
] | proysistem@yahoo.com |
4f8410227745a3f05d1ded00c637145222b001f5 | acf03baf55e36dc2a9a5ecd697ec5cb15446ae32 | /vng_api_common/decorators.py | eeb5d658ccfe42cff1208a7c375b34363017ad85 | [] | no_license | GemeenteUtrecht/vng-api-common | b6eb55121dc44c72179cbcd63896bbc020dc3975 | 97786cac041d867468007f9b9a9703d21644391a | refs/heads/master | 2021-06-29T01:53:11.647065 | 2019-07-18T12:04:39 | 2019-07-18T12:05:27 | 198,412,309 | 0 | 0 | null | 2019-07-23T10:57:53 | 2019-07-23T10:57:52 | null | UTF-8 | Python | false | false | 279 | py | from typing import Any
from django.db.models.base import ModelBase
def field_default(field: str, default: Any):
def decorator(cls: ModelBase):
model_field = cls._meta.get_field(field)
model_field.default = default
return cls
return decorator
| [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
2eaad527d6144119a665568a07cc208bc6b68d28 | 28eec2ca8a89bd198fb506067a7d3dcc74d798ba | /LivePlayPlanBackEnd/VkApps/settings.py | 2c04a094324be3ad8f1422c6571cb515e908a44e | [] | no_license | EtzSladkoewka/Test1 | c50e13dbdf25f68a0ed47e04dfa18ba2e38e6e85 | 8f10a6f85588234dccbfca679cd7d765ad52720f | refs/heads/master | 2023-03-20T07:25:10.592380 | 2021-03-18T10:19:51 | 2021-03-18T10:19:51 | 340,701,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the s... | [
"70232430+EtzSladkoewka@users.noreply.github.com"
] | 70232430+EtzSladkoewka@users.noreply.github.com |
cbd9f0587be52b2ebc40436f2728a01e989cfb6b | d2838c88c0a46c58337f5959f46a75de1c7c1b91 | /habraPageParser.py | 6421e6e5b388dbeb31da1a1dfed28b0a38477dae | [] | no_license | SergeyParamonov/HabraData | 434478e86212d9a920c8dc12056649967c1dd754 | 5fc219121aacfc32f91b9f8327eb05bd543201b7 | refs/heads/master | 2021-01-17T19:04:21.635470 | 2020-08-03T15:28:16 | 2020-08-03T15:28:16 | 18,575,291 | 46 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | import urllib2
from bs4 import BeautifulSoup
import re
from article import HabraArticle
class HabraPageParser:
@staticmethod
def parse(url):
try:
response = urllib2.urlopen(url)
except urllib2.HTTPError, err:
if err.code == 404:
return None
else:
raise
html = respons... | [
"sergey.paramonov@phystech.edu"
] | sergey.paramonov@phystech.edu |
e21368c69c0f51eb75de11bf6c6829d4a2eff22e | fb5384a3277f022b1f7ef8ebc5bd9c72edf62a31 | /habraproxy/logging.py | 255a424c99edaea4491d7b5090abfb89a9d7d1d7 | [] | no_license | dndred/habraproxy | 55b8a121e37b67e3bf8dda90ce8f1545c51cdbd2 | f438a80d9c00de5aeb9fda1df421abceeadbe515 | refs/heads/master | 2023-05-17T22:45:19.666929 | 2021-06-02T10:36:24 | 2021-06-02T10:39:23 | 373,069,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import logging
def get_module_logger(mod_name):
'''
To use this, do logger = get_module_logger(__name__)
'''
logger = logging.getLogger(mod_name)
handler = logging.StreamHandler()
formatter = logging.Formatter(
'%(asctime)s [%(name)-12s] %(levelname)-8s %(message)s'
)
handler.s... | [
"dndred@gmail.com"
] | dndred@gmail.com |
7fddbfc6b50ccae88c71d3b3ae36fd6288bc4b5c | 10d48a36fd6b68cf59293c170400753690064a54 | /turtlebot/camera.py | 391a9d8662a03c5a4277cfee7637a07667130cef | [] | no_license | srbhchandra/hri_project | 5c45cc216842069128b4ff06f7212f2155d1af34 | e65fc0c7c172b80d9658238606d7f5384c90c4c1 | refs/heads/master | 2021-01-19T09:41:32.419486 | 2017-03-16T13:54:15 | 2017-03-16T13:54:15 | 82,137,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | import rospy
#import faces
import cv2
import cv2.cv as cv
import sys
Notebook_webcam = 0
USB_webcam = 1
def detect(img, cascade):
rects = cascade.detectMultiScale(img, scaleFactor=1.1, minNeighbors=3, minSize=(30, 30), flags = cv.CV_HAAR_SCALE_IMAGE)
if len(rects) == 0:
return None
rects[:,2:] += rects[:,:2]
re... | [
"srbhchandra@gmail.com"
] | srbhchandra@gmail.com |
ce048b17eef211ec4e392b0c45d2f208f09499dc | e01c15411711a5bb0485760263d3f9587c60bcdc | /method.py | 3c7d28ce1c6c902b3009cec4eec98a457c42fe68 | [] | no_license | spiritman1990/my-first-python-workbench | 50540b6129d4f7ecb491408c8dc260b174d47cb9 | 29f291a03f6d014d42a609f505305b476f890a80 | refs/heads/master | 2021-01-15T11:49:21.222282 | 2015-11-13T10:30:41 | 2015-11-13T10:30:41 | 41,729,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | #!/usr/bin/python
# Filename: method.py
class Person:
def sayHi(self):
print 'Hello, how are you?'
p = Person()
p.sayHi()
# This short example can also be written as Person().sayHi()
| [
"36917663@qq.com"
] | 36917663@qq.com |
07e7f05c86afb0643a2049ea590bf26c009ad663 | ec6f8a634c607e65300bf9812c79dbf780c351d0 | /raspberrypi_files/field4off.py | 6f2ec758df0e1d77b337b75f96e84b9be40755e0 | [] | no_license | prateek-chouhan05/Home-automatation-system | ccbcd8edaba74ac5564c49187517a2991b4163db | aafc3eebe45bdc075f04403b63e44e67ab0c2bc7 | refs/heads/master | 2023-07-09T13:56:28.028748 | 2020-11-09T06:29:13 | 2020-11-09T06:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.output(23, GPIO.HIGH)
| [
"tanmay.ambadkar@gmail.com"
] | tanmay.ambadkar@gmail.com |
1b3f396208e7862399916f34d807270190ffc84e | 369d32f172f7e6a0fd3a5a95062437aaaf79bba6 | /tests/rsa_enc/ex2/debug_lib.py | 7be0246c66c8e5f8e74678bd05de45c1ac770dad | [] | no_license | amit-choudhari/cryscanner | b9f6dc723817e294a4927a4c9bcca84446b40d13 | 3865e875f14dbb319d68f01010128825db115ae7 | refs/heads/main | 2023-08-04T03:48:37.851387 | 2021-09-26T12:25:32 | 2021-09-26T12:25:32 | 391,231,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | import gdb
import logging
import gdb.printing
import time
import os
apis = ['RSA_public_encrypt','RSA_private_decrypt','EVP_PKEY_CTX_set_rsa_keygen_bits', 'EVP_PKEY_CTX_set_rsa_padding']
class SimpleCommand(gdb.Command):
fo=open("log.txt","w+")
fi=open("scratch.txt", "w+")
def __init__(self):
... | [
"amitsirius92@gmail.com"
] | amitsirius92@gmail.com |
53ce967712dde0cbc2a8c1fcf7bf9a94a2737fbf | e7ea21a55c7733c05ff1a25bb2d47560e1ac4e0c | /src/housing_value_n_walkscore.py | c28c4e3da2f13580367d25d87bd64b09c8e8ce53 | [] | no_license | YueHao96/inf510_project | b6620ffbcf32d1e1af0ba6886cdd6086c591f236 | 194bed74cd896330c4a4738ddd4050e2e6499306 | refs/heads/master | 2020-09-29T05:34:51.287374 | 2019-12-13T11:33:45 | 2019-12-13T11:33:45 | 226,421,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,439 | py | #!/usr/bin/env python
# coding: utf-8
import csv
import requests
import json
import re
from bs4 import BeautifulSoup
#import sqlite3
import sql
zws_id="X1-ZWz1hgvbaoqsy3_3tnpx"
key="3eeaa7fc9f4a7ea97878520335caf746"
def get_cities():
"""The function is used to scrape city names in LA county from wik... | [
"noreply@github.com"
] | noreply@github.com |
3ad7105c5241d18e90f315ec62cb2cee19973942 | f4e6cda74a1393ec96d0effdeccf02fb02314f8c | /strict_typing/__init__.py | d3840cfea0d3a5e0d39b23d6c9af02a62a71cef5 | [
"MIT"
] | permissive | whdev1/py-strict-typing | 427c67e7b15dc6a661943dd515dca118952500ca | 9266ff037a1cd179034ac77170fead3fc1a3ef46 | refs/heads/main | 2023-08-02T18:15:42.494565 | 2021-09-27T02:05:12 | 2021-09-27T02:05:12 | 409,736,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,682 | py | from copy import copy
from inspect import signature
from typing import get_type_hints, Union
from types import FunctionType as function
class _typed_function:
__origcall__ = None
__params__ = None
__types__ = None
def __init__(self, func: function):
self.__origcall__ = func.__cal... | [
"anon-github@hinson.ai"
] | anon-github@hinson.ai |
d52897974dca71896f8010946a8b51fba5aaf253 | 7d78a18fcb8f34cc84e9439bd19cf491e3e0ec49 | /Code/Particle_Identification/msc-hpc/OLD/OLD/round1/feedforward_python/model/model1/feed_forward_1_dropout_window_sum.py | f0f09278e5686de8562c923232116972c2fce202 | [] | no_license | PsycheShaman/MSc-thesis | 62767951b67b922ce5a21cad5bdb258998b7d2ea | 34504499df64c7d6cc7c89af9618cd58d6378e8e | refs/heads/master | 2022-03-12T07:17:57.309357 | 2019-12-10T21:17:39 | 2019-12-10T21:17:39 | 151,471,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | print("==============================================================================================")
print("starting........................................................................................")
import glob
import numpy as np
print("imported glob, np.............................................. | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
20295597a1a0e27950bcdb817065231c55557d7b | 841e3d8497b6f779e2106ff8009d9de6664ae113 | /root/urls.py | 29dd0cd9573a11299ac7134477e374eaa6d6dafd | [] | no_license | tungnt620/happypiggybank | 6f3ff5b22be418e44aa99fb032e1e33f9a9168b9 | 9ddf4da37a94b7f570a9f22501b520f8eb19e711 | refs/heads/master | 2021-09-14T19:40:37.606921 | 2018-05-18T07:02:47 | 2018-05-18T07:02:47 | 106,623,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | """root URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"thanhtung.nguyen@ved.com.vn"
] | thanhtung.nguyen@ved.com.vn |
d4073c28b2eba9cecc9125245c66c2a9f0448b86 | d0de9d9cd78ecff44ff931e4361da29edb2073ef | /ARK Software/Task3/finding templete of level 2.py | c69a62386e48678076cac897c2a6af6a4de91d17 | [] | no_license | ankitranjan5/ARKTask | b77e3d8a8b96ef58416823b3cb6e06a0c9038d27 | 390e932d72ba75ad17f4bcf3bf679174f0be9793 | refs/heads/main | 2023-06-01T00:28:05.558551 | 2021-06-19T12:03:58 | 2021-06-19T12:03:58 | 377,490,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import cv2 as cv
import numpy as np
img = cv.imread('Task round\zucky_elon.png')
template = cv.imread('level 1 chupi image.png')
h = np.shape(template)[0]
w = np.shape(template)[1]
img2 = img.copy()
result = cv.matchTemplate(img2, template,cv.TM_CCOEFF_NORMED)
min_val, max_val, min_loc, max_loc = cv.minMaxLoc... | [
"noreply@github.com"
] | noreply@github.com |
f7a06c6b66d1d7b10dec13cdc0b0c20e99db3505 | 34be4c498093701b3e2fe806ab5e4087bba0d83e | /Q684.py | 47c72bdfb045ef584b917a9cb11a29e7fc66e185 | [] | no_license | iMashiro/QuestoesHuxley | a2872695fa518455bf474502d4f0c506f8975be0 | 8cebd8db2bdde3e6c2c9a0dbb70fd4db2cb6a332 | refs/heads/master | 2020-03-27T17:56:41.420496 | 2018-10-30T11:09:43 | 2018-10-30T11:09:43 | 146,886,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | parametros = input()
parametros = parametros.split()
casas = input()
casas = casas.split()
encomendas = input()
encomendas = encomendas.split()
parametros = list(map(int, parametros))
casas = list(map(int, casas))
encomendas = list(map(int, encomendas))
dicionario = {}
i = 0
while i < parametros[0]:
dicionario[casas[... | [
"noreply@github.com"
] | noreply@github.com |
4f474113f69909f678d9a00677b4e9219da14dbf | a2f88bfa884b9003045c7a1f3ee344a4aeccdd40 | /note.py | 6eaf540c2a8e67f1918197dc4c40ba7dca7984ef | [] | no_license | deverser/ABB_drive_param_diff | 7659432c7234a523699a98b8f4636429e3e280fb | 90ab65ee4efd32bf2e4f5f96490fc87f18734d0c | refs/heads/master | 2022-09-06T05:18:30.245774 | 2022-08-10T11:47:25 | 2022-08-10T11:47:25 | 177,919,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from tkinter import *
from tkinter import filedialog as fd
def insertText():
file_name = fd.askopenfilename()
f = open(file_name)
s = f.read()
text.insert(1.0, s)
f.close()
def extractText():
file_name = fd.asksaveasfilename(filetypes=(("TXT files", "*.txt"),
... | [
"alexmal74@gmail.com"
] | alexmal74@gmail.com |
bff17f1452138b1f5d43b8ce8a2cfba8add771b5 | 8c17ed3760bc64be1c2ff4cade8047df57751159 | /saildrone/models/route.py | 79520ee8b76cac96436cd5d5ecaf4360c74c12ff | [] | no_license | askiefer/saildrone | b8f00880de3f29c8edb015f5f06bcd2e26043b43 | ed15e221e2a9dff05d5b50ffc15ae14818b7f76b | refs/heads/master | 2020-04-07T13:33:40.471564 | 2018-11-20T15:40:46 | 2018-11-20T15:40:46 | 158,411,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.contrib.gis.db import models
class Route(models.Model):
'''
Models a drone route
'''
class Meta:
required_db_features = ['gis_enabled']
route = models.MultiLineStringField(srid=4326)
| [
"anna@kevalaanalytics.com"
] | anna@kevalaanalytics.com |
aa43c453817cb402a595dcda4a55653d1befd1e8 | 9db35644ff1603eef458558fd6a40aaf06356fc1 | /特征预测/主成分降维/PCA_CircuitBreaker.py | ce4c4e1bfec7b333f7d4a3bd5305e454bd394ede | [] | no_license | ldcrchao/PycharmProjects | 0bf83e3d44d96be7bad5dbcc47dfcd8fa729883a | a6e8bb4ec211f241aecd4be344d04c14e14f59b3 | refs/heads/main | 2023-04-19T15:12:50.070297 | 2021-05-09T08:07:42 | 2021-05-09T08:07:42 | 374,944,409 | 1 | 0 | null | 2021-06-08T08:50:56 | 2021-06-08T08:50:56 | null | UTF-8 | Python | false | false | 6,403 | py | #%%
# -*- coding UTF-8 -*-
'''
@Project : python学习工程文件夹
@File : PCA_CircuitBreaker.py
@Author : chenbei
@Date : 2020/12/17 10:33
'''
from matplotlib.pylab import mpl
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['Times New Roman'] # 设置字体风格,必须在前然后设置显示中文
mpl.rcParams['font.sans-serif'] = ['SimHei'] #... | [
"noreply@github.com"
] | noreply@github.com |
cb9254defb1dc4344f4dc02075844f7a20a3bc07 | 69729ce2a0d2147b7b52e14008d8fc9960e3c099 | /fast_rl/core/metrics.py | 3233e2fc611672b7ffd218e9a04ec813f65eb1a7 | [
"Apache-2.0"
] | permissive | swelchm/fast-reinforcement-learning | 2f5d5aa51830f774ca0e6814833a736029e88f4d | 9649b6d1bb931c4e4b7200a73b172325a1d8346f | refs/heads/master | 2020-07-29T16:04:10.926035 | 2019-09-18T02:43:50 | 2019-09-18T02:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import torch
from fastai.basic_train import LearnerCallback
from fastai.callback import Callback, is_listy, add_metrics
class EpsilonMetric(LearnerCallback):
_order = -20 # Needs to run before the recorder
def __init__(self, learn):
super().__init__(learn)
self.epsilon = 0
if not has... | [
"jokellum@northstate.net"
] | jokellum@northstate.net |
cf18bbbb07fc91e196affd7b0f2463dcc8c10e58 | 939d249bf5ef283144475a544c7f48fd36bcd86a | /seedbox/torrent/parser.py | 428d32e14c59909b10e59bb25a9677e70094949f | [
"MIT"
] | permissive | shad7/seedbox | 3809606ee7bfb6e7b34541b133f6ae444145f310 | 6ed912a8e1c65a66603c693172ac65eac7f818c0 | refs/heads/develop | 2020-06-02T10:07:58.531071 | 2015-07-29T04:42:34 | 2015-07-29T04:42:34 | 9,738,034 | 5 | 2 | null | 2015-06-17T04:26:58 | 2013-04-28T23:45:21 | Python | UTF-8 | Python | false | false | 6,558 | py | """Parses a torrent file."""
import io
import logging
import os
import six
from seedbox.torrent import bencode
LOG = logging.getLogger(__name__)
class ParsingError(Exception):
"""Holds parsing error messages.
Error class representing errors that occur while parsing
the torrent content.
"""
def... | [
"kenny.shad7@gmail.com"
] | kenny.shad7@gmail.com |
7dec4fd5d7eb9e2a8f7a0211e17b89f742b2e587 | 3fff0adf969f47bb3da53e2b56ad72af658cfe9f | /IITJHealthCare/HealthCentre/migrations/0002_prescription.py | 3fc67e9e77b4214740124c7ba25df9092966973a | [] | no_license | Manish9473/HealthCenter-Webapp | d62d4a6f15da711551ff818208c06f5e1b248bc3 | 0256291b3550ac64598bc30fe423788e22bd4c69 | refs/heads/master | 2022-12-25T06:01:27.171057 | 2020-09-26T11:05:30 | 2020-09-26T11:05:30 | 298,789,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # Generated by Django 2.1.5 on 2019-02-10 20:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('HealthCentre', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Prescription',
... | [
"kumar.53@iitj.ac.in"
] | kumar.53@iitj.ac.in |
829867d9d8ec99574bd8aaa34dee709898c1c390 | 695b4e671a694bab0d41e6de294d0e97e1dc051b | /snli5.py | af4b8df44162eec89c6a5b3ac9678e141156de4d | [] | no_license | letavino/bird | 8ebdd2938fc0c074a72393f3db5e2c431dac3af6 | 6221df7abaa021fc693dac68debdfa11f5f913c1 | refs/heads/master | 2021-06-18T03:17:21.399079 | 2019-09-09T20:42:47 | 2019-09-09T20:42:47 | 105,765,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,408 | py | import numpy as np
import json_lines
import time, datetime
from unidecode import unidecode
from keras.utils import to_categorical
import keras
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
import tensorflow as tf
import tensorflow_hub as hub
from keras... | [
"noreply@github.com"
] | noreply@github.com |
51f9b3b1b918fc50ed7ea88401859a1e966bb365 | e90c91d02e199d2b39a2f49f7399fcb20a317a35 | /morning/second_session/parse_struc.py | a5da6ab0b61ecee16cca9bc7133e9349237d4b3b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andersgs/canberra_workshop_day2 | 92c2e252a608877cb7117787f84f77500af54d1e | 75007409d6458409b71951331a24d27e3032c1e3 | refs/heads/master | 2016-09-15T05:51:52.084209 | 2014-03-27T03:04:54 | 2014-03-27T03:04:54 | 17,579,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/env python
'''
parse_struc.py <chain_prefix>
e.g.,
./parse_struc.py chain_K2
'''
import sys,os,re
prefix = sys.argv[1]
def find_files(prefix):
'''
will return a list of files in the current directory that contain the prefix
'''
return [f for f in os.listdir('.') if re.search(prefix,f)]
def parse_fi... | [
"andersgs@gmail.com"
] | andersgs@gmail.com |
23b68c952f8eef5e972814b8c1323a75da7a4145 | 900635f697d67341ebde7d20ecd2788905ac7767 | /cms/migrations/0004_auto_20210314_1730.py | 6a079f4b64658e6468d8e7a310ce1a05bc09883d | [] | no_license | unaguna/portfolio-django | 7f271a5b06556e81d505fa088124b0a4e0dfdce5 | 4456fe13b0581fb1c6b70a4cadd213de93864aa7 | refs/heads/main | 2023-03-25T22:27:45.347075 | 2021-03-20T08:13:03 | 2021-03-20T08:13:03 | 349,658,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # Generated by Django 3.1.7 on 2021-03-14 08:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cms', '0003_auto_20210313_1946'),
]
operations = [
migrations.RemoveField(
model_name='article'... | [
"k.izumi.ysk@gmail.com"
] | k.izumi.ysk@gmail.com |
b675e00f7e897ede441ba41eba68cb7f9be08d24 | 3d145abc06306f2a68efa15077b1cb6f14a3c7d0 | /brandoncoin_genesis.py | 4e4a6af6c806946cf2d8e8b174803fb3a6ffc0b6 | [] | no_license | Brandon05/Tiniest_Blockchain | 9be5224cecb31ac4a63e85b2f025e19747a5e278 | 20ef57b32a0e8cde5bf1754d8d1c5f375474116b | refs/heads/master | 2021-07-13T01:26:46.868445 | 2017-10-15T23:25:33 | 2017-10-15T23:25:33 | 107,056,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import datetime as date
from brandoncoin_block import *
def create_genesis_block():
"""
Manually create a block with
index zero and arbitrary hash
:return: genesis block
"""
return Block(0, date.datetime.now(), {
"proof-of-work": 9,
"transactions": None
}, "0")
| [
"brandonsanchez05@gmail.com"
] | brandonsanchez05@gmail.com |
6243ec060f8be600433c8a5818986edad129bb27 | 5e7d0921887469c651faf90ecfcf3736d4802f6b | /HinataKikuchi/chapter01/knock03.py | 828f8a835ecd17b5ddc1d5cf230aeb25bed896a9 | [] | no_license | tmu-nlp/100knock2021 | 5e4029f2ee330fa95269740d7bd372be533d125d | 0a9f8150588648fbd86d51b4c9168acf3e45ed98 | refs/heads/main | 2023-07-03T14:00:08.604762 | 2021-08-05T09:23:16 | 2021-08-05T09:23:16 | 359,641,037 | 10 | 1 | null | 2021-08-05T09:22:25 | 2021-04-20T00:57:21 | Jupyter Notebook | UTF-8 | Python | false | false | 264 | py | strings = 'Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.'
ans = strings.split()
print(ans)
###ANS###
#求めたいのは単語の文字数のリストなので回答が違うゾ
print([len(s) for s in ans]) | [
"haiao4041@gmail.com"
] | haiao4041@gmail.com |
18299bf862afb8cacee70275fc0106262c766e72 | fc300e990d4748ecd6da10bcbd6cbb7bc41d27b1 | /project2/test/test_lrv_hat_nw_2_of_single_t.py | dda9f8659a7e1fafa8827ef6db927596319e986b | [] | no_license | borisgarbuzov/project2 | 46ba9310143b85d558874fbeab93c3cafd730467 | 2ee908fe29dabff19869887b01d55629174b9b5c | refs/heads/master | 2023-06-26T21:03:01.364442 | 2020-07-07T20:43:30 | 2020-07-07T20:43:30 | 217,331,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from src.lrv_hat_nw_2_of_single_t import lrv_hat_nw_2_of_single_t
from timeit import default_timer as timer
import numpy as np
import unittest
class Test_lrv_hat_nw_2_of_signle_t(unittest.TestCase):
def test_lrv_hat_nw_2_of_single_t(self,
sample=np.array([1, 2, 3, 4, 5]),
... | [
"makovskiyms@gmail.com"
] | makovskiyms@gmail.com |
79c2b3fa152614e3c590109c2ddf024d5dcca380 | 69ecf73040deec4fcb34cac22e15254a4d0a2f6e | /loggers.py | 294529db21e4ec2b704db4c039c96f8b37a774f5 | [] | no_license | erelin6613/ML_Logger | e64a59ad0cb2cb9f83a2d7c4bccd72c3686674fa | 1c29cd8d6a1f65b6077e14228d6ca106f49a76f7 | refs/heads/master | 2022-11-19T12:33:03.765426 | 2020-07-25T07:41:15 | 2020-07-25T07:41:15 | 282,395,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | import os
import csv
import time
import threading
import functools
import logging
import json
from datetime import datetime
def deduce_model(model):
from torch.nn.modules.module import Module
from sklearn.base import (ClassifierMixin,
RegressorMixin, BaseEstimator, ClusterMixin)
if isinstance(model, Module):
re... | [
"valentineburn@gmail.com"
] | valentineburn@gmail.com |
9ddf85b9b6ff2b50660ca5aacd4c0e949f1ebaf0 | 2756869b89326d07b9ec29d6817310825398b169 | /PiSpec20_LED_oceanoptics/OO_LED_spec.py | d1567b86cf34973a40dc7606b8191790a8dc044d | [
"MIT"
] | permissive | acpo/PiSpec20_LED_oceanoptics | 2629375b7dbbcdaa112e2c1f809c3d9ea7f9e008 | 1cf4f169cb36513afa24c0023fa3d18b71b199d5 | refs/heads/master | 2020-09-05T09:58:11.022047 | 2019-12-20T19:44:00 | 2019-12-20T19:44:00 | 220,066,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,595 | py | # ## pigpio daemon must be running first
# either issue 'sudo pigpiod' from terminal
# or use 'sudo systemctl enable pigpiod' to allow auto-start on boot
# disable with 'sudo systemctl disable pigpiod'
# ##
import seabreeze.spectrometers as sb
import numpy as np
import matplotlib
matplotlib.use("TkAgg")
from m... | [
"noreply@github.com"
] | noreply@github.com |
f5a0e695f1a50cbc20de0463e14d5f362bb054ee | 6499d0b71b19fd4416bfd74fa9fd88e3d0b0618a | /king_phisher/client/dialogs/exception.py | 70b21f7817f9aa453b632b5a60c493afdd5eccd9 | [
"BSD-3-Clause"
] | permissive | Meatballs1/king-phisher | dfb0a539a2d0455113b40698f7151521774addb1 | a16b1de055260f6f33d8c1fd0765bd06ffb733c2 | refs/heads/master | 2020-05-20T17:55:30.441239 | 2015-10-15T19:21:22 | 2015-10-15T19:21:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# king_phisher/client/dialogs/exception.py
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# ... | [
"zeroSteiner@gmail.com"
] | zeroSteiner@gmail.com |
fb4eb2d3fc2b6b557ef5f486e64a77a51611a0bc | 87a6d7e83a25cb3b1696fb6094fda88858754c19 | /src/review/views.py | a2a5efdfd814e12518e46fac60f1fd21ab2a9492 | [
"BSD-3-Clause"
] | permissive | tegarty/socialrating | 20b45f8eb233fed0b69ae0fd8110cf8a73f1f782 | b80888ee8e637bd0a5517614c78235d563fead2e | refs/heads/master | 2020-04-20T08:42:52.231718 | 2018-12-06T17:57:43 | 2018-12-06T17:57:43 | 168,747,496 | 1 | 0 | BSD-3-Clause | 2019-02-01T19:11:19 | 2019-02-01T19:11:19 | null | UTF-8 | Python | false | false | 4,163 | py | from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django import forms
from django.shortcuts import redirect, reverse
from item.mixins import ItemViewMixin
from rating.models import Vote
from te... | [
"thomas@gibfest.dk"
] | thomas@gibfest.dk |
bf41fe93de037aa8e1359ef03847e1799623c699 | 1709d77fe679b0c2b68ce3be1d11feb539018821 | /Needleman_Wunsch.py | e4dfb6ae088d1301518213a0f2b2f311c4cca5e7 | [] | no_license | RoxanneDewing/Biological-Sequencing | a3cbba351c9febf009b98359e0e8a82e87f21b9f | 108be59bbe430240b9b47cb60ceaf5d798c95e27 | refs/heads/master | 2020-12-27T01:09:51.874205 | 2020-02-02T04:14:06 | 2020-02-02T04:14:06 | 237,714,548 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | import numpy as np
#This is a recursive TraceBack for NeedleMen Wunsch, it explores every path back to F(0, 0)
def TraceBack_Wunsch(i, j, n, m, temp_n, temp_m, arr, lst):
if (i==0 and j==0):
return lst.append([temp_n, temp_m])
if (i==0):
TraceBack_Wunsch(i, j-1, n, m, "-"+temp_n, m[j-1]+temp_m, arr, lst)
if (... | [
"noreply@github.com"
] | noreply@github.com |
6c95a83cddc72797d8ba2454dfc1051fd4a72573 | fc5e9514eebe4e6423083b1b066264f048603799 | /driver.py | 1220bb958f83a5c5d7b2c0905ee01cd0360dacab | [] | no_license | truongnguyenlinh/marketing_analytics | fc9ee0050fb551a5b29d51f9fd7fde7b447ad0f5 | 5eed99b742e633d066fc0630c624f59c50713542 | refs/heads/master | 2023-04-08T17:27:56.862091 | 2021-04-16T08:59:35 | 2021-04-16T08:59:35 | 357,425,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.stats import norm
import warnings
warnings.filterwarnings('ignore')
pd.set_option("display.max_columns", None)
pd.set_option("display.max_rows", None)
pd.set_option("display.width", 1000)
def prepare_df(data):
... | [
"ltruong28@my.bcit.ca"
] | ltruong28@my.bcit.ca |
d10e767d72cdab9836c4d3638f52e6136f36d302 | 7a74633361f89d3bf234776a3fd352a2cdeccc9b | /Arrays.py | 3cda5c191d2eb3702b9fb176def6fbcc2a98fd05 | [] | no_license | khushal2911/hackerrank-30days-of-code | 97bebc178f05491ca247e0ecfaaa03d733c3750e | 453ef0a955732c4eb682829aedc41318a701e26a | refs/heads/master | 2022-12-07T15:42:10.656202 | 2020-08-10T05:58:19 | 2020-08-10T05:58:19 | 284,650,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input())
arr = list(map(int, input().rstrip().split()))
print(" ".join([str(arr[n-i-1]) for i in range(n)]))
| [
"noreply@github.com"
] | noreply@github.com |
a3fb7180882889a442a4ea4d87be4fbbea6d7f9e | 9074257bae2b933912df961f08b1823eacad3d55 | /app_base/forms.py | 26e95f1b20ebf924392764279e137f50436d6346 | [] | no_license | bedlex/final-project | dc0d90e8647843952d5a945916e8d9334fa16f89 | 5003fb7acc0cb551bd22a0e2f95ccd54b8e0dcbc | refs/heads/master | 2020-09-26T07:23:31.148373 | 2019-12-05T22:40:07 | 2019-12-05T22:40:07 | 226,201,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField, MultipleFileField
from wtforms.validators import DataRequired, Length, Email, EqualTo
from flask_wtf.file import FileAllowed
class RegistrationForm(FlaskForm):
username = StringField('user n... | [
"almaztransportinc@gmail.com"
] | almaztransportinc@gmail.com |
ee2c11888cd4367182d112d90dd8ed59a43d181f | e8706c26bb06263f4e6492e141b701c2293e06a0 | /graph_traversal/1260_DFS와BFS/가은/sol1.py | 46c2bb894a7cb9a6db5237be491a8fa9b9537ec3 | [] | no_license | ssabum/algorithm_study | a8d20a70d14ea398b07d43e2550abd25576ab8c2 | 473c1c89502c44f08e82280af144c01af44535d8 | refs/heads/master | 2023-04-21T11:35:07.075751 | 2021-05-03T08:09:18 | 2021-05-03T08:09:18 | 345,941,181 | 2 | 1 | null | 2021-05-03T08:09:18 | 2021-03-09T08:51:16 | Python | UTF-8 | Python | false | false | 1,260 | py | from collections import deque
import sys
sys.stdin = open("input.txt")
T = 3
for tc in range(1, T+1):
N, M, V = map(int, input().split())
edge_input = [list(map(int, input().split())) for _ in range(M)]
# print(edge_input)
edge_list = [[] for _ in range(N+1)]
for e in edge_input:
n1, n2 =... | [
"shrkdms3389@naver.com"
] | shrkdms3389@naver.com |
5dc3e5eb54602009e6f8a02450af13bf34566f0c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_workers.py | 925498db6457cf5ab2857092165fbc8709111a52 | [
"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 | 238 | py |
from xai.brain.wordbase.nouns._worker import _WORKER
#calss header
class _WORKERS(_WORKER, ):
def __init__(self,):
_WORKER.__init__(self)
self.name = "WORKERS"
self.specie = 'nouns'
self.basic = "worker"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d56f23cc972c99e69f424e86bff1a9736e7e8d2f | 49710e3fef905bf3de86ed51cd74b22da9ea83a7 | /barChart/bundesligaTopFive.py | 0c9782282b556c07ecad98ea5d30e4820a8ae58d | [] | no_license | tjsdla520/VisualizationProject | 52c06457b36764ce703c9f7d78fc35f8f33e05bb | d7c87af95f903975a4084f09b42af55793b8385b | refs/heads/master | 2023-06-26T22:00:53.738280 | 2021-07-26T05:40:38 | 2021-07-26T05:40:38 | 374,260,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
################################################
#한글 깨짐 방지 설정
plt.rc('font', family='Malgun Gothic')
#저장파일 이름 설정
cnt, PNG, UNDERBAR = 0, '.png', '_'
CHART_NAME = 'bundesligaTopFive'
#정보가 담긴 파일
filename = '../bundesliga.csv'
##############... | [
"noreply@github.com"
] | noreply@github.com |
fafd6acdb83668e2523fefd141073e72445aa0c3 | 8c466de1fb9de881718b6f59a71e02f54963ea96 | /DJCelery/settings.py | 20c38704059e817d454b264b1fca88630e817064 | [] | no_license | IsaacNewLee/DjCeelry | d17837b50cda8f4a2d96b1f36d953956b54fa7ad | 06f5c6cdddeb4bbf130fe52bde5c32922cd66c5e | refs/heads/master | 2022-02-18T20:31:47.997005 | 2019-09-13T14:18:47 | 2019-09-13T14:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | """
Django settings for DJCelery project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"635434705@qq.com"
] | 635434705@qq.com |
44ef0d48cd4f5834426ca51b1aa632623165b1ff | fd4c0363e407b9be4d6b0a897ca15400333ce05d | /graphics/DummyGraphicModule.py | f9dbe9a56ea0af76ef905b1ae0a7cee9a9d7d080 | [] | no_license | junghyun397/TetrisXQ | 13be3477a45a938368c74225e53e8ce9dd68c8e9 | 16106b47210fe1d0b8497ce2171dac02f1896694 | refs/heads/master | 2020-04-10T12:03:13.996028 | 2019-09-22T12:51:59 | 2019-09-22T12:51:59 | 161,010,029 | 13 | 3 | null | 2019-01-29T14:46:43 | 2018-12-09T06:06:30 | Python | UTF-8 | Python | false | false | 269 | py | from graphics.GraphicInterface import GraphicInterface
class DummyGraphicModule(GraphicInterface):
def draw_graphic(self, tetromino_y, tetromino_x):
pass
def set_tetris_model(self, tetris_model):
pass
def pump_event(self):
pass
| [
"junghyun397@gmail.com"
] | junghyun397@gmail.com |
4a0ce61e2d5550b8108f7b67f5fa15ed1337f07c | a18868e1c1c9103b9b60fdbdf29926225fee35c0 | /leetCode/GoatLatin.py | b38330f6cb743da2ec90e6625deaa32dd16eb934 | [] | no_license | walkershashi/myCoders | d8f4db6239b38f519e1c03fce4a6d3f957aec090 | 22cef0a6ba9d7a53f8e0de6bc383d82c1c774852 | refs/heads/master | 2022-12-07T04:07:19.087454 | 2020-09-05T15:11:17 | 2020-09-05T15:11:17 | 270,000,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | class Solution:
def toGoatLatin(self, S: str) -> str:
if not S:
return
vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
S = S.split()
for i in range(1, len(S)+1):
if S[i-1][0] in vowels:
S[i-1] += 'ma' + 'a'*i
... | [
"skssunny30@gmail.com"
] | skssunny30@gmail.com |
00f5f7f0fb9dd81d402dae15c1697694b631bf76 | 2f675a6df5e509ff0a3a58ed992aaaf5fbfed0d9 | /source/resources/hosters/vidlox.py | 7831e5f7ab4c6f23b42611aee363fde6296530ab | [] | no_license | kar10s/TvWatch | 459c38f9ba3db90b3ecae92460f3d460ebb82923 | 39a4dca8cf48ba255074bc738d09839eecae6ef2 | refs/heads/master | 2020-11-29T16:03:22.168652 | 2019-12-22T20:17:39 | 2019-12-22T20:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | #-*- coding: utf-8 -*-
#Vstream https://github.com/Kodi-vStream/venom-xbmc-addons
from resources.lib.handler.requestHandler import cRequestHandler
from resources.lib.parser import cParser
from resources.hosters.hoster import iHoster
from resources.lib.util import dialog, isKrypton
class cHoster(iHoster):
def __in... | [
"tvwatch.kodi@outlook.com"
] | tvwatch.kodi@outlook.com |
ebf9b4a30f7ce8099e5020d7dc4df985c9055dc2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2138/60585/257214.py | 6a0f930bf2e12114cdb52468e38c6cf2a97dc12e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | arr=list(map(int,input().strip().split(',')))
k=eval(input())
n=len(arr)
isM=False
for i in range(0,n-1):
j=i+1
temp=arr[i]
while j<n:
temp+=arr[j]
j+=1
if temp%k==0:
isM=True
break
if isM:
break
print(isM) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1d01b17589e954f3dd2578ee3bc07e5bbed380dc | ff99c677aba11e27c252f773b52cd54f5de79279 | /ctt-server/openapi_server/models/project.py | 0220631032783c2d8b7da9e44e5e0a94cbfdbdab | [
"Apache-2.0"
] | permissive | radon-h2020/radon-ctt | b7eeb82f59e36e2a258d0a2ba9cd9483eb3dd247 | 97fcf5e800a0129d24e119b430d94f07ca248ba9 | refs/heads/master | 2023-01-04T23:44:49.611599 | 2021-09-15T15:34:41 | 2021-09-15T15:34:41 | 235,379,642 | 0 | 7 | Apache-2.0 | 2022-12-27T15:56:38 | 2020-01-21T15:48:45 | Python | UTF-8 | Python | false | false | 2,758 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
class Project(Model):
"""NOTE: This class is auto generated by OpenAPI Generat... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
457a4af2a0527e35d4fe94dd64c5d4d54bd607c0 | 3a494af9cbf3d55e3b61e77c29080eea4b33307b | /blog/views.py | b7fab63fa47485f4b4b84526fe36e7f0b24696a0 | [] | no_license | ghdwlgus0607/girls | 6e93f152db1d50f8372f125a996bf851c1b959c8 | fbaead0bd37cd374a6e123fafba77e91789f27d7 | refs/heads/master | 2020-08-04T04:01:58.682634 | 2019-11-18T05:24:16 | 2019-11-18T05:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
def post_list(request):
# views.post_list 함수는 이제 DB에서 필요한 데이터를 가져와서
# post_list.html에게 넘겨줘야 함
posts = Post.objects.filter(publish... | [
"ghdwlgus0607@naver.com"
] | ghdwlgus0607@naver.com |
4ef38efee3db65f28657b1d721188e859341b52e | e27e113d73cf90da91d9161847460b4dbe18e593 | /venv/bin/odfimgimport | 368c91ac7a55e4e2110b041bf80d546acaba76f9 | [] | no_license | rsdeus/dt-store | 14a75ddca20029a1ee44c10abd8e7c3af46219cd | 94292e4a3fcd51e4fe89b29d360bad82a0a3689a | refs/heads/master | 2023-02-27T00:22:18.291658 | 2021-01-26T18:12:23 | 2021-01-26T18:12:23 | 220,774,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,070 | #!/home/renato/Projetos/src/dtstore/venv/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2007-2009 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
... | [
"rsdeus@gmail.com"
] | rsdeus@gmail.com | |
f5053d55e7dfd80861b7d268d991e8ad2d4ff27e | 780a18c55af7a8744b408e1efd4aaf08a0d3a3e7 | /passbook/api/__init__.py | d5deace33843d920f8be361ce93e1885635aed8c | [] | no_license | squidnee/passbook | 86507c6675122f1b67333f55048eb55f3dff664a | 551de76b95049185820a3fc8729fbc126c423994 | refs/heads/master | 2020-03-22T05:27:31.718897 | 2018-07-21T12:30:32 | 2018-07-21T12:30:32 | 139,567,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | def dict_factory(cursor, row):
d = {}
for idx, col in enumerate(cursor.description):
d[col[0]] = row[idx]
return d | [
"smaples@stanford.edu"
] | smaples@stanford.edu |
b5df670ed20498c70ae17c07a2a477581d6430c3 | 5b354510e56b50c7526248136c54f0de86a69c24 | /mysite/settings.py | 87ca334c3fb203a9ca069d9abbe0558714f60016 | [] | no_license | powerfulsheron/GeepsLicenseCenter | 2d420f88ac219fbe3c271f4fff1b309594e996a2 | 6ffeda427f3012b298dc8067404a6d231e443188 | refs/heads/master | 2020-03-20T00:21:47.831301 | 2018-10-16T09:15:02 | 2018-10-16T09:15:02 | 137,040,989 | 0 | 1 | null | 2018-10-16T08:41:35 | 2018-06-12T08:29:38 | Python | UTF-8 | Python | false | false | 3,199 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.4.
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
# ... | [
"lorenzo.canavaggio@laposte.net"
] | lorenzo.canavaggio@laposte.net |
b15189617cbdd65ffa64ed54945ace70f2e754d1 | b517ddb3ddbf0cf016535f75f17c1a186fda19d4 | /inventory/admin.py | bfc64c330a91f4511eeb0dd58ef0b61bc5d32846 | [] | no_license | tsinghgill/FirstDjangoApp | ee06f5fef6af5e07f3c57829fd6fda3db40b864d | 9f456214ced678a4d121227035ac4ff2964385c0 | refs/heads/master | 2021-12-14T09:33:15.779691 | 2016-06-29T20:03:50 | 2016-06-29T20:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
from .models import Item
class ItemAdmin(admin.ModelAdmin):
list_display = ['title', 'amount']
admin.site.register(Item, ItemAdmin) | [
"tanveet.gill@gmail.com"
] | tanveet.gill@gmail.com |
6d0ff22e12319d91f5df4a4590db755faef894d5 | ef19ebc1cd0d673d0b69ea73feace437b1e28154 | /project/transactions/forms.py | ed957ec8a33351c5cdd49048ddc730e1577461f7 | [] | no_license | salmansajid/IMS | 2f6c2189287a14f8137a1ace64a06cccfb23cacc | 2883f841aee2bbb7c8a24e9bec4ce129ce7d17af | refs/heads/main | 2023-06-04T01:22:07.626112 | 2021-06-27T07:42:58 | 2021-06-27T07:42:58 | 380,503,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,984 | py | from django import forms
from django.forms import formset_factory
from .models import (
Supplier,
PurchaseBill,
PurchaseItem,
PurchaseBillDetails,
SaleBill,
SaleItem,
SaleBillDetails
)
from inventory.models import Stock
# form used to select a supplier
class SelectSupplierForm(forms.Mo... | [
"salmansajid92@gmail.com"
] | salmansajid92@gmail.com |
1bb3336fbed092dabfeff60c76c8e38019e5566f | 3735dce3931b6159b8f83c91348ee52e1e80769a | /ensebmles/Agregation/agregation.py | a198586cc00c67b886d18feeafdd892a18a5eacc | [
"MIT"
] | permissive | GavrilovMike/EnsembleLearning | e1d5a47e7a5d6c0c30df6e475b3c1f35e31c3627 | 6badedf2b6e9f2d3b01c11246c32916864ad3848 | refs/heads/master | 2022-12-12T22:05:17.818325 | 2020-02-07T08:13:21 | 2020-02-07T08:13:21 | 238,803,548 | 0 | 0 | MIT | 2022-12-08T04:24:03 | 2020-02-06T23:10:22 | Python | UTF-8 | Python | false | false | 754 | py | import pickle
import numpy as np
print("\n 1st Q Table: \n")
with open("/Users/mgavrilov/Study/ENSEMBLEALGS/learn/main_QTable.pkl", 'rb') as f:
Q_table_1st = pickle.load(f)
print(Q_table_1st)
print("\n 2nd Q Table: \n")
with open("/Users/mgavrilov/Study/ENSEMBLEALGS/learn/rotated_QTable.pkl", 'rb') as f2:
... | [
"mgavrilov@aquivalabs.com"
] | mgavrilov@aquivalabs.com |
12dcdd8aca64f39aa454f09779d895751d7b85a2 | 3dbc51d8928d90823ca507a550bb3ea3a9ac02f0 | /examples/titanic_keras_exp.py | f98db0280d6fff1700712566bcb19bb410a941a5 | [
"MIT"
] | permissive | SimonCarozza/autolrn | 869a3441267f8d89b7aca09b04c4a26d5d5646ae | d0875844a3e9b4fc22510ef320aa498e339b6192 | refs/heads/master | 2022-02-26T13:10:45.678162 | 2019-10-23T21:13:23 | 2019-10-23T21:13:23 | 189,698,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,211 | py | """Evaluate Keras Classifiers and learn from the Titanic data set."""
from sklearn.model_selection import StratifiedKFold
from sklearn.pipeline import Pipeline
from sklearn.dummy import DummyClassifier
from pandas import read_csv
# from pandas.plotting import scatter_matrix
import matplotlib.pyplot as plt
import nump... | [
"simoncarozza@gmail.com"
] | simoncarozza@gmail.com |
06acec666b3d111f5a3ce4fd440aa9cb4b82dc57 | 66f47030d53b4338138dc3a0ef1c1f6369000cbd | /todo/test_forms.py | 0a24cd051ad14bdcaadede4721de79c62d25a8d4 | [] | no_license | Baynuts/django | 4c75a54413a8e43b3ba2bad18fe796487fffce18 | 3340ebdff6a94fb805c15b446965bde83956f1ee | refs/heads/master | 2021-06-20T21:10:49.927241 | 2019-12-01T15:52:41 | 2019-12-01T15:52:41 | 221,563,422 | 0 | 0 | null | 2021-06-10T22:20:15 | 2019-11-13T22:26:45 | HTML | UTF-8 | Python | false | false | 502 | py | from django.test import TestCase
from .forms import ItemForm
# Create your tests here.
class TestToDoItemForm(TestCase):
def test_can_create_an_item_with_just_a_name(self):
form = ItemForm({'name' : 'Create Tests'})
self.assertTrue(form.is_valid())
def test_correct_message_for_missing_name(se... | [
"github@baileygb.com"
] | github@baileygb.com |
a3d39360dcbd2e1a093274c5cd218d6cce15b86a | 0d9b2842b799b2f27886c2a9904e5a9cc05634dc | /ermine/test/units.py | 1cfa27af28b64ddf3e4b4683be8bfc78c3c6febc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kitfactory/ermine | fbf544402b30bbae72fcc79ee4d66667b0166fa3 | d2095a52ac7e8feab0846d82077214433202805f | refs/heads/master | 2020-04-22T03:15:06.821078 | 2020-01-07T15:25:06 | 2020-01-07T15:25:06 | 170,079,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from typing import List
from .. base import Bucket, OptionInfo, OptionDirection, ErmineUnit
class FooUnit(ErmineUnit):
def __init__(self):
super().__init__()
@staticmethod
def prepare_option_infos() -> List[OptionInfo]:
o = OptionInfo(
name='message_key',
direction... | [
"kitfactory@gmail.com"
] | kitfactory@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.