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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cdb2b5e0fbdd0e7be2ed5ef38db11c91bd706249 | 30dee3a1031c0520b1ba33aa08cb8524f0f8ef29 | /old_quizzes-and-answers-in-course.py | ada7637964c3d32a2360994bc401308ade5f0b7b | [
"MIT"
] | permissive | gqmaguirejr/Canvas-tools | 561848c7cf9cfc905db2d5ee37ac5815ed3911eb | 8a6fc3af1ebeeffc6578d6ed470329f6f796aa4a | refs/heads/master | 2023-04-13T03:30:34.312603 | 2023-04-07T12:10:01 | 2023-04-07T12:10:01 | 164,110,439 | 33 | 10 | MIT | 2022-04-13T14:22:25 | 2019-01-04T13:25:02 | Python | UTF-8 | Python | false | false | 14,590 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# ./quizzes-and-answers-in-course.py course_id
#
# Output: XLSX spreadsheet with quizzes in course
#
#
# with the option "-v" or "--verbose" you get lots of output - showing in detail the operations of the program
#
# Can also be called with an alternative configuration file... | [
"maguire@kth.se"
] | maguire@kth.se |
178870ae4f352d2175231795d0352c7127475e6b | fda6a1be714d8e27a5d8dd3df795df45538f2fe7 | /graphene/tests/issues/test_1394.py | 39374381996bfc665becda97026ba781a21fd060 | [
"MIT"
] | permissive | graphql-python/graphene | 6badaaa97c8ad78552a656f9da9ed577cfc37add | 93cb33d359bf2109d1b81eaeaf052cdb06f93f49 | refs/heads/master | 2023-08-05T02:48:36.967050 | 2023-07-26T07:43:40 | 2023-07-26T07:43:40 | 43,056,951 | 8,187 | 1,088 | MIT | 2023-09-01T19:59:19 | 2015-09-24T09:18:18 | Python | UTF-8 | Python | false | false | 947 | py | from ...types import ObjectType, Schema, String, NonNull
class Query(ObjectType):
hello = String(input=NonNull(String))
def resolve_hello(self, info, input):
if input == "nothing":
return None
return f"Hello {input}!"
schema = Schema(query=Query)
def test_required_input_provid... | [
"thomas@loftorbital.com"
] | thomas@loftorbital.com |
03ec16a4f9d655c170924a97b87023e79aba4f7a | 4aae1f8c2ca143ab4c2b5374f1f707b1b494569e | /apps/likes/__init__.py | e3a7bbc7cd4d8e5e5df06e7f7a03712c460cd257 | [] | no_license | liqd/a4-speakup | 49405c786e28168f698f3e003cb17a9795bfb354 | 418ed69c58664ed50acd045a3ccf19938759bc79 | refs/heads/master | 2021-12-21T22:29:42.512764 | 2021-05-05T15:08:17 | 2021-05-05T15:09:24 | 176,737,678 | 3 | 1 | null | 2021-12-14T08:04:36 | 2019-03-20T13:16:48 | Python | UTF-8 | Python | false | false | 46 | py | default_app_config = 'apps.likes.apps.Config'
| [
"r.mader@liqd.net"
] | r.mader@liqd.net |
4113e64831f110dafe2cd400ae322012ef92fce8 | a58a31782a2592ae660ef70cc881d071e073d8c5 | /utils/napi_dl | e8f3ab2d12c02a15886ad7c8f0fb253246bc902f | [
"MIT"
] | permissive | akrasuski1/utils | 9502f95d0c2443e296c199bc5738b27d031103c0 | 0f3909f0c76a7ebfc7c278a5b1f21dfb308f9661 | refs/heads/master | 2020-03-29T05:37:43.346072 | 2019-08-05T18:44:14 | 2019-08-05T18:44:14 | 149,590,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | #!/usr/bin/python
# reversed napi 0.16.3.1
#
# by gim,krzynio,dosiu,hash 2oo8.
#
#
#
# last modified: 6-I-2oo8
#
# 4pc0h f0rc3
#
# do dzialania potrzebny jest p7zip-full (tak sie nazywa paczka w debianie)
#
# POZDRAWIAMY NASZYCH FANOW!
import md5,sys,urllib,os
def f(z):
idx = [ 0xe, 0x3, 0x6, 0x8, 0x2 ]
mul = [ ... | [
"noreply@github.com"
] | akrasuski1.noreply@github.com | |
4ecbb98a37468d3dec006f4f2834447706076527 | 5194ef59d10c839b79eff460a4d87a11f509ef64 | /services/user_service.py | 565f9aaa01d03c374b91f19c16d96c938d5d5a92 | [] | no_license | holbertra/blog_flask_app | 3166e615ff5d2d03d06ed20da43be10b436ceefd | faf279a2ae9ba6850d5253f0eb1f000b702b5240 | refs/heads/master | 2021-06-26T07:39:45.567777 | 2019-11-05T21:54:32 | 2019-11-05T21:54:32 | 219,604,635 | 0 | 0 | null | 2021-03-20T02:07:43 | 2019-11-04T21:59:13 | Python | UTF-8 | Python | false | false | 424 | py |
def create_user(email, password, f_name, l_name):
# 1. Check if email already exists in dB
# 2. Hash the password
# 3. Create the user object
# 4. Save to the dBase
pass
def delete_user(id):
# Grab user from dB
# Delete the user
pass
def update_user(id, data):
# Grab the user from... | [
"holbertra@gamil.com"
] | holbertra@gamil.com |
69464c3b9cc44fc360e52b78b6397ca102998b16 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=43/sched.py | 96e86f88d4ec9f87aad6a16a3dbd922eb335bcd5 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | -S 1 -X RUN -Q 0 -L 2 132 400
-S 0 -X RUN -Q 0 -L 2 104 300
-S 0 -X RUN -Q 0 -L 2 93 300
-S 0 -X RUN -Q 0 -L 2 56 300
-S 2 -X RUN -Q 1 -L 1 50 400
-S 2 -X RUN -Q 1 -L 1 46 300
-S 2 -X RUN -Q 1 -L 1 45 150
-S 2 -X RUN -Q 1 -L 1 42 125
-S 3 -X RUN -Q 2 -L 1 35 175
-S 3 -X RUN -Q 2 -L... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
f9ab6ed6db28ab211c6720b20b9566e5ca10a9ef | cb280ddcc6dafa8fa62c588c7e4694909c4c2504 | /DONTFUCKINGTOUCHTHIS/variable_args.py | b0d4ed04019ee695c9478078f748a56485651637 | [] | no_license | chayapatr/discord | 78b383080f0eff7f4509571458a72057066c3dfa | e6ccec50b7650407f7e77a372c0f0afc1db13ea0 | refs/heads/master | 2023-05-20T14:10:38.888898 | 2021-06-11T16:09:40 | 2021-06-11T16:09:40 | 374,484,413 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from discord.ext import commands
@commands.command()
async def variable_args(ctx,*args):
"""
<a compiled function>
"""
_idx = 0
def input(*argumentholder):
nonlocal _idx
_idx += 1
return args[_idx - 1]
async def print(*message):
await ctx.send(''.join([str(x) for x in message]))
n = int(... | [
"31594543+chayapatr@users.noreply.github.com"
] | 31594543+chayapatr@users.noreply.github.com |
4d4fb661acc5759a206df3f75663a1c781265c8f | cfd73856a182cc1b77fa195e07a3a063f80399ae | /index/migrations/0011_student_meli_code.py | 4f52a444c9af80e3f20e75cb18691beff3702d03 | [] | no_license | engAmirEng/madrese-rebuild | 99df6dd734bb57b843356ea8316c21894cc09af2 | 004e28add0732fc7cb6844d7c0639c8cfc93f67c | refs/heads/master | 2023-05-23T07:20:32.220648 | 2021-06-14T12:28:05 | 2021-06-14T12:28:05 | 374,588,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.2.3 on 2021-06-07 16:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0010_remove_student_meli_code'),
]
operations = [
migrations.AddField(
model_name='student',
name='meli_cod... | [
"eng.amir.bu@gmail.com"
] | eng.amir.bu@gmail.com |
34d05e4b0c303576e8b2e8d6f7fe00333b0f00f2 | 5c24c60d35c78031e73b22ce4ea651e4dd6f6875 | /nearestNeighbor.py | 3b3828500a016db9212a31b104204f0416354195 | [] | no_license | danerbrear/k-nearest-neighbor | 449dd2ed196962e298d4216c44603229bea4c09b | 87a031d21cc70a618b926a7e23c7a2239ea09de8 | refs/heads/master | 2022-12-26T03:48:50.324243 | 2020-10-04T22:58:58 | 2020-10-04T22:58:58 | 301,175,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import pandas
from minHeap import MinHeap
# Calculates the euclidian distance between two rows.
# Skips the class column that we are trying to classify in euclidian distance calculation
def findDistance(trainingRow, testRow, classCol):
testRowDrop = testRow[1].drop(classCol)
squaredSum = 0
for i, item in ... | [
"dane.brear@gmail.com"
] | dane.brear@gmail.com |
ca20c58619461ea1b7b9b9f01b15d56cf9b586d4 | 49a249ed1f91ccce93a33b695cb728fd3f69403d | /HelloWorld/view.py | 15d7192e71b4393f4fbde918360a8d705434a042 | [] | no_license | kakasaber/hello_project | e0eccf16b3d75947a01b518209c13fc65743bdc3 | 52612c1e715a0aa8247c31ddc241573af838d394 | refs/heads/master | 2022-06-14T03:12:25.310066 | 2020-05-07T08:57:03 | 2020-05-07T08:57:03 | 262,000,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.http import HttpResponse
def hello(request):
return HttpResponse("hello world !!!");
| [
"839823628@qq.com"
] | 839823628@qq.com |
b92fc3a8d0296972556872e96c0f6ac63b2e2613 | 07eac477192d5d9f4eadaaf3d5dfbd5e8deb1c59 | /sample.py | 50095b5bcc0d60001e5ff1d0f4febf062a5009fd | [
"Apache-2.0"
] | permissive | cisco-ie/nx-os-grpc-python | 90ad08718265ae7307ab478e89a2c164144dbb26 | 1b07d569b758222316c589abb1b8e6092d47f1f9 | refs/heads/master | 2022-12-14T20:03:00.020675 | 2019-01-04T16:19:37 | 2019-01-04T16:19:37 | 137,940,497 | 4 | 0 | Apache-2.0 | 2022-12-08T02:15:54 | 2018-06-19T20:10:51 | Python | UTF-8 | Python | false | false | 1,758 | py | #!/usr/bin/env python
"""Copyright 2019 Cisco Systems
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 ... | [
"remcampb@cisco.com"
] | remcampb@cisco.com |
ea531889bf01ff9b71405fc6ad2e84ec1a764813 | ba8f5d23d9878a25b30a32cf16e8833f93b25853 | /source_py2/python_toolbox/nifty_collections/emitting_weak_key_default_dict.py | 46c4c7701214a78895301bc8c7a7931a9b878581 | [
"MIT"
] | permissive | nastako/python_toolbox | af520cbec1468c8e0aae0b3b1c467ca5623af45b | 9713fd728608818630ee409ac6a6fdaf863af31b | refs/heads/master | 2020-12-11T09:07:19.681161 | 2015-01-16T21:26:37 | 2015-01-16T21:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | # Copyright 2009-2015 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `EmittingWeakKeyDefaultDict` class.
See its documentation for more details.
'''
from .weak_key_default_dict import WeakKeyDefaultDict
class EmittingWeakKeyDefaultDict(WeakKeyDefaultDict):
'''
A key that r... | [
"ram@rachum.com"
] | ram@rachum.com |
f6204b97311c0a68ac6fb78da25a8bf916595d58 | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_system_dns.py | db4b40e5be9e400dcaf07963bd254f700f9a60db | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 11,555 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, 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 Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
d9134ca744b326f6493509d9fd732548b3eab6f4 | ebb0e7a0ce0b3f7432be2b5d5755e41b593f7222 | /main.py | 230383e2555652deb8628b7c3d1c473a34aab912 | [] | no_license | JudeOsborn/angularjsgaetodo | ef7c79cbc34b1926821b78c839481f444b2e5367 | 044680c6a902009d9f4e486ecf0868d9f5fc3bf1 | refs/heads/master | 2021-01-01T05:31:04.042680 | 2013-01-28T22:52:44 | 2013-01-28T22:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import webapp2
from google.appengine.ext.webapp import template
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.out.write(template.render('index.html', {}))
app = webapp2.WSGIApplication([
('/', MainHandler),
], debug=True)
| [
"jude@potatolondon.com"
] | jude@potatolondon.com |
5f5d38dc11d4fc235b9841b3e9e24c71dba0d06b | 15e14e59f647750de29b8fae64b9be86bc5d78ef | /testsuite.py | fd0a8cafe4a193ffae390b0475a631294b34caeb | [] | no_license | adityabettadapura/TicTacToe-game | 10243f8df359a567fb7a7e706fa390e4a3e7cb58 | bcbb2cb1668afb6933701e8ee1052f3f468aae5b | refs/heads/master | 2021-01-10T23:30:48.605360 | 2016-10-01T05:37:05 | 2016-10-01T05:37:05 | 69,721,510 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import unittest
from board import Board
from pseudorandomai import PseudoRandomAI
class TestBoard(unittest.TestCase):
"""
Test suit to test the board class.
Test cases implemented:
testEmptyBoard -> Tests if the board is empty
testIsSpaceFree -> Tests if the given space is free on the board
te... | [
"aditya.b.shankar@gmail.com"
] | aditya.b.shankar@gmail.com |
d7a6f1cc323844bf66510192f3c73feeae42f90c | 317eff8f4735d76ba961a174a686bd4d00af28ce | /names/names.py | f818c279a81e48a5573cd6d3179cfe030d2dbfca | [
"MIT"
] | permissive | lucywyman/hamper-names | 95ced474ded2c3a4c8734c4c01673a393df4d1f8 | 94cd0ea9e533723fb7997213bd076218b567bcc7 | refs/heads/master | 2021-01-01T05:31:38.703271 | 2014-02-26T03:46:23 | 2014-02-26T03:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import random
import re
from datetime import datetime
from hamper.interfaces import ChatCommandPlugin, Command
class Names(ChatCommandPlugin):
'''Random Name Generator: !name to generate a random name'''
name = 'names'
priority = 0
class Names(Command):
regex = r'^names$'
name = 'names'
def command(self, bot... | [
"wyman.lucy@gmail.com"
] | wyman.lucy@gmail.com |
150c5fd8c3bd60bd78428844d15da7c125771b39 | 3937f340aafed20f7b3bb9e36a62d0dfe6ca985d | /CrispyProject/WebApp/forms.py | 02e71ff1a3beb904dbd38af4006ac6e1f687b0b3 | [] | no_license | sunnywralph/Django7AM | 8f6f7e52847882d35ee7f7c4c263c5e90c79b6da | ffef6c6e5ab5231416ca743ebae299622eab9791 | refs/heads/master | 2022-04-25T15:04:45.733504 | 2020-05-05T14:53:57 | 2020-05-05T14:53:57 | 261,496,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django import forms
from WebApp.models import Person
# Fields with Validation
class EmpForm(forms.ModelForm):
class Meta:
model = Person
fields = '__all__'
| [
"sunnywralph@gmail.com"
] | sunnywralph@gmail.com |
2e75e364412047116527b67d7526a7d754275785 | ba27bff7331d6ffb7297f20b27851096da9490e7 | /Lesson-1/Env/bin/easy_install-3.7 | b69ddaa977e22098d3d9a467baa7ba786703c2f3 | [] | no_license | aandaldi/Learn-Python-Django | 1ba54a52c82dc6654f0b6234ce1e4b8e28224aa8 | f26b958ae3f317ba045c816f4ef4f51b2455059b | refs/heads/master | 2020-11-27T20:03:38.165930 | 2020-09-27T16:29:54 | 2020-09-27T16:29:54 | 229,584,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | 7 | #!/home/aandaldi/Documents/TrainInternal/Learn-Python-Django/Lesson-1/Env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aandaldi@gmail.com"
] | aandaldi@gmail.com |
598105808d121d339072a4f7214de032ba831a6d | 36c57834cf7546bfdeee88c035f63f0a7a9a634f | /word_lm.py | c93e327b37b23b970f3d43cbccb9b9135dc60c0e | [] | no_license | GitSujal/Sentence-Generation-with-RNN | 9d285d83893c89e81e551bd3d0b276595ae566ab | e3c8b87b8f55659ce7f63e9e363f1777fccfac13 | refs/heads/master | 2020-04-24T13:12:30.514503 | 2019-02-22T02:19:45 | 2019-02-22T02:19:45 | 171,979,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,330 | py | import tensorflow as tf
import numpy as np
import reader
import time
import random
class PTBInput(object):
"""Input Data"""
def __init__(self, config, raw_data = None, name = None):
self.batch_size = batch_size = config.batch_size
self.num_steps = num_steps = config.num_steps
if raw_data is not None:
se... | [
"070bex442@ioe.edu.np"
] | 070bex442@ioe.edu.np |
28b1921adc9695c38dd720678bc747adc2d6a752 | 8971fcd9806f86d844edc623ef849adfadad066f | /TTHAnalysis/python/tools/nanoAOD/jetmetGrouper.py | 848c86c9eedcde18f67e066331d0f9c80b3e8a63 | [] | no_license | cms-susy-soft-leptons/cmgtools-lite | a7117d457f79da5cd7dbd6bd987d436d853ad45a | e8ee654a6960dada93930b8d2ad0bc51f961530a | refs/heads/104X_dev_nano_sos_plotter_tidy | 2020-08-31T00:32:15.411155 | 2020-03-27T17:24:17 | 2020-03-27T17:24:17 | 218,534,810 | 0 | 0 | null | 2020-03-27T17:24:18 | 2019-10-30T13:32:34 | Python | UTF-8 | Python | false | false | 5,878 | py | import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
# group jec components
# taken from https://docs.google.com/spreadsheets/d/1Feuj1n0MdotcPq19Mht7SUIgvkXkA4hiB0BxEuBShLw/edit?ouid=111820255692530107608&usp=sheets_home&ths=true
import os
from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import ... | [
"s.scruz.312@gmail.com"
] | s.scruz.312@gmail.com |
4335e43e879c0ef68bff953743aa51e096e7bc6b | abfa70e1da5b4ba8e465cdc046fa36e81386744a | /base_ml/10.5.Iris_RandomForest_Enum.py | cb324f72bde8cb4ca167d5b6c13a703a16f9b8bc | [] | no_license | superman666ai/crazy_project | f850819ff2287e345b67500111733bafa5629d1f | 99dcba0fe246ecaf3f556f747d44731a04231921 | refs/heads/master | 2020-05-15T09:32:56.523875 | 2019-05-16T00:57:23 | 2019-05-16T00:57:23 | 182,179,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.ensemble import RandomForestClassifier
def iris_type(s):
it = {'Iris-setosa': 0, 'Iris-versicolor': 1, 'Iris-virginica': 2}
return it[s]
# 'sepal length', 'sepal width', 'petal l... | [
"keepingoner@163.com"
] | keepingoner@163.com |
055c9c2d59fc6151d29538c92a2fbdda4fa1c983 | d4d4f39bcafb5cb1cd3b6a70fb3890889f18740d | /reconcile/utils/vaultsecretref.py | e72565f50fb8cc1b8943ff1d068cc6ce4b784c96 | [
"Apache-2.0"
] | permissive | rporres/qontract-reconcile | 08a79cfa694ea5e35370706d7c5eb8498fc456a1 | 079949357068b548bd6ba78369b68b3271530919 | refs/heads/master | 2023-09-05T11:33:12.623950 | 2022-12-22T10:41:22 | 2022-12-22T10:41:22 | 241,174,271 | 0 | 0 | Apache-2.0 | 2020-02-17T18:03:15 | 2020-02-17T18:03:15 | null | UTF-8 | Python | false | false | 974 | py | from dataclasses import dataclass
from typing import (
Optional,
cast,
)
from reconcile.utils.vault import (
VaultClient,
_VaultClient,
)
@dataclass
class VaultSecretRef:
_ALL_FIELDS = "all"
path: str
field: str
format: Optional[str] = None
version: Optional[int] = None
def... | [
"noreply@github.com"
] | rporres.noreply@github.com |
9dd940b5933f26f0c5f47d581160b7ba22f31fb6 | bea2e5924a62b76a767b3eb915abb3f95a225926 | /tensorflow_privacy/privacy/dp_query/dp_query.py | 480241019dde4b557a7fb073ff3ecc44002afc1b | [
"Apache-2.0",
"MIT"
] | permissive | tensorflow/privacy | 741ddc106e9b73384a1356bf915dc8f7f97ce768 | c92610e37aa340932ed2d963813e0890035a22bc | refs/heads/master | 2023-09-03T20:42:21.040653 | 2023-08-30T19:53:38 | 2023-08-30T19:54:08 | 162,747,292 | 1,881 | 493 | Apache-2.0 | 2023-09-14T19:55:15 | 2018-12-21T18:46:46 | Python | UTF-8 | Python | false | false | 12,074 | py | # Copyright 2020, The TensorFlow Authors.
#
# 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 t... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
e018789b838cff91b024c6a1281149d8e177ca30 | b8f527b1f3e8b0e672200ad21519b70411604c71 | /roadmap/ledger/migrations/0008_auto__add_field_target_milestone.py | ec901f4da879195a801152b62530716b21c3dd07 | [] | no_license | adamauckland/RoadMap | c02e9ac67c2a46137ed3513138337bc0ea7821e1 | 84ce27cc574cf821f3fb8d570dafb5b696b124df | refs/heads/master | 2021-01-19T06:13:10.010274 | 2014-02-02T05:37:57 | 2014-02-02T05:37:57 | 4,406,724 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,867 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Target.project'
db.add_column('ledger_target', 'project', self.gf('django.db.models.fields... | [
"adamauckland@gmail.com"
] | adamauckland@gmail.com |
0e5cd2b71cfca2920b63884ab1b03dedd57aecaa | 11763b1150a3a05db89c13dcd6152f8fcca87eaa | /designs/linear/homomorphic/latticebased/qtpiepublickey3.py | 19c3c2cc331daaa31305c3217bbc670ba8c7c944 | [] | no_license | acad2/crypto | 343c32fa25aaec73e169290579fc3d02c4b226f6 | cb283df4101fcd618a0478a0018273f00d0734ae | refs/heads/master | 2021-08-19T06:36:26.068033 | 2017-11-25T00:41:03 | 2017-11-25T00:41:03 | 113,048,326 | 2 | 0 | null | 2017-12-04T13:49:02 | 2017-12-04T13:49:01 | null | UTF-8 | Python | false | false | 2,559 | py | raise NotImplementedError("q needs to be randomized")
from math import log
from crypto.utilities import random_integer, modular_inverse, big_prime, modular_subtraction
N = 90539821999601667010016498433538092350601848065509335050382778168697877622963864208930434463149476126948597274673237394102007067278620641565896411... | [
"python_pride@protonmail.com"
] | python_pride@protonmail.com |
b7cfbc8a099c8df435f7c38b9a3f8c085431f511 | b94fd62e07517f2ce957944b68bf2d5b45d44b03 | /tests/test_view.py | 2a0bf331ea8f19340eb4550e4e7d3a0726667aa9 | [
"MIT"
] | permissive | luzpaz/floor-planner | 405ae92482347218ae88270bb4bfcef12e3f747c | 971334bb7054232035411419910bc860d5da9206 | refs/heads/main | 2023-02-21T15:51:38.510887 | 2021-01-14T20:36:16 | 2021-01-14T20:36:16 | 322,641,479 | 1 | 1 | MIT | 2020-12-18T16:03:58 | 2020-12-18T16:03:58 | null | UTF-8 | Python | false | false | 5,973 | py | import sdl2, sys, unittest
sys.path.append("..\src")
from app import App
from ctypes import c_int, pointer
from entities import UserText
from entity_types import EntityType
from text import Text
from textures import Textures
from view import View, FontSize
class TexturesTests(unittest.TestCase):
"""Tests for the ... | [
"fby1@pitt.edu"
] | fby1@pitt.edu |
216d90aedd4f538aa0e623757e4370ab52ba3ec6 | 69cbf846db3cb82bef809c822e11c8f93e000b24 | /Python/ContactUI.py | 6d77a7fcc1d2705b7e005f9cc0fb8160fd88407f | [] | no_license | jlee512/SWEN503_4LanguagesAssignment | c5042a38b497b474281721393a0efd6f6c70ebd7 | d73b04dac6fbb310950ab2301631cf1eee77ab77 | refs/heads/master | 2021-08-23T04:30:30.508043 | 2017-12-03T08:30:03 | 2017-12-03T08:30:03 | 112,530,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,263 | py | import sys
from MySqlDb import MySqlDb
from Contact import Contact
from ContactDAO import ContactDAO
contacts_in_focus = []
searchedContacts = []
def main(args):
session = True
initial_screen()
while session:
selection = top_menu_selection()
if selection == 1:
# Add contact t... | [
"julian.j.lees@gmail.com"
] | julian.j.lees@gmail.com |
d9b5eab018f13379b620080611d1b3282b38000d | 27fdb210daacc29a7031c2f8e0e2cf28f6e78e48 | /mnc/tes_mnc.py | 208cfc1b237a35bf9d0ca5d5537a67b5099b2d1b | [] | no_license | cubefreaker/webautomation | e79774bef554ce3b5796d3deefec3f41ea34ff69 | be86def2540ef72d84ca2a0281ac4e5f53b738ca | refs/heads/master | 2021-06-13T00:46:47.216292 | 2019-03-28T07:19:32 | 2019-03-28T07:19:32 | 178,146,195 | 0 | 0 | null | 2021-06-01T23:32:36 | 2019-03-28T07:06:41 | Python | UTF-8 | Python | false | false | 3,606 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"hamzah_habibi@rocketmail.com"
] | hamzah_habibi@rocketmail.com |
17db166d40352aadbf0c2a9e1f90f8f20f001161 | 7d51c68984804ed4ed73aa6f345cce0043595e67 | /backend/src/stock/urls.py | 87356cff4d33548b8de875ce027289d7cba11d6b | [] | no_license | Liang-Rui/Stock-Portfolio-Management-System | 1b0b1b9f5b1bc8348be6da04d630ae2b62009d5d | 8d8daa77d23807f0541879273416f617b895bd64 | refs/heads/master | 2022-12-26T11:52:52.917286 | 2020-03-01T12:50:02 | 2020-03-01T12:50:02 | 243,514,962 | 17 | 5 | null | 2022-12-08T07:24:22 | 2020-02-27T12:33:16 | JavaScript | UTF-8 | Python | false | false | 2,213 | py | from django.urls import path
from .DAO import SectorDAO, SymbolDAO
from .Controller import HomeController, StockController, SectorController, testController
urlpatterns = [
#detail of a stock
path('stocks/<symbol>/chart/', StockController.chart, name='chart'),
path('stocks/<symbol>/profile/', St... | [
"380509333@qq.com"
] | 380509333@qq.com |
7dd6496070834b3b495a11050f46c105eace37c4 | 3ab41c937eb1487cf660998d30722d03ce521c2d | /nginx_proxy/Host.py | 5d781221230d0e3b94f32dac0a7af7d81af8f3fe | [] | no_license | matti/nginx-proxy | 53fb75b1429d9fb6153d03ecaf063d6233bcc070 | 589c790d7b95157ba7a0029197d73822c273e027 | refs/heads/master | 2023-08-02T23:37:38.094604 | 2020-01-16T16:48:43 | 2020-01-16T16:48:43 | 235,169,972 | 0 | 0 | null | 2023-07-23T03:20:00 | 2020-01-20T18:31:02 | null | UTF-8 | Python | false | false | 2,063 | py | from nginx_proxy import Container
from nginx_proxy.Location import Location
class Host:
"""
It is equivalent to a nginx Server block.
It contains the locations and information about which containers serve the location.
"""
def __init__(self, hostname, port, scheme="http"):
self.port = po... | [
"sudipbhattarai100@gmail.com"
] | sudipbhattarai100@gmail.com |
895c19a3cedd2b72649601878b3397f719f8b1f1 | bd05c719ff1e4d7f7102b626d9cc6a935b68ccde | /venv/Scripts/pip3-script.py | fcac2e1b698dc14af04bac848660225adc147654 | [] | no_license | phineasGuosz/MiniApp | e39092c49de211f4d06d1c448373cad54a2b7a26 | 4121b08d11d39f8bec51be2b2001a68acf80ea2b | refs/heads/master | 2020-04-13T03:57:43.605199 | 2018-12-24T07:09:31 | 2018-12-24T07:09:31 | 162,946,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!D:\personal\tools\airtest_project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip3'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"guoshenzhen@zhuanzhuan.com"
] | guoshenzhen@zhuanzhuan.com |
977420e75e2f75b663bf1bb2d39ed627644ec118 | f5be33a36e13f8fe5d2d691d1320ab1424168340 | /injections/opt/bin/openbox-exit | 6ceb646670a441421b2b7361f7b1edb7f89b12fd | [] | no_license | relthyg/debian-openbox-live-cd | 205a9975aa0ba98cf957c88bb9a50dedaaaadafe | b49bbaaf199f81cbccce2644b9c5685d4993ac15 | refs/heads/master | 2023-04-16T17:47:21.522678 | 2019-09-15T09:35:05 | 2019-09-15T09:35:05 | 181,933,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | #!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass
class obrx_exit:
def disable_buttons(self):
self.cancel.set_sensitive(False)
self.logout.set_sensitive(False)
self.lock.set_sensitive(False)
self.suspend.set_sensitive(False)
self.re... | [
"relthyg@posteo.de"
] | relthyg@posteo.de | |
04c86ab4501d9e593fbf92d6f70e57b2a45945d8 | 02caea61071770d9e54009dd6a8148c59d068691 | /resnet_cutout.py | 36796cb7cdb51b1847a45dfd7df397ac36e35b41 | [] | no_license | 1234cc/NNDL_Final | 72ad12039a027df19256295945ab5c344fe0edca | e12b305390cbbf93e56a80fde3df5a844a48c150 | refs/heads/main | 2023-05-31T14:40:11.587353 | 2021-06-22T11:28:21 | 2021-06-22T11:28:21 | 379,217,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,950 | py | '''Train CIFAR10 with PyTorch.'''
from __future__ import print_function
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
import os
import argparse
import csv... | [
"noreply@github.com"
] | 1234cc.noreply@github.com |
19d4a7847e9d2bef6719fa3718f7556eb5d650ca | 2ea66258df8c51273ded673263b77299ca630582 | /studentapp/views.py | b7a3ba027af5ec7c968f1bfc69499781d5a0b5e8 | [] | no_license | bharati-garde/Djangoapp | 24ccab6a3388ced1392d2193c21db590a7651598 | 5a559512016de2f91587923053fe048fba3230c2 | refs/heads/master | 2023-03-30T12:54:04.790899 | 2021-04-04T14:39:27 | 2021-04-04T14:39:27 | 354,531,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.shortcuts import render
from django.http import HttpResponse
all_posts=[
{
'student':
}
]
# Create your views here.
def index(request):
return render(request, 'home.html')
| [
"gardebharati123@gmail.com"
] | gardebharati123@gmail.com |
07df39e3739e6549e961ca1e5a760d3d09761b66 | 3d7fd563ffe67c45b6657fd576124a4e43480f8f | /caelum/stellar_system_model/universe_model.py | 23e8f437189f31529581513200f6e5e6fabff200 | [
"Apache-2.0"
] | permissive | rosspalmer/Caelum | 33aae122ebabeb9926e0c2f9bc60fbe9f6c4eca2 | c9adadf743e9b58a6cd099f3b8b8cbe035aca02e | refs/heads/master | 2021-01-12T04:01:43.707210 | 2017-01-09T15:30:49 | 2017-01-09T15:30:49 | 77,473,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py |
class Universe(object):
def __init__(self, systems):
self.systems = systems
| [
"rossbpalmer@gmail.com"
] | rossbpalmer@gmail.com |
e28e03f51b5728b5cd8d5a3e6be5fab18d6c2317 | 836fcb1fb4db3d2b6d0d9b54c3f916bc599a0b62 | /JoinString.py | d0a0ef082b74b2d11792b60a7158a7a550e80db7 | [] | no_license | opickers90/Python3-1 | cf8c544ee17107f535e4431fbe67eb4e218fff70 | 04b2338ddfb7c554cc123677a769b2f4dafbdc5b | refs/heads/master | 2020-04-19T11:01:35.793376 | 2019-02-02T11:11:04 | 2019-02-02T11:11:04 | 168,155,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | winter_trees_lines = ['All the complicated details', 'of the attiring and', 'the disattiring are completed!', 'A liquid moon', 'moves gently among', 'the long branches.', 'Thus having prepared their buds', 'against a sure winter', 'the wise trees', 'stand sleeping in the cold.']
def join_string(lst):
lst = "\n".join... | [
"taufik@LI-320s"
] | taufik@LI-320s |
82d38bc793a3cb3316e97701f18d89204d533635 | 223093bd62fb14cef138a9e99ac771804201d694 | /grgrSIte/wsgi.py | 9a03414154e9e153a8360aa2f6b52c740e0347b0 | [] | no_license | albertove/grgrApp | a48f263c67c89f147ee94cd27f63e67637fe5b62 | c2f5533a886653e1dd26812c585b5587807f9914 | refs/heads/master | 2021-01-15T16:28:58.134691 | 2017-02-10T08:27:02 | 2017-02-10T08:27:02 | 81,542,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for grgrSIte 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "grgrSIte.settings")
from django.core... | [
"alvega27@gmail.com"
] | alvega27@gmail.com |
c731e200e23ca2544520bae18655637937d939d8 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_mgmt_storage/v2021_01_01/aio/operations/_usages_operations.py | 4fb31d3652c09b18a8730846a6ade439f9280d2f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 5,262 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
346257657882bc451e07c22b1ab4eab2cfa406a0 | a1f014188a5567b701efbf5f296f88a572304689 | /python_code/飞机大战/全屏和调整窗口大小,图像变换/py_查看系统分辨率.py | 31b238c74e8003ecdc86b11b19ae5064b2bdea21 | [] | no_license | YL-python/yl_python_code | 6cbecf96fd37cc74e108939d6898a92b3539ec2a | d286c73b6d109cd996c7fd79d67d90c47afb31d3 | refs/heads/master | 2022-11-17T07:42:54.021558 | 2020-01-07T08:43:08 | 2020-01-07T08:43:08 | 219,503,414 | 0 | 1 | null | 2022-10-21T19:00:35 | 2019-11-04T13:04:35 | Python | UTF-8 | Python | false | false | 59 | py | import pygame
pygame.init()
pygame.display.list_modes()
| [
"2336739721@qq.com"
] | 2336739721@qq.com |
827d87964f00c97693149e430240ca70051e51cc | 329f5ea133a3928bc0587fa9da91600465e6b7f4 | /development/wmap_script_WM.py | 9b4326d818ce1e835d9b0ce83cadb7301c4a2a2f | [] | no_license | seeleylab/wmap | 3f3db3b25e0ddd7d0a1e8e01048368390fe32778 | 56c72133623fb2c323e6d47b7af9457251a6a62c | refs/heads/master | 2021-01-17T15:25:29.851602 | 2017-07-19T16:54:50 | 2017-07-19T16:54:50 | 46,843,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,893 | py | ####################################################### w-map script 1/29/16 ########################################################################
#THIS SOFTWARE IS PROVIDED BY THE SEELEY LAB "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
#WARRANTIES OF MERCHANTABILITY AND ... | [
"jersdeng@gmail.com"
] | jersdeng@gmail.com |
15ef5004b2572ff9174ddb088ab88d8f57f7735e | ac9e7b423275443e64f487544d1eebda3e20b01f | /myproject/routing.py | 801fd28342749663f605b9fc8f3f1ddfb70a58fc | [] | no_license | grub007/django_channel | f2ac838b61b5c0973a12ba1e6cc4b2c453f88660 | 77970ad61cb3bc14566cbaaa6bfc3f24f3d89d2b | refs/heads/master | 2021-10-02T04:06:03.947674 | 2018-11-29T02:19:36 | 2018-11-29T02:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# chat/routing.py
from django.conf.urls import url
from . import consumers
websocket_urlpatterns = [
url(r'^ws/chat/(?P<room_name>[^/]+)/$', consumers.ChatConsumer),
] | [
"43468404+grub007@users.noreply.github.com"
] | 43468404+grub007@users.noreply.github.com |
0ca7dcfdb63818c310ac8486ddb3feb58098ec7f | 680e4e0ed43e10b912f20bc18f7d87e1194eb95c | /day37/6.创建修改用户.py | febb4d23ee94dc7253a1e24f851fe6ee28c06072 | [] | no_license | eson27/untitled | f685bdd53b852e10c95368e79c98078387cde337 | afbbfe3842ed74001ce95561159f1191c13ba5f4 | refs/heads/master | 2022-12-04T05:33:12.397230 | 2020-08-22T11:02:34 | 2020-08-22T11:02:34 | 286,338,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | '''
mysql> create user 'wqlai'@'%' identified by '123'; -->创建远程用户
mysql> create user 'wqlai'@'loctalhost' identified by '123';-->创建本机用户
mysql> GRANT ALL PRIVILEGES ON *.* TO 'wqlai'@'loctalhost' IDENTIFIED BY '123'; -->授权用户
mysql> show grants for 'wqlaid'@'loctalhost' -->查看权限
mysql> SELECT DISTINCT CONCAT('User: ''',... | [
"33880870@qq.com"
] | 33880870@qq.com |
a5d224beebfcd52990ca9bbc0a042568b8ac5461 | 871b21f5d5127acbc32c0e415c6b4d00d989a0c7 | /tests/guest_test.py | a9ef3038434f9ccd658620ee6a1380817f291b06 | [] | no_license | emils5/week_02_weekend_hw | 6b091a9369bc8128094aa8c70bd02789026d7cfc | eed1247c75debf2d32523e68ddf78f442dc2833c | refs/heads/main | 2023-06-03T15:52:58.008552 | 2021-06-25T20:17:20 | 2021-06-25T20:17:20 | 380,221,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import unittest
from classes.guest import *
from classes.song import *
class TestGuest(unittest.TestCase):
def setUp(self):
self.guest1 = Guest("Alex", 10.00, ("Oasis", "Wonderwall"))
self.guest2 = Guest("Mark", 12.00, ("Blur", "Song 2"))
self.guest3 = Guest("Joe", 15.00, ("Killers", "M... | [
"emil.shiva@gmail.com"
] | emil.shiva@gmail.com |
0e3ad8df74ea57b55f8f1821978adc44e2249f32 | a96d350d9f970b33263f1b293de9c1f6e5064edc | /experiments/metrics_clustering.py | 2c55789e4c698a895e9bae6b67ae3fd59892402c | [] | no_license | monghimng/ULAB-Community-Detection-Circulo | 64fe64ab8af376e7039dcf73f982df095a9ab798 | c2b04d20f1a990c0c246b54b2f0c6ddbf8ee593d | refs/heads/master | 2021-01-22T17:49:19.920765 | 2017-03-15T06:46:19 | 2017-03-15T06:46:19 | 85,038,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | import json
import glob
import os
from collections import Counter
import numpy as np
import argparse
from scipy.stats import itemfreq
from scipy.cluster.vq import kmeans2, whiten
metric_list = [
"Conductance",
"Cut Ratio",
"Degree StatisticsBiased Kurtosis",
"Density",
"Expansion",
"Cohesiv... | [
"paulm@lab41.org"
] | paulm@lab41.org |
a1605723b7c638d4a6bd3f932779f4ef3a80e9cc | 12ca549ce389b8c640a9387b655d060424bfe7fe | /utils_plots.py | db814b53d80206071e4a53fac2e3f1e874d9c0c9 | [] | no_license | valeriomieuli/LLwE | 617417c521bb915c3f97989f21763e4662b937b6 | 4dd64017d1a2ccd6e5c6aa96a0699ff89af47713 | refs/heads/master | 2020-12-12T14:22:18.809565 | 2020-01-15T19:03:25 | 2020-01-15T19:03:25 | 234,149,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,670 | py | import matplotlib.pyplot as plt
import numpy as np
def train_plot(train_result, fname):
fig, (ax1, ax2) = plt.subplots(1, 2)
fig.set_figheight(4)
fig.set_figwidth(9)
ax1.plot(train_result.epoch, train_result.history["loss"], label="train_loss", color='red')
ax1.set(xlabel='Epochs', ylabel='Loss')... | [
"valeriomieuli@gmail.com"
] | valeriomieuli@gmail.com |
99fc35038d7495bb7459467889aae17cb6fa9414 | 36f29bcc978a59d5d638cea0223dc21403307b61 | /management/languages/migrations/0001_initial.py | a644d5c952f1ab7c5616ebba2112d290024434e1 | [] | no_license | AndrewCherabaev/management_app | 85f0797e7e8a97dcab3ea126ebdea4ee14df5de6 | 7cd865223d6eca9911a60de7e6971a1e1fd8518d | refs/heads/master | 2023-02-28T14:47:43.665698 | 2021-02-05T11:01:33 | 2021-02-05T11:01:33 | 333,758,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | # Generated by Django 3.1.5 on 2021-01-27 16:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Language',
fields=[
... | [
"andrew@MacBook-Air-Andrej.local"
] | andrew@MacBook-Air-Andrej.local |
307d6b115817fb5d58a48c79a97dfe61c32912fa | ea093184cd328aaeeb45837ed74f70fc296254b5 | /Milestone 5/2) Model Deploy to Web - Flask/bin/chardetect | 424d437107738a326ef2fc5ea97331a3d475eb3b | [] | no_license | nurul-ds/Data-Mining-and-Prediction--Crude-Oil-Price | 2d44e9cb6d6f5995970372a6b0a79127fb222e2d | 36bffda5a2ed9c89934fc537b665496200250ca3 | refs/heads/main | 2023-01-24T05:17:24.752898 | 2020-12-11T08:46:55 | 2020-12-11T08:46:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/Users/Nurullainy/VirtualenvironmentMac/web_deployment_flask/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())
| [
"lainy.cp@gmail.com"
] | lainy.cp@gmail.com | |
904dcd8c052b8edec0a26f84e9ec3b3534378511 | fd9837ffdd0ee405b990e0971b4501b8cfc2d7bc | /errors.py | 027a54050382763559edbe8da4546c6ce5b14f4a | [
"MIT"
] | permissive | vsjha18/nsetools | 277b9c91e172d45bcdc60209ef930b505d6b82fa | 07714d686d6e70e3cff05581a6fa1670229d73be | refs/heads/master | 2023-06-09T20:55:47.108908 | 2023-06-04T19:34:01 | 2023-06-04T19:34:01 | 28,475,626 | 782 | 441 | MIT | 2023-08-17T17:18:26 | 2014-12-25T08:07:51 | Python | UTF-8 | Python | false | false | 251 | py | class BhavcopyNotAvailableError(Exception):
"""this error could occur in case you download bhavcopy for the dates
when the market was close"""
pass
class DateFormatError(Exception):
"""in case the date format is errorneous"""
pass | [
"vivejha@cisco.com"
] | vivejha@cisco.com |
eeaf201358b733d340ba20b8541a19ccc863938e | 8e7279bc3de368e85129b8e59f12cbdbd8621da1 | /myenv/bin/gifmaker.py | b0dd02f4131ba154bff4296b4730f87a960d0ce0 | [] | no_license | banziha104/dstagram2 | 34f5dca6deb9c19c03fa523d6e4b1c97f60e14d4 | 12dbecb4a727fe67faffc1b2208bd4b5152a8672 | refs/heads/master | 2021-07-09T23:51:17.262219 | 2017-10-10T11:18:45 | 2017-10-10T11:18:45 | 105,170,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #!/Users/iyeongjun/Downloads/dstagram_2nd/myenv/bin/python3.6
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for infor... | [
"they6687@naver.com"
] | they6687@naver.com |
6c9a757789b1a6dd4dfd1e6c27ff0e1986fc7ed3 | 6f8c9ae5169eb23e6e523dcd492881ae3df334fb | /Models/BERTs/data.py | 85953587e218fa9502d2397661a4a155b7cc194a | [
"Apache-2.0"
] | permissive | huangyedi2012/Chinese-sentence-pair-modeling | 4fb916b8402c48c3e59abe01d9f7293d2aa912de | 90adbc5c121832ce3e4a4057e30417a6ec5e7ebc | refs/heads/master | 2023-01-31T16:29:42.579073 | 2020-12-18T17:03:56 | 2020-12-18T17:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,093 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 25 00:03:18 2020
@author: 31906
"""
from torch.utils.data import Dataset
import pandas as pd
import torch
class DataPrecessForSentence(Dataset):
"""
对文本进行处理
"""
def __init__(self, bert_tokenizer, df, max_word_len = 64):
"""
bert_tokenize... | [
"3190620639@qq.com"
] | 3190620639@qq.com |
2ffb58c61746bd4443255405e2153cd4dd1e6dda | 1b3c51fee2fa4b8c3d06e4004b4656efd498962a | /postprocessing/AIDA-Interchange-Format-master/python/tests/scaling_test.py | 40b1b6a185d2bf4e67c5377ce578eddc37d42fb9 | [
"MIT"
] | permissive | lianglili/uiuc_ie_pipeline_finegrained_source_code | ff2ce622ba4c7cc81a70d7d013fd180422002fff | 458bcd6ddfd4372391924a5f1e5e91089289d4f4 | refs/heads/master | 2023-01-03T21:31:33.154388 | 2020-10-31T03:11:04 | 2020-10-31T03:11:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,300 | py | import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
import time
import random
from aida_interchange import aifutils
from aida_interchange.aida_rdf_ontologies import SEEDLING_TYPES_NIST
from rdflib import URIRef
class ScalingTest():
filename = "scalingdata.ttl"... | [
"limanlingcs@gmail.com"
] | limanlingcs@gmail.com |
d9c94007b05b243ba95ace0dae93928d09561f45 | bf0800eee5a43f600ab3ebd99d3486846d9f4834 | /blog/views.py | aa024c57c30b7e613d9d778655bff923cef2a3e5 | [] | no_license | wonsik1012/my-first-blog | 6de17de4bd13a9d36650ad2070b07190461dbd3e | e0124e41b8dabf20e23af5d969e55a2238841dba | refs/heads/master | 2020-07-03T10:07:38.321239 | 2019-08-13T11:48:21 | 2019-08-13T11:48:21 | 201,874,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,924 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, redirect, render_to_response
from django.http import HttpResponse
from django.template.loader import get_template
from django.template.context import RequestContext
import folium
from IPyt... | [
"you@example.com"
] | you@example.com |
cf955fac02a1f41b9fbbdd9537a6c15107c1a7d0 | 13892da0ca7b4ec973be46b6b42ce0ed46ad6c47 | /preprocess_infomation.py | 3d0460cc56529ebdbbf2801f2aa93364b2b54c10 | [] | no_license | VermaShr/image-captioning | 1e1e6839fcbd2b3ee73107cbca7db94bcffe0841 | 410b6ec1dd35de6e082188d7c69dd77a0cf457be | refs/heads/master | 2020-04-24T15:29:00.905611 | 2019-02-22T14:27:20 | 2019-02-22T14:27:20 | 172,069,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,978 | py | """
Before running this code make sure that
1) Images have been segregated into train,test and validation
2) Pycocotool have been installed
3) SELECT MODE
ATTENTION/ WITHOUT ATTTENTION
Modify the paths to local paths
"""
import cPickle
import os
import numpy as np
import re
from utilities import log
from nltk.... | [
"sverma654@gmail.com"
] | sverma654@gmail.com |
897284ff5a0bb4cecf47a40890334017332a2bed | 29b37c07c55d3b571ab2afefeeb88a43425dc30d | /priority_queue_112.py | d53db054f9a969761cac5c29a5e5ce82b4ff371d | [] | no_license | nearmo/heap_ordered_binary_tree | ad9fc8f7df089168a5d662015d56237a68deefe8 | 7ef26618ac9750cb7e6671fbcaf2fa4cc4ed4900 | refs/heads/master | 2022-08-31T15:10:44.052399 | 2020-05-24T09:25:10 | 2020-05-24T09:25:10 | 266,489,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,489 | py | #!/usr/bin/env python3
from math import log, floor
from statistics import mean
from re import findall
class PQ(object):
'''Initialises instance'''
def __init__(self):
self.d = {}
self.N = 0
'''swaps the position of two values'''
def exch(self, i, j):
self.d[i], self.d[j] = sel... | [
"diarmuid.b.8612@gmail.com"
] | diarmuid.b.8612@gmail.com |
67e9456095b1afadb01c1e62757f4091ad90eb1c | 2c3de3d359a7a7cb7ea6dfa0a4f1c444681b68de | /Django/Lecture3/tasks/urls.py | 872e69835f1b3da25e18f6f68395cf28df290063 | [] | no_license | pcolt/CS50-Web-Programming | a2fea01b0eeaa1c902c4c52127c4d8ca0e19b09e | acb96587d0a69b482a35ff4d185adfb7f7495c93 | refs/heads/master | 2023-01-05T12:16:49.433162 | 2020-10-29T10:29:27 | 2020-10-29T10:29:27 | 277,560,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("add", views.add, name="add")
]
| [
"pcolturi@fastmail.com"
] | pcolturi@fastmail.com |
e59916694f2e23ff667f5791bf356795499f119c | 29f50b18e84d7de9746855b2b2f5522f28c9dc11 | /ohbugztracker/tracker/views.py | c208e4a05698a6c2c15597eeb32e4730adaa31c2 | [] | no_license | rishikeshjadhav/python-samples | b1f3a53271537c8a9e881090a811f3ab2bceb886 | 1a09d8f22950232e22153c2ab7f6c112c8237a29 | refs/heads/master | 2020-03-25T10:45:19.759651 | 2018-08-06T09:18:28 | 2018-08-06T09:18:28 | 143,704,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | from django.shortcuts import render
from .models import Project, Task
from .forms import ProjectForm
from django.shortcuts import redirect
# Create your views here.
def index(request):
projects = Project.objects.all()
return render(request, 'index.html', {'projects': projects})
def add_new_project(request)... | [
"rishijadhav2792@gmail.com"
] | rishijadhav2792@gmail.com |
64f4aecdc4ba0856009744c04d0a8cef73e58ae7 | 77db6591c5884204d6016bfa89b33691bac38813 | /load.py | b2a9c8a3983643329620f4d7f7cd949b5ccd27f0 | [] | no_license | jbukoski/iltf-signal-webmap-suite | 4fc0aafa977e911a1071872f7adbaf2e7d0da37c | b8374e9cfcc80501a8f632721a7cb9b76e668f6b | refs/heads/master | 2021-03-27T11:20:37.174667 | 2020-12-31T18:03:20 | 2020-12-31T18:03:20 | 79,853,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import os
from django.contrib.gis.utils import LayerMapping
from . import models
*_shp = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', '', '*.shp'))
def run(verbose=True):
*_lm = LayerMapping(
models.*, *_shp, *_mapping,
transform=False, encoding='iso-8859-1'
... | [
"jacob.bukoski@yale.edu"
] | jacob.bukoski@yale.edu |
080be39125123bae5847497f01f0fbc35593ef1f | 24a1639df824e325c3a1b750b98caa121b5729c0 | /utils.py | 79919f7ac4d33786e643ef89c2342cfcb5dd2967 | [] | no_license | Weigoss/sacn_dgl | e31deaede5ea510e3e6f67da3bf01528dd336db2 | 619838c72171913aa43b097ac3276c5b5ecaf607 | refs/heads/main | 2023-02-02T07:07:49.481210 | 2020-12-23T13:42:10 | 2020-12-23T13:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
code from https://github.com/dmlc/dgl/blob/master/examples/pytorch/gat/utils.py
"""
import numpy as np
import torch
class EarlyStopping:
def __init__(self, patience=10):
self.patience = patience
self.counter = 0
self.best_score = None
self.early_stop = False
def step(self, ... | [
"maqy1995@163.com"
] | maqy1995@163.com |
c597f9e8df6464ea3de140f45ce2a54156280d96 | 29fdcdde4aae7502d8170cc44f4af635fbcce5b5 | /MySQLPython/update_data_5.py | dde1923a3fc9c3c16d98636ad7bf003095dbb906 | [] | no_license | shivam0071/exploringPython | bcbd0d03f8f473077d3777d1396ef4638e5c6cee | ace9646e59ba20068e383704430efe4946833090 | refs/heads/master | 2022-05-05T00:34:24.642204 | 2022-04-01T06:13:38 | 2022-04-01T06:13:38 | 81,352,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import pymysql
conn = pymysql.connect(host = 'localhost',user = 'root',password='hidden',db = 'pythontestdb')
mycursor = conn.cursor()
# sql = "UPDATE ninja SET attack='Shadow Clone Jutsu' where name = 'Naruto'"
# mycursor.execute(sql)
# conn.commit()
mycursor.execute("SELECT * from ninja where name='Naruto'")
prin... | [
"shivam0071@users.noreply.github.com"
] | shivam0071@users.noreply.github.com |
7e9e19a672cc628c6de3bc8e5c6bc27e7e767af9 | e0ecbc6352c442370e90238ae7dd71f4fb78cfa9 | /visual_question_answer/model.py | 76ddc06e1dbeaa8d56d4f2b52510d2d2034316d4 | [] | no_license | xiaogang00/Deep-learning-on-Tensorflow | 22a13b4f9f4db5934b710fdd887d9e88d22ef72d | 7f9cd740bf330ae2fc7ae77636ded068e2aa405c | refs/heads/master | 2021-01-17T14:34:14.490989 | 2017-10-27T03:48:14 | 2017-10-27T03:48:14 | 84,092,564 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,652 | py | import math
import os
import tensorflow as tf
import numpy as np
from base_model import *
from utils.nn import *
from episodic_memory import *
class QuestionAnswerer(BaseModel):
def build(self):
""" Build the model. """
self.build_cnn()
self.build_rnn()
def build_cnn(self):
""... | [
"872310734@qq.com"
] | 872310734@qq.com |
29e16f0faaa4866bc0815c2235ece255f754032e | d5eb2fe5d49b581562ae2bc660d08ca80a03d331 | /PythonSandbox/src/misc/num_digits_in_integer.py | 6757434647672cd9e95d213417d05eed2cbab5ac | [] | no_license | mcxu/code-sandbox | fd5aa2e593057901d281a0e74db8957777b06cf3 | a785231582bda8578f79982e2dcddd2f2ab559b4 | refs/heads/master | 2023-07-10T02:07:24.180947 | 2023-07-08T03:31:48 | 2023-07-08T03:31:48 | 130,493,607 | 4 | 2 | null | 2023-01-15T22:53:29 | 2018-04-21T16:49:40 | Python | UTF-8 | Python | false | false | 130 | py | '''
Given an integer n, return a map showing the counts of each single digit in n.
Condition: Do not convert n into string.
'''
| [
"michaelxu79@gmail.com"
] | michaelxu79@gmail.com |
dcf96b29b3add29777afb682281c2208544869c8 | dd4f833a6f4ef2cdbb7c2c56e2f98edf2ea2527b | /81_search_in_rotated_sorted_array_2/sol.py | 318a7056f5067545dd317108ecd4aecaaa4f5e02 | [] | no_license | lianke123321/leetcode_sol | 7db8f041103bd6f2710582ceb8a6778b36cd534e | ea492ec864b50547214ecbbb2cdeeac21e70229b | refs/heads/master | 2020-04-06T15:50:12.988755 | 2016-10-21T07:47:29 | 2016-10-21T07:47:29 | 41,214,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
if not nums:
return False
low = 0
high = len(nums) - 1
while low <= high:
mid = low + (high - low) / 2
... | [
"ankeli@cs.stonybrook.edu"
] | ankeli@cs.stonybrook.edu |
5ea5fe910e1ef86b506005a39e879e50f77d83f4 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/473_matchsticks_to_square.py | 99245aad8635cdcb9f58acde68ea9d0399c61f3b | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | class Solution:
def makesquare(self, matchsticks: List[int]) -> bool:
l = sum(matchsticks)
if l % 4 != 0:
return False
size = l // 4
matchsticks.sort()
return self._dfs(matchsticks, len(matchsticks)-1, [size] * 4)
def _dfs(self, ms, pos, sizes):
i... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
0d289d32188e4293e36a4834feff7c0180528811 | 3900320dcf41439677a978e31540af197fcb9eac | /notes/Data_Structures/Class_notes/stacks-and-queues/stacks_and_queues.py | 4466fecad2420df535ccfa79bb08278f2bf3d514 | [] | no_license | youngalx2/computer_science | 80b9e843a098ceaa5c109c1283d5785093f7015a | 84a591d8a964358f0417c506092c90339020c861 | refs/heads/main | 2023-08-14T02:07:06.616839 | 2021-09-29T06:48:26 | 2021-09-29T06:48:26 | 406,182,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | from collections import deque
# make a new queue
our_queue = deque()
# we are going to limit pop() append()
our_stack = []
# start with a stack [1, 2, 3, 4, 5]
our_stack.append(1)
our_stack.append(2)
our_stack.append(3)
our_stack.append(4)
our_stack.append(5)
# how do we get that first element over to my queue
our_... | [
"89937900+youngalx2@users.noreply.github.com"
] | 89937900+youngalx2@users.noreply.github.com |
ab1d0cabf2fcd61e81b9bbbfbbb6d74b4ae138b9 | 739db760e9082f2aefa45b104fde33f8ee97c7c7 | /setup.py | 3923fc7b6f7a5aacd5cf471d20e958a3a41e927d | [] | no_license | hetaov/study | 69e21b2b6b6dc97b9197291f0b04d8277bc12234 | 8a9edafd3c657fa3805d05fe6800db7771277004 | refs/heads/master | 2021-01-17T18:02:28.637007 | 2017-12-19T08:52:23 | 2017-12-19T08:52:23 | 70,954,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import distutils.core
try:
import setuptools
except ImportError:
pass
packages=[]
distutils.core.setup(
name='study',
version = '0.4.2',
packages=['test_module'],
author='Innovaser',
author_email='rancavil@innovaser.cl',
install_requires=packages
)
| [
"ross.he@semioe.com"
] | ross.he@semioe.com |
71fb701ac72e5e8ae42a06887313228a0134a9d3 | 9de9ff94ad37ea2e2a4e7d96c12acd3101a471e1 | /sec22-threads/threadCommunicationUsingWaitAndNotify.py | 57d33c2ca0a80ae10af370f6844fad4630997988 | [] | no_license | paularodriguez/python-core-and-advance-course | 0c2d0ef14566a9b30e8f92455bdb9029d7e14342 | 7e6cf274bae80f772151b60c2f4e67e9872c442a | refs/heads/master | 2020-08-29T17:25:46.338347 | 2019-11-20T21:10:39 | 2019-11-20T21:10:39 | 218,110,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from threading import *
from time import sleep
class Producer:
def __init__(self):
self.products = []
self.c = Condition()
def produce(self):
self.c.acquire()
for i in range(1,5):
self.products.append("Product " + str(i))
sleep(1)
print("Ite... | [
"paula.rp93@gmail.com"
] | paula.rp93@gmail.com |
883d4fe08ad71cc98c2aa4886028014fb52da007 | dcbcfcf9e8eb5b1666fd4b10c9183c9a64e47c0b | /GMMn.py | ad20169a373541022b33ccbc47b5b3b9fed6457a | [] | no_license | 2ahmedabdullah/GMM | 364bab9a45160fbed36693de3aa59bb7465b9a0d | 439a2ba3e5238bc5beec5da401adc28bee737b49 | refs/heads/master | 2023-08-01T07:24:26.314945 | 2021-09-17T17:19:19 | 2021-09-17T17:19:19 | 93,623,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 21 14:34:41 2018
@author: 1449486
"""
import numpy as np
import pandas as pd
confg = pd.read_csv("//01hw755449/Shared/ABDUL/GMM_complete/config1.txt")
confg=confg.transpose()
confg.columns = confg.iloc[0]
confg=confg.iloc[1:]
#confg=confg.transpose()
... | [
"noreply@github.com"
] | 2ahmedabdullah.noreply@github.com |
a5f1163c05b92d47232715c5533421c1260f3dbb | 885a3624e8211bd34c04edef632fd4a75e20c23c | /stats/migrations/0004_country.py | 6b89583b4caac17eafc6a1cdefd8ea0edd967a37 | [] | no_license | dlee3458/coronavirus-pandemic | b41bc4547338b0d4710bba39cf3c9551f74ae41d | 566fa96dfee37ae543ed70a63db460c5c57020c9 | refs/heads/main | 2023-06-03T07:12:31.076251 | 2021-06-23T08:16:47 | 2021-06-23T08:16:47 | 341,119,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 3.0.2 on 2020-05-27 08:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stats', '0003_record'),
]
operations = [
migrations.CreateModel(
name='Country',
fields=[
('id', mod... | [
"dlee@daniels-mbp.home"
] | dlee@daniels-mbp.home |
11352cd17ac2b55df4e0c0aa5c2b18f16ea0440d | 3646bd3a3737f39e5b6301d6ad17f2d4268b005c | /dc1.py | 9a43bd0e1279d86752547a08de95e3e72f1e6126 | [] | no_license | supria68/dailychallenge | 8aa1a072032e4e2b718636a6d53d843837f1146d | be5ce1304f4795cc0aea30ba57a3a1f7b214d726 | refs/heads/main | 2023-03-22T05:21:51.390876 | 2021-03-22T20:37:07 | 2021-03-22T20:37:07 | 335,982,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | """
Your goal is to create a function that removes the first and last letters of a string. Strings with two characters or less are considered invalid. You can choose to have your function return null or simply ignore.
"""
def solution(somestr):
if len(somestr) > 2:
return somestr[1:-1]
return None
def... | [
"noreply@github.com"
] | supria68.noreply@github.com |
2504e5242e6b6ab80063100a440a1bfb8f0179f0 | f17d2a88c566b884272f5468f57cbe7201af7f22 | /app/core/migrations/0002_tag.py | 34b9ec20533042a4b716c555023f098daf484ec2 | [
"MIT"
] | permissive | hosam7asko77/recipe-app-api | 44710cd9c82ce91fec0f20904689aa591d430f97 | 695fcfaba18e285aa4a8c0b58ec66ee9720edf08 | refs/heads/master | 2020-09-01T14:04:40.466348 | 2019-11-11T14:58:57 | 2019-11-11T14:58:57 | 218,975,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Generated by Django 2.2.6 on 2019-11-11 12:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"hosam7asko1993@gmail.com"
] | hosam7asko1993@gmail.com |
2bc69e113e4e87e4a6c1835a4f492b11cf98a7ae | 6dc9183cb416fc28997cdfb508befd6ef681832c | /paper16/qc2c.py | 36b0fe5a79e62071bcce6c42639d1fa564f1e9c2 | [] | no_license | wiwa/qc | b7a622f6735ba3252990562a4a8522860d199b13 | a3760d71b96369e714c69bf48a07c5776d12c496 | refs/heads/master | 2021-03-27T11:43:57.343196 | 2016-12-19T04:22:10 | 2016-12-19T04:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | from numpy import *
from scipy import integrate
from scipy.constants import hbar, pi
import pylab as p
# electron relaxation time between singlet triplet state
# s. pasini paper referenced t in units of "tau_p"??
tau = 1e-11
tau=1
# Params in THz
w = 1e11
D = 1e12 # Delta from long ago
D = 1e-40
i_ = 1.0j
def iw(... | [
"fallenpwr@gmail.com"
] | fallenpwr@gmail.com |
9984771e8d626ada77fcf03acc254f38d7ad94e0 | c6743ba5c320cf24f7beeea0ab3a0a3b62f35b18 | /train_gn.py | d3c8e08457bbf79da79dacb7eba8b2257719971b | [] | no_license | yi-xiao-wang/gn.pytorch | 3df7348c82aab89552e54aa387e3673811dd373c | c55d75fb5d8c5c92e3d98414c3db863ad72ba965 | refs/heads/master | 2021-10-08T17:03:48.906420 | 2018-12-15T06:06:08 | 2018-12-15T06:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | import torch.utils.data as data
from torch.utils.data import DataLoader
import numpy as np
import networkx as nx
import torch.optim as optim
import matplotlib.pyplot as plt
from gn_models import init_graph_features, FFGN
import torch
from tensorboardX import SummaryWriter
from datetime import datetime
import os
from da... | [
"xf1280@gmail.com"
] | xf1280@gmail.com |
10ad290fce78ce96c8d16dd4306668b6a6b91f45 | 0aa5c371d51b8c90108a35ab9094ec1122422107 | /labs/lab08.py | 6339f984e3e52232dfc87f83c2629572bf333d85 | [] | no_license | caseyzlei/cs61a | b0cfc7fb8f2b725e2f2478313ce336fefd3f386c | 88131410dabf936abb02e6224e6ede650f9d2b2b | refs/heads/main | 2023-02-05T09:28:20.037392 | 2020-12-21T23:24:16 | 2020-12-21T23:24:16 | 323,467,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | def convert_link(link):
"""Takes a linked list and returns a Python list with the same elements.
>>> link = Link(1, Link(2, Link(3, Link(4))))
>>> convert_link(link)
[1, 2, 3, 4]
>>> convert_link(Link.empty)
[]
"""
"*** YOUR CODE HERE ***"
if link == Link.empty:
return []
... | [
"noreply@github.com"
] | caseyzlei.noreply@github.com |
5a6597d356ef6a5f9227e2b52931dcdad487a02e | b3103d810f1e1f2032ec77f7e1e4282bdac7d70f | /createDics.py | 8b4da7c5cc823aacf17326cdee591d8976e91c6c | [] | no_license | ozgedincsoy/SeniorProject | 9031c4a1c96095f7c70450df411e05f637f02078 | 5ab5d05f0baae436fd2b770a2c1b4231d9840a8c | refs/heads/master | 2020-05-23T16:14:21.619200 | 2019-05-15T17:38:45 | 2019-05-15T17:38:45 | 186,844,663 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | import re
import pymongo
from pymongo import MongoClient
import pickle
"""
This script creates geneInformation.pickle and docToGenes.pickle files.
"""
def get_two_genes_contained(gene1, gene2):
res = []
for doc in docs:
if gene1 in docs[doc] and gene2 in docs[doc]:
res.append(doc)
... | [
"ozgedincsoy@Ozges-MacBook-Pro.local"
] | ozgedincsoy@Ozges-MacBook-Pro.local |
029412551ed3eb0069eec0f73a51a8eb8ab161f8 | eada2d13ea45c94f14c6537aef178c0ebe3ae3f0 | /Rice Fundamentals of Computing specialisation/Principles of Computing/Part 2/Week 8 Min Max Tic Tac Toe.py | 0eee011ac4c5523bf1e0dceb868484769afe9af8 | [] | no_license | leonlinsx/ABP-code | 1b77ef370121f67cc9a424b59944e2eb9dcef3b7 | 480e3f5786561332943c24fe15cf23a5c4835cf5 | refs/heads/master | 2023-03-03T14:01:38.396222 | 2021-02-14T20:33:52 | 2021-02-14T20:33:52 | 274,461,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | """
Mini-max Tic-Tac-Toe Player
Board class is here: https://www.coursera.org/learn/principles-of-computing-2/supplement/qMWrV/tttboard-class
test suite here: http://www.codeskulptor.org/#user48_IVQKbrFzXY_52.py
practice nim game here: http://www.codeskulptor.org/#user48_nim_recursive_template_0.py
"""
import... | [
"noreply@github.com"
] | leonlinsx.noreply@github.com |
b0d281e7e1d1edddc317844f590fe586d45dbebe | 67c030e79325f0ae780dd36129170e8ecd45d156 | /week2/soclient.py | be5114997f781305f2ef86ab82c643ac1734816e | [] | no_license | James-Dolan/bootcamp | bf4f293ad6d16cdebc5c1c2b95e36dfc1d853eb3 | c4f6ae3c5b331fcfddaae0fe791a8bf5cdd7ac84 | refs/heads/master | 2021-06-24T09:20:39.615973 | 2017-08-22T01:44:14 | 2017-08-22T01:44:14 | 101,021,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """Pentester lab bootcamp
week 2 - http client with sockets
James Dolan
"""
import sys
import socket
def main():
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error:
print('failed ot create socket, error code: ' + str(msg[0]) + ' , Error message : ' + msg[1])
sys.exit()
print('soc... | [
"jamesdolan503@gmail.com"
] | jamesdolan503@gmail.com |
26f957332c23ca4ad82b9af6f0c37a65ad657120 | 365a1710edf7f022c3d08138882e43c449f4d77a | /setup.py | 48529a96c6512ce5df9bdab12427a79c74c4b635 | [] | no_license | lglassy/kapro | fff90fc601a22386216d9bca98b5b512ee20d393 | 4246133af8e6da42413028f145967048a43c248c | refs/heads/master | 2020-04-09T20:30:12.561196 | 2018-12-06T02:46:05 | 2018-12-06T02:46:05 | 160,575,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py |
# standard modules
import glob
import os
import os.path
import platform
import shutil
import setuptools
import sys
import sysconfig
setuptools.setup(
name = 'kapro',
version = '0.1',
description = 'small document database with sqlite storage engine',
author = 'Lou Glassy',
... | [
"lou@dianthus.example.org"
] | lou@dianthus.example.org |
884cb5ac643297896d0e2af6e2bacd1ea9d099ee | ae4bc46b4aed7d67275bb451759f0df7c626a720 | /connect3.py | 3d7e94bb7d3303897c5a531334e8b50269c52b20 | [] | no_license | Airoure/search-engine | f7bb5b6bffe6f7397c6c63382a1e4593f0646eca | 0ea379b390b873a0e1ca0b277fce5d645e82f55a | refs/heads/master | 2020-08-09T19:18:20.701585 | 2019-12-08T14:25:23 | 2019-12-08T14:25:23 | 214,152,812 | 0 | 5 | null | 2019-12-08T14:25:25 | 2019-10-10T10:24:47 | Python | UTF-8 | Python | false | false | 3,946 | py | import pygame,sys,random
from pygame.locals import *
#定义颜色变量 目标方块的颜色
yellowColor = pygame.Color(255,255,0)
#贪吃蛇的颜色
greenColor = pygame.Color(0,250,154)
#背景颜色
blackColor = pygame.Color(255,255,255)
def gameOver():
pygame.quit()
sys.exit()
def main():
# 初始化pygame
pygame.init()
# 控制游戏速... | [
"noreply@github.com"
] | Airoure.noreply@github.com |
c4c85a2c4f053ec3eb0bfe5c78a4750d02825bab | 7f8b60a3a12f6ac61fce04f2e3ef2185c99418cb | /test_scraping_streeteasy.py | 4d4e42317508ad7d9850323a6195aa386384f97a | [] | no_license | vikivayner/CIS-9650-Project- | 44a8ae04acc8d0a3544b0799c09af28a8caa61d4 | aa2960a3c37ca6825c2e53157505f6d1b24cc24a | refs/heads/master | 2023-06-18T15:44:00.436088 | 2021-05-14T01:36:17 | 2021-05-14T01:36:17 | 364,033,714 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
streeteasy_url = 'https://streeteasy.com/2-bedroom-apartments-for-sale/murray-hill/price:-2000000'
req = Request(streeteasy_url, headers={'User-Agent': 'Chrome/90.0.4430.93'})
make_request = urlopen(req)
read_html = make_request.read()
html_so... | [
"mohammad.shafique1@baruchmail.cuny.edu"
] | mohammad.shafique1@baruchmail.cuny.edu |
85f970aac1289aa71773cf2f9f5fee61ae7a289f | a939e018333a9ecd26ddc618f99835b7eb381686 | /mapred_parser/user_merger/.svn/text-base/reducer.py.svn-base | c71b89a519663ca1e57f7a5f17e75be85bb0ab96 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | #!/usr/bin/python
# coding=utf-8
import os
import sys
import time
import base64
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/../')
from le_crawler.proto.video.ttypes import OriginalUser
from le_crawler.common.utils import str2mediavideo, thrift2str
user_merge_field = set(['user_name', 'url', 'port... | [
"zjc0516@126.com"
] | zjc0516@126.com | |
b2980f93a9d385c0eb93ed900e2512561a230796 | 435730a7ac4aad11b435d7f9c599b2639c79be00 | /Pertemuan5/QTextEdit/DemoQTextEdit.py | 54967c5434294a603e33405ea28d413117bdae08 | [] | no_license | firmangaluhs/PraktikumGUI | 1986540913c6c2ed38a0cae2585f61032d65f69c | bde9f9345b06d41189da443ff2200f635c876a0e | refs/heads/master | 2020-05-14T03:24:49.973146 | 2019-07-07T10:43:06 | 2019-07-07T10:43:06 | 181,693,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import sys
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
class DemoQTextEdit(QWidget):
def __init__(self):
super().__init__()
self.setupUi()
def setupUi(self):
self.resize(400, 200)
self.move(300, 300)
self.setWindowTi... | [
"noreply@github.com"
] | firmangaluhs.noreply@github.com |
1a6eeb03504902d1be2747c7e0afa6028dc43054 | 00ad9fbdec554c35ffd95d5406ef7a880444ac8b | /serve.py | 485e7b27c5e739d3f2aea261a311be724d387cb4 | [] | no_license | AI-Passionner/word-recognition-ocr | 460dc2792c90216239f4cdb0808bca51c3d9315a | f9e451f9f6eb6b6a9f38ebbc9eb068d32fb4bd4c | refs/heads/master | 2022-11-09T01:23:30.361590 | 2020-06-28T06:20:23 | 2020-06-28T06:20:23 | 266,566,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | import cv2
import argparse
from src.predict import RecognitionUtils
from src.analyze_document import AnalyzeDocument
from src.image_util import ImageUtils
def main(image_file, output_path):
image = cv2.imread(image_file)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# remove lines for better txt detect... | [
"dlaohu.github@gmail.com"
] | dlaohu.github@gmail.com |
3f2cee0071989d5dddcf5e06d71d0c53ccf74a79 | 19ddab74600f71700a6b693281d0180d5271f295 | /leetcode/119_杨辉三角2.py | 5ca9f3c4a447aa5bf40bb8293558abdaa26cfa73 | [] | no_license | zhulf0804/Coding.Python | 4d55a430da1a8077c81feba65c13ac654aaf094a | 46ab03e23d15ebd5434ef4dd5ae99130000b00a5 | refs/heads/master | 2022-09-14T18:40:59.880941 | 2022-08-20T08:25:51 | 2022-08-20T08:25:51 | 213,113,482 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from typing import List
class Solution:
def getRow(self, rowIndex: int) -> List[int]:
if rowIndex == 0:
return [1]
if rowIndex == 1:
return [1, 1]
pre = [1, 1]
for i in range(2, rowIndex+1):
cur = [1] * (i + 1)
for j in range(1, i):
... | [
"zhulf0804@gmail.com"
] | zhulf0804@gmail.com |
1ff85fe747c7f0ba49485d7457fca4fd3c24c8c2 | 52f25de526703905b08f6945b484f10bf6636591 | /jupyterlab_hdf/_version.py | a30f283eb29770948e018983e369cacc90d7b1e4 | [
"BSD-3-Clause"
] | permissive | hephaex/jupyterlab-hdf5 | e5f69d6949419c951f2dd2d7c679a3e7b1e406ad | 77eb5bedd5ef27758015af53ef03cc4d05d123c0 | refs/heads/master | 2022-10-17T23:42:09.656059 | 2020-06-16T03:34:58 | 2020-06-16T03:34:58 | 272,601,270 | 0 | 0 | null | 2020-06-16T03:32:14 | 2020-06-16T03:32:13 | null | UTF-8 | Python | false | false | 149 | py | # -*- coding: utf-8 -*-
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
__version__ = '0.4.0'
| [
"mklein@jhu.edu"
] | mklein@jhu.edu |
d7436d052f3fa5cb85da70a7387765afbdd5c1b3 | 2235e32f6c2f345bcb21f37328d4e114c2402ab4 | /kdguoguo.py | dc01f3030ac0493c94b62264979ab609d72cc395 | [] | no_license | leipengkai/scrapy | b47e0d4a40e642044dd5e85e98fc742670c8cd73 | 5ad14ffd8d531b53b20bc1ba2d9463f4e992db2f | refs/heads/master | 2021-07-02T22:56:56.422439 | 2020-08-30T09:00:27 | 2020-08-30T09:00:27 | 154,592,528 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
import... | [
"leipengkai@gmail.com"
] | leipengkai@gmail.com |
1e40eb8ebf6126ef170356dc390a90a0bdfcd028 | 2cc0058845c55602d123b673d03d0f65401539bf | /KTextExtract2.py | d827b53ff88867a9f184967822ba5b7fbb8b6e38 | [] | no_license | SSKudos/PyCodes | 5295abf3392fa64719912ca4cd52aa7bc3d3212a | 939fb5af3e868dd538520ee908676122cd51da5d | refs/heads/main | 2023-04-30T20:03:38.157990 | 2021-04-29T19:52:01 | 2021-04-29T19:52:01 | 311,798,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from PIL import Image
import cv2
import pytesseract
import os
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
def main():
path = r'C:\Users\CHIJINDU\Desktop\ml learn'
# path for the folder for getting the raw images
# iterating the images inside the folder
for imageName in ... | [
"noreply@github.com"
] | SSKudos.noreply@github.com |
8c538d44113ba9e50da23185ac2eaee258c5557c | aa3848f5207219119bbad65b7423d08f0d4734e1 | /minxss_library/pass_planning_tool/python/minxss_email.py | afc08a87c9775780b4b9895eb21eefa9e1a04562 | [] | no_license | minxsscubesat/minxsscubesat | 81e4857378a1365339266b1ed757c638880899e9 | 77567b5be1a6da0607d093968ea2672c0cc9058a | refs/heads/master | 2023-08-31T01:54:59.370941 | 2023-08-28T17:01:21 | 2023-08-28T17:01:21 | 130,722,400 | 4 | 2 | null | 2023-03-31T00:55:41 | 2018-04-23T16:00:32 | IDL | UTF-8 | Python | false | false | 10,857 | py | from jd_utc_time import now_in_jd
from jd_utc_time import jd_to_minutes
import smtplib
import datetime
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
from email.mime.text import MIMEText
import os
import sys
import re
num_hours_between_emails = 2
enable_em... | [
"jmason86@gmail.com"
] | jmason86@gmail.com |
8d577c5e41a227361a97632f725917813da62b79 | c6d6842e25373f3169b294a8edbba3e47969fe64 | /xkin/pose.py | 0b923a3c50d9e9647e26e47592c44c2e0dfd8c6a | [
"BSD-2-Clause"
] | permissive | fpeder/pyXKin | ec072a23e9f29007a516a39a9957e54bc107ea71 | ce8a450a5bdf2074bbdf79783e4bdffe21812c45 | refs/heads/master | 2020-04-21T15:43:16.334612 | 2014-10-22T17:53:15 | 2014-10-22T17:53:15 | 25,595,407 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import config
import numpy as np
import pickle
from features import ConvexityDefects, FourierDescriptors
class PoseClassifier():
BUFFLEN = config.BUFFLEN
NONE = config.HAND_NONE
buffer = []
def __init__(self, classifier=None):
self._classifier =... | [
"f.peder@gmail.com"
] | f.peder@gmail.com |
48c1e248c0c54b9df4c45b1abc82c3c75f4870a9 | ae65873c3584cef7139066b224daad04410af6d2 | /MySQL.py | a042fc4c7860d159e362459d73edbfefca29ad33 | [] | no_license | rajatkashyap/Python | 2240c7472d07803c460c7a55d570e20694b694f9 | f74c85c65b0e209a5f7ab25b653d42835222faaf | refs/heads/master | 2022-06-25T19:20:52.847498 | 2022-06-08T14:40:45 | 2022-06-08T14:40:45 | 145,714,257 | 0 | 0 | null | 2022-04-25T00:18:37 | 2018-08-22T13:39:14 | Python | UTF-8 | Python | false | false | 324 | py | from mysql.connector import (connection)
cnx = connection.MySQLConnection(user='root', password='rajat',host='127.0.0.1',database='db')
cursor = cnx.cursor()
query=("select * from jobs")
cursor.execute(query)
for (city_id,city_name,country_id,x) in cursor:
print city_id,city_name,country_id
cnx.close... | [
"rajatkashyap@Rajats-MBP.T-mobile.com"
] | rajatkashyap@Rajats-MBP.T-mobile.com |
47468736654f20982f2e66cb18e9eb353ee808b0 | 0942ec222ef8f179238d051427ac2ac4a0a9a785 | /gen_initialization_files_for_c_code/s2v_c.py | e4c6bea4957b8e06be96d34fceb9dbc33e078660 | [] | no_license | DhananjayKimothi/seq2vec | c36fa1ad3d1051bbd1def3864aaabb2f387241cc | c656c4897cebc9cf0c2ac48445b3fb1d6e86b6d9 | refs/heads/master | 2021-05-20T18:03:28.037386 | 2020-09-14T02:10:25 | 2020-09-14T02:10:25 | 65,794,859 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,905 | py | from collections import namedtuple
import re
import numpy as np
from Bio import SeqIO
import warnings
import time
import pickle as pkl
from MakeVocab1 import BuildVocab
from DocVecsArray import DocvecsArray
from numpy import random
from collections import defaultdict
file = "yeast_seq.fasta"
input_path = r"../data"
ou... | [
"n9581766@qut.edu.au"
] | n9581766@qut.edu.au |
3c76d049c02a264cc34aca167338b6b7b25db7aa | b8cc6f837fdc9b590d76b30e889e613db4509117 | /SimEunJu/leetcode/42.py | c09f3006e4139d94dda276aa8676302e10582b69 | [] | no_license | Inflearn-everyday/study | f7ca07d36a82caf5a315499dd594e2fabcadd911 | caac77c222c97d174d5d81cb16c28479c537db4a | refs/heads/main | 2023-08-31T10:23:42.934374 | 2021-10-07T14:52:02 | 2021-10-07T14:52:02 | 380,748,309 | 5 | 4 | null | 2021-07-31T09:16:39 | 2021-06-27T13:35:36 | Java | UTF-8 | Python | false | false | 646 | py | class Solution:
def trap(self, height: List[int]) -> int:
if not height:
return 0
front = 0
back = len(height) - 1
frontMax = height[front]
backMax = height[back]
sum = 0
while front < back:
frontMax = max(fro... | [
"noreply@github.com"
] | Inflearn-everyday.noreply@github.com |
de1d2fae4fc15e47d1181eb3bccc9285487cee64 | 339e1ac92c2b2dd2152e9aeb9f0f70cd8536ed0c | /assignment1/q2_sigmoid.py | 03ae0fff8bcae3b97ccb8d6120561ac5e7a165a6 | [] | no_license | luyiming/cs224n-assignments-winter2017 | 527e02586d0afb7ba17987f47220b88f1260555e | 2a0308de9803dc79f23fa98c6eab608151e8a8d7 | refs/heads/master | 2021-08-23T13:19:24.011602 | 2017-12-05T01:58:56 | 2017-12-05T01:58:56 | 112,084,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | #!/usr/bin/env python
import numpy as np
def sigmoid(x):
"""
Compute the sigmoid function for the input here.
Arguments:
x -- A scalar or numpy array.
Return:
s -- sigmoid(x)
"""
### YOUR CODE HERE
s = 1 / (1 + np.exp(-x))
### END YOUR CODE
return s
def sigmoid_grad(... | [
"luyimingchn@gmail.com"
] | luyimingchn@gmail.com |
af940d62dab3c20c019aeea9e1c219b8aa86a20d | 3b6e31c511a6330be4150faf6f6fef8b8b19ac7c | /script.py | 0cfdf1b81ee2caf62f57a9fbc70d79e68551fd60 | [
"MIT"
] | permissive | manuelparra/webscraping-empresas-universia | 7c003667a0c7ca4127bb2837b3b60a0d8b14a493 | 35149d7684c9b35560cbfa8061602effe23f82d4 | refs/heads/master | 2020-08-12T03:32:56.530508 | 2019-10-12T16:51:46 | 2019-10-12T16:51:46 | 214,680,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,776 | py | #!/usr/bin/env python3.7
# -*- coding: utf-8 -*-
"""
@description: This program can retrieve and save data in SQLite database,
this data is alocate at https://guiaempresas.universia.es
@author: Manuel Parra
@license: MIT
@date: 08/10/2019
@modified: 08/10/2019
"""
from bs4 import BeautifulSoup... | [
"manuelparra@live.com.ar"
] | manuelparra@live.com.ar |
b2d051a597b6cfb783aa64205d665a477b8ac166 | ee561aa019a80f621007f82bdb21fe6ed8b6278f | /devel/turtlebot3-melodic-devel/turtlebot3_example/cmake/turtlebot3_example-genmsg-context.py | 09017c533fb2e6caa64d1dea49cebe24fae06a11 | [] | no_license | allanwhledu/agv_edu_prj | 4fb5fbf14cf0a14edd57ee9bd87903dc25d4d4f2 | 643a8a96ca7027529332f25208350de78c07e33d | refs/heads/master | 2020-09-23T23:32:54.430035 | 2019-12-04T07:47:55 | 2019-12-04T07:47:55 | 225,613,426 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/sjtuwhl/ROBOTLAB_WS/devel/share/turtlebot3_example/msg/Turtlebot3Action.msg;/home/sjtuwhl/ROBOTLAB_WS/devel/share/turtlebot3_example/msg/Turtlebot3ActionGoal.msg;/home/sjtuwhl/ROBOTLAB_WS/devel/share/turtlebot3_example/msg/Turtlebot3ActionResult... | [
"bitwanghaili@gmail.com"
] | bitwanghaili@gmail.com |
a970e12a09b18bc2663033ddb2515f2215cd38bc | 84c26c42db76bc766b939b3a1cdb9707d51d503d | /Face Detection app/web.py | 1771266771b947d3fa1efc5a98223f82365287fa | [] | no_license | promudith/FaceDetectionwith_Python | faf22334b35c6e523393bb3e84cac7640cbe38d4 | fce7b983c34e959e63e9e886ed001d7a8a67d39e | refs/heads/main | 2023-07-22T15:57:04.518484 | 2021-08-17T19:21:42 | 2021-08-17T19:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py |
# import the opencv library
import cv2
# define a video capture object
vid = cv2.VideoCapture(0)
while(True):
# Capture the video frame
# by frame
ret, frame = vid.read()
# Display the resulting frame
cv2.imshow('frame', frame)
# the 'q' button is set ... | [
"noreply@github.com"
] | promudith.noreply@github.com |
646f0b2eda9d9c628c8f94ed3cd089471b9cfd1f | 57099dcd45d8491597ac37e19e28af93d0a9b8d8 | /test_task/subdivisions/apps.py | e46ae660805c5e4a862f21088fd34f5ec143132f | [] | no_license | newilgreen/new_tast | fbc5ade1fc1d94ce91a382d6d8eb95719897412e | af40cf939cff3832435d76ef98fb76040a2fd7e9 | refs/heads/main | 2023-03-10T19:25:15.061702 | 2021-02-20T15:02:03 | 2021-02-20T15:02:03 | 340,678,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class SubdivisionsConfig(AppConfig):
name = 'subdivisions'
| [
"newilgreen@gmail.com"
] | newilgreen@gmail.com |
a6b4ac8a8d7738641cfc86d501e5c17708178113 | 6d10b16ea7c86b11290e91bd591cf8c0feea9e99 | /Dash/PROJ1/layouts.py | 6a1d44537c1739b96c3fd3e9135410442f282d07 | [] | no_license | ganeshkp/python | 80fcf613aec17b63c74b38642af2d1fa1cd3f9c2 | 5ef0803f9f77060efd472a19b79ce9cacc8d8178 | refs/heads/master | 2023-08-04T16:26:52.213129 | 2023-04-23T19:30:06 | 2023-04-23T19:30:06 | 226,738,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import dash_core_components as dcc
import dash_html_components as html
indexPage = html.Div([
html.H2("Select project to go Dashboard",
className="index_text",
# style={"textAlign":"center",
# "color":"green"}
),
dcc.Link("LCP",href="/lcp",
s... | [
"ganeshkumar.patil@gmail.com"
] | ganeshkumar.patil@gmail.com |
9732d7b5f9e7962a3d3464b9214263c3f7b72d33 | 28e55f8024a44bddbe0e2a394bc77801120591eb | /week0/count_lines_words_chars/solution.py | 91fe6fae123d42b27882a83f9b7f83f53bf10c04 | [] | no_license | snejy/Programming101 | 3e4bee0dabc754aa90e7ad0162bc972ba44e73e6 | ab6e0ace6d3baee7b809c6ae8d0e8122538d5d52 | refs/heads/master | 2020-03-26T02:21:49.785706 | 2014-09-16T11:51:34 | 2014-09-16T11:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import sys
def count_chars(filename):
file = open(filename,'r')
contents = file.read()
file.close()
return len(contents)
def count_lines(filename):
file = open(filename,'r')
contents = file.read().split("\n")
file.close()
return len(contents)-1
def count_words(filename):
file ... | [
"snspasova@gmail.com"
] | snspasova@gmail.com |
874fe9a835b84741e6735b62eaaf9b1803cdb2ae | 76a3ac13e7316d5be29dc84e9584e3bf69aac26e | /add_to_library.py | 927307e261f2ff3d72706080e38bdff4a7849006 | [
"MIT"
] | permissive | scrubskip/add_to_yt_library | 78581d8f5cdb680f414c0a5ef0b164498367cd84 | 801202d4fc9929b053f945339ae6d31949cc4231 | refs/heads/main | 2023-07-17T01:57:51.568205 | 2021-08-28T03:54:59 | 2021-08-28T03:54:59 | 400,392,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | from ytmusicapi import YTMusic
import argparse
import csv
import re
SOUNDTRACK_ARTISTS = {'various artists'}
SOUNDTRACK_ALBUMS_REGEX = re.compile(r"original.*[soundtrack|recording]")
def main():
yt = YTMusic('headers_auth.json')
parser = argparse.ArgumentParser()
parser.add_argument("input", type=str)
... | [
"kip@kipster.org"
] | kip@kipster.org |
a35142b12aa3e9983848d2f2ff48f5e607b0e649 | 9ce10e9db9033b2bb2819418786da53dd15cdeab | /apps/cms/models.py | 54c92f043400c02a991328e93e209e930a8e4794 | [] | no_license | P79N6A/rmbbsDemo | 5db9085ee7726a10ad4fc0dd4d90e98491a8095f | 4c05d45ae8f598f6c64c19671e4bcbef828f3946 | refs/heads/master | 2020-05-25T13:39:18.692229 | 2019-05-21T11:43:09 | 2019-05-21T11:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | from exts import db
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash # flask提供的加密生成与解析密码
# CMS用户模型
class CMSUser(db.Model):
__tablename__ = 'cms_user'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(50)... | [
"sancklan@163.com"
] | sancklan@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.