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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e17765330e011bed1c2dfc615cd74fc673c461d | 6ebee3511ad3ce131341e0a37d04a66f86d0c1fc | /comments/urls.py | 6dc6dd4a2faf8d3c1217de8876b07ea5a72fd611 | [] | no_license | annfr542/ratemyshogun | 25b18d6aaadd7a60f3e25f6cb5709796241a1732 | b2785f16e85175f090724ca6e59512aef5d0ccf0 | refs/heads/master | 2021-01-03T07:47:11.516448 | 2020-02-17T13:15:42 | 2020-02-17T13:15:42 | 239,987,405 | 0 | 0 | null | 2020-02-17T00:04:52 | 2020-02-12T10:39:04 | HTML | UTF-8 | Python | false | false | 280 | py | from django.urls import include, path
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'comments', views.CommentViewSet)
router.register(r'love', views.LoveViewSet)
urlpatterns = [
path('', include(router.urls)),
] | [
"git@karlinde.se"
] | git@karlinde.se |
0fd3b3241fcb8a7a9539c91b1e00d1ca84cd191b | e9a33e068f1a60fcef86e1f90eda2f64b52e73c4 | /poi_id.py | eaf912e63defaae9d5f26cc091f5909a62c9c56d | [] | no_license | Tbelaagcakn/Udacity_P7 | b5df34dd20df6220e76dd774df0d5888094d646d | b923c48a5a429463d2841ef94a0202bde97606d7 | refs/heads/master | 2020-03-23T23:06:05.317127 | 2018-07-24T22:01:17 | 2018-07-24T22:01:17 | 142,215,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,606 | py | #!/usr/bin/python
# importer functions
import sys
import pickle
import numpy as np
from sklearn import linear_model
from sklearn import tree
from sklearn.cross_validation import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.svm import SVC
fr... | [
"butterworth.teagan@gmail.com"
] | butterworth.teagan@gmail.com |
c420d7a9fc7816087de4262d2731b0d42e2d9e96 | 770710253983911ea0ed00cb3111f2d3fbadd200 | /Functions/Notes.py | 9bfbd8381c561a79989c37f78497bfe0be88ee97 | [] | no_license | anshdholakia/Full-Voice-Assistant-Application | 4185ec88ed50f7477853bbf75905708dc3bb5c6d | c0b88aaece48c2aac4e159f5f7772e1df4c7dd1c | refs/heads/main | 2023-05-27T16:38:31.500721 | 2021-06-14T20:43:48 | 2021-06-14T20:43:48 | 376,944,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | import subprocess as sp
programname = 'Notepad.exe'
filename = 'Mynotes.txt'
sp.Popen([programname,filename])
| [
"anshhiro.dholakia@gmail.com"
] | anshhiro.dholakia@gmail.com |
a0df9ac05e88fad95bd93a42f58be9a0d2994745 | 35b45b5225f911072287b7f0888f4ef4cc70f3d9 | /tests/test_colors.py | 4b316eecdba5bf03008b0ff14ef89c60f50cc7d2 | [
"BSD-3-Clause"
] | permissive | heuer/segno | 54e9b583dbc33b016715bb13f97a9013a37cc9d4 | 11556378fa8949fa5ad6dddbf8cc5f4a667038af | refs/heads/master | 2023-06-21T02:01:45.620206 | 2023-05-02T22:09:31 | 2023-05-02T22:09:31 | 64,920,252 | 441 | 59 | BSD-3-Clause | 2023-06-15T05:00:05 | 2016-08-04T09:08:52 | Python | UTF-8 | Python | false | false | 8,562 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 - 2022 -- Lars Heuer
# All rights reserved.
#
# License: BSD License
#
"""\
Tests against the colors module.
"""
from __future__ import absolute_import, unicode_literals
import pytest
from segno import writers as colors
def test_illegal():
with pytest.raises(ValueErr... | [
"heuer@semagia.com"
] | heuer@semagia.com |
1b90c28e59e5d4a5998f4d6c2027b2eacdd7467f | 1d9356626550004745bbc14de9a3308753afcea5 | /sample/tests/while/led.py | 2d6f9c7e92fa414d08993efca62d0115951efe0e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | hoangt/veriloggen | e916290aa15c63f03ec0ad8e9c8bdf183787fbe9 | 8e7bd1ff664a6d683c3b7b31084ff4d961c4c841 | refs/heads/master | 2021-01-14T12:01:03.686270 | 2015-09-18T06:49:20 | 2015-09-18T06:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import sys
import os
from veriloggen import *
def mkTest():
m = Module('test')
clk = m.Reg('CLK')
rst = m.Reg('RST')
count = m.Reg('count', width=32)
m.Initial(
Systask('dumpfile', 'uut.vcd'),
Systask('dumpvars', 0, clk, rst, count),
)
m.Initial(
clk(0),
... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
3233cf987d1529f760bef548e7a959952c37b30f | 98e1155518b292341e60908d12233a2b130cb043 | /helpers.py | cabba2a794108cc9b151778f12f403862f7ef99b | [] | no_license | bkj/pbtnet | 5443a580e1bca91e4c293ae2be8bdefb85a44ce0 | e8c7b11be92e5ff9e4facccf908e87611b7f72bb | refs/heads/master | 2021-05-02T13:49:50.894351 | 2018-02-08T03:48:25 | 2018-02-08T03:48:25 | 120,707,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""
helpers.py
"""
from __future__ import print_function, division
import numpy as np
import torch
from torch import nn
from torch.autograd import Variable
def to_numpy(x):
if isinstance(x, Variable):
return to_numpy(x.data)
return x.cpu().numpy() if x.is_cuda else x.... | [
"bkj.322@gmail.com"
] | bkj.322@gmail.com |
90cb117fe81c46994501a28739c375f1f067da8f | 256644d14bd15f8e1a3e92c95b1655fd36681399 | /backup/mypybrain/angn.py | 2f5f9b3be43027253373cedda5b32243ca76c87d | [] | no_license | mfbx9da4/neuron-astrocyte-networks | 9d1c0ff45951e45ce1f8297ec62b69ee4159305a | bcf933491bdb70031f8d9c859fc17e0622e5b126 | refs/heads/master | 2021-01-01T10:13:59.099090 | 2018-06-03T12:32:13 | 2018-06-03T12:32:13 | 12,457,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,739 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 14 17:48:37 2013
The activation function was the hyperbolic tangent in all the
layers, except in the output layer where the threshold function was
used with a threshold value of 0.5 and an expected binary output.
All layers have astrocytes
Weight limiting? Decision of n... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
a0c8ab45ee293002eb2896412bc5d8ad46314948 | f62fd455e593a7ad203a5c268e23129473d968b6 | /swift-2.13.1/test/unit/obj/test_server.py | 03e40a730d03da0616400cb61955cb0a5ba0eec7 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 340,294 | py | # coding: utf-8
# Copyright (c) 2010-2012 OpenStack Foundation
#
# 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... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
e83ef981ade8159a74fb28725be34ea4e32f12bb | 0464dbe98f9cbde449a0cdc53460df8871ff0410 | /MachineLearningAndAIFoundationsValueEstimations/Ex_Files_Machine_Learning_EssT_ValueEstimate/Exercise Files/Chapter 6/feature_selection.py | decec26f727f4ecd64cf56cf49922e68a9a2b9b8 | [] | no_license | Gurubux/LinkedIn-Learn | 6ad2cde76aa6012ea5795c4478a5186dd83bcfa6 | a7625ca289f5b75ca1d65777e929f5adbdba553d | refs/heads/master | 2022-05-22T04:10:52.001252 | 2022-05-01T16:27:57 | 2022-05-01T16:27:57 | 194,151,321 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import numpy as np
from sklearn.externals import joblib
# These are the feature labels from our data set
feature_labels = np.array(['year_built', 'stories', 'num_bedrooms', 'full_bathrooms', 'half_bathrooms', 'livable_sqft', 'total_sqft', 'garage_sqft', 'carport_sqft', 'has_fireplace', 'has_pool', 'has_central_heating... | [
"d_gurbux@yahoo.com"
] | d_gurbux@yahoo.com |
ccd95d42aaf08c0741f3019bcbc7eb7649bdcbc6 | ba3168d4b6932fc73d9fb8aa83a02a31e536e096 | /courses/BigData/tutorial/tutorial4/vector_dule.py | a855758d89631704118f272af40bef8f943b2fd7 | [] | no_license | xuhappy/xuhappy.github.io | dce02b72920e6997c1695a54b54c84dfb2991f85 | 63a01fd23b7688a6497a6063e318a5b6412710e2 | refs/heads/master | 2023-02-21T16:54:32.622865 | 2023-02-15T11:59:05 | 2023-02-15T11:59:05 | 78,627,996 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,791 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
#import xlwt
import numpy as np
path="./data/parsec_2.log"
kvmcpu=16
kvmmem=16
nodecore=32
nodemem=1
cache_l3=1
imp1=225
imp2=113
def kvmvec(place,kvm):
vec=[]
placement = []
vmnumber=int(len(place)/2)
... | [
"xu900611@163.com"
] | xu900611@163.com |
0801f7f90f0e933d99852bb658048de229aa47bd | 16c1ec9ef98198a13c3b8288867a1249ef381724 | /foreground/models.py | d461acf80bb90679613390a2e948646598ec238c | [] | no_license | GKrator/sbx | be476e0fe155a0fbc5260c4950a6b4543babd7aa | d59ad98a0785557e44256344059f5d7037e4716c | refs/heads/master | 2021-01-17T11:24:44.788435 | 2016-07-11T14:31:31 | 2016-07-11T14:31:31 | 59,398,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.db import models
# Create your models here.
class Person(models.Model):
name = models.CharField(max_length=30)
email = models.CharField(max_length=30)
subject = models.CharField(max_length=30)
message = models.CharField(max_length=255)
| [
"iamxifan@163.com"
] | iamxifan@163.com |
4ec59db94642f82eb9818ed5ac9f887f33b389ee | c75c6e331b965274e888383b053eaa1041310e7d | /learn/algorithms/stack.py | ef750aa72855fb4e05d64b1e590d267b2ddef2e8 | [] | no_license | poleha/py_examples | d8f0b418bbd1da796a6a5a5943d0727e5af2bafc | 2b272e2f76dcd892be628483ed7df0721c525dd7 | refs/heads/master | 2020-12-20T23:40:51.144546 | 2017-11-07T06:22:36 | 2017-11-07T06:22:36 | 56,224,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items) - 1]
def size(self):
... | [
"pass1191"
] | pass1191 |
ac19680243ea502dad7cc96ee6667e26441ba9f8 | 3040fb6c84b42335ad6cda8ee3cc0e1c8c88f18e | /polls_app/mysite/mysite/urls.py | b537d76b031806e77f1dd979c7480b0b4f1b35fa | [] | no_license | KhusniddinovUz/Django | 9ef59d4cabedb933b3cd685cb803463027c1a2c2 | 387d682069bd12d7ecb8aeabeb3f3b0b699199ef | refs/heads/master | 2023-08-02T06:10:21.360575 | 2021-09-19T11:55:18 | 2021-09-19T11:55:18 | 315,987,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('polls.urls')),
path('admin/', admin.site.urls)
]
| [
"khusniddinovuz@gmail.com"
] | khusniddinovuz@gmail.com |
682c3006239ca02d254b7791ca951c15dbe875dc | cd931198652185627b0bd5a13594a5bf4abe952b | /src/testing/hello_detection.py | 72208a85714c536a9421233317a34f7af44b967a | [
"MIT"
] | permissive | qu0b/AST | dfce63155faa7912f76e71434da907f5c2c55a33 | 5767dc5de6af92659fee91d1724f6d7b7eb1f521 | refs/heads/master | 2021-03-24T12:29:44.377996 | 2018-01-30T11:39:33 | 2018-01-30T11:39:33 | 108,642,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,791 | py | # -*- encoding: UTF-8 -*-
""" Say 'hello, you' each time a human face is detected
"""
import sys
import time
import json
import requests
from naoqi import ALProxy
from naoqi import ALBroker
from naoqi import ALModule
from optparse import OptionParser
import xml.etree.ElementTree as ET
def excell():
root = ET.p... | [
"st3f4n.s@googlemail.com"
] | st3f4n.s@googlemail.com |
22d284e6024960ee996e0e63cfb1a897b4f8961f | c938e81195a8c8e55d97361e81696f5669ce035d | /authapp/views.py | 82b260d601ad51d80e89f4a1c9b2f379379a62dc | [] | no_license | varunnkrishna/ecommshop | 6ae7bde8ce324d97681e26a262ca4a3ddcafbe6a | 4afd8f3a362205843b40da1af1fe3171497d77e6 | refs/heads/master | 2020-08-31T13:24:38.536107 | 2019-11-12T12:13:05 | 2019-11-12T12:13:05 | 218,700,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,523 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
import json
from django.contrib.auth.models import User
from django.shortcuts import render
from django.http import HttpResponse
from django.utils import http
from .models import Register
from .forms import LoginForm
from .forms import R... | [
"90.varunkrishna@gmail.com"
] | 90.varunkrishna@gmail.com |
f07f19f260db04c99168a9086e762d2241a66eaa | d3eb700ac300f1337810b666205c28a0c09ca906 | /problems/migrations/0004_auto_20190625_1748.py | 3c8ba7f589d7a659ba783f54f8a82f8a9ff7bd4d | [] | no_license | prateek2211/quizme | 9f5c4b6963d68870e3a4fe2bcbad233f41a59abc | 298bec83f92408a7f493c834dda0e32d6baff7a4 | refs/heads/master | 2022-12-16T17:33:17.408041 | 2020-05-30T06:02:01 | 2020-05-30T06:02:01 | 195,078,205 | 0 | 0 | null | 2022-12-08T05:52:24 | 2019-07-03T15:08:50 | Python | UTF-8 | Python | false | false | 694 | py | # Generated by Django 2.2.2 on 2019-06-25 17:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('problems', '0003_auto_20... | [
"psachan@cs.iitr.ac.in"
] | psachan@cs.iitr.ac.in |
22d609a1e0b11f908b42d7cfcefe3e6f44eae021 | 1fdf153c14eb70eba8ad59b41ac0e53cf7611bd0 | /backend/scholar/apps/projects/migrations/0003_auto_20180407_2358.py | fde882ce866125c2fcbe55fe35548de7461cfe6f | [] | no_license | kegeer/xsv2 | b0814ff853e54c260701b6945f1e3083d66169f1 | 1a8bdea0fe946727ae8283c5a5346db88ddeb783 | refs/heads/master | 2022-12-15T00:22:24.467965 | 2018-04-12T23:48:52 | 2018-04-12T23:48:52 | 129,317,782 | 0 | 0 | null | 2022-12-08T01:00:45 | 2018-04-12T22:27:28 | JavaScript | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-04-07 15:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_auto_20180407_2348'),
]
operations = [
migrations.RenameField(
... | [
"zhangkeger@qq.com"
] | zhangkeger@qq.com |
c5972fb966191bc7e25aec8a9fcf0929d506b19e | 857461387f55d9f34d5c7e408f03887dc68abcf9 | /08_Recursion_and_Dynamic_Programming/SubsetsGeneration/solution.py | 85ed6f5fdab96451319d5d907dee29d7be42eccc | [] | no_license | efrencodes/Interview-Questions | 579995e18e14fcc8f21aa5b6ab647ab775d2a5ac | 1049d6a6eb5fe3f28e9d4eb9064cf53af0e68559 | refs/heads/master | 2022-04-05T05:07:55.717290 | 2020-02-09T21:16:48 | 2020-02-09T21:16:48 | 294,033,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | a = ['a','b','c','d']
def subset(arr, cur, res, ind):
# print(cur, ind)
if ind > len(arr):
return
if ind == len(arr):
test = list(cur)
res.append(test)
return
subset(arr, cur, res, ind+1)
cur.append(arr[ind])
subset(arr, cur, res, ind+1)
cur.pop()
res = []
subset(a, [], res, 0)
print(res)
print(len(res... | [
"noreply@github.com"
] | efrencodes.noreply@github.com |
ab4b58c9f57d81b86dab68de0f9e7f748fa7cce3 | 7680dbfce22b31835107403514f1489a8afcf3df | /Exercícios_parte_2/exercício__090.py | ee3ab125b849a111a10a421c0ee9807bb6c49dac | [] | no_license | EstephanoBartenski/Aprendendo_Python | c0022d545af00c14e6778f6a80f666de31a7659e | 69b4c2e07511a0bd91ac19df59aa9dafdf28fda3 | refs/heads/master | 2022-11-27T17:14:00.949163 | 2020-08-03T22:11:19 | 2020-08-03T22:11:19 | 284,564,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # dicionários
print('--' * 17)
print(' CADASTRO DE NOTAS')
print('--' * 17)
aluno = dict()
aluno['nome'] = str(input('Nome: ')).strip().capitalize()
aluno['med'] = float(input('Média de {}: '.format(aluno['nome'])))
print()
print(f' - O nome é {aluno["nome"]}.\n'
f' - A média é {aluno["med"]:.2f}.... | [
"noreply@github.com"
] | EstephanoBartenski.noreply@github.com |
f43106f2bbad97ce033f51800ec1c592fd55ad07 | c9de0bbab78c282c9e9ca8b66215bd1f1fb52d3c | /fundamentos/desafio.py | 4065056bfd80f07c9c06df0d82311a171e767b46 | [] | no_license | eduardoldk-hub/curso_python | c8e6a34ee90cc6a5ca9654abf13cea54c197a51a | 6dfe629594de754b7d014876f744152953c02a3b | refs/heads/master | 2022-08-20T19:40:29.681084 | 2020-05-20T19:11:02 | 2020-05-20T19:11:02 | 265,662,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # Calcular quantos porcento do salario está comprometico a pagar
# as despesas
salario = 3450.45
despesas = 2456.2
porcentagem_gasta = salario - despesas * 100 / 2
| [
"eduardoldk@outlook.com"
] | eduardoldk@outlook.com |
6a30cbfb25c3756b58f923dd2d8b1a34a2949c11 | 02316317d5016b309c59fee039c09f349910fab4 | /pt_restore.py | 95551cd42e2d6746634a5d81edec09e6d418ff2c | [] | no_license | JaChouSSS/the-pytorch-implementation-of-Kindling-the-Darkness-A-Practical-Low-light-Image-Enhancer- | 568ae742d041a20e05fa71790778bd96c5f15973 | f44eee315b6abfd7d9e92824900bf58bfe77c4ac | refs/heads/master | 2023-08-15T05:26:23.970127 | 2021-09-25T06:05:10 | 2021-09-25T06:05:10 | 289,166,381 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,836 | py | import random
from model3 import *
from pt_utils import *
import torch.optim as optim
import os
import torch
import glob
import cv2
import time
from torch.utils.data import Dataset, DataLoader
from padding_same_conv import *
######################### decomnet
#########################
def pt_grad_loss(input_r_low... | [
"958086580@qq.com"
] | 958086580@qq.com |
3675c81fa64f643435af8af8959c0960e81f4429 | a5592f706bf25484843eaa466f86ea3214a46ea2 | /practice.py | 9db1a194f636bfcc1afc0452c6be57614f92fc4c | [] | no_license | BOBKINGS1101/Practice | e54f6043bb110f2db962a80849a2a8c2ac5e24f9 | 86ced13a119bd612b5b3250bc6604b1031b860a7 | refs/heads/master | 2020-08-08T13:11:21.887998 | 2019-10-09T06:47:35 | 2019-10-09T06:47:35 | 213,838,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,528 | py | import re
import torch as t
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from collections import OrderedDict
import numpy as np
class ClassName(object):
"""docstring for ClassName"""
def __init__(self, arg):
super(ClassName, self).__init__()
self.arg = arg
class _Dens... | [
"844311505@qq.com"
] | 844311505@qq.com |
9e51c268e2e7071f710e2cada3da0c3dd7aadc10 | b3967ca7c0590014a8b7659f6d505e61d22e8322 | /5.시세DB구축 및 시세 조회API 개발/Analyzer.py | 3014c257949017d306ac53b866fd1141382ddef9 | [] | no_license | est22/FDA | abfa7a8891a5d603eed2762cc947056d9a8ea08d | 6fa69fa8052a57725cf33ec07d17f7251db7393f | refs/heads/main | 2023-02-26T13:26:55.415634 | 2021-01-31T17:51:06 | 2021-01-31T17:51:06 | 328,329,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | import pandas as pd
import pymysql
from datetime import datetime
from datetime import timedelta
import re
class MarketDB:
def __init__(self):
"""생성자: MariaDB 연결 및 종목코드 딕셔너리 생성"""
self.conn = pymysql.connect(host='localhost', user='root',
password='', db='Stock', charset='utf8')
... | [
"noreply@github.com"
] | est22.noreply@github.com |
4345f43ceebfae6bf9b4514241a243202d936d70 | 6d71de4e88dcb7d04f6d3a18736d393e12f8d087 | /scripts/packages/mylistbox.py | 27d62cd97b87fe9edbbcf35263ca9292f8eac3c9 | [
"MIT"
] | permissive | wyolum/Alex | 71075c30691229e8eb28afa06a6ab44c450b14d4 | 03f1d8ae0107454d18964e33777ffc4c0c1a1951 | refs/heads/main | 2023-07-02T16:11:57.088323 | 2021-08-05T17:59:04 | 2021-08-05T17:59:04 | 338,686,528 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #https://tk-tutorial.readthedocs.io/en/latest/listbox/listbox.html
import tkinter as tk
def listbox(parent, items, item_clicked, item_selected, n_row=40):
def myclick(event=None):
idx = lb.curselection()
if idx:
out = lb.get(idx)
search.delete(0, tk.END)
search.... | [
"wyojustin@gmail.com"
] | wyojustin@gmail.com |
ce65e1e932a3e2ddcb25657bc25a563aa6027622 | 5225e78b02c661d1ff7fdd873ded60eda394811f | /generator/__init__.py | e447551f789a8f641820315294498da5b3e2cad4 | [] | no_license | sn0wf1llin/tcap | 1d3676b8e225c68c9b96c14c0c3801b0ff7dc835 | 93af911f3e0652961a25b2b992f943f6acf59b2a | refs/heads/master | 2021-01-24T10:30:06.260318 | 2016-12-02T10:18:23 | 2016-12-02T10:18:23 | 69,731,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | __author__ = 'MA573RWARR10R'
import digits_voc_
import traindata_generator | [
"MA573RWARR10R@h3llca7.local"
] | MA573RWARR10R@h3llca7.local |
dc0957d43234dbfb017b836dc15558c38e372156 | 27ad60a591ccedeb7babd16e5ef11dc9d555cc52 | /MI_Net.py | 01b172e2ca553fb32b4b29561ba5ea1b27dbe1f5 | [] | no_license | kilakila-heart/MINNs | 6cfc305c726d05f8068b103f4f2d6772811e512a | 9e1ad121fc0f2396a4f8edcc2f6e12f9ec08f466 | refs/heads/master | 2021-06-24T00:08:34.558901 | 2017-09-07T06:51:09 | 2017-09-07T06:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,106 | py | import numpy as np
import sys
import time
import random
from random import shuffle
import argparse
from keras.models import Model
from keras.optimizers import SGD
from keras.regularizers import l2
from keras.layers import Input, Dense, Layer, Dropout
from mil_nets.dataset import load_dataset
from mil_nets.layer impor... | [
"624993525@qq.com"
] | 624993525@qq.com |
aaf496d7464998178eef745a50663c6a58a5db80 | d9125031f498665a621fd71f0078c0400f782a6b | /decrypt_ipl.py | 42be36a33f3388d33342feea690c006ef3a47558 | [
"MIT"
] | permissive | DaveeFTW/iplsdk | 8076c28249ce733cae00c3920191ee7dbd87bec4 | f07668e4d16965930d5a06c1b8f1664c6bcd2fbf | refs/heads/main | 2023-09-01T15:04:09.205335 | 2023-08-23T22:59:14 | 2023-08-23T22:59:14 | 167,315,667 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,603 | py | #!/bin/env python3
import sys
import struct
from Crypto.Cipher import AES
from Crypto.Hash import CMAC, SHA1
from Crypto import Random
from ecdsa.ellipticcurve import CurveFp, Point
from ecdsa.curves import Curve
from ecdsa import SigningKey
_k4_k7_keys = [
'2C92E5902B86C106B72EEA6CD4EC7248',
'058DC80B33A5BF... | [
"git@davee.pro"
] | git@davee.pro |
7a1b250d70836eea4d41151baba4c99d37dad85c | 5d8cecc379bb828694662c865930be8c75d26943 | /evennia/accounts/accounts.py | 626c4a60f3a83d7b5cfa779d6967e68f0be50d6e | [
"BSD-3-Clause"
] | permissive | job/evennia | 714e0f3699875169ce0987e4ebc6b5340bef8cbd | 5aaa0fcfee6082a3a2259a6562c459c5f21fb591 | refs/heads/master | 2021-05-08T23:56:14.348366 | 2018-01-30T17:22:24 | 2018-01-30T17:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,062 | py | """
Typeclass for Account objects
Note that this object is primarily intended to
store OOC information, not game info! This
object represents the actual user (not their
character) and has NO actual precence in the
game world (this is handled by the associated
character object, so you should customize that
instead for ... | [
"griatch@gmail.com"
] | griatch@gmail.com |
b11373667fb38f0359908cf991b2060b7e448e86 | 92ad6aaacc2e2fc215b40455a2999982a0f7f40a | /addno.py | ffdcdb6221a600520186f5ecf2006dbc5b4bd67d | [] | no_license | yashkoli/python-examples | aaa4f5b40749360b13f8777f54ff54d5ba7a8654 | 8cd6f8f96f39d020acdab2006413437bee039cf3 | refs/heads/master | 2021-04-30T12:11:27.430921 | 2018-02-12T16:44:45 | 2018-02-12T16:44:45 | 121,269,597 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | f=open("addno.txt","w")
ch='y'
while ch=='y':
n=input("enter no:")
f.write("\n")
f.write(n)
ch=input("do want contune")
f.close
| [
"noreply@github.com"
] | yashkoli.noreply@github.com |
e98ba7543f9bd03d820dd5971ece16c7d6274084 | daab8631fa9c992a57da364d4fd0084bdab47ad4 | /ex041.py | cf814a482865c1b4b6a4c09385094c69e97e5476 | [
"MIT"
] | permissive | danoliveiradev/PythonExercicios | e784f2f15db61c4cd22691f465e453a84babee11 | e788191e755f54cd3c51ca24a2d3a2ed32923b12 | refs/heads/main | 2023-08-28T22:31:51.587786 | 2021-09-26T14:00:51 | 2021-09-26T14:00:51 | 410,567,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from datetime import date
print('-=-'*20)
print('\033[93mCONFEDERAÇÃO NACIONAL DE NATAÇÃO\033[m')
print('-=-'*20)
anoNasc = int(input('Digite o ano de seu nascimento, com 4 digitos: '))
idade = date.today().year - anoNasc
if idade <= 9:
print('De acordo com a sua idade sua categoria é: \033[32mMIRIM')
elif 9 < idad... | [
"danielroliveira.dev@gmail.com"
] | danielroliveira.dev@gmail.com |
b7e6f05612f03e546e673dbfb7c26d8bf885158c | 3f14a1a5541e6159e9d8c59d76fb9a96e4d485d5 | /lists/migrations/0002_item_text.py | 36d352e94053bad2b583e9232893e96b622434f1 | [] | no_license | mkwokgithub/django-tdd | 78ae0c1c94540dbe224680a8c9c52a0b5e3555a0 | 11893e56569e0575490ecd6d56c7256c65a7cce6 | refs/heads/master | 2021-05-16T04:23:21.058812 | 2018-01-04T02:13:40 | 2018-01-04T02:13:40 | 105,926,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-21 18:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lists', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"mkwok@cisco.com"
] | mkwok@cisco.com |
c7ecf4d39fc5da58cbcc70de44441b852b8e730e | a30b39a642421254be04576a02d55d38b6e52bcd | /achilles/tables/__init__.py | 2539b6dbacdf896634e872bf33cf057c10bd596a | [
"Apache-2.0"
] | permissive | blaxter/django-achilles | 5bfb334e95f8bdcf1fa8b751c5103ccf81283814 | ba696083ac42cd405640457fade6cf886dc99bb7 | refs/heads/master | 2021-01-21T18:43:54.214649 | 2014-05-20T17:00:15 | 2014-05-20T17:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from . common import Table
from . columns import Column, MergeColumn, ActionColumn
__all__ = ["Table",
"Column",
"MergeColumn",
"ActionColumn"]
| [
"exekias@gmail.com"
] | exekias@gmail.com |
14426566868cacddadbd19f62e605c6b93c000f9 | 5e55919666ff9e41d590682985328bc5f9eebc6b | /twitter_code_dicts.py | 230b9199c4e95a8ea665f76c5448bb93169d1555 | [] | no_license | rtflynn/twitter_flask_app | 2eaa30716f021b2283daa2c8da304ecf629e85c1 | 65ec3265bc490b4e1ecccfb702997b4a5aa0d6c4 | refs/heads/master | 2020-04-10T14:27:19.972441 | 2018-12-09T21:12:11 | 2018-12-09T21:12:11 | 161,077,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | langs = {'ar': 'Arabic', 'bg': 'Bulgarian', 'ca': 'Catalan', 'cs': 'Czech', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'es': 'Spanish', 'et': 'Estonian',
'fa': 'Persian', 'fi': 'Finnish', 'fr': 'French', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'id': 'Indonesian', 'is': 'Iceland... | [
"noreply@github.com"
] | rtflynn.noreply@github.com |
e2fdf25b7497cc5c1fcb0bf489b3eb9332e5bb62 | 5faa3f139f30c0d290e327e04e3fd96d61e2aabb | /mininet-wifi/SWITCHON-2015/allWirelessNetworksAroundUs.py | 4e0c7e784e0db877764da170ac32d83db2baa977 | [] | no_license | hongyunnchen/reproducible-research | c6dfc3cd3c186b27ab4cf25949470b48d769325a | ed3a7a01b84ebc9bea96c5b02e0c97705cc2f7c6 | refs/heads/master | 2021-05-07T08:24:09.586976 | 2017-10-31T13:08:05 | 2017-10-31T13:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | #!/usr/bin/python
"""This example is based on this video: https://www.youtube.com/watch?v=_C4H2gBdyQY"""
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch, OVSKernelAP
from mininet.link import TCLink
from mininet.cli import CLI
from mininet.log import setLogLevel
import os
def topo... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
14cd8c441283367752d210d1352a4860a053167c | 58cf8c5faf1a1e65029b6b4809a357d42c83e4e7 | /code/create_labels.py | dda494df6679a50dc39f96089952a08fe60dfef2 | [] | no_license | seanmandell-zz/mood-predictor-project | 98604c4a1e7a0b60fa3ebed6505a174d4da6f29b | afcce61ddebe17f61eb504efb9d4e57f34796663 | refs/heads/master | 2021-06-01T03:03:11.371700 | 2016-02-09T17:39:55 | 2016-02-09T17:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | import pandas as pd
import string
def _read_clean(fname):
'''
INPUT: string
OUTPUT: DataFrame
Reads in CSV file and returns a cleaned DataFrame.
'''
input_name = '../data/' + fname
df_phone_survey = pd.read_csv(input_name)
df_mood_qs = df_phone_survey[df_phone_survey['questions_raw'].m... | [
"sean.mandell1@gmail.com"
] | sean.mandell1@gmail.com |
49ffeca35c1b74f3925d227c6a8d353c78c2eee2 | 2601395b3cd4ddd61f6b09f21ee34c47a11e40e4 | /database/oauth2_password_bearer_cookie.py | 10ce006f65505b415606799f508b92a8ee73be0c | [] | no_license | taiharry108/fastapi-manga-server | 3197a98d5027a9069efd207c2c0b19c0075491c5 | e09102c9122cb1aa69bbeb9b87a868bf3c0073c2 | refs/heads/master | 2023-01-03T12:19:32.761083 | 2020-09-12T01:00:05 | 2020-09-12T01:00:05 | 288,659,800 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | from fastapi.security.oauth2 import (
OAuth2,
OAuthFlowsModel,
get_authorization_scheme_param,
)
from typing import Optional
from starlette.requests import Request
from starlette.status import HTTP_403_FORBIDDEN
from fastapi import HTTPException
class OAuth2PasswordBearerCookie(OAuth2):
def __init__(
... | [
"taiharry108@gmail.com"
] | taiharry108@gmail.com |
593744e9a93eac6acc19145fbf21f947a6a9a309 | 68b91532e97ed9fa6f299880418f2e1556fa8e09 | /sign/admin.py | c782bf4438eb6c1a99d7c84c4f766b9194774402 | [] | no_license | ffaa30703/python_webtest | 492e35ba6182d4b35ce656ca998329b35a9662ca | df445bfba017afc4faa92a3cea25420fdef1a00a | refs/heads/master | 2020-06-22T09:47:16.325807 | 2019-07-19T03:15:36 | 2019-07-19T03:15:36 | 197,693,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.contrib import admin
from sign.models import Event, Guest
# Register your models here.
class EventAdmin(admin.ModelAdmin):
list_display = ['id', 'name', 'status', 'address', 'start_time']
search_fields = ['name']
list_filter = ['status']
class GuestAdmin(admin.ModelAdmin):
list_display... | [
"ffaa30703@icloud.com"
] | ffaa30703@icloud.com |
78ec6e48e8c2ef6d7fc07399022eb1070c47acab | 6f04a28ac7128137dc68aea09363e4666d285ce3 | /car/migrations/0015_alter_car_options.py | c8d5ffe8c2bd93ab468870a884983b203be33e30 | [] | no_license | Temiwe/django_cars | 8cb1166318bff2aef81d1c44ccbccea2f3c9c4e6 | a740393aa02eb7714e03fa43edf73be352c3a76b | refs/heads/main | 2023-06-06T08:12:50.752552 | 2021-07-02T14:06:06 | 2021-07-02T14:06:06 | 376,011,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # Generated by Django 3.2.4 on 2021-06-26 10:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('car', '0014_auto_20210611_1454'),
]
operations = [
migrations.AlterModelOptions(
name='car',
options={'ordering': ['car_mode... | [
"vasilishin.a@icloud.com"
] | vasilishin.a@icloud.com |
72d2f9bd36e51696367187201ee7d11f8268d192 | c78ed0ab5d6321b536654986d69b137279a5f258 | /test_API.py | a02944fbf8b46786fd235deb1bb02c1d2597688c | [] | no_license | lstrait2/Wikipedia-Scraper | 597f84e1d0d47740fca1a6771c435dc5ddab06c9 | 23cab179a144d790abc303f87536d0450d76f104 | refs/heads/master | 2021-09-13T23:32:06.960510 | 2018-05-05T18:24:43 | 2018-05-05T18:24:43 | 106,033,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,953 | py | from model.graph.graph import Graph
import app
import json
import unittest
class APITestCase(unittest.TestCase):
def setUp(self):
app.app.config['TESTING'] = True
self.flask_app = app.app.test_client()
self.graph_data = Graph('model/data/data.json').to_json()
# test a request to an invalid URL
def test_get... | [
"lstrait2@d9c94b55-221a-4017-ad66-301122ff4019"
] | lstrait2@d9c94b55-221a-4017-ad66-301122ff4019 |
e8f1d5c9e09a71f694045e5a65ce896486a2da64 | e4042f342f611ebf829f56946c46bbb9af7e2d2a | /app.py | 5c4b86dfbdd6e635a25c2f5ca1d9e2778a1deabe | [] | no_license | ivxxi/flasknews | 8c3a41566ea205f6a82cd9c5dce5c159d589d2ac | 5090692311333fb4c1bcf345fe7143b3d87a66b4 | refs/heads/master | 2022-09-20T08:07:31.641415 | 2020-05-30T12:21:08 | 2020-05-30T12:21:08 | 268,073,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from flask import Flask, render_template
from newsapi import NewsApiClient
app = Flask(__name__)
@app.route('/')
def index():
newsapi = NewsApiClient(api_key="89978371303b45eb819a53f77fc04e5d")
topheadlines = newsapi.get_top_headlines(sources="al-jazeera-english")
articles = topheadlines['articles']
... | [
"crystalalice21@gmail.com"
] | crystalalice21@gmail.com |
ce5b510de836023c484377ea5231f685d4fc5fd1 | 69813e81a08c8ec041ad874661e0fcc9771f8ed0 | /Lab-3/lab3-database-demo.py | 3a885fccd4272387d5630bfc23c853f6862df8f3 | [] | no_license | jackharold/SYSC3010_jack_harold | 9fdcaca96caa40ce5420306712a6698c1159f102 | 2355d9818eac5affadee577b658b68fd2292f8c6 | refs/heads/master | 2022-12-25T18:45:01.487610 | 2020-10-09T19:13:59 | 2020-10-09T19:13:59 | 295,858,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #!/usr/bin/env python3
import sqlite3
#connect to database file
dbconnect = sqlite3.connect("main.db");
#If we want to access columns by name we need to set
#row_factory to sqlite3.Row class
dbconnect.row_factory = sqlite3.Row;
#now we create a cursor to work with db
cursor = dbconnect.cursor();
#execute insert stateme... | [
"jackharold019@gmail.com"
] | jackharold019@gmail.com |
fc10948d86708b6f47a13b0e303228135646e05a | e76f6fdb1a2ea89d4f38ac1ed28e50a7625e21b7 | /qytdjg_learning/views/Form.py | f0c4967d53b2ea07c09c61e006a240cff2f1d5c2 | [] | no_license | collinsctk/qytdjg_learning | 4d61a2a236f0bc4bf9be8d999352a8e3c1b87408 | 72a6d6153f6ca6bf9fccad76612450fdaf83d9fd | refs/heads/master | 2020-03-24T19:45:31.145059 | 2018-07-31T06:51:14 | 2018-07-31T06:51:14 | 142,943,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程!
# 教主QQ:605658506
# 亁颐堂官网www.qytang.com
# 教主技术进化论拓展你的技术新边疆
# https://ke.qq.com/course/271956?tuin=24199d8a
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.shortcuts import render
# 表单
# 获取客户端请... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
b346be7c08d4667def335dc1db37baaf9486db3f | 5ea13cd8f65c9a2d068d8f9778aea1a35850ea10 | /working/inference_clean.py | 70d9b529f9a826d73721ddeb20702487b08a4bff | [] | no_license | unonao/kaggle-inclass-gala | b6a0d076450022dc8df8e8c3d88b5b338933c071 | 3f140439bfdbda06ca54e41fe1aa9a7e32bfb450 | refs/heads/main | 2023-03-30T06:22:29.390521 | 2021-04-03T03:41:23 | 2021-04-03T03:41:23 | 341,119,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,561 | py | # misc を除いて、clean なデータのみで学習する
# stratifiedKFold の分割の仕方が他と同じになるように変形
import argparse
import json
import os
import datetime
import numpy as np
import pandas as pd
import torch
from torch import nn
from sklearn.model_selection import StratifiedKFold
from sklearn.metrics import log_loss
# 引数で config の設定を行う
parser = argp... | [
"naokiuno634@gmail.com"
] | naokiuno634@gmail.com |
f4c058174d0fe0641cc14e15cc4ebdc4fe708c8d | bb10d0cd5a6e8351f731aeb4db010d18d08455ea | /AWSChaliceDemo/chalice-env/bin/pyjwt | 442a044bd7f8b2507bd5db3693bc6f76026a0b75 | [] | no_license | LonelyProgrammer/Microservices | 99328ed0f7412149a2741a71458c8957b0b988ba | a13d9cdee8b57530ff111cb405a9f52e96a73103 | refs/heads/master | 2022-11-07T06:58:32.321743 | 2019-04-10T12:57:30 | 2019-04-10T12:57:30 | 154,377,809 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/Users/rishi/Documents/PersonalProjects/AWSChaliceDemo/chalice-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jwt.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sapbhat2@in.ibm.com"
] | sapbhat2@in.ibm.com | |
4fd19f0d6427d3780745d40289680a45f973c045 | 60f6f21eda76ad5d15c75ca14f00ba5f8d23fa15 | /selenium_2.1.py | 013ce30803a7cb47781a01e8052a2d2dbbcd175f | [] | no_license | TheGeodez/auto-test-course | aa08c34962ab96ccaaca3487930c9e58cca114df | 45f7caec815a2c9db441063a3cada5ecb38e9978 | refs/heads/master | 2020-06-24T12:29:04.723844 | 2019-07-26T07:30:52 | 2019-07-26T07:30:52 | 198,962,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from selenium import webdriver
import time
import math
link = "http://suninjuly.github.io/get_attribute.html"
browser = webdriver.Chrome()
browser.get(link)
treasure = browser.find_element_by_id('treasure')
x = treasure.get_attribute("valuex")
def calc(x):
return str(math.log(abs(12 * math.sin(int(x)))))
y... | [
"TheGeodez@yandex.ru"
] | TheGeodez@yandex.ru |
1a6b80d355ba49710ba8e7646cb0647d4dd27a2f | 0f592991f5c3976b2a3eef70043949f56d74133f | /carts/views.py | ef615f06dcecf60f39bdc55b69ce7edfbead49d7 | [] | no_license | Stephyo/kart | a7c8da4aa006ef9180aa431401e1555b64dd9519 | 73835cbc513675985f0fc6c1516142c9e2375566 | refs/heads/main | 2023-06-11T16:56:09.145073 | 2021-07-06T16:50:12 | 2021-07-06T16:50:12 | 374,589,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,295 | py | from django.core.exceptions import ObjectDoesNotExist
from carts.models import CartItem
from django.shortcuts import redirect, render, get_object_or_404
from store.models import Product, Variation
from .models import Cart, CartItem
from django.core.exceptions import ObjectDoesNotExist
from django.http import HttpRespon... | [
"sysyeo@gmail.com"
] | sysyeo@gmail.com |
775c3d99a00861bd1974087e2fe75b1216b73fe6 | 421b0ae45f495110daec64ed98c31af525585c2c | /File_Handling/first_file.py | 53c72b560b6263d87c4f8e3ce01570d86ad5fb4f | [] | no_license | Pradeepsuthar/pythonCode | a2c87fb64c79edd11be54c2015f9413ddce246c4 | 14e2b397f69b3fbebde5b3af98898c4ff750c28c | refs/heads/master | 2021-02-18T05:07:40.402466 | 2020-03-05T13:14:15 | 2020-03-05T13:14:15 | 245,163,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # python provied function and methos to preform such as creating, reading, opening, closing etc.
# open file in python
# Syntax
# fileobject = open(file_name[,access_mode][,buffring])
# NOTE : Default access_mode is read
# Create/Open file in write mode
# fw = open("emp.txt","w")
# write data into file
# ... | [
"sutharpradeep081@gmail.com"
] | sutharpradeep081@gmail.com |
2be507ead7c800beb19a0ae9d719aadbcd5f3a69 | c9c991eb14c7b246f33b7c64657cfe0407255c98 | /pages/migrations/0002_delete_image_upload.py | ec7f561a19317ddd1ac4db2e9aff373dd5f9ea12 | [] | no_license | parkashsatiyaar/skintone | 3e8f5e8174dd3cdd0b61800fb6b63818d57a035a | 2d560e18fd95f2d55c49492803c6ffd5e9f7c4fe | refs/heads/master | 2023-07-06T21:13:48.064316 | 2021-05-19T10:24:22 | 2021-05-19T10:24:22 | 367,822,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # Generated by Django 3.2.2 on 2021-05-18 07:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Image_upload',
),
]
| [
"parkashsatiyaar0008@gmail.com"
] | parkashsatiyaar0008@gmail.com |
6ca1322a0ebf00cda580166cd9db6449064f61cd | 618adefb8a0c608aa07d8d320ca7931a00e71b90 | /airflow/plugins/operators/data_quality.py | 97218e2365692fc89f81174026885f64a04f3b6e | [] | no_license | as234545/full-data-pipline-aws | 59e63253434e0a4c978b3aee6b57531d14bbc4ab | e0c5fa420d39c46ca537ff858d156fbd90cf8f1e | refs/heads/master | 2022-12-11T21:08:16.187365 | 2020-09-10T05:03:28 | 2020-09-10T05:03:28 | 294,254,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class DataQualityOperator(BaseOperator):
ui_color = '#89DA59'
@apply_defaults
def __init__(self,
redshift_conn_id = "",
data_q... | [
"noreply@github.com"
] | as234545.noreply@github.com |
3e4c40a81ec1679f5956768b06eec490e7105db4 | ce6e385087910e9647e8dcc63f515186765a9220 | /second_module.py | 8f4cfcaebecbb732398c0431837b5528097799d3 | [] | no_license | karvendhanm/corey_schafer_oops | 11226c58e25d719baac7bd3994000bb933e46552 | 63a04c1189d1137ce6c66724393192ba1ebe48bc | refs/heads/master | 2020-05-23T20:27:46.551099 | 2020-01-04T03:33:07 | 2020-01-04T03:33:07 | 186,930,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 17 11:15:46 2019
@author: John
"""
import os
os.chdir('C:/Users/John/PycharmProjects/corey_schafer_oops')
os.getcwd()
import first_module
first_module.main()
print("Second Module's Name: {}".format(__name__))
| [
"karvsmech@gmail.com"
] | karvsmech@gmail.com |
f87fdf18000dbea14286976f2daac0671442581c | 3ca67d69abd4e74b7145b340cdda65532f90053b | /BOJ/11052.카드 구매하기/rockmiin.py | d8f9ba374b88c82022c32c6ea323663a79389d39 | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 231 | py |
n= int(input())
p= [0] + list(map(int, input().split()))
dp= [0 for _ in range(n+1)]
dp[1]= p[1]
for i in range(1, n+1):
for j in range(1, i+1):
# print(i, j, dp)
dp[i]= max(dp[i], dp[i-j]+ p[j])
print(dp[-1]) | [
"csm971024@gmail.com"
] | csm971024@gmail.com |
ef323df622ea485ab6e388ecdb0dc1d6032a86ad | 0399aadc90aa00e1b1946bbb9ba574e1dd1ea8f0 | /utils/generate_second.py | 0479b55a10517f41646a58f1cad6f4712d59719e | [] | no_license | sensiarion/kr_tasks_2020 | 14f2c97488d3935417eef21314017b1834186acf | 8f3d10dd4089c6c68d22ef90a481128e10243934 | refs/heads/master | 2023-02-01T02:14:45.560187 | 2020-12-19T10:46:15 | 2020-12-19T10:46:15 | 322,796,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import random
count = random.randint(10, 20)
lucky_count = random.randint(2, count // 2)
start_from = count % lucky_count
print(count, lucky_count, sep='\n')
print('---------------------------------------')
numbers = range(count)
lucky_numbers = set(range(start_from, count, count // lucky_count))
print(*[i if i not ... | [
"ichigo7336@gmail.com"
] | ichigo7336@gmail.com |
aea70b7bae784283e27efb8fb4f2bc809628cb32 | 9bf62c04522b6b28e4d4bedd25654d0ea675f72a | /wechat_django/admin/views/menu.py | 38ce85ed5fd22d128e4d83ff133787061ea61e5f | [
"MIT"
] | permissive | x2x4com/wechat-django | 9a46cd34c4a00f515e2e315d51d6475e509ad9f0 | 926e5d2ed2895d30a253504ff252a7a52fcfe81f | refs/heads/master | 2020-05-20T02:31:08.735986 | 2019-05-01T16:03:31 | 2019-05-01T16:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from django.contrib import messages
from django.urls import reverse
from django.utils.http import urlencode
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
import object_tool
f... | [
"13599838712@hotmail.com"
] | 13599838712@hotmail.com |
37b419ad24813c54449547f8bad10d4bd1426dd1 | d118262983f58b164ce4e7261234514170df913f | /Old/addpricepersqft.py | b678a1c541132a8994f615f0009501eb715eb76b | [] | no_license | mboles01/Realestate | 05213a862d32a21dfe47f67de74156f5d978849f | d6f57182d53a2232c9e815691439373936967b95 | refs/heads/master | 2022-05-06T22:34:40.271044 | 2022-03-19T22:49:31 | 2022-03-19T22:49:31 | 185,117,034 | 14 | 10 | null | 2019-09-04T01:09:05 | 2019-05-06T03:25:18 | Python | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jun 9 17:05:25 2019
@author: michaelboles
"""
# pull in data frame with appended latitude, longitude coordinates
import pandas as pd
data_full = pd.read_csv('data_with_coords.csv')
# append price per sqft, price per lot sqft to full data set
data_ful... | [
"michaeladamboles@gmail.com"
] | michaeladamboles@gmail.com |
45781c853334c0e2bf8412d12db46f89596a7d57 | 36839e325492220f40b0379fe1468a516b1d8043 | /aletheia.py | 120fa13533b27af0f3399e325ab722442a4391da | [
"MIT"
] | permissive | awesome-security/aletheia | 2218d1f52deca2fae8dcb4b5743a66212a160ddb | 734d9b2a2428035355a1eaf51033e340a9145b9a | refs/heads/master | 2021-08-23T00:35:46.310217 | 2017-12-01T23:10:19 | 2017-12-01T23:10:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,922 | py | #!/usr/bin/python -W ignore
import sys
import json
import os
import scipy
import numpy
import pandas
import pickle
import multiprocessing
from aletheia import stegosim, richmodels, models
from multiprocessing.dummy import Pool as ThreadPool
from multiprocessing import cpu_count
from aletheia import attacks, utils
#... | [
"dlerch@gmail.com"
] | dlerch@gmail.com |
b4fe0c005b0e338604ba89b0d2ea585deaed9afa | 9aadbeff047dc7b4202db390de8eb32a2ad64669 | /flask-website/app.py | 3beeafc3f139c01b9ad92b87034dd51c94ab24ae | [
"MIT"
] | permissive | MLH-Fellowship/Dakshina-Gina | 1e851a319f44a0368c3eecd0827b403fdf6ba5a0 | 71b7ccc74c9699769f71a47b0d2c9fcb6b1b4655 | refs/heads/master | 2023-06-11T01:55:30.930979 | 2021-06-11T23:28:37 | 2021-06-11T23:28:37 | 375,489,248 | 0 | 1 | MIT | 2021-06-11T23:28:38 | 2021-06-09T21:05:50 | Python | UTF-8 | Python | false | false | 477 | py | from dotenv import load_dotenv
from flask import Flask, render_template
load_dotenv()
app = Flask(__name__)
@app.route('/')
def hello():
title = "Name's Portfolio"
return render_template("index.html", title=title)
@app.route('/about')
def about():
return render_template("about.html")
@app.route('/experi... | [
"dakshinabp@berkeley.edu"
] | dakshinabp@berkeley.edu |
d10ddb39438c9ea14084f6d4488f312ad7e49a26 | f307f0c0cd2c3241be7b7115219c1c161e3f7f9e | /tests/test_plotter.py | 520d10e431e475ba64b851d9b10aeed5dff252b6 | [
"Apache-2.0"
] | permissive | freedomtan/trappy | 0471250a5558b50b946365d8a62c91d44e1620a0 | 3f573b07592e3d5f423d47d31ac4650fc9f09125 | refs/heads/master | 2020-05-20T18:31:47.019077 | 2015-11-24T02:04:55 | 2015-11-24T02:05:07 | 46,760,363 | 0 | 0 | null | 2015-11-24T01:58:46 | 2015-11-24T01:58:45 | null | UTF-8 | Python | false | false | 4,520 | py | # Copyright 2015-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"javi.merino@arm.com"
] | javi.merino@arm.com |
07a1fe23a71e5aee8437f5a0bfa37ca7243e764c | 5d914ecf9893756183154d0c7aac8201ef82d262 | /main/migrations/0005_auto_20180728_1458.py | bb798e7de807eff1352917e89722442a1e2101a6 | [] | no_license | devxtechnologies/ams | 7f4b7c5ab035e35cb60fd17cc62a1138d686fd5d | 48836fc7a7143d6d0043a5afbcd24adec5212a59 | refs/heads/master | 2022-12-12T14:58:03.120199 | 2018-10-19T19:02:52 | 2018-10-19T19:02:52 | 146,030,630 | 1 | 1 | null | 2022-12-08T02:22:53 | 2018-08-24T19:14:04 | CSS | UTF-8 | Python | false | false | 608 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-28 14:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("main", "0004_changestatus")]
operations = [
migrations... | [
"amoghsk279@gmail.com"
] | amoghsk279@gmail.com |
cd9fc6a781e6443c701bace03c219fcdc0d88d96 | 98e00c48dc0ec205b6524f025791a9367a657e13 | /step12.py | 21fad4ab7b026901a4048423734036e3a6e52060 | [] | no_license | mextier/PyStepikC431 | b111d4da586f8392959850f42935f19f7e007702 | 5e2d4afca95d8f68552206defbc1b46ae6b92bbc | refs/heads/master | 2021-09-17T21:55:43.970377 | 2018-07-05T18:21:13 | 2018-07-05T18:21:13 | 115,948,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n = int(input())
while n!=1:
print(str(n),'',end='')
n = n//2 if n%2==0 else 1+3*n
print(n)
l = [int(input())]
while l[-1:][0]!=1:
l.append(l[-1]//2 if l[-1]%2==0 else 1+3*l[-1])
print(" ".join(str(c) for c in l))
| [
"mextier@gmail.com"
] | mextier@gmail.com |
1aa2a0dc21caeb8dd6b71e72c95ab63ad932706f | 5f27720d72bf6fa609ccbf04ef9d164d8bf80e24 | /app/models.py | 50da83ffe619dd8e1a289c17cac953962cdc5e90 | [] | no_license | cinjon/hintofdope | 1d02aac2b941d5573cce323f119ddd423235db8a | ac70660cc05961f21a6411e8a6a86f56ea81ec95 | refs/heads/master | 2021-01-19T06:06:01.959849 | 2015-11-28T20:41:05 | 2015-11-28T20:41:05 | 40,025,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,400 | py | from app import db
from app import utility
from app import config
from app import flask_app as fapp
import random
import os
import datetime
from twilio.rest import TwilioRestClient
import message_options
from flask.ext.script import Command
class Phone(db.Model):
id = db.Column(db.Integer, primary_key=True)
ph... | [
"cinjon.resnick@gmail.com"
] | cinjon.resnick@gmail.com |
0ae56df89f2a55dee86afc1a502bebdfb672e566 | aca1e6d0147fb49bda7bc3f280776ecb26373fbf | /run.py | 4e35ceec41cf7c5d85563a1c5a97d605b3bd98ae | [] | no_license | kltong/learning-python | e5f88b9208afc91b1f40708095614f3ddf62aaed | 41d9192649f42ce4c7fcf302a036392b06a49b98 | refs/heads/master | 2020-03-20T04:42:46.073763 | 2018-06-13T09:28:26 | 2018-06-13T09:28:26 | 137,192,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #! /usr/bin/python
# coding=utf-8
"""
第一行指明解释器位置,感叹号不可少
第二行指定文件编码
"""
print 'auto find interpreter'
| [
"kelangtong@gmail.com"
] | kelangtong@gmail.com |
c9ae5c644324ecdb021be96d94ce26419f3e607b | 09c59407cbb9717aff4dcdce3706a25134257844 | /M+2018figs/fig3.py | fc1f3b1d52b7413d480e8d43e3c6791861833767 | [
"MIT"
] | permissive | mwest007/mhd-ray-tracing | 2c48b0105ad63f3119c1e8ab731583733afc122c | bfa0ee0a2127ded8e602aba88f5af9fc3d8e38bb | refs/heads/master | 2022-03-31T06:56:00.185085 | 2019-06-07T16:13:51 | 2019-06-07T16:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | # Path relative to main directory
import sys
sys.path.append('../')
# Create a tmp file to pass the chosen field class to wkb class
f = open('tmp_config.py','w')
f.write('fieldclass=\'Dipole3dCase1\'')
f.close()
# Import
import matplotlib.pyplot as plt
import matplotlib.colors
import wkb_fast_zerobeta as wkb
import num... | [
"jonathanthurgood1989@gmail.com"
] | jonathanthurgood1989@gmail.com |
6e095dfc4bde23ec68cf1de2a2e2a66d10092036 | 820f0e4f861eeda5700d149dabe77afe9a8fd5ee | /blog/views.py | d5b8d926594c64906ac1d94b2eb74b2442553047 | [] | no_license | aldnav/old_aldnav_website | b6cd026ef6ce38763b6f63c11880b64d574bd8d4 | 0c465055607646cb154bb9ba38de79356d6999c6 | refs/heads/master | 2023-04-05T07:31:47.887944 | 2014-04-16T03:32:06 | 2014-04-16T03:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.template import RequestContext, loader
from blog.models import Post, Tag, Like
def index(request):
latest_post_list = Post.objects.all().order_by('-pub_date')[:5]
tags_list = Tag.objects.all().order_by('name... | [
"aldrinnavarro16@gmail.com"
] | aldrinnavarro16@gmail.com |
375f9340d1d501448cc0ffef1a88f203143cf815 | e046ee15fbb1425294baa4e34b343c21a6ab42e6 | /teardrop.py | 9a4861e835303dd8b03b2dd014d6e9dea283e219 | [
"MIT"
] | permissive | contriveone/neonetsecproj | 2b94ff6073657a6ada1eda27480fd8b9ab8f6c43 | fb1b0083d2a1bf06da1d4edf8738aa7d69eec03b | refs/heads/master | 2021-09-08T02:24:34.696484 | 2018-03-05T23:32:56 | 2018-03-05T23:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python
import sys
from scapy.all import *
total = len(sys.argv)
if total != 3:
print ("Performs teardrop attack from Kali Linux")
print (" ")
print ("Usage: ./tear TARGET-IP ATTACK-CODE")
print (" Attack Codes:")
print (" 0: small payload (36 bytes), 2 packets, offset=3x8 bytes")
print (... | [
"mahdad.baghani@outlook.com"
] | mahdad.baghani@outlook.com |
0fc5f71bac55473da4ac79d53c9b5be29ec82c56 | 59f5b98b59bb20fb42decd8ca483e41eae485342 | /Project Metrics Processing Script.py | 68938c55f708a93346ee203c11d88917c430feb0 | [] | no_license | ikhoche/python_projects | 95316833e237953c5d49c8cc066cd9a15e729f31 | 14052ac1119fb3f31502909118fd226288415994 | refs/heads/master | 2023-01-06T15:26:02.875409 | 2020-11-02T19:14:38 | 2020-11-02T19:14:38 | 296,965,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | #!/usr/bin/env python
# coding: utf-8
# This script creates a table from using data from JIRA and calculates how many User Stories and Bugs were Created and Resolved per day per project.
import pandas as pd
df = pd.read_csv(r'C:\Users\ishan.khoche\Documents\Project Metrics\Projec Metrics Dashboard Data_23Oct- Copy... | [
"71572354+ikhoche@users.noreply.github.com"
] | 71572354+ikhoche@users.noreply.github.com |
c70f0f21ddbab3ceb6ab8740dc0a3da2d1b05679 | 8e52c27f1b2823db67db4438b2b7e22c18254eca | /chainer_/chainercv2/models/mnasnet.py | 7fc29a525f9eef9ba2765ae2e02a792b0197b0e0 | [
"MIT"
] | permissive | earhian/imgclsmob | 5582f5f2d4062b620eecc28d5c4c9245fea47291 | c87c0942420876941868c016211073dec4392e4d | refs/heads/master | 2020-04-12T02:13:55.258601 | 2018-12-17T20:38:19 | 2018-12-17T20:38:19 | 162,242,486 | 1 | 0 | MIT | 2018-12-18T06:40:42 | 2018-12-18T06:40:41 | null | UTF-8 | Python | false | false | 13,344 | py | """
MnasNet, implemented in Chainer.
Original paper: 'MnasNet: Platform-Aware Neural Architecture Search for Mobile,' https://arxiv.org/abs/1807.11626.
"""
__all__ = ['MnasNet', 'mnasnet']
import os
import chainer.functions as F
import chainer.links as L
from chainer import Chain
from functools import partial... | [
"osemery@gmail.com"
] | osemery@gmail.com |
486f6508072f88d8dd80018dc3c1ea5bfc69e04c | 8333a1c076d723b3cda7efd2eb9d3ac8b83b59da | /flask_code/db_functions.py | 7e1e82588f2630757083912c58e0b171e95c1950 | [] | no_license | ykrasnikov/Crypto_vs_Market | c6dfe9fa22980feae9fbd2647705eb3766dbc119 | 65926ec173843a44dc8ef73705338e92dd3c0e5b | refs/heads/main | 2023-05-31T11:48:38.551658 | 2021-07-04T18:34:53 | 2021-07-04T18:34:53 | 349,805,791 | 1 | 0 | null | 2021-03-20T18:31:12 | 2021-03-20T18:31:12 | null | UTF-8 | Python | false | false | 1,125 | py | #####################################################################
################### Import libraries
#####################################################################
import datetime as dt
# database querry
from pymongo import MongoClient
from bson.json_util import dumps
import dns.resolver
#from bson.json_u... | [
"ykrasnikov@gmail.com"
] | ykrasnikov@gmail.com |
acdf4478b5546f9e5507cf046848c3422ddbdce4 | c73a435be9bed95cd770eb28f5cd671b75d23d2e | /tts_polly.py | 0651e64ba4ce7754ba2f7f23a661de6ee5cae79f | [] | no_license | Lim-Wee-Meng/python | 1cc2434f0a45b8642440cb09ff5438b9a0229cb3 | e84de5b149a000c4f01ccfda0c02ab61ac0de9eb | refs/heads/main | 2023-05-02T19:52:37.416810 | 2021-05-30T08:29:23 | 2021-05-30T08:29:23 | 371,625,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import boto3
polly_client = boto3.Session(
aws_access_key_id=AKIAWDNZVY5V7JVCY7N6,
aws_secret_access_key=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,
region_name='ap-southeast-1').client('Remy_TTS')
response = polly_client.synthesize_speech(VoiceId='Joanna',
O... | [
"noreply@github.com"
] | Lim-Wee-Meng.noreply@github.com |
b302b13d664f632886e2fab3aed08f727a416d21 | 81e706b69c789aff05691c41fa79156942927f82 | /site-packages/tensorflow/python/ops/stateful_random_ops.py | d27c20ca03006d7837c891f41ea4f308918b8e56 | [] | no_license | yoncho/OpenCV-code | f5a1091ef32f3c8c3254ab93e083950b84c4fabd | bda2f793b11462e67c7ab644b342beffb871e3de | refs/heads/master | 2023-03-30T12:01:23.521511 | 2021-04-01T13:45:44 | 2021-04-01T13:45:44 | 291,398,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,862 | py | # Copyright 2019 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... | [
"yoncho@student.42seoul.kr"
] | yoncho@student.42seoul.kr |
d6d5d5a9eba6c4cf1a0f551bde6f4c3a5002289c | 91d3aab052eb514387438c85892e308c3de5eb57 | /lambda/bin/chardetect | 606133ea8d5e21c23733b6fa0a6734ae47ffe6ed | [
"MIT"
] | permissive | piotrbelina/cloudguruchallenge-multicloud | 9188b65f5bd401c8e1cd25ec4dd645791f3fb448 | 9f55180b8d6cfced2313bc6926c261d3b0428ac5 | refs/heads/master | 2023-02-27T08:37:39.331098 | 2021-01-31T20:51:06 | 2021-01-31T20:51:06 | 334,745,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/piotr/PycharmProjects/acg-multicloud-2/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"belina.piotr@gmail.com"
] | belina.piotr@gmail.com | |
0dd59283c23f6efd099fab1cd91a211a9f117803 | 72697f9324ef7115177af49ef5744f438fd947a0 | /bids/management/commands/create_item.py | cff2affad5e0c105292a39254433886c1a560422 | [] | no_license | webclinic017/bidserver | 9f3a06ae516425dcb7aa9b1a40f1b62c194df8d1 | 45a45d48ed76d0855c6b70e7ecc571dee45f52e5 | refs/heads/main | 2023-03-20T08:44:30.676705 | 2021-03-22T20:45:36 | 2021-03-22T20:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from django.core.management.base import BaseCommand, CommandError
from bids.models import Item
class Command(BaseCommand):
help = "Creates an item"
def add_arguments(self, parser):
parser.add_argument("name", type=str)
parser.add_argument("description", type=str)
def handle(self, *args, ... | [
"davidespihernandez@gmail.com"
] | davidespihernandez@gmail.com |
0d17315f1da15b554d26efd323795675e81c51fd | 6c8aa0f149ef1c9136255a102f3ed45f14713590 | /app.py | aded041311e56b6a57771c29e5727e4c6da38a63 | [] | no_license | nls20/Gym_App_Project | 15da0e1a581cb54db246f57f67cc37add06f4f79 | 58305642b1029fe151cfbd25c18e1c5809aec560 | refs/heads/main | 2023-04-09T16:47:29.390092 | 2021-04-08T14:15:08 | 2021-04-08T14:15:08 | 336,502,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from flask import Flask, render_template
from controllers.session_controller import sessions_blueprint
from controllers.member_controller import members_blueprint
from controllers.booking_controller import bookings_blueprint
app = Flask(__name__)
app.register_blueprint(sessions_blueprint)
app.register_blueprint(memb... | [
"nls20@hotmail.co.uk"
] | nls20@hotmail.co.uk |
d15050aedde9ddd35d41dcb058a546c64bce086c | b60a51c6e483c2380097a4b3aba0ee0996204594 | /board.py | aa08eafdd71a9cc84a48d3ea772f7dd9659655f3 | [] | no_license | jnwjack/GameOfLife | 9f9ce2fc0a072164890326674c58ff0e67af3042 | 166ce66f18296c6810543a22577a741574fc1f7b | refs/heads/main | 2023-04-07T06:30:47.115746 | 2021-04-07T19:04:14 | 2021-04-07T19:04:14 | 352,454,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | import pygame
from screen_object import ScreenObject
MIN_N = 1
MAX_N = 100
class Board(ScreenObject):
"""
Object that holds state of the grid as a 2D array. Also handles the drawing of the
grid onto the screen.
"""
def __init__(self, n):
self.n = n
self.rect = None
self.grid = []
self.height... | [
"jnw900@gmail.com"
] | jnw900@gmail.com |
1b60d1ceb9bfaba24c29ea19083a0b65e1a6462b | 54d0bd8b196b67e3fc29c5f3de593a1061174037 | /tests/therapy_week_test.py | eff84c3a45db2398fa83268b9ba68836aa9e9a55 | [] | no_license | dalabarda/CasparAssignment | 57d0db39e7b8e1639c9940619f368686eb5589c5 | 03dd4b897b7ad3320d8884c384d2e4b4db610b8b | refs/heads/master | 2022-11-14T12:59:43.306269 | 2020-07-05T23:24:31 | 2020-07-05T23:24:31 | 276,755,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import unittest
import pytest
from base.BasePage import BasePage
from pages.therapy_week_page import TherapyWeekPageTest
import utilities.CustomLogger as cl
@pytest.mark.usefixtures("beforeClass", "beforeMethod")
class TherapyWeekTest(unittest.TestCase):
@pytest.fixture(autouse=True)
def classObjects(self)... | [
"dalabarda@gmail.com"
] | dalabarda@gmail.com |
a49179e98e1e4d5547c21825f5c9fc0dc80c865d | 26fe7e861fd79b9951a81619e57caad13e88fc87 | /extractingKeyPhrases5.py | aaa25b098f47f248c50060ba8ef9f88b08b9596b | [] | no_license | eitherWei/keyPhraseExtraction | d3ff9a6a5bae5a71104435a147bb587433acdef2 | 65e932e2cb02b31f8c0eec42b1044621a7e7647a | refs/heads/master | 2020-05-20T12:32:50.285245 | 2019-06-14T07:44:47 | 2019-06-14T07:44:47 | 185,574,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | from methods_main2 import *
import time
import pandas as pd
from collections import Counter
import sys
start = time.time()
import nltk
# import a dataset
dataset = pd.DataFrame()
# initialise methods class
path = "/Users/stephenbradshaw/Documents/codingTest/AutomaticKeyphraseExtraction-master/data/"
methods = mainMet... | [
"noreply@github.com"
] | eitherWei.noreply@github.com |
d6e214d0a8d4d12652eee9f7bca72966d79550f4 | f9684c301ce50a6bbb5a75280cd4c70277119f27 | /yelpdetails/yelpdetails/pipelines.py | 55531cab7d87353200bd42058134f3e8878cb6be | [] | no_license | vaibhav89000/yelpdetails | 76149f2feed5cbad98b3e67d3a786223289fc1f4 | b7ce6f739a7f76fbe665e27eb097475775c0c489 | refs/heads/master | 2022-11-25T05:09:56.803075 | 2020-07-06T12:45:54 | 2020-07-06T12:45:54 | 269,969,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import sqlite3
class YelpdetailsPipeline(object):
def __init__(self):
self.create_connection()
self.cre... | [
"vaibhav89000@gmail.com"
] | vaibhav89000@gmail.com |
74fc682933cb011cca980ecd739e54f9abd6589a | 1fb1f29323a3a332e7872d0bd74cfc854da6a239 | /机器学习课程/Logistic regression(iris).py | 35949c9ef955ffd2a1e0907a0e0450d5c605d2fb | [] | no_license | updu/University_code | 5691ed24e1ae2134a1fab0f1ef981ba3d0df0b54 | fb5ffaa65d728a15fa15886c18068575b58e10d7 | refs/heads/master | 2023-03-04T12:59:11.754615 | 2021-01-16T09:37:12 | 2021-01-16T09:37:12 | 267,497,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import datasets
from sklearn.model_selection import train_test_split
# 使用sklearn的datasets加载iris数据集
iris = datasets.load_iris()
# 获取数据集
x = iris.data[:, :2]
y = (iris.target != 0) * 1
print(y)
# 画... | [
"noreply@github.com"
] | updu.noreply@github.com |
a927ca2edd90ae07adf56559bbfe6b40379ae5cb | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/f57f33a8e73d1ac10b3eb6b4333e635c1608bc27-<run>-bug.py | 8fd0e05b5b4b4ec324c3a6a1b7cf88dccfc0d38a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py |
def run(self, tmp=None, task_vars=None):
' handler for fetch operations '
if (task_vars is None):
task_vars = dict()
result = super(ActionModule, self).run(tmp, task_vars)
if self._play_context.check_mode:
result['skipped'] = True
result['msg'] = 'check mode not (yet) supported... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
15c905ae580067073fd0a97c8dc681b8fe2c0432 | 518c7e2514194f5c4ebe8f52a53730e447637339 | /android/ottopi/screens.py | 6a71bf37ed9ee28fbb2398f8ece57efd18278f34 | [
"Apache-2.0"
] | permissive | sergei/ottopi | 881df6dea782731a6b7c0b85bab8b1e830e65637 | 49b4639c8f7efc405e831b0a037f14b5b54351fa | refs/heads/master | 2023-07-24T07:16:32.888467 | 2023-07-22T17:07:37 | 2023-07-22T17:07:37 | 27,190,376 | 1 | 0 | NOASSERTION | 2023-03-05T20:21:41 | 2014-11-26T18:27:29 | Java | UTF-8 | Python | false | false | 990 | py | import json
import os
import sys
PIC_FORMAT = """
<div>
<p style="float: left;"><a href="{img}"><img src="{img}" width="360"></a></p>
<p>{body}</p>
</div>
<div style="clear: left;">
</div>
"""
def json_to_md(json_file):
src_dir = os.path.split(json_file)[0]
md_file = src_dir + os.sep + os.path.splitext(os.... | [
"spodshivalov@scmarinetech.com"
] | spodshivalov@scmarinetech.com |
884592cfa154499c47be91d6bad6bd52b7e937c4 | 83bf18586dca52274c7b0e3cf2a33a9ba1b18f33 | /exam/App/views.py | 43dc877c1e557f9227dcb8a8eb83da6d54f5de0f | [] | no_license | peinniku/django-first-touch | ddf1c27903c25d2a7f5abb97e8060472b899d6e0 | 1396b042502fadbd7b38e469fc62a1f02eaf3d02 | refs/heads/master | 2023-02-19T05:57:12.549076 | 2021-01-21T11:42:08 | 2021-01-21T11:42:08 | 331,605,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
# Create your views here.
from django.urls import reverse
from App.models import User
def index(request):
users = User.objects.all()
return render(request, 'index.html', context={'title': 'django', 'name': '用戶', 'users': user... | [
"1078228403@qq.com"
] | 1078228403@qq.com |
7be6fc930083d7aaee6527c344ddea013c549bbe | c08ae967923c09d53de575167f160cadd56acb15 | /tools/cocos2d-console/plugins/plugin_new/project_new.py | 5af8450179cf3dd3a3f4ffb647910f0c68c81d75 | [
"MIT"
] | permissive | namkazt/cocos2dx-lite | 9e41b2380443785027027cb9d357dd39f2e79df4 | 4d6f0702d30a5bc6f46f6da10f9c29678e0d0127 | refs/heads/master | 2021-01-17T22:18:35.981597 | 2016-08-14T05:24:51 | 2016-08-14T05:24:51 | 62,821,903 | 2 | 0 | null | 2016-07-07T16:30:23 | 2016-07-07T16:30:22 | null | UTF-8 | Python | false | false | 27,998 | py | #!/usr/bin/python
# ----------------------------------------------------------------------------
# cocos "new" plugin
#
# Copyright 2013 (C) cocos2d-x.org
#
# License: MIT
# ----------------------------------------------------------------------------
'''
"new" plugin for cocos command line tool
'''
__docformat__ = 're... | [
"jimmy.yin5@gmail.com"
] | jimmy.yin5@gmail.com |
d63e37f24e963205d5ab81509b9fb9b544d6dc56 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/InvoiceQueryOpenModel.py | e4a1f2eb763c0a192adc00a055403a1ea79f277d | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 18,343 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.InvoiceItemQueryOpenModel import InvoiceItemQueryOpenModel
from alipay.aop.api.domain.InvoiceTitleQueryOpenModel import InvoiceTitleQueryOpenModel
class InvoiceQueryOpenModel(obje... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
c3538eb3371b01aba72df474025a27cb07554102 | bb160d2fc2c6182c4ca56c8e4635a14215f8c70f | /test_module/collector_test.py | d89697bcb6a78e55d06285541f3c33103c1160c4 | [] | no_license | bitacademy-howl/Music_Recommendation_mod | 9464ed941ff722123457ba18cf35bccee3640b9b | 94a430df1c65dc4b930f46ade4576bff95b6c27e | refs/heads/master | 2020-03-27T15:18:21.725593 | 2018-11-05T08:55:45 | 2018-11-05T08:55:45 | 146,709,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | import datetime
import time
from bs4 import BeautifulSoup
import modules.collection.crawler as cw
from db_accessing import *
from db_accessing.VO import Music_VO, Artist_VO, Album_VO
from modules.collection.urlMaker import UrlMaker
class Collector:
def crawling_mnet_month_chart(url):
# crawling_from_chart... | [
"howl1118@gmail.com"
] | howl1118@gmail.com |
0ed61bd167a35b1334d7c438c545bdb341018a46 | faef451f80e68a256af92dcc0d63feb86dedcf08 | /algorithms/sorting/merge-sort.py | 42480c48c75d0cc2ef199b4d8d852494e5242f47 | [] | no_license | shakilxyz/python | b36a06fd7b470c02848310e06fd704664e95e37e | 98c4ebf8273b2962f9ad22effed842e1b15b09d8 | refs/heads/main | 2023-06-03T05:01:08.370830 | 2021-06-21T15:21:10 | 2021-06-21T15:21:10 | 256,231,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | """
Merge sort is created based on divide and conquer rule
It takes less time than many other sorting algorithms
Practically it takes about 0.22 seconds of time shorting about 20000 elements
Average time complexity of merge sort is O(nlog n)
In this code I have divide the main array into to sub ar... | [
"noreply@github.com"
] | shakilxyz.noreply@github.com |
62ccef834d24c047c8d8308cd15dcbfcacd02062 | 49663ea34b41c8180d7484f778f5cad2e701d220 | /tests/restapi/conftest.py | 8915e5344b0b69e02c6d33ddb2f2045958be013b | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | stepanblyschak/sonic-mgmt | ed08c98e7bff1615b057daa8711686aa5986073d | a1ae1e0b4e9927e6f52916f76121780d19ec3e54 | refs/heads/master | 2023-04-07T01:30:11.403900 | 2023-03-29T10:16:52 | 2023-03-29T10:16:52 | 135,678,178 | 0 | 0 | NOASSERTION | 2023-03-29T16:13:55 | 2018-06-01T06:41:49 | Python | UTF-8 | Python | false | false | 4,694 | py | import logging
import pytest
import urllib3
from six.moves.urllib.parse import urlunparse
from tests.common import config_reload
from tests.common.helpers.assertions import pytest_require as pyrequire
from tests.common.helpers.dut_utils import check_container_state
from helper import apply_cert_config
RESTAPI_CONTAI... | [
"noreply@github.com"
] | stepanblyschak.noreply@github.com |
91448e8bbbe643023d4f64b1ed66f70b256c713e | 2d3133a877056d36053adfe6ff5b6642eb74f757 | /Movies/serailizer.py | 13998b81d48ecd7a8ff420a5d0a98691432f6b75 | [] | no_license | nirbhaykr/Movies-listing- | 91db3257188afc41440650a29a5d3cbeb554160d | 6b976dd0925b2582a2edc476311e90b2cbe7d0c1 | refs/heads/master | 2021-01-21T13:40:25.106226 | 2016-05-25T11:36:06 | 2016-05-25T11:36:06 | 45,236,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from rest_framework import serializers
from Movies.models import Movies, Genre
class GenreSerializer(serializers.ModelSerializer):
"""
Purpose: A serializer that deals with Details instances and
querysets.
"""
class Meta(object):
model = Genre
# fields = ('category',)
# r... | [
"kumar.nirbhay101@gmail.com"
] | kumar.nirbhay101@gmail.com |
6d5d9a2877f278f352cb823a3104ae00dfb625cb | a7a5e113e429d481ab37662a1f108c850658d8fc | /shortener/migrations/0002_auto_20170621_1848.py | 80c2615c028047e29433bcbec079f6135b82b1cd | [
"Apache-2.0"
] | permissive | Showndarya/WebPanel | e16f3603257a7de0a1289e8a955dfcab6056d81a | 3140889303f72bfddc4af3df9a21a118ec7b8e38 | refs/heads/master | 2020-12-02T16:13:05.990827 | 2017-07-07T08:50:45 | 2017-07-07T08:50:45 | 96,520,639 | 1 | 1 | null | 2017-07-07T09:05:35 | 2017-07-07T09:05:35 | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-21 18:48
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shortener', '0001_initial'),
]
operations = [
migrations.RenameField(
m... | [
"Chaitya62@gmail.com"
] | Chaitya62@gmail.com |
4397ea80fcea25905d167fecc3a88d6f60145601 | f3a522b7df742610b81955f4428a7a03ca1b581c | /twss.py | 7ab0767e189942ee5a70a1ac416f0b29e4365304 | [] | no_license | suharshs/TWSS | 44f637a91fde4c9cdb29f15a49f9b237228ce77c | 05374f030f21194c1b040c28887c5bc3b4b1a1bd | refs/heads/master | 2016-09-05T08:53:10.944262 | 2012-08-15T19:11:36 | 2012-08-15T19:11:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
The command line tool for inputting files to the classifier.
Author : Suharsh Sivakumar
Date : July 1, 2012
"""
import sys
from naive_bayes import *
if len(sys.argv) == 1:
print 'You must input a file that you want to test!'
exit()
twss_list = []
for i in range(1, len(sys.argv)):
twss_list = twss_list + Naive... | [
"suharshs@gmail.com"
] | suharshs@gmail.com |
630c7e4383ae9789db46283c4677496ec7de593b | fb4e0f6141c08f9a57027c156e7752d77de88ae8 | /disjointset.py | f42e55d64f5777344de84a4e8c7b02bd0afed713 | [] | no_license | divyamsm/Algorithms-lab | a662acd15c4091d35b95faafb41690e8abf954cf | d003748503f5b38b234d122335da07fe038ff43c | refs/heads/master | 2020-03-13T05:33:30.615221 | 2018-04-25T10:00:50 | 2018-04-25T10:00:50 | 130,986,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | class SetNode:
def __init__(self,id = None):
self.id = id
self.parent = None
self.rank = 0
def makeset(id,DSL):
x = SetNode(id)
x.parent = x
DSL.addset(x)
return x
def findset(x):
t = x
if t.parent != t: #while t.parent ! = t:
t.parent = f... | [
"divyammehta@Divyams-MacBook-Pro.local"
] | divyammehta@Divyams-MacBook-Pro.local |
bca4819ea217f20d23ec2024b4071fb1f152036f | 3aefdc5d371bc621984fb843cce7edf121466c0d | /generate_predict.py | 1c3ea8ec8c81cb4642e4965366be1e81beb6a216 | [] | no_license | viet98lx/MC_net | 2edec56ff87914565d800c2d0eea62b95c0154c3 | ee4110b9e8bcacf4abd0301b5e501bc0d2412d4b | refs/heads/master | 2023-03-25T14:01:16.402493 | 2021-03-22T15:13:33 | 2021-03-22T15:13:33 | 347,430,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | import os
import torch
import utils
import argparse
import check_point
import model
import scipy.sparse as sp
import data_utils
def generate_predict(model, data_loader, result_file, reversed_item_dict, number_predict, batch_size):
device = model.device
nb_test_batch = len(data_loader.dataset) // batch_size
... | [
"vietuet98@gmail.com"
] | vietuet98@gmail.com |
45754b9e0e0186c805983ec25d5984a9ecdc1f4e | 3a99ffd8884cb3646b337a811ff0e92cbd67b67e | /testpkg/__init__.py | d7dfdd8f08a81fb05baa04d55f7322c18e491c5e | [
"MIT"
] | permissive | HurricanKai/PythonTest | c2a624d3588a54d603b21da01c10b872f7c3924c | d46c9367279c5e94d7d40e96db87d4016c5d4549 | refs/heads/master | 2022-04-24T14:13:55.655474 | 2020-04-27T12:45:09 | 2020-04-27T12:45:09 | 259,260,633 | 0 | 0 | MIT | 2020-04-27T14:00:40 | 2020-04-27T09:03:09 | Python | UTF-8 | Python | false | false | 76 | py | from version import get_version
__version__ = get_version(pep440=False)
| [
"kai.jellinghaus1@gmail.com"
] | kai.jellinghaus1@gmail.com |
82618b87083e10bfaae60418438d4b4484eff083 | 687b4f2d9cdbe8c72a743a2c329dcd907ad15e42 | /main.py | 9f1a2bfc6aa3a9bd36367f0fc35fb57f1314435c | [] | no_license | tokikk/rsc | 1a8cc4d7fa526ac9e8d8aa879e30d6f9f0175355 | 8ffeb40a21f51913da585488bdedb857002833ca | refs/heads/master | 2022-12-08T09:48:40.042927 | 2020-08-25T10:25:41 | 2020-08-25T10:25:41 | 290,171,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | import PySimpleGUI as sg
sg.theme('')
size1 = [[sg.Radio('割合', "RADIO1", font=("Meiryo UI", 14), default=True)],
[
sg.Text(' '),
sg.InputText('100',
font=("Meiryo UI", 13),
size=(5, 1),
justification="right"),
... | [
"tokikake42@gmail.com"
] | tokikake42@gmail.com |
4d4847f47f6987bffcd9ee7fb182daf363927984 | 729532b780c42b6c1ee667bf567d306c634e977e | /activity_note/migrations/0002_auto_20200114_0220.py | 3043463a861c6e29dac8a51f61e25567e619d973 | [] | no_license | pkubiak/hearty-playground | e52dc9ed0e8f6f350f6c4bf2d26c736e8fea55a9 | 8fd81a0961e59b7fd4f385e151001171f9d6dd09 | refs/heads/master | 2022-04-08T10:23:59.685961 | 2020-02-07T16:38:42 | 2020-02-07T16:38:42 | 226,224,651 | 1 | 0 | null | 2020-03-02T17:33:35 | 2019-12-06T01:56:43 | Python | UTF-8 | Python | false | false | 334 | py | # Generated by Django 3.0 on 2020-01-14 02:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('activity_note', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='NoteContent',
new_name='ActivityNote',
... | [
"pawel.kubiak@protonmail.com"
] | pawel.kubiak@protonmail.com |
98e18716a9a40ce6f97772b337d0e7a52b7d9e22 | f07e56528bd10f93e6f9bb8b297e7e20ebd79e07 | /accounts/urls.py | b422e8ede9207237355a78c11628f7eb46f3d419 | [] | no_license | in-manish/miniwallet | 1ca1c4b3e0001ebc9d00895cb47b5ecfe26edc4a | 0fec75bf65308e6fe2cb7aae72471e47069bb041 | refs/heads/master | 2023-08-07T07:41:26.287578 | 2021-10-07T16:02:27 | 2021-10-07T16:02:27 | 414,030,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^obtain-token$', view=views.ObtainTokenAPIView.as_view(), name='obtain token'),
url(r'^register$', view=views.RegisterCustomerAPIView.as_view(), name='Register customer'),
]
| [
"sonal@fairfest.in"
] | sonal@fairfest.in |
9f31ced0545add05ccb31c2e6eb3960ae27a55b2 | 7cad80770718e655766dd038bc654ebe1ad2ab3e | /network/luxcoin.py | 6576af28c49f3760dde6240c7cd0d0d732ec5e78 | [] | no_license | kindanew/clove_bounty | d0e1f917dff5b3a23eae6a05d6449af068fb4dc9 | e707eebde301ac3728a5835d10d927aa83d27ab5 | refs/heads/master | 2021-04-29T00:29:37.698092 | 2018-02-24T02:34:33 | 2018-02-24T02:34:33 | 121,830,043 | 0 | 0 | null | 2018-02-17T05:34:54 | 2018-02-17T05:26:51 | Python | UTF-8 | Python | false | false | 781 | py | from clove.network.bitcoin import Bitcoin
class LUXCoin(Bitcoin):
"""
Class with all the necessary LUX network information based on
https://github.com/216k155/lux/blob/master/src/chainparams.cpp
(date of access: 02/12/2018)
"""
name = 'luxcoin'
symbols = ('LUX', )
seeds = ('5.189.142.1... | [
"egorsego@git.training"
] | egorsego@git.training |
f0e81d55da28afc1669b6db65341cc6892e0c832 | 7825ee29507b3e0248ab7bab23ba44c70adc1feb | /numerical-methods/lab1/Rotate.py | 66bb7f7b448d714b30179d3d3ff79c88075c03d6 | [] | no_license | kramar42/university | 815bc80dd29c76e3b3ec9ee47e6d32b087759762 | 26faee8fe7df4ffe5982c3439dc3090ed6c6cb56 | refs/heads/master | 2021-01-19T14:06:53.062052 | 2014-10-22T20:09:17 | 2014-10-22T20:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # -*- coding: utf-8 -*-
from Sole import Sole
def RotateSolve(_A):
A = _A.clone()
for i in range(A.size - 1):
for j in range(i + 1, A.size):
a1 = A[i][i]
a2 = A[j][i]
div = (a1 ** 2 + a2 ** 2) ** 0.5
c = a1 / div
s = a2 / div
... | [
"kramar42@gmail.com"
] | kramar42@gmail.com |
96e5b955a8c7eb02039fa532cc9f3790edc41ec2 | 48a8849cebc1c9d35dc8f2f5b1a91cbb533ee294 | /webot/static/m_r.py | 3b36d79fff2e32c0a545fdc96eada93faf827514 | [] | no_license | varwey/project | d5b3a3a0bfc35abf45004f95305d4b1a916718d7 | b1fe6a3774757aa48d1bbdcc763ec01500472ecf | refs/heads/master | 2021-01-13T01:27:01.142647 | 2014-06-05T11:02:58 | 2014-06-05T11:02:58 | 20,431,623 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | #!/usr/bin/ env python
#coding:utf-8
import pymongo,MySQLdb
from bson.code import Code
import json
from datetime import datetime,timedelta
import time
no = time.time()
#map函数
m = Code("""
function() {
function format(dt) {
Y = dt.getFullYear();
m = (dt.getMonth()+1);
d ... | [
"910317157@qq.com"
] | 910317157@qq.com |
2ece69e64ed5dcc95014f6f9b290dd10aea8ebca | 580265e1d5593e8015dec26dadb99fe1f0ec7682 | /source/total/personal_topic.py | a34b8af6b8bd6de4789084773f3094e051493e8f | [] | no_license | protection2453/SPST_S | 3756282a8ceb22a3a14e5863c7261529e0741538 | b9246cc950ff66e3908b2d537f6a70f32006413a | refs/heads/master | 2020-09-10T02:35:14.456051 | 2019-11-19T17:46:45 | 2019-11-19T17:46:45 | 221,627,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | """ 파일 순서 - 3 -
주요 활동 시간을 정했다면 다음에 필요한 것은 해당 유저가 관심있어하는
관심사를 가지고 공격할 주제를 만드는 것입니다.
관심사는 글의 특정 단어 빈도수로 측정합니다."""
from personal_data import *
import numpy as np
import re
from soynlp.tokenizer import MaxScoreTokenizer
boundmorpheme = ["은", "는", "이", "가", "을", "를", "로써", "에서", "에게서", "부터", "까지", "에게", "한테", "께", "와"... | [
"protection2453@gmail.com"
] | protection2453@gmail.com |
4163fd0a176f0f939577d0ef9995fd91af470c0c | e2e3982c626b49d57c51b5abafc0a0eb20915e6a | /neural-cf/test_ncf.py | 7ee5449afbd74f37a02ebe169a78d3198753c011 | [] | no_license | mindis/thesis | ee683869627e54b620c8582c8365205e0b5fd424 | 3676aa32be4f115ea0c79448ee6391d3386d496d | refs/heads/master | 2022-04-25T22:55:51.846029 | 2020-04-27T18:39:11 | 2020-04-27T18:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,521 | py | import logging
import pandas as pd
import numpy as np
import random
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
import pandas as pd
import math
import heapq
from tqdm import tqdm
def load_dataset(df):
"""
Loads dataset into a pandas dataframe
and transforms it into the fo... | [
"nick_gianno@hotmail.com"
] | nick_gianno@hotmail.com |
9fcbebcf0c1246df1c7c00e33c87e6b46afce5be | f68425cbf0bdd1e73ff4be34e5068a9375a21808 | /vv/bin/flask | ed72d50e73fae65bef80f10836c8b6ca35f4f714 | [] | no_license | Software-Engineer-Project2/MIMI-Pet-Wars | 2ca8e7fbac110428e1c6e018d0e708b2e26acdb5 | efb2d33245e34d439a6823440b559ec95e2e509c | refs/heads/master | 2021-02-27T18:47:29.474439 | 2020-06-06T17:55:16 | 2020-06-06T17:55:16 | 245,627,419 | 1 | 0 | null | 2020-03-08T15:50:52 | 2020-03-07T12:18:44 | Python | UTF-8 | Python | false | false | 245 | #!/Users/ivyu/Documents/MIMI-Pet-Wars/vv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jie.yu@ucdconnect.ie"
] | jie.yu@ucdconnect.ie |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.