blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M โ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecbea36070dd712629e55b616938b75491ba10b9 | 3a8f8bef453f5eb01cc6f22d8bb140d7791024df | /command/tcommand.py | add4fd8bf60184b1755ced53d3534642b3e2870a | [] | no_license | thomasvs/python-command | 23a68de2ce596a7eed5a2740a5ee1471f62ed569 | 4c31072e9f5f68e22c92cdc8f0a02d911b7e5fc0 | refs/heads/master | 2020-05-02T11:29:24.459355 | 2014-09-07T22:23:58 | 2014-09-07T22:23:58 | 5,668,726 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | # -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
"""
A helper class for Twisted commands.
"""
from twisted.internet import defer
from twisted.python import failure
import command
class TwistedCommand(command.Command):
"""
I am a Command that integrates with Twisted and its reactor.
Instead of implemen... | [
"thomas (at) apestaart (dot) org"
] | thomas (at) apestaart (dot) org |
9f7bd84d3d6ded16616eb407a8258ccfec9ce5cd | df91a0483fefc9b75de248cc3b3aac55ce706f37 | /efficientnet_pytorch/utils.py | 725e3175e56394978756531cbdfabc515ad45b1a | [] | no_license | dttung2905/kaggle-siim-melanoma-2020 | 19b5685fac57eeb3437efead04913e91dfe617dd | d81677e35cc8bc535c56d40395e3bfa4489893d6 | refs/heads/master | 2022-12-04T22:25:08.299660 | 2020-08-17T15:08:07 | 2020-08-17T15:08:07 | 281,700,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,099 | py | """utils.py - Helper functions for building the model and for loading model parameters.
These helper functions are built to mirror those in the official TensorFlow implementation.
"""
# Author: lukemelas (github username)
# Github repo: https://github.com/lukemelas/EfficientNet-PyTorch
# With adjustments and added ... | [
"thanhtung.dao@rakuten.com"
] | thanhtung.dao@rakuten.com |
a0cb1eee0ce7279e519465175cbaff109ed4fb60 | e3365a497b6f3afa7afc36381f7a7d1752f09610 | /.venv/bin/jupyter-notebook | 70ee2fde73f1c59914cde9b01c22c06f382ee6ce | [] | no_license | MohamadSheikhAlshabab/Chess_Board- | 4229f7044831b79a8b8b6662a2aea5753d11c7dc | ee2e69d4567b69559584d0b074d91a25793db2f7 | refs/heads/master | 2022-12-08T05:10:59.482582 | 2020-09-04T16:34:18 | 2020-09-04T16:34:18 | 291,529,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/mohamad/401/chess_board/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from notebook.notebookapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alshabab.moh@gmail.com"
] | alshabab.moh@gmail.com | |
967b5276ffd71007c6b33334b7fccee2155aa798 | b38eb298c91f7e74e7857a1c1c421f60eba1ba29 | /Day4/program1.py | 767e2340845b14766d27b7744e32521f91de6e37 | [] | no_license | bhartiyadavdel/tathastu_week_of_code | bf8467183f949dacfbeaebf21603100e1a061f27 | 6d74704760bbf232186cb90e5b4087ec929f7961 | refs/heads/master | 2022-10-14T05:03:23.249916 | 2020-06-10T18:46:04 | 2020-06-10T18:46:04 | 270,074,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | size=int(input("enter the size of the tuple"))
print("enter the elements of the tuple")
tup=[]
for i in range(size):
tup.append(input())
tup=tuple(tup)
e=input("enter the element whose count you wish to obtain")
print("count of the element is",tup.count(e),"times")
| [
"noreply@github.com"
] | noreply@github.com |
79f50a378ab45f7801f359d695045b821ff47443 | b7125b27e564d2cc80a2ce8d0a6f934aa22c8445 | /.history/sudoku_20201101154742.py | c093972aa62bcc31bf99b51feb72a76950605747 | [] | no_license | JensVL96/Puzzle-solver-for-fun | 4c15dcd570c3705b7ac555efb56b52913e81083c | 6d8a4378a480372213a596a336a4deca727a00fc | refs/heads/master | 2021-07-15T05:19:42.185495 | 2020-11-08T13:59:49 | 2020-11-08T13:59:49 | 224,855,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,829 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from config import *
from create_board import *
from solve_bloard import *
from display_board import *
from string import *
from math import floor
import pygame as pg
import numpy as np
# For error highlighting
def set_highlight(row, col, blk, lock):
g... | [
"jle040@uit.no"
] | jle040@uit.no |
5ee65120d959f54b2c17ed09696f5d2d319a54ca | 0337d1ae26b2d8ab61d7484ed00eb2744e9a41d2 | /core/views.py | afb8f3102f8b1839f3764911e6d0c7bc9337a5c7 | [] | no_license | prafullsinha/Company-Employee-Management | 80d4e58954667f8bbbe1e379687f43e9130e92c3 | 002c5c42fe047e1738810c0e822a3eb41e5b407e | refs/heads/master | 2020-09-07T23:11:22.563192 | 2019-11-11T09:06:44 | 2019-11-11T09:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,677 | py | from django.contrib.auth import login, authenticate
from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import TemplateView, ListView, DetailView, CreateView
from django.contrib.auth.models import User
from core.forms import ProfileForm, RegisterForm, AddProfileForm
from .models i... | [
"h2so4007@gmail.com"
] | h2so4007@gmail.com |
ea00d3edacff3f5e008bcd8667e5f284c3ce6a44 | 100d91f89d0a2523aa199d7ac090a5cc71f0d6d0 | /task07/safest_asin.py | e17a0dd6cdf763f9349eeceb68f3ea7f55481864 | [] | no_license | DiLysenk/PythonProjects | 574653d1d3e4e14edcc141fda15ed9a7a0814222 | 53c8fe5f2bd8466dad26f0f386ae962e3709a6de | refs/heads/master | 2021-01-02T04:44:37.287916 | 2020-03-06T14:50:33 | 2020-03-06T14:50:33 | 239,494,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | #!/usr/bin/env python3
# ะะพะนะผะฐะน ะธัะบะปััะตะฝะธะต, ะตัะปะธ ัะผะพะถะตัั
#
# ะคัะฝะบัะธั asin ะพะฟัะตะดะตะปะตะฝะฐ ะฝะฐ ะพะฑะปะฐััะธ [-1, 1] ะธ ะฒะพะทะฒัะฐัะฐะตั
# ัะณะพะป ะดะปั ะบะพัะพัะพะณะพ ัะธะฝัั ัะฐะฒะฝะต ะฐัะณัะผะตะฝัั
#
# ะะฐะดะฐัะฐ: ัะทะฝะฐัั, ััะพ ะฟัะพะธัั
ะพะดะธั, ะบะพะณะดะฐ ะฐัะณัะผะตะฝั ะฝะต ะธะผะตะตั
# ะผะฐัะตะผะฐัะธัะตัะบะพะณะพ ัะผััะปะฐ ะธ ะฟัะธ ะฟะพะผะพัะธ ะพะฑัะฐะฑะพัะบะธ ะธัะบะปััะตะฝะธะน
# ัะดะตะปะฐัั ััะฝะบัะธั "ะฑะตะทะพะฟะฐัะฝะพะน": ะฒะพะทะฒัะฐัะฐั... | [
"46103863+DiLysenk@users.noreply.github.com"
] | 46103863+DiLysenk@users.noreply.github.com |
c271e9f700049aa637ff956270d6564aaaf8d504 | d5790c787fffb1e825ed31c226052d4da653e468 | /CRFๆๆ่ฏไปท.py | ee19ccb420dde791bb6446a1971fc6ee526f4c11 | [] | no_license | RealLuhx/Routine-python-projects | a27008db198c3130bf8cc592cd3933f2e78ff308 | 008d52551af8151e51ac44d58d628beebbae7a77 | refs/heads/master | 2020-03-07T22:29:08.552936 | 2018-04-02T13:25:16 | 2018-04-02T13:25:16 | 127,755,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 21 14:08:37 2017
@author: AloneNotLongly
"""
import time
def PRF(name):
path2 = r'D:\learnPython\็ฌฌๅไบๆฌกไปปๅก\ๅๆไบคๅ้ช่ฏ๏ผๆ็ป็ปๆ๏ผ\๏ผ10๏ผ\output.txt'
with open(path2, 'r', encoding='GBK')as f:
linep = f.readlines()
# print(linep)
num = 0
count... | [
"noreply@github.com"
] | noreply@github.com |
1bfb44b6968b4c337b143375947e1baa358cd736 | c7f963d4b006d1850db39832a6575c8dfe34dfdd | /workout_app/migrations/0072_auto_20210503_2351.py | 25dcff81a697f0f64bc682a958d31c2396856d4b | [] | no_license | calrh007/project-a-07-personal-copy | 45ec109c574bdefc8d20161ab6922e3d91e2e296 | d215c028b92a21a012a0d682a44c28c0746ef3ce | refs/heads/main | 2023-05-29T05:17:58.072964 | 2021-06-10T05:46:05 | 2021-06-10T05:46:05 | 375,151,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 3.1.7 on 2021-05-04 03:51
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),
('workout_app', '0071_auto... | [
"calrh007@gmail.com"
] | calrh007@gmail.com |
4f894e9fe2c37bd7fdafa11e65ab60ec680c72a2 | 95498d1594e5112d8b44a3d6e0182fe20c374a9d | /simann/verification.py | 3856bcdf550ae0fcca5f7323cea16cad912f0b16 | [] | no_license | jeroenvanriel/job-scheduling | 6ab919dacc6100d25ca4f57d0d0f2a065c39cee2 | 69ee6a63068e31fb9d3bf6db59dff776f96726a0 | refs/heads/main | 2023-02-12T19:16:19.937820 | 2021-01-15T20:56:25 | 2021-01-15T20:56:25 | 313,915,230 | 0 | 0 | null | 2021-01-15T20:56:04 | 2020-11-18T11:35:00 | Python | UTF-8 | Python | false | false | 673 | py | from simann import SimulatedAnnealing
from experiment import Experiment
from p_functions import *
# problem defenition
m = 2 # number of machines
jobs_file = "../ptimes_boundary.txt" # file that contains the jobs
instance = SimulatedAnnealing.fromFile(jobs_file, m)
# output filename
output_prefix = "./experiments/ver... | [
"38719718+willempie167@users.noreply.github.com"
] | 38719718+willempie167@users.noreply.github.com |
09dd43029927a441b357dfb67a390c25dd502a97 | 409224d3dab778d02050dc91f52b11ba5382d478 | /myvenv/lib/python3.6/site-packages/otree/checks/__init__.py | b56457f96a16249df7203c766f7ddfe86d2ddf51 | [
"MIT"
] | permissive | Miyanorococo/yagetapro | f931d2f9080bb54aaa6e3d377654df486a42b405 | c68b5814c1845c0a5722e46e6d8f25f60c916def | refs/heads/master | 2020-04-02T03:31:55.031818 | 2018-10-21T04:17:06 | 2018-10-21T04:17:06 | 153,970,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,919 | py | import glob
import inspect
import io
import os
from otree import common_internal
from importlib import import_module
from django.apps import apps
from django.conf import settings
from django.core.checks import register, Error, Warning
from django.template import Template
from django.template import Templa... | [
"miyanorococo@yahoo.co.jp"
] | miyanorococo@yahoo.co.jp |
6d683963e34d212a5774a06488179ecaf8155383 | 42b0d71d2f411723a6aefcb2d9b971cfd49d3526 | /Final/CS336/Lib/site-packages/ebcli/operations/sshops.py | cfc951048480671998542264ed255546f9b243de | [] | no_license | c4r1sk1m/CS336-Final-Project | 436eb2e55a3f163f48a6b123039afb417c06cb37 | 2a00ae12b65d4d3577b981d5deb2585960fd0ec3 | refs/heads/master | 2021-04-03T06:42:35.913889 | 2018-12-12T21:17:46 | 2018-12-12T21:17:46 | 124,703,745 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,812 | py | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | [
"chrisk0208@gmail.com"
] | chrisk0208@gmail.com |
2f0460d311c801ced483431269b0ee3a6c8d76c4 | 44431ab9299367df80667fc5e7b38c0dd916bf98 | /Django/mainMultiApps/apps/Books_Authors/migrations/0002_auto_20180518_2339.py | a3aaf33e6ebd9a3478fcf3c9c583c709c00a4510 | [] | no_license | isoetandar/DojoAssignments | 14df2b0cefe08be8f39975c6ffa1a617dfba243c | ef4e6d75b77d69ccffc0eca91e9083e6e034d4dd | refs/heads/master | 2020-03-11T15:33:04.825745 | 2018-07-06T00:41:32 | 2018-07-06T00:41:32 | 130,087,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-05-18 23:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Books_Authors', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
"irwansoetandar@Irwans-MacBook-Pro.local"
] | irwansoetandar@Irwans-MacBook-Pro.local |
5d9474e45b5f91ba0d0d583662c0c565381d1aa4 | b65ef73dd8f20d16c1abeb810a5c70016fcc73ab | /picam_server.py | 807dc2b322e45d4f8da3b0574730ac2dd6328532 | [] | no_license | japhsc/CameraStream | 381fbbeb1136c372161e5ca6eb60e33b1a098f11 | 2b9c58c26e4163c5872ee6ce222649ee68a9cb33 | refs/heads/main | 2023-07-14T14:48:22.189599 | 2020-11-27T12:11:25 | 2020-11-27T12:11:25 | 316,491,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import time
from stream import stream_server, stream_stack, grayscale, unity
from cam import VideoStream
#framerate = 32
framerate = 46
#resolution = (640, 480)
#resolution = (1920, 1080)
resolution = (320, 240)
video_format = 'bgr'
vs = VideoStream( resolution=resolution, \
video_format=video_format, \
fra... | [
"jan.philipp.schroeder@physik.uni-freiburg.de"
] | jan.philipp.schroeder@physik.uni-freiburg.de |
fa783454ecad923d942564347649cccdb36ec8f1 | 3023cc5b5319e2344b10da6536e640152e66df21 | /Modules/Scripted/RigidAlignmentModule/RigidAlignmentModule.py | fea8661411d68569cd900b6be3e91a2e379dd69f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | laurapascal/GROUPS | e8f70bc05b5d6fac92a37257797a40874421e89b | 6fb88b7828157b2d8ba2893c7af5cfe4ea3e3f83 | refs/heads/master | 2021-04-30T05:18:23.427791 | 2018-02-12T21:55:24 | 2018-02-12T21:55:24 | 121,412,721 | 0 | 0 | null | 2018-02-13T17:26:57 | 2018-02-13T17:26:57 | null | UTF-8 | Python | false | false | 13,135 | py | import os, sys
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
import csv
import platform
import time
import urllib
import shutil
from CommonUtilities import *
#
# RigidAlignmentModule
#
class RigidAlignmentModule(ScriptedLoadableModule):
"""Uses ScriptedLoadab... | [
"mahmoudm@email.unc.edu"
] | mahmoudm@email.unc.edu |
2637560bd42c72e37758270f085ace4411c325c5 | f6d1d1a4aec526ffb53aa2f932fc0144e20a1cfb | /MachineLearning/natural-language-processing/bangla-words/bangla-word-generator.py | b97cff0bec952217c2b767c908ccc129da8faf2c | [] | no_license | AsifKHasan/archived-codes | 088698fa72d44a15de01ad02cff80d1202caa11a | 1fce54ab01b2d47c649d3998d42a99c73ca1992e | refs/heads/master | 2022-12-08T19:42:17.589544 | 2020-08-29T20:32:23 | 2020-08-29T20:32:23 | 291,284,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | #!/usr/bin/env python3
'''
from command line
------------------
./bangla-word-generator.py --data './data/bangla-words.txt' --outdir './output' --startswith 'เฆ
'
from py files
------------------
'''
import argparse
import datetime
import time
import json
import re
import os
patterns = [
{
"search-for": "[... | [
"asifhasan@gmail.com"
] | asifhasan@gmail.com |
25df8e23285df7d461532fca359f86f047702c6f | 5a6253dc8f08bf2186c64a14e512c714d36f3460 | /workspace_PJM/api_ex1.py | 1dc2212dd32bc540c52979a8c9d14ef61eb599e1 | [] | no_license | NicolasMonnier/N-Body | 711d7f1c8aa6188df93abbd66deeeb2e5947c12e | 6fd3edb9f0d5515cdfb808dbdc6c84cd258d47e9 | refs/heads/master | 2020-05-07T09:44:47.840082 | 2019-04-30T15:29:19 | 2019-04-30T15:29:19 | 180,390,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import zmq
import time
from qcg.appscheduler.api.manager import Manager
from qcg.appscheduler.api.job import Jobs
#m = Manager("tcp://127.0.0.1:5555")
m = Manager()
print("connected")
print("available resources:\n%s\n" % str(m.resources()))
#print("submited jobs:\n%s\n" % str(m.list().names()))
#j = Jobs()
#j.add( ... | [
"nicolas.monnier44@gmail.com"
] | nicolas.monnier44@gmail.com |
c2515c2721e9a09956edc6813e56c7a57a91842a | 611e5481b709f22d01c7afad4fddd1bb291efcf0 | /User_dashboard/apps/MessageWall/apps.py | 5f0c252112ecc9856af7e466d729a8dc3d46feae | [] | no_license | AaronDasani/Django | 2ffc5ffc69266d59570c3faa19cfde8e13cdd307 | 7acf0721744accb333f15013d9988f5fe3b1ad5c | refs/heads/master | 2021-07-23T23:30:23.457589 | 2019-01-14T19:23:57 | 2019-01-14T19:23:57 | 150,312,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class MessagewallConfig(AppConfig):
name = 'MessageWall'
| [
"maad@Aarons-iMac.local"
] | maad@Aarons-iMac.local |
05b2155ccf0ee0eac6eba7f388116873fc63c888 | 18ad10a325238fa9f7b4643ace1cb64455f62567 | /Class 1.0/Example 1.0.py | bc0816b71a4456b511d549449f32f5a25f87df64 | [] | no_license | BrendanStringer/CS021 | 754c618010f3574dfd72ad17fb73fa023d0b801c | e91da90f8a398e7e02a464a8a72ca68d281cb349 | refs/heads/master | 2016-08-03T18:12:57.195492 | 2015-05-08T12:00:57 | 2015-05-08T12:00:57 | 32,987,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | print('Nudge Nudge')
print('Wink Wink')
print('Know what I mean?')
| [
"bstringe@uvm.edu"
] | bstringe@uvm.edu |
523392d1551862017fef37d6b4359a0894cdf717 | 35f74b095b0949752dffc0ba3c883168eeb52390 | /tests/test_requests.py | b7f92897d1d0ad0997a57e7221827d59cbd1941c | [
"MIT"
] | permissive | ezdookie/mashina | 89e7dd1da86ccd0d3f104b889a2f8e506349e240 | c018a4e5ee006dc45a89f2ee9e7cf554420b490e | refs/heads/master | 2021-06-05T20:02:23.234262 | 2020-05-18T05:36:27 | 2020-05-18T05:36:27 | 147,943,488 | 0 | 0 | MIT | 2021-03-25T22:53:20 | 2018-09-08T15:02:18 | Python | UTF-8 | Python | false | false | 885 | py | def test_crud(falcon_client):
# testing create
result = falcon_client.simulate_post('/todos', json={
'name': 'testing'
})
assert result.status_code == 200
assert 'name' in result.json
# testing list
result = falcon_client.simulate_get('/todos')
assert result.status_code == 200
... | [
"brian@bleax.com"
] | brian@bleax.com |
cc31086004a058c6128821d98e1ecfd66a959004 | d49e18cbf59e5200375e33a62243824d3a26366c | /Random_Spike.py | 244ca2dd9bf33daa822bfae3ca5deb0cf0809217 | [] | no_license | ryscet/Cell_Models | 5b64bd2bdb76aee525312f097a5c20a0b984d598 | 34174f96098a74f351e6be0da8fac5043fd0a268 | refs/heads/master | 2022-02-23T11:40:19.196234 | 2022-02-05T16:33:37 | 2022-02-05T16:33:37 | 35,093,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 5 11:11:54 2015
@author: ryszardcetnarski
"""
import numpy as np
from pylab import *
from random import sample
class RandomSpike:
'Generates spikes in a given frequency with uniform noise'
## setup parameters and state variables
T = 1000 ... | [
"cetnarski.ryszard@gmail.com"
] | cetnarski.ryszard@gmail.com |
88311225732da2fab0381d52abffa64ea94d489c | 6ef2e4ca72ba593724198777f1e0e6f553576c1f | /Extractor.py | 9c0e29f86102acdb39488026a13ca43f6943a39b | [
"MIT"
] | permissive | nikhil-mat/Notion-Token_v2-Extractor | 151d1cb5fd68cb3188faad3f8d7d952fa078a27f | 0ac059ad17363665968b7a27c48b1579042e95d5 | refs/heads/master | 2022-12-22T11:35:47.653811 | 2020-09-15T14:32:37 | 2020-09-15T14:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import selenium #Is the webscraping framework
import os # Is used to get the username inorder to get the default profile
from selenium import webdriver
from tkinter import *
# before running this please make sure chrome is not running in the background with the default profile on
# In this versio... | [
"nikmat5525@gmail.com"
] | nikmat5525@gmail.com |
dec72522fe21ad2176789e058e07d827abab8e49 | 5820a5e30b2a20e453524ccd3c7367fd52fde4f1 | /admin/cafe/migrations/0011_auto_20200424_1848.py | 6b12b152c935fe3c325bb80e3da03b7d5f567253 | [] | no_license | giulianojordao/maid-cafe | 37b51edddee9ec3bd112df226f3742cc3fb1103f | 843357e485cf3bce269d0833e9341c3e81c10f7c | refs/heads/master | 2022-12-10T19:39:47.489486 | 2020-05-14T00:28:27 | 2020-05-14T00:28:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-04-24 18:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cafe', '0010_order_end_at'),
]
operations = [
... | [
"sy.fen0@gmail.com"
] | sy.fen0@gmail.com |
ebab8ea00d95993626f94c0ecca900fdf0545178 | 28925c7001008b93f16971363e34d6c28c9eee55 | /blog/migrations/0001_initial.py | 5ae2881f510f3bb4857bd40ce638e1676b052670 | [] | no_license | mikenrowland/miniBlog | 0e97ce3042e4d4353085878edfc76fcedc9c430b | c133c57c99c9072f1329e97db4fac925ff96a002 | refs/heads/main | 2023-04-23T14:09:08.414911 | 2021-05-17T18:09:59 | 2021-05-17T18:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Generated by Django 3.2 on 2021-04-24 15:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"mykhelmyers@gmail.com"
] | mykhelmyers@gmail.com |
d4533f4cdf53a8a902ef0e5e52f13d6ae690bf32 | cfc3fa658f826d02308453e557d82758895399c2 | /datasets/id_newspapers_2018/id_newspapers_2018.py | 96a294e8fc22502654396c9ba5f85efe68734ddd | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | meehawk/datasets | cac530ec0e17514c01cdff30302521d6303ed93b | b70141e3c5149430951773aaa0155555c5fb3e76 | refs/heads/master | 2023-03-29T12:51:54.700891 | 2021-04-08T17:22:53 | 2021-04-08T17:22:53 | 355,996,122 | 9 | 0 | Apache-2.0 | 2021-04-08T17:31:03 | 2021-04-08T17:31:02 | null | UTF-8 | Python | false | false | 4,123 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# 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/lice... | [
"noreply@github.com"
] | noreply@github.com |
1ffe7508a2c77980239428715f48e1ac4775dab5 | f902c86bdb2f6d34cd36d6a136ce3900a27615c0 | /pic/views.py | 9a705fbd785838c91bf51de8746200f5f4b432e1 | [] | no_license | easy-spider/easyspider-web | a0e14bc49035d380c1d9bd0a2d3996938cb74b1e | a68b8d5f8cc5bdc8e0e1c839f2406dac6d4d3417 | refs/heads/master | 2021-05-17T00:08:15.419969 | 2020-06-15T08:17:50 | 2020-06-15T08:17:50 | 250,528,868 | 1 | 0 | null | 2020-06-15T08:17:51 | 2020-03-27T12:29:50 | HTML | UTF-8 | Python | false | false | 1,978 | py | import os
from django.http import HttpResponseForbidden, HttpResponse, HttpResponseNotFound
from EasySpiderWeb import settings
PIC_DIR = os.path.join(settings.BASE_DIR, 'upload', 'templatepics')
def read_pic(rel_path):
"""ไปPIC_DIRไธ่ฏปๅๅพ็๏ผ่ฟๅHttpResponseๅฏน่ฑกใ
:param rel_path: PIC_DIRไธ็็ธๅฏน่ทฏๅพ
:return: 200 - ๆญฃๅธธ... | [
"979481894@qq.com"
] | 979481894@qq.com |
b0324e908caf5c8d0f997eda2f80a6bd333b38e5 | d2e79ea4373cb3c41dfdaad3418572b301f24eff | /recnici.py | 179c8ee75232e58ca54a7129b0a71ac96f2b6f3d | [] | no_license | kidju/bedni-pokusaj-pocetnika | ef30a9ed58189daf1da789d3dd26941c46a46758 | 57eeba767394f1bd30f678f5c8dd4f93bdc247f6 | refs/heads/master | 2021-06-22T14:30:08.670828 | 2018-07-09T08:04:57 | 2018-07-09T08:04:57 | 95,883,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- coding: utf-8 -*-
telefonski_imenik = {"Paja Patak": 123456, "Mini Maus": 234567, "ล ilja": 345678}
vukajlija = {"sojanica": "Posna pljeskavica. Garantovano bez trihinele.", "jahanje": "Omiljena aktivnost ลกefova za koju je potrebno da radnik ima konjske ลพivce.", "ลกef": "ฤovek koji nema smisao za umor."}
vrste... | [
"noreply@github.com"
] | noreply@github.com |
0550f4a3e869ec8fdcb5f4204c9d9166b5e5527a | 39ce76a939e083a08b11f35b7482f45ddeab5415 | /ex3.py | 174ca67e2410bf0b4efc1631f7c0d353f0755fae | [
"MIT"
] | permissive | wf539/LearnPythonHardWay | b3624f24c1792e089d29d171e88f329599de685d | 854fb5324465f49d163c901c6e2eee5788df172a | refs/heads/master | 2021-02-26T08:25:12.097487 | 2020-03-06T20:26:03 | 2020-03-06T20:26:03 | 245,510,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # Print a line of text
print "I will now count my chickens:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
# Print a line of text
print "I will now count the eggs:"
# Perform calculation
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
# Print a line of text
print "Is it true that 3 + 2 < 5 - 7?"
# Return th... | [
"willetfarm@yahoo.com"
] | willetfarm@yahoo.com |
17154043547b14982f365d99f3c9ecf178e27f2c | 700d4302a675b6aaaa7514a87d87ccd614051712 | /electrum_dash/gui/qt/dash_net_dialog.py | 99e82390ee338bfa47233139df37e07b96842c65 | [
"MIT"
] | permissive | bynicolas/electrum-pac | ce37033c6274f671674bf5d707010d31dab254b5 | 8c61fc2e14fc307f40d1cc785f2a604ab4a2be04 | refs/heads/master | 2023-03-11T14:29:36.624470 | 2021-02-23T23:25:20 | 2021-02-23T23:25:20 | 340,194,875 | 0 | 0 | MIT | 2021-02-24T00:02:54 | 2021-02-18T22:32:44 | Python | UTF-8 | Python | false | false | 17,492 | py | # -*- coding: utf-8 -*-
import time
from enum import IntEnum
from PyQt5.QtCore import Qt, QTimer
from PyQt5.QtWidgets import (QGridLayout, QDialog, QVBoxLayout, QCheckBox,
QTabWidget, QWidget, QLabel, QSpinBox, QLineEdit,
QTreeWidget, QTreeWidgetItem, QMenu, Q... | [
"zebra.lucky@gmail.com"
] | zebra.lucky@gmail.com |
81bba9ac8e716ccd0b7d2bf41bd3fcb05d531648 | 7b4c3e5ea038860ced5b4bea060572538f131e0e | /HW04/hw4b.py | 7bae7345b4bbf9cc27936bc23c0a09c85ab10c9d | [] | no_license | DeepDand/TheMachineLearningS18 | a79de594e110c48fb3ee12b0d426f46a6edf2c95 | 1c6a5b261808057b0d7e46d92d8478f8837fb544 | refs/heads/master | 2021-09-14T15:21:02.035768 | 2018-05-15T15:26:59 | 2018-05-15T15:26:59 | 118,802,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import numpy as np
from matplotlib import pyplot as plt
from sklearn.neighbors import KNeighborsRegressor
from sklearn.model_selection import KFold
from sklearn.model_selection import cross_val_score
def genDataSet(N):
x = np.random.normal(0, 1, N)
ytrue = (np.cos(x) + 2) / (np.cos(x*1.4) +2)
noise = np.ran... | [
"deep.dand1992@gmail.com"
] | deep.dand1992@gmail.com |
94e2c2a401b125a43cee98d701cd7ec13826b551 | 773dc03117f8b0d51f7a10e2a4577229c8be6ba3 | /migrations/models/36_20230108160220_update.py | 825e7924ebf0640cde169d23190cb1cc5555254b | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tcprescott/sahasrahbot | 382cdff058d63feb5f42dbbd7729eb4b08c4d1bd | 64a125d948873d0faa5ea3f2d306075ad9e013be | refs/heads/master | 2023-08-31T15:33:01.533206 | 2023-08-31T01:58:48 | 2023-08-31T01:58:48 | 178,310,225 | 22 | 43 | MIT | 2023-09-01T08:45:52 | 2019-03-29T01:34:45 | Python | UTF-8 | Python | false | false | 380 | py | from tortoise import BaseDBAsyncClient
async def upgrade(db: BaseDBAsyncClient) -> str:
return """
ALTER TABLE `ranked_choice_election` ADD `private` BOOL NOT NULL DEFAULT 0;
DROP TABLE IF EXISTS `twitch_channels`;"""
async def downgrade(db: BaseDBAsyncClient) -> str:
return """
ALT... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
25eb424a85781706e1be215f02b2a1b5c0335aaa | fb6ef73b6c44b1530c2ae75900285118abf8fe99 | /่ฟ็ๅฎ_ๆๆญฃไธ/model2/xbg1.py | b758a7fe748bec2ca171b2eb7a82f1b799149a59 | [] | no_license | Kiwisher/stock-price-prediction | d4faf1eabf8362771ed1e997bbd18b3f933601f4 | 999435e50123449704e730cdf66386f9108a9bef | refs/heads/master | 2020-04-14T05:35:45.561759 | 2019-01-01T15:58:00 | 2019-01-01T15:58:00 | 163,664,023 | 0 | 1 | null | 2019-01-01T15:58:01 | 2018-12-31T11:36:13 | Python | UTF-8 | Python | false | false | 8,829 | py | import os
import json
import time
import math
import pandas as pd
import matplotlib.pyplot as plt
from keras import backend as K
import time
import warnings
import numpy as np
from numpy import newaxis
from keras.layers.core import Dense, Activation, Dropout
from keras.layers.recurrent import LSTM
from ker... | [
"noreply@github.com"
] | noreply@github.com |
3ea0f5a9c0a242beb6b04a7db790cbd01df22022 | 248efa4b49b69fe38aaf6a8066c30dcde6e7937c | /NadoCoding/ํจ์/ํจ์ ํด์ฆ.py | 85c16b04024196d9af79fef67235f13f1e8cf891 | [] | no_license | apasionesmj/PythonWorkspace | ca6d9d127d8ed4b1f93c2ac472d0ba1ecfe331dd | a1add6fcdb6843a2142232c5884c3e3278a34012 | refs/heads/master | 2023-03-06T19:08:05.728150 | 2021-02-19T04:47:22 | 2021-02-19T04:47:22 | 334,065,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # Quiz) ํ์ค ์ฒด์ค์ ๊ตฌํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค
# * ํ์ค ์ฒด์ค : ๊ฐ ๊ฐ์ธ์ ํค์ ์ ๋นํ ์ฒด์ค
# (์ฑ๋ณ์ ๋ฐ๋ฅธ ๊ณต์)
# ๋จ์ : ํค(m) x ํค(m) x 22
# ์ฌ์ : ํค(m) x ํค(m) x 21
# ์กฐ๊ฑด1 : ํ์ค ์ฒด์ค์ ๋ณ๋์ ํจ์ ๋ด์์ ๊ณ์ฐ
# * ํจ์๋ช
: std_weight
# * ์ ๋ฌ๊ฐ : ํค(height), ์ฑ๋ณ(gender)
# ์กฐ๊ฑด2 : ํ์ค ์ฒด์ค์ ์์์ ๋์งธ์๋ฆฌ๊น์ง ํ์
# (์ถ๋ ฅ ์์ )
# ํค 175cm ๋จ์์ ํ์ค ์ฒด์ค์ 67.38kg ์
๋๋ค.
def std_weight(height, gender): #ํค m... | [
"apasionesmj@naver.com"
] | apasionesmj@naver.com |
baea42f652d2a81af4158f799a25e5c2c0c2de43 | 6718af489ca7d4e41c69f0fa367b98072d426620 | /Lab_9/lab3-2_template.py | 98ffe46441c51366070352d8ea30752fc2d52572 | [] | no_license | liamcannon/CSI-275 | 67aa98359d6ed8ffe9d783f599547c60ecb023cb | 9612a1ff8748d9d58cc929a937a6001e8f0a2494 | refs/heads/main | 2023-04-15T12:34:08.596803 | 2021-04-30T18:20:06 | 2021-04-30T18:20:06 | 333,964,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | """Liam Cannons Code for Lab 9.
Author: Liam Cannon
Class: CSI-275-01/02
Assignment: Lab/HW 5 -- JSON Client/Server
Certification of Authenticity:
I certify that this is entirely my own work, except where I have given
fully-documented references to the work of others. I understand the definition
and consequences... | [
"liamcannon@Liams-MacBook-Pro-2.local"
] | liamcannon@Liams-MacBook-Pro-2.local |
c5254d3511dcc1be95864f63f9271b580734eb6f | 13d9168377d701e482509d530b354e0fd70d66cc | /IPMI_2021_model/MTGNN_local_multiscale_temporal_FC.py | d99a8df766f6b0390cb97c4ac0034f69c998d0a9 | [] | no_license | NareshNandakumarJHU/Multiscale-Spatial-Attention-Applied-To-Dynamic-Connectivity | 1697ed97865dfae9da7a4e3b9d8b7ca7f046c9f3 | d068cdf6a97375207098236e68cd9f8736c99fca | refs/heads/main | 2023-06-01T07:55:57.466680 | 2021-06-25T08:57:48 | 2021-06-25T08:57:48 | 380,181,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,988 | py | import torch
import numpy as np
import torch.nn.functional as F
import torch.nn
from torch.autograd import Variable
import scipy
from data_loader import data_test
from data_loader import data_train
from sklearn.metrics import roc_auc_score
import pickle
import os.path
from scipy import io
import sys
use_cuda = torch.c... | [
"noreply@github.com"
] | noreply@github.com |
4bc7ae67343462bd970a1473cb0dca24ebe4406a | fe941ec9e6d25cb8f6d01a230ca3f63fba3cf0cd | /ortcfront/rules/urls.py | 40a221410c4595be61288cb1b20c33c2d99d12c5 | [] | no_license | rodo/ortcfront | 2b8f4d28ca43704374a9067ccb00cae2ee8c80ac | c71ec3b7e9cd88145b06c278830a16d4a063364b | refs/heads/master | 2021-03-12T22:17:13.020654 | 2014-12-14T11:08:40 | 2014-12-14T11:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2014 Rodolphe Quiรฉdeville <rodolphe@quiedeville.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
#... | [
"rodolphe@quiedeville.org"
] | rodolphe@quiedeville.org |
4571461aa58e4b431da3c8b25a6f62412e3ef47a | 8f2ec98795b8873c384cec8cfb46521d66184467 | /chem_utilities.py | f324c9c13a7612b48e414fdb26f17c2c9d9fca83 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kyleniemeyer/create_rate_subs | c84b6535fe37cf8d9f36f7f62d3dd6a77a02d9b5 | 1d87991ccc5dd6ed5dc332a71a7192c489e004cc | refs/heads/master | 2021-01-21T19:35:11.525619 | 2016-01-05T01:05:00 | 2016-01-05T01:05:00 | 7,443,919 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,801 | py | """Module containing element dict, species and reaction classes, and constants.
"""
# Python 2 compatibility
from __future__ import division
# Standard libraries
import math
import numpy as np
__all__ = ['RU', 'RUC', 'RU_JOUL', 'PA', 'get_elem_wt',
'ReacInfo', 'SpecInfo', 'calc_spec_smh']
# universal g... | [
"kyle.niemeyer@gmail.com"
] | kyle.niemeyer@gmail.com |
3e8dd0a9d0771d0fae58782d615439e782653aa0 | 63dcdb7594dd3f6f6421276178f8308e71b98583 | /day9/Programmers42579.py | 98b7edaa818d1d99c738caa20433b790475b0100 | [] | no_license | KoSangWon/NKLCB_Algorithm | 0a9c87c58fc4fa17a8cb2a5a215bad48bdf97b9e | 68b6cd9b76f03aef2af2ba17bd0ddd61e9cb37ab | refs/heads/master | 2023-04-01T04:04:35.874073 | 2021-04-09T11:35:42 | 2021-04-09T11:35:42 | 350,288,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | # https://programmers.co.kr/learn/courses/30/lessons/42579
def solution(genres, plays):
answer = []
ht1 = dict()
ht2 = dict()
for i, elem in enumerate(zip(genres, plays)):
g, p = elem
if g not in ht1:
ht1[g] = 0
ht2[g] = []
ht1[g] += p
... | [
"jackoss@naver.com"
] | jackoss@naver.com |
3d4133db6fc7dd14344cf295141712edf3862127 | 64bef15359bc341e2270b452e4800aca8a11f41a | /buildings/ml_tro_funcs.py | 11d6ca63fa652fcb21ac28de82361a028c2ebfa5 | [] | no_license | aa3222119/bi_for_ | 3677685b5f10f88b4db3761f7f837deaed038689 | cd80d76894e7c01f6877137a85ebf8d788a2ff38 | refs/heads/master | 2020-08-29T06:33:58.446968 | 2020-08-08T07:32:30 | 2020-08-08T07:32:30 | 217,955,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import scipy as sp
import numpy as np
# ไธ็จ็งๅญฆ่ฎกๆฐๆณๆพ็คบ
np.set_printoptions(suppress=True)
np.set_printoptions(precision=3)
import random
from sklearn.linear_model import LinearRegression
# sklearn.linear_model.LinearRegression http://www.ppvke.com/Blog/archives/19208
from sklearn.cluster import KMeans
# LinearRegressio... | [
"502202879@qq.com"
] | 502202879@qq.com |
4490770ffae1ec806372d5879e8807f03353bf35 | 702da340ab7a1b5de466d6dd3833774e509aa278 | /ะัะฐะบัะธะบะฐ/4 ะทะฐะดะฐะฝะธะต 2 ะดะตะฝั.py | d4c264a60317eb0bced3ee32e059068e5b911f92 | [] | no_license | ForemanAqua/PythonFiles1 | 7499b6b6104edf27e911915c27e8165bbd12fb04 | f9ff96041f35e7ef98518a8148c1ff9b77f10705 | refs/heads/master | 2020-03-20T21:02:57.909968 | 2018-06-20T19:05:23 | 2018-06-20T19:05:23 | 137,720,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import datetime
def printTimeStamp(name):
print('ะะฒัะพั ะฟัะพะณัะฐะผะธ: ' + name)
print('ะงะฐั ะบะพะผะฟัะปัััั: ' + str(datetime.datetime.now()))
printTimeStamp("Valeriy Neroznak")
list1 = [1, 5, 4, 3, 1, 4, 2, 1, 4, 9, 0, 6, 6, 7, 6, 5, 1, 2, 0]
list2 = [[x,list1.count(x)] for x in set(list1)]
list3 = []
for i in range(le... | [
"noreply@github.com"
] | noreply@github.com |
cccef99a3a9e32625f96e0d65b6b0c797aa20efe | 4d6753c1900bd63d707cc6a036ed85009d582d5b | /blog/apps/users/admin.py | ac96f6b9985d4d9c98b7b5b3e38ce3b72e176c03 | [] | no_license | realDNA/blog | b07cfca3c93b601780669bd965f96134ee73fc79 | dcfc54695df107457d431b9fcd4b381b7d510d21 | refs/heads/master | 2022-12-13T20:43:14.288090 | 2020-09-13T12:00:58 | 2020-09-13T12:00:58 | 293,294,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
model = CustomUser
list_display = ["username", "email", "is_staff"]
admin.site.register(CustomUser, CustomUserAdmin)
| [
"34567092+Aaron-jpt@users.noreply.github.com"
] | 34567092+Aaron-jpt@users.noreply.github.com |
c2ee27335ec1db4df52d38e9bcdabfb39e334cc2 | 8239e45b6b031839dcd464bc80a6c8d17ed2f7b7 | /cloudarmy/contrib/conditions/environment.py | 53177af7d135ab208dc6fbe1359908ca766b4a45 | [] | no_license | geeknam/cloudarmy | 401efaee8c8e5e916ddff757edcc657698d9687f | 4363d5bdf8719a8f8bab8104c8ea7d2247d15746 | refs/heads/master | 2021-07-11T19:44:41.769661 | 2016-03-14T12:43:47 | 2016-03-14T12:43:47 | 52,852,867 | 3 | 1 | null | 2021-03-25T21:40:17 | 2016-03-01T06:11:43 | Python | UTF-8 | Python | false | false | 278 | py | from troposphere import Ref, Equals
class EnvironmentCondition(object):
conditions = {
"IsProduction": Equals(
Ref("EnvironmentType"), "production"
),
"IsStaging": Equals(
Ref("EnvironmentType"), "staging"
),
}
| [
"emoinrp@gmail.com"
] | emoinrp@gmail.com |
b8bc61b600c691bdefd5643f36e0c023f5d21088 | ba4cbf3dfde6138b9ab7ef71f23b86d02430af91 | /cetaa/about1/apps.py | 3efaaf5ae95b5671d351291dbef39715e8a857c9 | [] | no_license | soorajbuday/cetaaconnect1 | b52a2bb60c67d1a517d27fb9e2b4c44e950a1bdf | c6b1a91dfad4828780b723aac018a1551d654e66 | refs/heads/master | 2020-03-20T13:43:09.996522 | 2016-09-26T10:11:19 | 2016-09-26T10:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class About1Config(AppConfig):
name = 'about1'
| [
"26shame@gmail.com"
] | 26shame@gmail.com |
3fe21eecf2598ae7479b29ddce155256c9cd28be | 225543bcaa194360aa66c738a99b7ad5c291434b | /main_210610.py | 2a8f1f54bfe2a777202b6b4753473944607604b4 | [] | no_license | m0100434/zendlijsten | f0eecf12ab3fc90c1db9b5c22f1163a92dcdf6f7 | 171e1c427db71dad01408072081c85035c57a2b2 | refs/heads/main | 2023-06-19T05:04:31.619139 | 2021-07-17T07:51:46 | 2021-07-17T07:51:46 | 349,770,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,358 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 11:56:59 2021
@author: ArxXi
"""
from selenium import webdriver
import time
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by impor... | [
"m.verschuere@ailvis.com"
] | m.verschuere@ailvis.com |
95907f7c9ac9ff8ba364dcae91b64148eeed71a5 | 53649e3ecb7023935d612a37ecf5ad45568bbb8d | /Aplikace_1_0/Source/ewitis/gui/DEF_COLUMN.py | e47296468af7ab7e9831c98858c5e460564ed47d | [] | no_license | liuqingchn/ew_aplikace | 157fbc7e0564b29ffe4035724c63d8fc3861512f | efaea537385f9fa90e7f4b4bec430a842c9f7ef6 | refs/heads/master | 2021-01-13T07:20:08.738298 | 2016-04-26T18:54:51 | 2016-04-26T18:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,556 | py | # -*- coding: utf-8 -*-
'''
Created on 27.12.2011
@author: Meloun
'''
""" WIDTHS """
WIDTH_NUMBER_4DIGIT = 40
WIDTH_NUMBER_3DIGIT = 35
"""
RUNS
"""
RUNS = {}
""" table collumns """
RUNS['table'] = {
"id" : {"index": 0, "name": "id", "default": 0, "wi... | [
"lubos.melichar@gmail.com"
] | lubos.melichar@gmail.com |
e96c4e354274771e2cc5a75656aabed1495eac89 | 68e2d732dba6fe560e17008d8db1a1dac14a9de2 | /images.py | 33dd614da568844a3bfd7c32045d4ed71b4a3f33 | [] | no_license | MariaGlushikhina/Tormc19 | cd7a5a24ce4d964f09cb41c2636ccc644aad9536 | a9e02a6f2e88dc022d70e2805d838f1722419e0e | refs/heads/master | 2020-08-14T00:42:18.259172 | 2020-03-05T16:39:21 | 2020-03-05T16:39:21 | 215,065,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | #!/home/maria/anaconda2/bin/python
import matplotlib as plb
import numpy as np
import pandas as pd
import os
from mpl_toolkits.mplot3d import axes3d
from matplotlib import pyplot as plt
from matplotlib import cm
from radmc3dPy.image import * # Make sure that the shell variable PYTHONPATH points to the RADMC-3D pyth... | [
"noreply@github.com"
] | noreply@github.com |
df5640e1150c5a12ee6d2bf2c276be49536fdbfa | c338b6edd016ce737ada4f46b36eb31d40e44ff8 | /python/gitosis/serve.py | 1dea1853ddea71c29cde79c055f91d328ec89c6b | [] | no_license | HankCoder/workspace_hank | 11636d8a76616ae4a7e7bddae73aa73b477128d4 | 3d4bf554ce84bd5fb29480d1767e9ee73a23c3cb | refs/heads/master | 2020-12-25T15:17:34.965284 | 2016-11-24T02:54:41 | 2016-11-24T02:54:41 | 66,057,839 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | """
Enforce git-shell to only serve allowed by access control policy.
directory. The client should refer to them without any extra directory
prefix. Repository names are forced to match ALLOW_RE.
"""
import logging
import sys, os, re
from gitosis import access
from gitosis import repository
from gitosis ... | [
"hank199025@gmail.com"
] | hank199025@gmail.com |
dcf8cbefa814888cbcccbb0828952ebf898bce4b | bb852f14d2b1a64ef360e3d31a7db6dcd9e5fba0 | /static/src/document_finder.py | 37f473e391f96dce7f578dac47885affa6949248 | [] | no_license | Damianus04/mlapplications-v3 | 58f97fdd07d44dc690d04bd3e4d7f77870b3adc6 | 4d4f60772f89fa1abd0e9ba266f1207be05bd53b | refs/heads/main | 2023-04-28T15:14:59.571233 | 2021-05-08T16:25:12 | 2021-05-08T16:25:12 | 365,561,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,316 | py | import pandas as pd
from sklearn.metrics.pairwise import cosine_distances
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import train_test_split
def train_tfidf(filepath, col_name, stopwords=None):
df = pd.r... | [
"damianus.deni@gmail.com"
] | damianus.deni@gmail.com |
3570f49c1da012c350d5d4c2dcf29dd5c6a06d95 | 364d517aedbca646a819ae2c6d894192916a419b | /QIK-Videos/QIK_Web/util/clip_caption_generator.py | 3254096bbf37c88360e18f3ff7754d5f5b318386 | [
"Apache-2.0"
] | permissive | MU-Data-Science/QIK | ac3c3cc8d3d934572ad4a840424df459ab7ff1d2 | 148b3e41e65cf4482535f253e3a9f0985a0339bf | refs/heads/master | 2023-05-25T19:56:58.711646 | 2023-04-25T14:25:16 | 2023-04-25T14:25:16 | 246,338,228 | 3 | 1 | Apache-2.0 | 2023-05-23T03:08:33 | 2020-03-10T15:28:54 | Python | UTF-8 | Python | false | false | 11,416 | py | # Setup
# pip install transformers==4.15.0
# cd $QIK_HOME && pip install git+https://github.com/openai/CLIP.git
# pip install scikit-image==0.17.2
# pip install gdown==4.2.0
# mkdir /mydata/QIK-Videos/QIK_Web/pretrained_models && gdown --id 14pXWwB4Zm82rsDdvbGguLfx9F8aM7ovT -O /mydata/QIK-Videos/QIK_Web/pretrained_mode... | [
"az2z7@mail.umkc.edu"
] | az2z7@mail.umkc.edu |
189638b913ac8e4f95628be830208ded60454bf1 | 994e5b7156a8c1429238facc1463ad1846f1a89a | /models/official/nlp/xlnet/xlnet_config.py | 95ab092442ef4f4b96e61d91ed391051469e8441 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/Felect_M46O | f0c2a9a6c48695705e0b68c92c3a414bacfaa599 | 6d8b80e216c40233d2c1b9e51fe6f605a3b5ef4b | refs/heads/main | 2023-04-22T11:33:59.448117 | 2021-05-06T13:01:12 | 2021-05-06T13:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | 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... | [
"noreply@github.com"
] | noreply@github.com |
c53f03b21f9f7008df76eca8a8135aa0f563011b | b6afc1dbf97e05409fa4ab39529255abcf023473 | /mysite/aaa.py | 78cdca01dcd060bf341fceca7510fade9447fdf4 | [] | no_license | yhnn123/my-first-blog | acde2fc4447e9e15b010a44c96108f28fda18268 | 52e3a581773e922d27e94f9fe9209d41eb65d7ac | refs/heads/master | 2021-01-10T01:16:32.672273 | 2015-10-28T15:21:06 | 2015-10-28T15:21:06 | 43,590,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # encoding='utf-8'
a = 'sonja'
if a == 'soonja':
print("a")
elif a == 'sonja':
print("b")
else:
print("c")
def hi(name):
if a == 'soonja':
print("a")
elif a == 'sonja':
print("b")
else:
print("c")
hi('sonja')
def hi(name):
print('Hi ' + name + '!')
girls = ['a... | [
"yhnn123@gmail.com"
] | yhnn123@gmail.com |
0e364ee751aa1da342a06e4810db079e8ef1c9eb | 1d08546fb80047b5b39c95f5a6a2829276ad1694 | /sync_m3u8_downloader.py | 7a87f36e90ea5d6f9ce11e4c6bfda7eb016d596d | [] | no_license | hyzsj0106/m3u8_downloader | aecb97c7935ccfbb9e0ee47bd8353c530f60a1e4 | 8c832ec9099ba9acaca94e0078ae9566eed43769 | refs/heads/main | 2023-03-03T23:19:31.890515 | 2021-02-22T08:21:02 | 2021-02-22T08:21:02 | 341,113,917 | 0 | 0 | null | 2021-02-22T08:21:02 | 2021-02-22T07:24:53 | null | UTF-8 | Python | false | false | 7,113 | py | import random, os, sys, shutil
import time, string, logging
from urllib.parse import urljoin
import subprocess
import platform
sys.path.append('..')
from downloader_req import fetch
from parsel_url import ParseUrl
from concurrent.futures import ProcessPoolExecutor
prefix = 'ๆปๆๅฆๆชๆณๅฎณๆ'
workers = 12
urls_str = '''
็ฌฌ01้$h... | [
"hyzsj0106@outlook.com"
] | hyzsj0106@outlook.com |
9bc5c6832087d414ceb41dd501185016b6ad0f74 | a2e587dec2538977cb653757de748d39f1baf7cf | /strinstrip.py | bf8b66ffc2456005d852903f267568f61491d855 | [] | no_license | byyasar/python-ders | 2b177f9af75f763036346396aca348a310f4444c | 9e4918da568b52d06fefdc11c427cce4d6198594 | refs/heads/master | 2023-04-28T14:56:43.412872 | 2021-05-17T08:42:55 | 2021-05-17T08:42:55 | 340,045,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | cumle = " biliลim teknolojilerine giriล "
# baลtaki ve sondaki boลluklar silinir.
# print(cumle.strip())
# <bosluk>,b,i,l karakterleri silinir.
print(cumle.strip(" bil"))
# Parametre cรผmlede bulunmadฤฑฤฤฑ iรงin
# hiรงbir karakter รงฤฑkarฤฑlmaz.
# print(cumle.strip("prg"))
# cumle2 = 'python รงok kullanฤฑลlฤฑ'
# print(cumle2.st... | [
"45915186+byyasar@users.noreply.github.com"
] | 45915186+byyasar@users.noreply.github.com |
34162f273f83ff44ba9b5751d76399be86ce110d | ed63a0e28568da84a937e17049f49b4b51d32db8 | /chap5 exer2 nums.py | daaa739a7ad0915a92d2f74146b481a2b08aaf63 | [] | no_license | Ramzi331/learning_python | e1612f8d312b0383df8d655236cc22decdd50651 | 74e0188779a8f909f83beecfa50987be2799794f | refs/heads/main | 2023-03-31T18:13:48.799027 | 2021-04-09T10:29:13 | 2021-04-09T10:29:13 | 351,750,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | total = 0
count = 0
numlist = []
while True:
num = input("inter a number: ")
if num == ("done"):
print ("total: ",total,"\ncount: ",count,"\nmin: ",min(numlist),"\nmax :",max(numlist),"\nDone!")
quit()
else:
try:
num = float(num)
except:
... | [
"noreply@github.com"
] | noreply@github.com |
5e08adeaa3bd2f143bd74229189142d41b1c447c | ec93efe07bcda655ee65782090b16c1f0c2c3153 | /embedvis.py | 98d6aedde8c5e7e65d212d4cfba1a77cc1e831e7 | [] | no_license | BaileyDalton007/mnist-cnn | 2a90e58aff8a1951849859ffaa462ba27fd94967 | 6bd224a5a38d9ef51750f2435d9f2b6af8b55d9a | refs/heads/main | 2023-09-01T03:27:40.572503 | 2021-11-01T22:53:25 | 2021-11-01T22:53:25 | 403,068,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
from tensorboard.plugins import projector
test_df = pd.read_csv(r'data\fashion-mnist_test.csv')
test_data = np.array(test_df, dtype='float32')
embed_count = 1600
xTest = test_d... | [
"baileydalton007@gmail.com"
] | baileydalton007@gmail.com |
c3d2893240ca2e78ab668db51e08f86f89dbb6b2 | 45a15bbaf9f5ecc41d64ce2331cf9687999ce0c5 | /Sift.py | b53aa5410a0b57be8fbcaa70ea6d3f3f092d4bd9 | [] | no_license | KKDT123/Image-stitching-based-on-sift | 446b3d870cb8a770efa86685618e38eb797a6135 | 571a6991070729fc406d80ef608bf3b9f1788e63 | refs/heads/master | 2022-04-23T16:28:41.542958 | 2020-04-29T15:04:07 | 2020-04-29T15:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,314 | py | import func # funcๆฏๆ่ชๅทฑ็ผๅ็ๅฝๆฐๅบ
import numpy as np
import math
import matplotlib.pyplot as plt
import copy
import cv2
from PIL import Image
class KEYPOINTS:
def __init__(self):
self.x, self.y, self.layer, self.sig, self.val = 0, 0, 0, 0, 0
self.sigo = 0 #
self.r = 0
se... | [
"1050743651@qq.com"
] | 1050743651@qq.com |
49a897a64a6e54e1d849ff60e53984509d0e9230 | 715a3d93f97f88d8935db34fecb0a595bcca1b82 | /random_codes/conway's_game_of_life/tableConstructor.py | aea2c1981fd8363819922f20efb5be6bea6873d9 | [] | no_license | juliaokmenezes/the-codes-dark-side | 023854e304adbbbfa09116fc97050d95bdbd6e26 | dbcf15e3c58046e8ae49e07d261726e1cfab250c | refs/heads/main | 2023-08-27T22:53:17.535179 | 2021-10-31T19:53:07 | 2021-10-31T19:53:07 | 421,542,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py |
#parametros: quantY, quantX, posCelula
#quantY = nยบ de linhas
#quantX = numero de casas por linha
#posCelula = array de arrays, onde cada item representa as coordenadas de uma celula viva
def setScenario(quantY, quantX, posCelula):
casa = [1, 1] #[x,y]
#o primeiro loop, vai construir a primeira linha, o... | [
"yohanhxh@gmail.com"
] | yohanhxh@gmail.com |
afffb5c6b0d291c1cc0f2e6fa4487ef0d5ef15a4 | 043e2f54fcdac26eff8608e0e624170da24934d6 | /src/projects/migrations/0014_auto_20200206_0933.py | 8d6bad9d6da081c29f9d3fa2a6a6982b69a972e9 | [] | no_license | russianmax/RentSpot | a83a534490b340ff2e67b96eaf433526a701bad3 | c66eaf57cd01892ac54449bb8a702c32707b6a2e | refs/heads/master | 2023-07-25T21:01:45.011324 | 2021-08-27T13:03:32 | 2021-08-27T13:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # Generated by Django 3.0.2 on 2020-02-06 09:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0013_listing_images_listingid'),
]
operations = [
migrations.AddField(
model_name='listing_database',
na... | [
"maksimk2@winlabs.com"
] | maksimk2@winlabs.com |
3ccbf8883c86965571f090c36bced556f00efdd1 | f60ec2c12c6d56be853bec9c222b8ea91b170130 | /apps/pig/src/pig/models.py | a38ff955d4c0be321ef26bdb2d085598b63d858f | [
"Apache-2.0"
] | permissive | jackerxff/hue | b33911f62129cc949096dd48b3fdcf0584bbba69 | 2418050cafd75aab043900c28a867f5c13bc1c0e | refs/heads/master | 2020-12-29T02:54:39.947205 | 2013-04-05T21:25:07 | 2013-04-05T21:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain@cloudera.com"
] | romain@cloudera.com |
fbb2e4583fb58c848d33e8cc0e27639a1969d7a3 | 4045d51fa86f78876ab8b9edf367e5e2d98743a2 | /pyzscaler/zia/config.py | 711cba3351cf53853e481ff3dcb75bc42636188f | [
"MIT"
] | permissive | TrendingTechnology/pyZscaler | 861f67503ec5549651b15735310eb88af3d38e52 | 07ca55ce9c166cf7cf07f6bc3aa3da375d3f6d96 | refs/heads/main | 2023-08-01T08:32:16.515308 | 2021-09-21T23:41:00 | 2021-09-21T23:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from restfly.endpoint import APIEndpoint
class ActivationAPI(APIEndpoint):
def status(self):
"""
Returns the activation status for a configuration change.
Returns:
:obj:`str`
Configuration status.
Examples:
>>> config_status = zia.config.st... | [
"me@mitchkelly.com.au"
] | me@mitchkelly.com.au |
9d14284a90e6506b27414715f3d2e4972a67bb2b | cb1d2c5c8bce3a54c0d282182efc0b5c2811891f | /Code.py | a25e455a56f2b495c70424c84b14d4208117865e | [] | no_license | surajky/weighted-tf-idf | 8c4cd38bbbca4ba7c7e97d570e77b28326331ab3 | ffa79da10d7d30c5ccbc868133d29bd2824459dc | refs/heads/master | 2021-04-09T15:43:15.147470 | 2018-03-18T16:31:28 | 2018-03-18T16:31:28 | 125,744,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | import math
"""Frequency of words in each Document"""
documents= [[1,0,5,5,3],
[0,1,2,5,5],
[1,3,0,3,4],
[3,2,1,4,5],
[4,0,1,5,0]]
query=[4,2,1,3,0]
"""TF"""
temp_documents=documents
temp_query=query
for i in range(0,5):
sum=0
for j i... | [
"noreply@github.com"
] | noreply@github.com |
04c39588a75c7d1646fb96aeb656bbb9548a976f | c1b56d50c68bf32e900349cbab4bfd043a79a237 | /Pythagorean Triplet.py | 231f1b5449311249ea7648796d95434b151ff9d6 | [] | no_license | divanshu79/GeeksForGeeks-solutions | c7a5f0be04e8376e72f933c35fb2d09641fe7130 | caf77aad9c53d5d05c87318806097d750864a6e3 | refs/heads/master | 2020-03-25T07:56:14.997786 | 2018-08-05T06:37:22 | 2018-08-05T06:37:22 | 143,589,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from collections import defaultdict
for _ in range(int(input())):
n = int(input())
arr = list(map(int, input().split()))
def_dict = defaultdict(int)
sq_list = []
for i in arr:
def_dict[i*i] = 1
sq_list.append(i*i)
sum_list = []
flag = 0
for i in range(n-1):... | [
"noreply@github.com"
] | noreply@github.com |
29eaf7dca764f8db0e109f82e350645c5ee1f812 | c741f04141784a2571d2d27d95e0d994e4584ab1 | /learning/py3/่ฟๆฅmysql/PyMySQL/test3.py | f72ccb6eb48887eb51cf2b269456a0e175b90e48 | [] | no_license | haodonghui/python | bbdece136620bc6f787b4942d6e1760ed808afd4 | 365062ba54297c81093b7f378742e76d438658b7 | refs/heads/master | 2022-02-03T23:52:37.288503 | 2022-01-27T05:23:25 | 2022-01-27T05:23:25 | 191,729,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from pythonmysql3 import DB
if __name__ == '__main__':
with DB(host='59.110.228.110', port=3306, database='test_tea_uc_0', user='test_tea_uc_0',
passwd='L~+SJ*F^kon[t+10l6') as db:
db.execute('select * from uc_user limit 0,10')
print(db)
for i in db:
print(i)
| [
"haodonghui@yestae.com"
] | haodonghui@yestae.com |
9486d6ebacf93445e04c3afaaa25288af94b06d0 | 1313fb47b394b48d28830d09bb91aade3db3523c | /style_transfer2.py | 01687f90ebee5e21a76cf4ffaabe980c1f6a7ea3 | [] | no_license | mbalali/CNN | 68c5e7787ae4958b16e304901afa0d7d5df77a1a | f8551a105236174a7205146e104c757c72425345 | refs/heads/main | 2023-02-25T01:55:51.277523 | 2021-02-01T16:11:05 | 2021-02-01T16:11:05 | 335,006,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | # https://deeplearningcourses.com/c/advanced-computer-vision
# https://www.udemy.com/advanced-computer-vision
from __future__ import print_function, division
from builtins import range, input
# Note: you may need to update your version of future
# sudo pip install -U future
# In this script, we will focus on ... | [
"noreply@github.com"
] | noreply@github.com |
dda99e7ed45e747f0f612816bdf88ea51861dc51 | fd4dbf34dd2197d7429c6da99ae54cf0f2529934 | /jaden/jaden-pairbot/src/pairbot/pb_control/catkin_generated/generate_cached_setup.py | 1d72b28bc20771c5932ad7ccbe58eb5c50660419 | [] | no_license | PAIRLABS/InfoExchange | ed80a92f3b0c7528d93172284b6f218368f57b98 | 905c20312bdf8b93f6615cb9bb75562006061315 | refs/heads/master | 2022-02-17T14:47:20.551203 | 2019-08-30T01:48:12 | 2019-08-30T01:48:12 | 153,047,928 | 0 | 4 | null | 2019-08-30T06:34:02 | 2018-10-15T03:26:39 | Makefile | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"jadenlin0106@nctu.edu.tw"
] | jadenlin0106@nctu.edu.tw |
55b12e55ecbc1f8f8ad159318d84990b6c4a6862 | 09978275a3edf0ac65e271692e383efde69c2f1c | /upload_to_s3.py | c069aecc01f2375f690180e2a2a43f681ced7d9f | [] | no_license | tekurioptions/Test | e0d17a1b89e0e7c9beccb600daab9f836d5e7d4b | 90b2558598ef9637a038ea8a01590f848a2eb5a0 | refs/heads/master | 2021-01-19T15:23:40.690317 | 2020-02-03T07:34:28 | 2020-02-03T07:34:28 | 100,965,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | from datetime import date, timedelta, datetime
from airflow import DAG
from airflow.operators import DummyOperator, PythonOperator
import boto3
s3 = boto3.resource('s3')
def upload_file_to_S3(filename, key, bucket_name):
s3.Bucket(bucket_name).upload_file(filename, key)
DAG_DEFAULT_ARGS = {
'o... | [
"noreply@github.com"
] | noreply@github.com |
bc2ec15906048fc42b645664a4552aa614fffaec | 4cbe0eef8694a7f5443e6d276577d3ca08d15456 | /cpt1/noneLenDemo.py | a713e854c6074bac6033c4576a506fd818583169 | [] | no_license | GSIL-Monitor/PythonLearning | 2bf313e366e395df1d27164fe79e16e948094583 | 3f20f9cdff1cef368baa6a2374e6b2cbe3871aa4 | refs/heads/master | 2020-04-19T09:11:45.169704 | 2018-11-28T09:55:01 | 2018-11-28T09:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | s=None
s1 = ''
s2 = ' '
print(len(s1))
print(len(s2))
print(len(s2.strip()))
# print(len(s))
t1 = t2 = t3 = None
print(t1, t2, t3)
| [
"249398363@qq.com"
] | 249398363@qq.com |
ace0305e6fa31b4f5385cfb572cd9b92098c8708 | e76a77c1338fde64dcde1376b06b247033d023f1 | /week9/movies/media.py | 01537f0e7c312b1a293eac692dd7dd1ab9e07712 | [] | no_license | keven/python-class | 88fa01d40562b8316e2648aa55ed76ddf34c382b | 40e8fe293d83192e808ceeb33735555c8559ee9b | refs/heads/master | 2021-08-22T20:27:53.739298 | 2017-12-01T06:19:52 | 2017-12-01T06:19:52 | 106,586,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
self.title = movie_title
self.storyline = movie_storyline
self.poster_image_url = poster_image
self.trailer_youtube_url = trailer_youtube
# def show_trailer(self):
... | [
"kevenlin@kevens-mbp.lan"
] | kevenlin@kevens-mbp.lan |
e1261563d4276984a49fdc653c96e81c17f4a920 | 8fb4541f884be2c83ce76d5e2deb3d4d13ef4740 | /raisingcustomexception.py | 9be4ba1354f84ce6bde06f3e2069e5aeabf2cf47 | [] | no_license | jrajpal5-singularity/python_basics | b3bbf84af1e3aa69489986b703dc6c84e6b7ed24 | 580d9c4667ef0f2e276a6d46e2899e1ed52b5b7f | refs/heads/master | 2023-07-16T18:39:06.832280 | 2021-09-10T11:59:24 | 2021-09-10T11:59:24 | 405,064,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | class CoffeeTooHotException(Exception):
def __init__(self, msg):
super().__init__(msg)
class CoffeeTooColdException(Exception):
def __init__(self, msg):
super().__init__(msg)
class CoffeeCup:
def __init__(self, temperature):
self.__temperature = temperature
def drink_coffee(... | [
"jrajpal5@gmail.com"
] | jrajpal5@gmail.com |
cc5d314df9df7ab8de8aebd5c5e453529818409f | 2d4e0dd8d1d6d06ed2ba80ad23be92ceec6bb4f5 | /learning_scripts/sum.py | d65e3f4ed61e47d9af0999cb01a43e16aef1d824 | [] | no_license | ashwinids/python | 573f50defde3aae994c2b32e62b7292be8d08e68 | a5891c37496f75f1af6adefa7b45d7914c92a689 | refs/heads/master | 2021-01-16T00:09:30.440296 | 2017-08-10T21:46:06 | 2017-08-10T21:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #!/usr/bin/env python
def sum(a,b):
sum = a + b
print(sum)
a = float(raw_input("a:"))
b = float(raw_input("b:"))
sum(a,b)
| [
"asiddappa@apple.com"
] | asiddappa@apple.com |
aeb415f66f3579ca75d34caf48ab0a0ed47746c9 | c5bd5dd4f340b38f92f559909941428f242aaacd | /project1/wsgi.py | e7233a00b97621c13de83d6fdd168a57563a2206 | [] | no_license | nadhiya05/General-form-element | 5f00454a92de5a566ddbc56d1c8fe03bcab8d5ae | e87368bb751486beec7712daa6455fb405a40e99 | refs/heads/main | 2023-03-10T01:46:32.956855 | 2021-02-25T11:26:31 | 2021-02-25T11:26:31 | 339,750,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for project1 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"noreply@github.com"
] | noreply@github.com |
1d1c6159d39366e7b2130cca2ed83d36fab067c6 | c96c79bb7ca3e71d609eab20ed8d68cff8ee7fe7 | /DataStructurePrograms/bankingCashCounter.py | 0049a83ecb8431b52e5fdb75741a8707cd5863a8 | [] | no_license | NikhilDusane222/Python | 25c9eb50bcd5e0e8679ece41d97129b9100e9a91 | 0183c4211a28bbddb6792978cf55da89a682f67a | refs/heads/master | 2021-05-18T13:07:07.059428 | 2020-04-12T17:23:57 | 2020-04-12T17:23:57 | 251,254,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | #Class Queue
class Queue:
def __init__(self):
self.balance = 0
print("Welcome to the Bank Cash Counter..")
print("This is a Banking portal")
#Function for deposite amount
def enqueue_deposit(self):
amount = int(input("Enter amount to be Deposited: "))
self.balance +=... | [
"you@example.com"
] | you@example.com |
9e978584667f84859833c2ca627d42924dc03934 | a52dbccf7ad8ad0089161cea27a6affdaeb078ac | /application/admin.py | 960ee963788f709bfe5dcab70dd0cd9f90aff31e | [] | no_license | Ganeshrawat/django_Elibrary | ea28b3231d808aa394e60be8e3da136043d5c793 | b1b77bb98c6a9cc66855d52a3cda4be1b2c2757e | refs/heads/main | 2023-03-14T21:11:17.989918 | 2021-03-24T03:16:20 | 2021-03-24T03:16:20 | 350,924,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from .models import library
# Register your models here.
admin.site.register(library)
| [
"noreply@github.com"
] | noreply@github.com |
50f59c198771c869cd56e7fc4b30392e3a12eca6 | d4f18631298b98ea6115a6458b625aec44de76ca | /util.py | ec2f5b4e288729cb49e99a1d3fa951ca84faa311 | [] | no_license | sarkaaa/drbd-manager | a48a6fca72b9445b78d8521906a70292e3356e11 | f56d303993f5c24d025b7271866ecfa30b42400f | refs/heads/master | 2020-06-27T05:02:41.808145 | 2011-07-21T21:48:55 | 2011-07-21T21:48:55 | 97,047,504 | 0 | 0 | null | 2017-07-12T20:05:41 | 2017-07-12T20:05:41 | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/env python
import os, sys, time, socket, traceback, subprocess
log_f = os.fdopen(os.dup(sys.stdout.fileno()), "aw")
pid = None
def reopenlog(log_file):
global log_f
if log_f:
log_f.close()
if log_file:
log_f = open(log_file, "aw")
else:
log_f = os.fdopen(os.dup(sys.... | [
"dave.scott@eu.citrix.com"
] | dave.scott@eu.citrix.com |
f94e3678559823245c66e0d7d213c4425c930af9 | 46abc544bb046574fdb36b61161ff53ec813eeb7 | /main.py | c9fe398212449bfc6f9d5b959b28b00022a3f603 | [] | no_license | Wayeet/API-Fritzconnect | 6ce90cf0de839e854322ac91f71638d11570cc1a | 2e2d2e320bbddecc539a6bee493f5dbc0f7913b1 | refs/heads/main | 2023-06-20T08:45:34.802422 | 2021-07-24T13:06:57 | 2021-07-24T13:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | import api
if __name__ == "__main__":
api.run_api()
| [
"admin@orc-industries.de"
] | admin@orc-industries.de |
c49f65caddf0e7266d20aa73511179daeb6c0f53 | 808f60d31bf42e8e4ad1da5e38a9b2672475697f | /bin/rule_based_speaker/overtakeController.py | 8bf0ee6dc33d9865950ef3679f12d7474566d6d2 | [] | no_license | MLCS-Yonsei/Speaker | 14a0e070a8bc46cf7492bd4d4203048c376c05ef | d74aa8c218de71c3eccfc669ec4c8e145e7a9d73 | refs/heads/master | 2022-11-24T23:51:43.216388 | 2018-11-14T07:01:21 | 2018-11-14T07:01:21 | 146,603,099 | 0 | 0 | null | 2022-11-22T01:13:09 | 2018-08-29T13:22:02 | Python | UTF-8 | Python | false | false | 4,291 | py | import subprocess
import multiprocessing as mp
from threading import Thread
from multiprocessing import Pool
from queue import Empty
import time
import datetime
import os
import signal
import sqlite3
import redis
class overtakeChecker(mp.Process):
def __init__(self,que,r,target_ip):
# [๊ณตํต] ๊ธฐ๋ณธ์ค์
... | [
"hwanmooy@gmail.com"
] | hwanmooy@gmail.com |
cc45a6551fb363d98c64fb79d9975c2773d2c81d | 2744da2550b68314c0e45b115e60f302619e4d12 | /hefen_python/result/result_statistic.py | 2cc4baa0c52d00b02442d6f1ca5266d48496b653 | [] | no_license | zhongwuzw/home_broadband-line | 41177030ca08a216eb4737a2113459ab02d40cc6 | 99c0805c62984366f4b18ab029887bd01fe2d788 | refs/heads/master | 2020-05-21T16:45:45.664073 | 2017-12-04T08:58:11 | 2017-12-04T08:58:11 | 60,708,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,589 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import pymysql.cursors
# ๅฝไปค่กๅๆฐ้กบๅบไธบ:ๆฅๆใ่ฝๅใๅฐๆถ,ๅฆ python result_statistics.py http 20170404 2017040415
# or python result_statistics.py http 20170404
def insertListToMysqlDB(year_month, day, num, kind, isDay, org = "", projectID = "", appID = ""):
stati... | [
"zhongwuzw@qq.com"
] | zhongwuzw@qq.com |
fe6e9af8a31baddb7805d28634bc057f5808ce14 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626132705.py | 8d63e58baefe42cbcb636035be65bad77d03b90f | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 4,579 | py | # ไฝฟ็จrequests๏ผbs4ๅบ๏ผ็ฌๅ็ซ็ผ็ตๅฝฑtop10็็ตๅฝฑๅ็งฐใ็ตๅฝฑ็ฑปๅใไธๆ ๆถ้ด๏ผๅนถไปฅutf-8็ๅญ็ฌฆ้ไฟๅญๅฐcsvๆไปถไธญ
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
fb9d2de4608618a90483dce7880ec25859319581 | eb4070d3dda38df8b6d4118343db59d559e58df6 | /week-1/Examples/plot_bostonjuly2012temps.py | 7106e6e834e9c292ae22013b1fc5392a53e0f201 | [] | no_license | RaviTezu/MITx-6.00.2x | df767115085e4f28cfaac20ec90c18453517ed5a | 6effafa89e15e1d59c9302c4a3c9f6ce96da0faa | refs/heads/master | 2021-01-10T16:15:03.999778 | 2016-04-20T11:40:46 | 2016-04-20T11:40:46 | 53,061,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | from __future__ import print_function
import os
import pylab
# It is assumed that the 'julyTemps.txt' file is present along the side of this script and this script is
# executed at the root.
PWD = os.getcwd()
FILE_NAME = 'julyTemps.txt'
FILE = PWD + '/' + FILE_NAME
HIGH = []
LOW = []
def load_file(inFile=FILE):
... | [
"ravi-teja@live.com"
] | ravi-teja@live.com |
bcfb6d795ad0b60febd1d19dad0b815dc763f820 | 521d68b39681253ad39e7254968a8482f28ba391 | /apis/setOrder.py | da57f268899240cf1cbef06e4de171588c2984dc | [] | no_license | unChae/python_ats | 14cca2a07a5629cd2def9e3d428866d9da6a1414 | 0d3d8e9c5ccfc807076dfb24a6084e325b6e17ec | refs/heads/master | 2023-07-21T23:49:35.256075 | 2021-03-27T06:38:17 | 2021-03-27T06:38:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | import os
import jwt
import uuid
import hashlib
from urllib.parse import urlencode
import requests
# call .env
from dotenv import load_dotenv
sys.path.append("/root/ats")
from create_log import createLogs
#response
sys.path.append("/root/ats/flask")
from make_response import cus_respones
load_dotenv(verbose=True)
... | [
"darrun45@gmail.com"
] | darrun45@gmail.com |
d21a1e0fda886e68b04b7b6fb2aae7d62a280eea | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit1046.py | 63eee4eecc3a2149468ba16560b7bb2f0123e5f6 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | # qubit number=5
# total number=51
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f8240bf750062c3d98ef0e95fe1b2b65a774ae4b | 6d82e1deb77d7beee2605e7bac4f009783c9aac3 | /Alferov_Aleksandr_dz_3/task_3_1.py | 15a908c796513bee6012eb09f4e2cc4a09bfc000 | [] | no_license | selfish-skunk/gb_homework | 5df452cf9aab03fa97297d5ea5ebd3601d97a806 | 1dfa0b7937beb3e6af474cb4416005106c9fe35a | refs/heads/main | 2023-06-03T19:14:45.600448 | 2021-06-25T16:30:37 | 2021-06-25T16:30:37 | 369,659,381 | 0 | 0 | null | 2021-05-23T00:17:16 | 2021-05-21T21:38:15 | null | UTF-8 | Python | false | false | 625 | py | # 1. ะะฐะฟะธัะฐัั ััะฝะบัะธั num_translate(), ะฟะตัะตะฒะพะดัััั ัะธัะปะธัะตะปัะฝัะต ะพั 0 ะดะพ 10 c ะฐะฝะณะปะธะนัะบะพะณะพ ะฝะฐ ััััะบะธะน ัะทัะบ.
# ใฝ(หให)ใ
def num_translate(num, dict):
print(dict.get(num))
word_book = {
'zero': 'ะฝะพะปั',
'one': 'ะพะดะธะฝ',
'two': 'ะดะฒะฐ',
'three': 'ััะธ',
'four': 'ัะตัััะต',
'five': 'ะฟััั',
'six': 'ั... | [
"selfish.skunk@gmail.com"
] | selfish.skunk@gmail.com |
1ec2324207c0632e45795f7b7729bc5d37c4bc78 | a657f94afbefe55ec883bcc351fdba9136d8638b | /euler.py | 4ef9d006c8a91b3c3b12e449e20eb85c69b26c2b | [] | no_license | ertosns/euler | 1ee3bb188b77d514c800b802b5a16322effaed7e | 26dc468cd31f5b504cf35da5d97598eb36f1d73a | refs/heads/master | 2021-08-09T02:25:40.941503 | 2017-09-17T22:30:30 | 2017-09-17T22:30:30 | 103,866,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | '''
Author ertosns
Date 23/8/2017
euler challenge solutions.
'''
import math
def palindrome(int_p):
str_p = str(int_p)
l = len(str_p)
for i in range(l/2):
if str_p[i] != str_p[l-i-1]:
return False
return True
#todo enhance
def prime(n):
if n < 1:
return False
elif ... | [
"ertosnsbot@yahoo.com"
] | ertosnsbot@yahoo.com |
d178dcc2efeab0bd3fdac83c2c00a2998ac26b5e | 0cb970785a746a30f9b44b3e5234157818688197 | /Dpython/datatypes/listdatatype/dictionary.py | fdca2679ba3ae6247d7957ec1b3a8f77e78d2354 | [] | no_license | charan2108/pythonprojectsNew | 4255bbb81b6cf0d47c51c131ed93a0bb331a669c | b2f273d44937ec576daa0235d0d0326ff5149bf8 | refs/heads/main | 2023-05-03T16:55:33.242693 | 2021-05-26T11:18:17 | 2021-05-26T11:18:17 | 371,001,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | d = {101:'q', 102:'w', 103:'r'}
print(d)
print(type(d))
d[101] = 'alfa'
print(d)
e = {}
d['a']='apple'
d['b']='gold'
print(e)
| [
"sumacharan.adabala@gmail.com"
] | sumacharan.adabala@gmail.com |
7e26c46bb3f2d77d8229684f5f891b3a9cbdec8c | e84a2084649d3aa176270461cce2584aaf3e6e7f | /forum/forum/urls.py | 532d22c07f55be1180d215f1186da8ff4b5dc265 | [] | no_license | yeawin/webcms | 6a2a568c875369997f4653401f0d2bb4037c6699 | 081f1ebd200a906045a085170176be7455dffa32 | refs/heads/master | 2021-01-01T17:53:22.459795 | 2017-09-08T02:18:12 | 2017-09-08T02:18:12 | 98,188,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | """forum URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"ywliu@xmu.edu.cn"
] | ywliu@xmu.edu.cn |
71535013b5db40125494eabf74abe9bf04feaa38 | 7b7b0e3c1db646fcd58ed7bf032b37f826aa5dc5 | /monte_carlo.py | 1e6d559cd67e18301326aba1308b57af827750e7 | [] | no_license | tvvasquezg/RL | fcc3806d0fb88e7d5bcc3e8cf7afa0b7cb413de8 | 505887aa75548a717f369f08ff4babebbdc271dc | refs/heads/master | 2021-01-06T08:18:53.708775 | 2020-02-17T19:06:11 | 2020-02-17T19:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | import numpy as np
from time import sleep
import matplotlib.pyplot as plt
rows = 6
cols = 9
start = (2,0)
goal = (0,8)
blocks = [(1,1),(2,1),(3,1),(4,1),(5,1)]
BEHAVIORS = ('U','D','L','R')
class Environment:
def __init__(self):
self.rows = rows
self.cols = cols
self.start = start
... | [
"maacostaro@unal.edu.co"
] | maacostaro@unal.edu.co |
89938fbcb47e0b7757adcf91ed9a35f11cc37eeb | a27e43d263375f1ea42d496e18af01f5ad46990e | /modules/initialize.py | d7767bbf8a118b8f1b6dc24808d627c54abdcc1f | [] | no_license | Klim314/Quetzalcoatl | 74565556a26d548f28118137e81866f7dc7a4e7a | 0d78183235207bc9c44c7c099722f5a7203e1d9c | refs/heads/master | 2016-08-06T08:57:19.802511 | 2015-06-24T08:29:53 | 2015-06-24T08:29:53 | 36,220,505 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python3
"""
initialize.py
loads the pubdip.ini file
returns a dictionary containing all terms
"""
def execute(target):
res = dict()
with open(target) as f:
for i in f:
if i[0] == '#':
continue
temp = i.split('=')
res[temp[0]] = temp[1].strip()
return res
if __name__ == "__main__":
... | [
"klim314@gmail.com"
] | klim314@gmail.com |
fa6ee29c104959fe81ede565ddd6ba55d07a6502 | d55f0a4e5c00c2ee075250bf8da6bc13e3a83cf5 | /django_project/chumthewaters/admin.py | fc2c2fa6b254e993e2de97539089beec5d4f35b1 | [] | no_license | dtsiedel/ChumTheWaters | 00278b61ec461ac292ec16932aaad2192e39dac2 | 8d7495bb156217ad61445d0368ee76d34ac26ffd | refs/heads/master | 2020-04-11T03:51:15.627461 | 2016-12-14T16:40:51 | 2016-12-14T16:40:51 | 68,022,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.contrib import admin
from .views import hello
# Register your models here.
admin.site.register(hello)
| [
"dts.siedel@gmail.com"
] | dts.siedel@gmail.com |
7cd02ffb1d2c83ef5702de777444badd6d5579f9 | d0bc8b73f567968b0998230b11677d6237d0f6a5 | /sdk/python/kfp/v2/components/types/type_utils_test.py | 9a315867c558fe745d1fad3879fdfbf95a5ed129 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | Stevedev7/pipelines | 74a1e2c114c80bb71a29192eeba8d41d730f98b3 | 6a730f961803f505909c08897ba81ae543a3e8eb | refs/heads/master | 2023-09-05T16:02:54.675847 | 2021-11-08T18:35:09 | 2021-11-08T18:35:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,553 | py | # Copyright 2020 The Kubeflow 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 to in... | [
"noreply@github.com"
] | noreply@github.com |
417b5863206b5507b692d235dc15a4afa388178b | 556270814f52cb72af0c5cfa69a91bc00ddbdfdf | /codeUp problemset 100/1073_16726262(AC).py | ac4339547925dfee24b238460eaa41355920c857 | [] | no_license | jihyoung-lee/Coding-Test-With-Python | fd6a14dd0f33a224821292f5ec9e35452ed5587b | 4d2ff83c08980198144066e80c01c55346fc6a23 | refs/heads/main | 2023-04-15T19:22:18.842949 | 2021-04-29T13:28:21 | 2021-04-29T13:28:21 | 326,173,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | ๏ปฟa = input().split()
for x in a:
if(x!="0"):
print(x)
else:
break
| [
"67559886+jihyoung-lee@users.noreply.github.com"
] | 67559886+jihyoung-lee@users.noreply.github.com |
f954f43e8cdc73c171ae692a1d158d1f11b505f0 | d032dacfe02d05985b3a5c9efc469e06dd3d90e1 | /livechat/routing.py | 637bfc29c7baa80075d782c7b01dfb3e99ba83d5 | [
"MIT"
] | permissive | AnuragGupta806/Persevarance-Hack36 | 51f4767bb98ccb08668ce99afe2b169a9e146856 | 34a005664558593adff36e03d0a457febed3608a | refs/heads/main | 2023-04-03T03:03:26.162086 | 2021-04-17T11:43:42 | 2021-04-17T11:43:42 | 356,320,370 | 0 | 1 | MIT | 2021-04-17T11:43:43 | 2021-04-09T15:39:58 | CSS | UTF-8 | Python | false | false | 156 | py | from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>\w+)/', consumers.ChatConsumer),
]
| [
"54318429+AnuragGupta806@users.noreply.github.com"
] | 54318429+AnuragGupta806@users.noreply.github.com |
6076f1c22b57304f12ad5e41a44755ef30bd6a44 | 206aa8bf20087f47b040777154e4525fbdf05e0c | /Assignment_2/multiagent/keyboardAgents.py | 68303807fe284b692708afb2e9c0b0da7bc02211 | [] | no_license | heromanba/UC-Berkeley-CS188-Assignments | 0f7340553beb523f551bfa7445da2520b72de164 | fe2e1dc05272477bc03039ec0ab8a31bdd89dabe | refs/heads/master | 2021-06-28T18:44:01.615408 | 2020-09-18T07:14:42 | 2020-09-18T07:14:42 | 136,872,884 | 4 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | from game import Agent
from game import Directions
import random
class KeyboardAgent(Agent):
"""
An agent controlled by the keyboard.
"""
# NOTE: Arrow keys also work.
WEST_KEY = 'a'
EAST_KEY = 'd'
NORTH_KEY = 'w'
SOUTH_KEY = 's'
STOP_KEY = 'q'
def __init__( self, index = 0 )... | [
"heromanba24@gmail.com"
] | heromanba24@gmail.com |
341a49376980097248fe356f153251bf6dcac09a | 1439bf1f4127331306aa9abc2153170073b3f171 | /src/skill/urls.py | fc9c9e60caed7dbc9f82fcc4e2ba6ee6c45e9a9b | [
"MIT"
] | permissive | xgerinx/skillsitev2 | 6c6ac7bfdfc19dea46ea8a57498a12d1a9120a1b | 860d1c1214de125346c0accc4ec4b8953297231b | refs/heads/master | 2023-08-25T05:57:04.704007 | 2021-10-26T09:41:20 | 2021-10-26T09:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | from django.urls import path, re_path, include
from django.views.generic import TemplateView
from .Controllers.Home import home
from .Controllers.Auth import auth
from .Controllers.Admin import admin
from .Controllers.Payment import payment
from rest_framework_simplejwt.views import (
TokenObtainPairView,
Token... | [
"xi.forwork.ix@gmail.com"
] | xi.forwork.ix@gmail.com |
34a80c8dab37022c77f53a2aea2077a2f51aa81b | a0e33f22ed416429e5ed003896d410ab0e82d3eb | /polymodels/managers.py | a08e4ba298a2da0d63b9bcbbeaadcc69656423fd | [
"MIT"
] | permissive | fusionbox/django-polymodels | 37982506c6ea58ae85f44da676cd990b4babc6fd | 0e6caf3932b2d8337d15f9755983c94743317e12 | refs/heads/master | 2020-12-25T10:59:02.520899 | 2016-01-22T00:13:22 | 2016-01-22T00:13:22 | 50,145,841 | 0 | 0 | null | 2016-01-22T00:13:14 | 2016-01-22T00:13:14 | null | UTF-8 | Python | false | false | 2,968 | py | from __future__ import unicode_literals
from django.core.exceptions import ImproperlyConfigured
from django.db import models
class PolymorphicQuerySet(models.query.QuerySet):
def select_subclasses(self, *models):
self.type_cast = True
relateds = set()
accessors = self.model.subclass_acces... | [
"charette.s@gmail.com"
] | charette.s@gmail.com |
0d7feabbe57c28d92e23066062f6adeaf3d18808 | 3e42ce946e90a35b5b915f22f3d2c8f5fefc4287 | /substitutionEnc.py | 465225403fbe15abb5db63d3db6e011339cf42d4 | [] | no_license | M-Smith-contact/reticulated.python | 0c5c2f788fe1f283072704d92fefca115c9c21e0 | 3d2f29b309d75b611c9fb9483c07547145c3beef | refs/heads/master | 2021-01-17T13:10:44.026308 | 2016-07-16T19:50:34 | 2016-07-16T19:50:34 | 59,521,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | def removeChar(string,idx):
return string[:idx] + string[idx+1:]
def keyGen():
alphabet = "abcdefghijklmnopqrstuvwxyz"
key = ""
for i in range(len(alphabet)):
ch = random.randint(0,25-i)
key = key + alphabet[ch]
alphabet = removeChar(alphab... | [
"noreply@github.com"
] | noreply@github.com |
14ef0266760231bb28a25df8a15f3f4a3d809e6e | 224017c6fdfd172f10b5eba3edf557a672b39133 | /acticationGraph/deriveSigmoid.py | 9c4a42d93d13f2f76f79c03ece2ea6740b0973c6 | [] | no_license | sleep4725/Ai.kim | 08296012b5d07ac8fc38ada54f88abb7f15a3290 | 8920ef26ad74a1cd1a78c45e05cca91c1f3e449a | refs/heads/master | 2020-05-29T15:26:46.125311 | 2019-07-09T23:46:22 | 2019-07-09T23:46:22 | 189,220,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import numpy as np
import matplotlib.pyplot as plt
"""
ํ์ดํผ๋ณผ๋ฆญ ํ์ ํธ ํจ์
์๊ทธ๋ชจ์ด๋ ํจ์์ ๋์ฒด์ ๋ก ์ฌ์ฉํ ์ ์๋ ํ์ฑํ ํจ์
"""
class DeriveSigmoid:
def __init__(self):
## x์ขํ
self.xCoordinate = np.arange(-10.0, 10.0, 0.1)
def derivativeSigmoidFunction(self):
# ==========================================
... | [
"sleep4725@naver.com"
] | sleep4725@naver.com |
91a5b6e81692b41a2ffffebed1fa5a58a9cc4ca7 | 2097293065bb28452b221a5f635bac63c69a3e80 | /pizza.py | 60599550eb351267a25b0b28131179907e104ba8 | [
"MIT"
] | permissive | kafkoders/hashcode-pizza | eb2ca3944f62c9c21853b8d0dc2cd34a984984bf | 513452f35299885f396a49113264523a0a6cceae | refs/heads/master | 2020-04-23T22:16:53.542636 | 2019-02-24T19:46:38 | 2019-02-24T19:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,483 | py | import pandas as pd
import numpy as np
import math
input_files = ['d_big']
def create_pizza_dataset(file_):
flag = False
elements_ = []
with open(file_ + '.in') as input_:
for line in input_:
if flag is False:
rows, cols, min_ingredients, max_cells = line.split(' ')
... | [
"alvarob96@usal.es"
] | alvarob96@usal.es |
c0058983bc604c49b5110d37318a073b7ff43ecb | ba2e82c79ecf6998fa3626912d47c02f4315c1df | /acgan/main.py | fc4a10e7f94deda89a167b42e33f0d47be8ec216 | [] | no_license | danmar3/AssociativeGAN | 660513cc8dbb5a4e144234b83c0eb42ba58d2d85 | be17cc0737198a67796bce7fe657da22a2618361 | refs/heads/master | 2023-04-02T06:18:01.546140 | 2020-08-28T06:27:36 | 2020-08-28T06:27:36 | 167,607,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,549 | py | import os
import tqdm
import json
import datetime
import numpy as np
import tensorflow as tf
import twodlearn as tdl
import matplotlib.pyplot as plt
from . import data
from . import params as acgan_params
from .utils import eager_function
from .train import run_training
from .model import msg_gan
from .model.gmm_gan im... | [
"daniellml55@gmail.com"
] | daniellml55@gmail.com |
2d576cb462f12622bac6af5d76918c08f5fb9835 | 95875e8ec01a0717e355f341870a3c3e01d78e1a | /zabbix/base.py | cdf0bc9cef89e0fed35f086da64712a7bff950e3 | [] | no_license | nnoori/zabbix-python | 8faff36d8d6b29af0a49f86a7f87f913194a68f9 | f2f70ef1a60ab7e9914a4cdfd3d75785ee46145a | refs/heads/master | 2021-01-10T21:00:36.142580 | 2012-11-18T17:21:35 | 2012-11-18T17:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | # -*- coding: utf-8 -*-
from zabbix.session import Session
from zabbix.exceptions import NoneUniqueResultException
class _BaseObject(object):
_zabbix_format = None
@classmethod
def _call(cls, method, data):
return Session._get_instance().call(method, data)
@classmethod
def _get_paramete... | [
"henrik@hlyh.dk"
] | henrik@hlyh.dk |
06e6e65949af3c2ab5cd6467727da6b5208a7aa2 | 4aab8dad4da56e6b64163ef656a0616a08c28672 | /app/config.py | ddad97cec50d3ac58e12837e84ef4afdb4569676 | [] | no_license | govorovsky/api_disqus | 51b3df13c13a2a1b15f896d7675fdcbe730d9915 | cc9f371164b6969320bbf48222921385bc5eba48 | refs/heads/master | 2020-06-01T09:39:39.187252 | 2014-05-31T17:33:44 | 2014-05-31T17:33:44 | 17,840,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | host = 'localhost'
user = 'root'
password = 'qazxsw12'
forum_db = 'mydb'
| [
"govorovskij@gmail.com"
] | govorovskij@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.