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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
518d213b2c92fa19522c41e572a3645a8ff0e7a6 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/fm/FM_ManageUsers.py | ce9d8d8d13ce6dfefd8d1b6b16a7cc23900bf55b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | '''
Testsuite
1.1.10.2 Administration - Users
1.1.10.2.4 Create many user(over 100 user account)
MODELING FOR NORMAL CASES
-------------------------
Inputs
- totalUsers
Internal Variables
- name_prefix: likes 'user_'
Expected Results
- able to create more than a hundred of users
Testscript
+ Config:
- Initializ... | [
"tan@xx.com"
] | tan@xx.com |
3fd996c9a339f6ba69d3af2fefee385671f266aa | 06a50b1006f690f9d722b305843a38003ec07b08 | /202101_rcal/03_get_therm_data | 97015741824645aa221495febcb2f15b9a67179d | [] | no_license | slazav/data_f4 | edf7951666f8e075c28713c33eb38c5d284d9343 | 3b8733fa37ba2e4272148a4b5a9b4f1a4e922ee0 | refs/heads/main | 2023-03-27T11:06:36.135229 | 2021-03-20T12:57:37 | 2021-03-20T13:06:33 | 328,645,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | #!/usr/bin/python3
# Extract "thermalization data" data for resistor calibrations (R1..R4).
# Timings are taken from data_therm_periods file
import numpy
import matplotlib.pyplot as plt
import scipy.optimize
tskip = 200; # always skip some time in the beginning
lst = numpy.loadtxt("data_therm_periods", unpack=True, ... | [
"slazav@altlinux.org"
] | slazav@altlinux.org | |
11e9e37669c46c09266c9ce8d82cff5301247c7b | ae3b7840d09cfe4d74ed37175a9ee811b4037348 | /polls/models.py | 6e226e5d835d0fa28fdd75e5eb45e7eb08d053be | [] | no_license | lulala66/intro-django | d83e93737dac51f186833e70375d7746328e1206 | 9e69d55f807ffa14e746af18f6bd3df3aba00cfe | refs/heads/master | 2021-04-06T01:10:11.220455 | 2018-03-13T04:39:19 | 2018-03-13T04:39:19 | 124,601,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from django.db import models
from django.utils import timezone
import datetime
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"Zhang_Yiran@outlook.com"
] | Zhang_Yiran@outlook.com |
bea3144283716bdbdbe71f6b44d09fa8d6a03de0 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/base.py | 01589adb44061010c8af1db52d5e2584728f1cb0 | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/base.py | [
"jhashubham28@gmail.com"
] | jhashubham28@gmail.com |
94fa6fb64b8385af6ff7d8628a2ad7237fd686f4 | b45329facd111475cea4ae8b6d04eed3ffe2ca70 | /api.py | e1a372106b3be8601e0610c5924b5526b02c9b0e | [] | no_license | ycc1107/data_parser | 9fbc99eedd0ab66fb40855b76413e78d740a6ff3 | ee4c6e39a5240230692b956b263e2c74894649b4 | refs/heads/main | 2023-07-11T09:11:25.867099 | 2021-08-11T16:51:01 | 2021-08-11T16:51:01 | 394,832,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | import datetime
import pandas as pd
from functools import lru_cache
from dbobj import PriceData, rw_session
def process_params(tickers, end_date, start_date):
if isinstance(tickers, str):
tickers = [tickers]
if not end_date:
end_date = datetime.date.today()
if not start_date and not end_d... | [
"noreply@github.com"
] | noreply@github.com |
13c5a8a1f964abcc02817f0b7d3e18adbd7bd7f2 | 6b610e9c913806a3abe0ff6807d7876d6ed8c8b9 | /python/7.py | fa37567a86dbd174971e7452a1ecf10da810dccc | [] | no_license | lizejian/LeetCode | 030f181d931cb5f041adcf1840447d176c9870e8 | 00a24349c72b2ea5029dff804c4becb3fb3f02ed | refs/heads/master | 2021-01-01T04:59:13.754324 | 2017-07-18T15:18:54 | 2017-07-18T15:18:54 | 97,285,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from functools import reduce
class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
if x == 0:
return 0
flag = 1 + -2*(x < 0)
x = abs(x)
result = 0
while x > 0:
result = result * 10 + x % 10
... | [
"781188502@qq.com"
] | 781188502@qq.com |
75f382c3040af1be10e5263186d28d3b899dc9c2 | 353014ab535772d9d5994773f20a61e11a480099 | /Sorter_UI.py | 83bda7bb47d3251ebaad4c1a0ef45e1a0a29141a | [] | no_license | JerryWwwan/FileSorter | ffe2d8516d0d9e2b14ee9c6b5489584a1db21665 | f177fca10d2f550888a687b068db634103733cdb | refs/heads/master | 2023-03-26T04:17:22.237211 | 2021-03-25T15:53:23 | 2021-03-25T15:53:23 | 351,493,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | from tkinter import *
from tkinter import filedialog
from sorter import Picture
from sorter import Directory
# from PIL import ImageTk, Image
# font context function label title
color_set = ['dark slate gray','light goldenrod','tomato','dark salmon','saddle brown']
page_bu... | [
"z84715@gmail.com"
] | z84715@gmail.com |
f494dcb113132af32c65f8eef89c23905b98c3fe | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_150/ch14_2020_03_16_15_58_26_897959.py | 886c16b139252dc0fd5ccfdbc257e43fc08191ee | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import math
def calcula_distancia_do_projetil(v, θ, y0, g):
parte1 = (v**2)/2*g
parte2 = (1+(1+(2*g*y0)/(v**2*(math.sin(θ))**2))**(1/2))
parte3 = math.sin(2*θ)
return parte1*parte2*parte3 | [
"you@example.com"
] | you@example.com |
abc3807f249ce65d3345deb7c61870afcf3d0f61 | af8571baff1af59107ea5be99be78647d6bcb257 | /YouTubeDownloader.py | 822ee3eab4b47bd5df3ab166a75eeb10a79fedf3 | [] | no_license | chisoftltd/YouTubeDownloader | ab854acb84381b4a9629432aed5ec2b0b7d9749d | b163eaa2772302a3ed4b3d1d80c70b4ae9bb4446 | refs/heads/master | 2023-04-02T10:04:56.335574 | 2021-03-18T23:02:23 | 2021-03-18T23:02:23 | 349,150,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # YouTube Downloader
# Import Libraries
from tkinter import *
from pytube import YouTube
# Create Display Window
root = Tk()
root.geometry('600x300')
root.resizable(0,0)
root.title("Chisoft-YouTube-Downloader")
Label(root, text = 'Youtube Video Downloader', font = 'arial 20 bold').pack()
# Create Field to Enter Lin... | [
"chisoftltd@gmail.com"
] | chisoftltd@gmail.com |
081bf346fd7fa7c71ec3a2819deb97613cfcba02 | e37a1aab1dde2339c7e34ac7e7a158767fcd9023 | /Solutions/solution_018.py | 61dd1f757ab7cd414491e152fa2e956eceff3651 | [
"WTFPL"
] | permissive | idayat092/Project-Euler | f90ffa71e12a80b6f54de4f469e898fedc9877fe | 8fcd0d4cb126612d238516e88778a4bfd685ccf2 | refs/heads/master | 2022-03-07T18:21:38.103277 | 2019-11-09T05:30:01 | 2019-11-09T05:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | """Problem 18: Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from top to bottom of the triangle below:
NOTE: As th... | [
"solomonghost9@gmail.com"
] | solomonghost9@gmail.com |
95565c583e9f5e70af190aece8657d61e4d2cbfd | 3171af1468e061a0fff05003a507a587865697d4 | /Code/model_0_binary.py | bfe07e063f3a1b2794a8b618d1e449f9be6a82ed | [] | no_license | BradFordHill13/First-Step-Tinnitus-Project | d54a6af9b9255822821074dc67d266db0008f155 | ed5288ee4f1f60cae0edfde3e5a57739c10854a0 | refs/heads/main | 2023-05-29T13:02:42.344168 | 2021-06-15T07:32:45 | 2021-06-15T07:32:45 | 377,075,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 30 16:07:44 2020
@author: matthieusimeoni
"""
import pandas as pd
import numpy as np
import sys
# read samples file: create a dataframe that contains uniquely the participant ids
def read_samples(sample_file):
samples = pd.read_csv(... | [
"noreply@github.com"
] | noreply@github.com |
8f84d88db14358d73e9ecb453a7653f76aa97d00 | 43e11969cddd18fea322ce5de8a40de0eae8c47c | /clients/python/test/test_stats_history.py | 05dfe605166afc8f031a9af367d96fb721d96ce4 | [] | no_license | bottlecapper/api-connectors | 60b03de028a45f2a1dee0d41c7a899afeff07333 | b202c2889d59979c80386875f53d031b9ad430e7 | refs/heads/master | 2021-07-17T07:33:34.650031 | 2017-10-20T08:55:07 | 2017-10-20T08:55:07 | 106,418,690 | 1 | 0 | null | 2017-10-10T13:09:53 | 2017-10-10T13:09:53 | null | UTF-8 | Python | false | false | 2,296 | py | # coding: utf-8
"""
BitMEX API
## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) #### Getting Started ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. Most table queries accept `count`, `start`, and `reverse... | [
"samuel.trace.reed@gmail.com"
] | samuel.trace.reed@gmail.com |
b70ae8a9f0d253eeb2c100e842c8b68c983c069a | 82e13b45da8591e211606a2a214820b11df7dce6 | /manage.py | baf54db9db26069f4d26c4539a48dfb7eb4f6947 | [] | no_license | sadatyussuf/Django-LoginSystem | f5da56abcab9bc667bd8ee1919098a3b65b08b57 | 3d428a8e3b73a3ad09509e0b0ca2d70360130227 | refs/heads/main | 2023-09-04T04:03:11.978720 | 2021-11-04T16:35:59 | 2021-11-04T16:35:59 | 384,799,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'loginSystem.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"51789921+sadatyussuf@users.noreply.github.com"
] | 51789921+sadatyussuf@users.noreply.github.com |
1faddee3cee2282007943dc0eaab43b89271cd43 | 0a6dc1bee3227c9228c529413d102951fde89885 | /otolbn/venv/Scripts/easy_install-script.py | f76dfd5989f49512be67ca104f495cb1159ed6c4 | [] | no_license | matpulawski/Warsaw_Housting_Market_Analyze | f82e61851678304c7cd5737199321179a4aefa38 | 18cd2de79bee666aaef6f5264cd5e5a3357288aa | refs/heads/master | 2020-09-19T20:31:41.544880 | 2019-12-10T22:58:23 | 2019-12-10T23:04:38 | 224,285,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!C:\Python\otolbn\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"matpulawski@gmail.com"
] | matpulawski@gmail.com |
a956c5437ef70e9646509d41f4eb1a179730eac6 | ca0c3c1cdfdd714c7780c27fcecd4a2ae39d1474 | /src/fmf/apps/core/migrations/0001_initial.py | 19696394a44e5650c93214f629650c85c09d6a98 | [] | no_license | vasyabigi/fmf | fce88a45fb47f3f7652995af40b567ffdf27a4a0 | 988ba668f3ce6da2670b987a1eeae3c87761eac5 | refs/heads/master | 2021-01-23T07:29:52.185306 | 2012-08-27T13:11:51 | 2012-08-27T13:11:51 | 2,803,493 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | 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 model 'IndexSliderImage'
db.create_table('core_indexsliderimage', (
('id', self.gf('d... | [
"vasyl.stanislavchuk@djangostars.com"
] | vasyl.stanislavchuk@djangostars.com |
9decba5dd73754b15ee1daddaf619ef9f00f5cac | ad13292d68cff62265236970562c7500b9365cbb | /Lesson 1/Task6.py | 9a89827172d676ebe0e53282150aeefb22cddfcc | [] | no_license | ellegeize/sturdy-palm-tree | 17d9f6b0ee6c0820bf18d2f79f6379a0fd737805 | e8867e27cd63400b9d5c9a3552173d8ba4c3b53b | refs/heads/main | 2023-01-01T12:44:18.503804 | 2020-10-20T14:21:04 | 2020-10-20T14:21:04 | 303,702,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | a = int(input("Введите результаты пробежки первого дня в км "))
b = int(input("Введите общий желаемый результат в км "))
result_days = 1
while a < b:
a *= 1.1
result_days += 1
print(f"Вы достигнете требуемых показателей на %.d день" % result_days) | [
"noreply@github.com"
] | noreply@github.com |
c9ae8662155f37d2f99325e7784bb870d4db699d | 88063873e2329902b1ec19e5d8013f263a4a4e49 | /src/havocbot/httpserver.py | 9f4f81687c1b28a346af2388f6e43bd2d2c97878 | [
"MIT"
] | permissive | markperdue/havocbot | ed74c59f1373ddf288e35024639386b58de499f9 | 093549e0b5e52f588042ba5cbce9c4130f3e9545 | refs/heads/master | 2020-12-12T09:21:32.183914 | 2017-07-19T06:09:48 | 2017-07-19T06:09:48 | 51,125,208 | 2 | 1 | MIT | 2019-10-22T17:56:43 | 2016-02-05T04:08:06 | Python | UTF-8 | Python | false | false | 4,020 | py |
import json
import logging
import threading
from havocbot.message import Message
# Python2/3 compat
try:
import BaseHTTPServer
except ImportError:
import http.server as BaseHTTPServer
logger = logging.getLogger(__name__)
class ListenServer(object):
def __init__(self, havocbot):
self.havocbot = ... | [
"markaperdue@gmail.com"
] | markaperdue@gmail.com |
f7ecfa13d7a4f508514a2e8329a829d77e9c8019 | bc7e5d8d4a0f4cefe0484e92cf92de4e6c4ca49b | /research4me/urls.py | 6d3ddb8bab6a99df08805350a8e698682f346df2 | [] | no_license | miguelnunoj/django | 1890db77dac41fadedb12e636ad8ee9b1926b2d9 | c75b1f2fa86a4d35c4226c0943a60efe152e4907 | refs/heads/master | 2022-09-08T12:39:40.933565 | 2020-05-25T16:25:10 | 2020-05-25T16:25:10 | 266,826,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | """research4me 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')
Clas... | [
"noreply@github.com"
] | noreply@github.com |
af69540816f7419ffc2f77af3c390426b6e34f54 | f08e50d55bbbb90e4c8f9a8811eaede98ede2694 | /erpbee/accounts/doctype/pricing_rule/test_pricing_rule.py | 6c4c239ce0ed4aa6d247e7e5efd87cdbd727019e | [] | no_license | mohrezbak/erpbee | bc48472a99a7f4357aa7b82ff3a9c1a4c98ba017 | 1134156ad337fd472e14cf347479c17bd8db7b33 | refs/heads/main | 2023-02-12T01:32:07.858555 | 2021-01-08T17:25:23 | 2021-01-08T17:25:23 | 327,872,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,469 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import unittest
import frappe
from erpbee.selling.doctype.sales_order.test_sales_order import make_sales_order
from erpbee.accounts.doctype.sales_invoi... | [
"bakhtiar2k6@gmail.com"
] | bakhtiar2k6@gmail.com |
c52d52410814e0aaaac78805b7e9376dfca4fc32 | 6e3cdc544cdd2cda07b5b5d1079274b5ea58ae4a | /eco/urls.py | 5fe50176d33011f476d5eed6ecbf5b4c41d15a73 | [] | no_license | Aslantsag/eco-django | 77dcdaacc7724c8f13041e87358951437db19221 | dd565533268d52d75cf890ecb87f6d9ec1468a48 | refs/heads/main | 2023-05-07T15:15:18.914623 | 2021-05-27T10:14:13 | 2021-05-27T10:14:13 | 357,369,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.contrib import admin
from django.urls import path, include
from main.views import LocationRetrieveView
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('main.urls')),
path('accounts/', include("django.contrib.auth.urls")),
path('', LocationRetrieveView.as_view())
] | [
"aslantsag@mail.ru"
] | aslantsag@mail.ru |
b8e288c318759bf89df5e621d90838249bb3fc59 | c06cd27ea330da466efec07df5e1495b8fcf9006 | /pyFunc_5.py | defa38bb602148df00e4d352380d7544024bb817 | [] | no_license | anu-mohan/basicpython16mar | 8aac331eaa20939714d8a48263586c2541d20c5b | 8e4bccfa9441789b827f98c691d63e798e7dc794 | refs/heads/main | 2023-04-04T19:31:02.605764 | 2021-04-10T17:27:25 | 2021-04-10T17:27:25 | 348,777,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def defaultArgumentFunction(x=123):
print("The value of x is : ", x)
defaultArgumentFunction(10)
defaultArgumentFunction() | [
"noreply@github.com"
] | noreply@github.com |
7314cd784bef7c3ef471bfed4dbc89d2f3218971 | a9ae86eb5de7362df058f98243e855b2bb675dfd | /particle_env/multiagent/core.py | 54753117c83f10c8edcb99513386afdd2675e124 | [
"MIT"
] | permissive | Leonardo767/marl-tracking | ebc13d63504876d56b5edbe6f1f778fac94dd3c7 | 0ae4a14cf3a5addafeef7045e11ff0b370d60b2d | refs/heads/main | 2023-01-18T19:12:00.433691 | 2020-12-02T11:31:13 | 2020-12-02T11:31:13 | 311,485,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,236 | py | import numpy as np
# physical/external base state of all entites
class EntityState(object):
def __init__(self):
# physical position
self.p_pos = None
# physical velocity
self.p_vel = None
# state of agents (including communication and internal/mental state)
class AgentState(Ent... | [
"leonardo.pinero42@gmail.com"
] | leonardo.pinero42@gmail.com |
8edb1fa30b3189a1ec7c551c9d73c662805ee0de | ddd002cff6b4668c47a14e740ec780f2c03dcbd9 | /algorithms/quicksort.py | 30e026c5c0a83e1f09bff25e8aea55ff0667aaab | [] | no_license | wangonya/python_practice | 53b93bdf93b7a586df75040d4c26d25793b59ed9 | 70f45f950fb6e9619e4054cb1ea5f8d8db988f0e | refs/heads/master | 2020-04-02T07:33:06.647605 | 2018-12-19T07:25:26 | 2018-12-19T07:25:26 | 154,202,248 | 2 | 0 | null | 2018-12-16T05:02:05 | 2018-10-22T19:19:43 | Python | UTF-8 | Python | false | false | 526 | py | def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pivot = arr[0]
for i in arr:
if i < pivot:
less.append(i)
elif i > pivot:
more.append(i)
else:
pivotL... | [
"kwangonya@gmail.com"
] | kwangonya@gmail.com |
fa5e2514f9cf03fda65eafbc2e83da73caeab49e | 3abe579ffc36cffef882bd23139c8112dc18b5eb | /nodeeditor/node_edge.py | 7380edde1767614f6725da1367c056ef702d0e36 | [] | no_license | huazhicai/nodeEditor | 3663950221a2fa8ee9a9aa9f5718d20722d9ecf4 | cb9ed8c1e57614c9bc2242b948ce8361d71fa4be | refs/heads/master | 2020-07-06T05:34:55.186396 | 2019-09-02T08:12:38 | 2019-09-02T08:12:38 | 202,908,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | from nodeeditor.node_graphics_edge import *
EDGE_TYPE_DIRECT = 1
EDGE_TYPE_BEZIER = 2
DEBUG = False
class Edge(Serializable):
def __init__(self, scene, start_socket=None, end_socket=None, edge_type=EDGE_TYPE_DIRECT):
super().__init__()
self.scene = scene
# default init
self._sta... | [
"936844218@qq.com"
] | 936844218@qq.com |
61a6e75b11db9f3519abe6b262fd42d9f9963545 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/contrib/tfprof/python/tools/tfprof/print_model_analysis_test.py | c3e9fc9cc099f144f81235a944221fa05b6b398c | [
"MIT",
"Apache-2.0"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | Python | false | false | 7,110 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"slacealic@gmail.com"
] | slacealic@gmail.com |
6c654d864829d52ca08befdba0b299691f789eac | 14e3837607d6fc702e2d809e62cf0c6edc1a547a | /maxwellgraves/wsgi.py | 5a6524eb41b66b239ae4876d38eef7d500c6521e | [
"MIT"
] | permissive | MaxwellGraves/PersonalWebsite | 3f9754ef21b8583fe3c61bd6b20e234716315d03 | ff758752e99469070e7629ce5e479b306b73fed8 | refs/heads/master | 2023-07-11T10:11:18.957099 | 2021-08-06T03:47:12 | 2021-08-06T03:47:12 | 349,618,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for maxwellgraves 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"maxwell.graves@gmail.com"
] | maxwell.graves@gmail.com |
d5d7995c4db8bec033b1eea036cbfc6e62a98389 | bb0a06e71c67ac9b9cb1e29f4c5bfea2e4af5d1d | /venv/Scripts/easy_install-3.7-script.py | 25f50a3ee04121d674ba8328200bfcc79baf06b2 | [] | no_license | luckblue/2018 | 2c80cc4cf38c3a6241057232a72b1afc8e5f2998 | 5d748ed25aa7a2f805d17a6736ddd11e214daf20 | refs/heads/master | 2020-04-13T08:01:19.453820 | 2019-01-16T10:24:49 | 2019-01-16T10:24:49 | 163,056,710 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!D:\PYTHON\2018\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"xu tao@shes.com"
] | xu tao@shes.com |
b677be0a99feacfedd4c4272a25c88be04183335 | 626b45105ba7f4afc48d4aaae5642ff00e75edc8 | /email_project/wsgi.py | 8bddfa1f7ba624d6d1a86a8949329a998e256067 | [] | no_license | manu621311/Emails | 87346447d3011bd50b220dcaf5498940a3f1ec8c | fc56bc772b938f937d97a2882dce07c943c94b33 | refs/heads/master | 2021-10-08T07:12:08.577477 | 2020-02-24T12:15:18 | 2020-02-24T12:15:18 | 242,645,676 | 0 | 0 | null | 2021-09-22T18:42:23 | 2020-02-24T04:22:44 | Python | UTF-8 | Python | false | false | 419 | py | """
WSGI config for email_project 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.setde... | [
"noreply@github.com"
] | noreply@github.com |
f6a15942ed96cef38c0113cd83c48b78d566b215 | 8fe8294460dd743534d0c10a9288da3f3d2ae155 | /scripts/mimic3benchmarks_inhospital_mortality/src/evaluate_skorch_lr_surrogate_loss_multiple_collapse_feature_ranges.py | 74ae39e28790cb6705603298e0d09c61e88bc7b2 | [
"MIT"
] | permissive | tufts-ml/time_series_prediction | 32132a6c0d17ce196ea97b55387ea27fa18ba6e3 | 831c388d8854773b7545a3a681a596f7c2d98dff | refs/heads/master | 2023-04-08T20:03:05.647403 | 2022-07-19T19:10:06 | 2022-07-19T19:10:06 | 161,347,900 | 8 | 7 | MIT | 2023-03-24T22:43:26 | 2018-12-11T14:40:58 | Jupyter Notebook | UTF-8 | Python | false | false | 12,378 | py | '''
Evaluate performance of a single trained classifier on multiple patient-stay-slices
'''
import os
import numpy as np
import pandas as pd
from joblib import dump, load
import sys
sys.path.append(os.path.join(os.path.abspath('../'), 'src'))
DEFAULT_PROJECT_REPO = os.path.sep.join(__file__.split(os.path.sep)[:-2])
PR... | [
"prath01@cc1gpu003.pax.tufts.edu"
] | prath01@cc1gpu003.pax.tufts.edu |
c6a43174111768e064e7f6c251e16fa309e4c6ac | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/keystoneauth1/tests/unit/k2k_fixtures.py | f78cb0ef084ac7c36a3534ff0e66d62666f5d365 | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 5,454 | py | # 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 writing, software
# d... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
620722b8e666fc4571d412bce02d149322242609 | 07b41bc2423e5d073ddcd1da47e534d981ccbe78 | /backend/marjan_fashion_24858/wsgi.py | 73586b0a2cd945c35d8ed73ebf117886439c5c00 | [] | no_license | crowdbotics-apps/marjan-fashion-24858 | e1fe2cba555d9fef7b17d74e31cd9dc7b72f8a80 | aafa62f5fb59466ce4028e774d7e401dc712294f | refs/heads/master | 2023-03-21T15:28:10.057904 | 2021-03-05T04:12:52 | 2021-03-05T04:12:52 | 344,690,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for marjan_fashion_24858 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
01e9ceb516a323a2017c65e368da419c6570dce2 | 9f2d8f5dda7f65d750ff497de60750d9e11fb023 | /gstreamer_player.py | a4075d1791486d87f9ebd0636fc380d5ed572a76 | [
"MIT"
] | permissive | galou/radio_archive | fb840423429e2100f66c302286533d5860920404 | 78d7cc8cd31f3cff269c030d7d87182a09a2a970 | refs/heads/master | 2021-01-10T11:14:01.490623 | 2015-11-09T20:53:55 | 2015-11-09T20:53:55 | 45,865,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # -* coding: utf-8 -*-
# A headless media player based on gstreamer.
from gi.repository import Gst
Gst.init(None)
class Player:
def __init__(self, uri=None):
# Creates a playbin (plays media from an uri).
self.player = Gst.ElementFactory.make('playbin', 'player')
self.uri = uri
@pro... | [
"galou_breizh@yahoo.fr"
] | galou_breizh@yahoo.fr |
eabe3ee069129823ec57dca7dea81d3a8c2f7f0f | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0530_743_Network_Delay_Time/Euihyun.py | 7b37ba25dc97c748f4d9722f0e74732f52b04da8 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,766 | py | # 흠 오랜만에 다익스트라 푸니까 못풀겠네요... 솔루션 봤습니다.
# 그래서 리뷰는 괜찮아요!
import heapq
class Solution(object):
def networkDelayTime(self, times, n, k):
# 그래프 초기화
# 인접 리스트로 그래프 표현
graph = [[] for _ in range(n+1)]
for u, v, w in times:
# u에서 v로 가는 간선의 정보 저장
graph[u].append((v, ... | [
"noreply@github.com"
] | noreply@github.com |
c401789cc0a11a91f395075e82d5c9371c7fd969 | 83a20cf94d5205f1aa92133049c740d82229ea1c | /resources/todo.py | d9c4e6fee94e42e0f539c71d3db951b20bae0f13 | [] | no_license | wanjiku-carol/opensaturdays_blog | 65d810d53c91aed63718f02b86e66b31fed1923b | 5095da7e2277b4be6756d338e9904ca5e7e904d0 | refs/heads/develop | 2020-03-08T16:05:11.876628 | 2018-06-20T17:54:18 | 2018-06-20T17:54:18 | 128,229,999 | 2 | 14 | null | 2018-04-13T16:50:31 | 2018-04-05T15:59:07 | Python | UTF-8 | Python | false | false | 1,179 | py | from flask import json, request
from flask_restful import Resource
from models import db, Todo
class TodoResource(Resource):
"""
Create a Todo Resource with GET, POST, PUT and DELETE methods
"""
def get(self):
todos = Todo.query.all()
response = [todo.json_dump() for todo in todos]
... | [
"mercy.muchai@andela.com"
] | mercy.muchai@andela.com |
1ce4718d42e771c77e3ef27df4254c4601ab8bdf | 58f8dabea5fb9a30432f0446662fa1cce3e22ebe | /data/data/settings.py | 8383cb9b8eef85c9f8c3b6a76043dcb3ac9f9db7 | [] | no_license | NagaTejam/login-and-registartion-form | 677a3cd58e401df478d18763fce7dc1ebaccdf54 | b2ce185b6527c747a322197d6a1aac0d2edf7050 | refs/heads/master | 2020-03-25T04:10:42.755772 | 2018-08-03T05:18:59 | 2018-08-03T05:18:59 | 143,243,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | """
Django settings for data project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
imp... | [
"noreply@github.com"
] | noreply@github.com |
a8acec73bfcdedbabbe63fcceba4c5ee72f40681 | 33ce64cf9edb11ba1ca33cdf78be958dcc79955e | /dataset/base.py | b930cc52cdf120dd19935ac65f9fca4467917402 | [
"MIT"
] | permissive | makke-ya/ff14_mid2xlsx | 504fa434586ce1420b7d7debf126bd41d0afd8d6 | 7aa9f6fe482f757e0da7f3fb8324c24848cfd146 | refs/heads/master | 2022-11-08T03:36:13.108254 | 2022-10-19T13:11:14 | 2022-10-19T13:11:14 | 240,865,025 | 2 | 0 | MIT | 2022-07-01T11:54:10 | 2020-02-16T09:34:34 | Python | UTF-8 | Python | false | false | 105 | py | # coding: utf-8
from abc import ABCMeta, abstractmethod
class BaseDataset(metaclass=ABCMeta):
pass
| [
"makke.ya1734@gmail.com"
] | makke.ya1734@gmail.com |
85aeef00791f1cce51b098cbdc595f1f2c290971 | eb9cf34dca04f634a2301272f65fd418834882bd | /K8s/istio-managing-apps-kubernetes/03/demos/src/productpage/productpage.py | 8d5bc3ac8a24836c51b4c35b5adcf092aa78c75a | [] | no_license | abhi15sep/Kubernetes-Final | c748dc3c720ded6e9d46a5245f7ac1016d2878e0 | 139dc95242d8864a8192d3612d8814a369733f16 | refs/heads/master | 2023-04-29T05:28:14.676835 | 2021-04-18T10:25:56 | 2021-04-18T10:25:56 | 316,616,249 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,147 | py | #!/usr/bin/python
#
# Copyright 2017 Istio 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 applicab... | [
"abhay_pratap@thbs.com"
] | abhay_pratap@thbs.com |
07fc14369bc349ee1eb4f9a1eb58a57d8060e135 | d48f823a87011fdc7dc744c90270c189bf6a0c3a | /FancyLib/data_structures/trees/node.py | 8881c424cc61c309d2c7ea76d565c2d049cb2b3f | [] | no_license | VennyCooper/FancyPython | a2ccc32d55226efc7c6d5b3536c80175af47fe82 | 9e25283955ff2edd680bfb3d9ce9342b5362c6fc | refs/heads/master | 2020-06-20T18:16:15.231212 | 2019-12-29T12:41:09 | 2019-12-29T12:41:09 | 197,205,624 | 0 | 0 | null | 2019-12-29T12:41:12 | 2019-07-16T14:04:00 | Python | UTF-8 | Python | false | false | 560 | py | class Node:
def __init__(self, data, left=None, right=None, parent=None):
self.data = data
self.left = left
self.right = right
self.parent = parent
def print_node(self):
left_data = None if self.left is None else self.left.data
right_data = None if self.right ... | [
"wenqiangluo1010@outlook.com"
] | wenqiangluo1010@outlook.com |
6f1d4ead1571662ce6b17e51b485bb09d2c8b1d0 | e513e297a246b51554cd848516155433f9b2f72a | /experiments/tests/test_DatasetPostMapper.py | 094d9cd7811219e288d13fb647e91e836c303dca | [] | no_license | DanielGlickmanTAU/QA-GRL | 3591c66cafd33bc9397abf3277612075eeced95c | 5038846ca20ab9ae96e04c7920f0d6715b4f1b8a | refs/heads/main | 2023-03-29T21:28:49.887212 | 2021-04-12T13:59:57 | 2021-04-12T13:59:57 | 333,404,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | from unittest import TestCase
from data.DatasetPostMapper import DataSetPostMapper
from utils import compute
class TestDataSetPostMapper(TestCase):
def test_add_prob_to_be_correct(self):
torch = compute.get_torch()
#[10,0] logits means model thinks it is false
logits = [[10., 0.], [10., 0... | [
"glickman1@mail.tau.ac.il"
] | glickman1@mail.tau.ac.il |
32b6d41e484a51489aeb1721939009fc32bf8b37 | 2f086c315b21f561f1216212109f129607e01829 | /src/DataProvider.py | 849f6ab3e25fbcbc31acef8ede4ece726c532077 | [] | no_license | jakobfeng/nav | 7fc41a17075039054c133305819e9092b2e1a2c7 | 6c899a0ed2f8fe6cefe1b560e9e84ca54e052027 | refs/heads/main | 2023-01-11T13:05:06.372740 | 2020-11-10T21:25:21 | 2020-11-10T21:25:21 | 301,139,602 | 0 | 0 | null | 2020-11-10T21:25:22 | 2020-10-04T13:43:05 | Python | UTF-8 | Python | false | false | 1,535 | py | from builtins import print
import pandas as pd
import os
from pathlib import Path
import datapackage
# Obtain strucured files
# url = 'https://data.nav.no/api/nav-opendata/2f6ce2a2c65dd50709d389486da3947a/datapackage.json'
# package = datapackage.Package(url)
# save_path = "..\\data\\input\\struct\\"
# resources = pa... | [
"jakob.fougner.engebretsen@gmail.com"
] | jakob.fougner.engebretsen@gmail.com |
f76bab4ecff4361622302aba52a419823c8ca8ec | c52b8ab98d9b264312c8fa3fb82536fcd754eac3 | /my-first-app/node_modules/uws/build/config.gypi | 9a534f184d3f701a2d9faec81615e35f3f6cf102 | [
"Zlib"
] | permissive | Mohit-Chandra/AngularProjects | ef82909020ec27192ce107769c29787565a922b5 | c5a9bb0636a7374563048e68e76dbc1b000c1502 | refs/heads/master | 2020-03-30T16:46:15.006954 | 2018-10-26T02:17:03 | 2018-10-26T02:17:03 | 151,419,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_http2": "false",
"debug_nghttp2"... | [
"mohit@Mohits-MacBook-Air.local"
] | mohit@Mohits-MacBook-Air.local |
148a6f9052995914110fda1fdc097a42f961f4ed | bc5c8585b401ebcb90932571cae11b9603e2ef56 | /tests/test_modules/test_pmac/test_rawmotorcspart.py | fd4179ec25a4cec13f729c1f71ef46e207b2dd2c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jamesmudd/pymalcolm | 8e22a9e20868d9f0d04dfb3a6b276aaa3e202590 | 66993756c802cadca70ea07b437c5c2395af3f67 | refs/heads/master | 2020-04-19T10:54:38.766494 | 2019-01-29T12:48:22 | 2019-01-29T12:48:22 | 168,153,411 | 0 | 0 | null | 2019-01-29T12:46:41 | 2019-01-29T12:46:41 | null | UTF-8 | Python | false | false | 2,817 | py | import unittest
from mock import patch
from malcolm.core import Process, AlarmSeverity
from malcolm.modules.builtin.controllers import StatefulController
from malcolm.modules.pmac.parts import RawMotorCSPart
class castr(str):
ok = True
severity = 0
class caenum(int):
ok = True
severity = 0
enum... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
24b5318d840df102409387ee3bfd67f9fa5b5e3a | 5c5b34de2761409fafa162d970545f1c74939f03 | /10 Poster Code/get_DR10_FITS_library.py | 3736c5d3cb88d003cb8c5c0fa98f65fe6451b8c1 | [] | no_license | acrider/SDSS_morphologies | 3d4e2a36a641e6456ded88e9e851858bb8f40ed0 | ab7c435d3d30db0f6c8fccca527675ade33344b5 | refs/heads/master | 2016-09-06T19:48:55.940067 | 2015-07-29T14:48:22 | 2015-07-29T14:48:22 | 29,305,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,315 | py | def get_SDSS_FITS(run, rerun, camcol, field, ugriz, put_file):
# This function downloads an SDSS image FITS file given four parameters and the color and places it in put_file.
image = urllib.URLopener()
#get_file = 'http://das.sdss.org/www/cgi-bin/drC?RUN=' + run + '&RERUN=' + rerun + '&CAMCOL=' ... | [
"acrider@elon.edu"
] | acrider@elon.edu |
770dde61ebc4f5933f6c469ebfe63913aeeb2d32 | f7ee79a82b3f188de021116fdfdbb28be90fa70e | /espnet/nets/pytorch_backend/multimodal_e2e_st_transformer.py | bf220b74e663fc0bc8fbe4cb92cbbdaa371dfec4 | [] | no_license | cstirling/end-to-end-audio-visual-ST | 7900adeb11f9e792cf8529eb5159662aae5497d6 | c963d0fb0ab1f7f90ae80bde452714871ad076a6 | refs/heads/main | 2022-12-29T12:57:42.675308 | 2020-10-11T05:01:21 | 2020-10-11T05:01:21 | 303,039,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,170 | py | # Copyright 2019 Hirofumi Inaguma
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Transformer speech recognition model (pytorch)."""
from argparse import Namespace
from distutils.util import strtobool
import logging
import math
import torch
from espnet.nets.pytorch_backend.ctc import CTC
from espnet... | [
"1197349032@qq.com"
] | 1197349032@qq.com |
2fce0a4b0ecacd443dfc1946f2b8a811b841e7e3 | 09da4c7613b93dc0a6905f8221701c980f0b3497 | /block/gr-drone_filter/python/detector.py | 6838bc6dc431d9dd567eca9286ff5b1a7248f776 | [] | no_license | eamedina87/tfm-gnuradio | f8228c9142e30498c6732822befade8130a803b1 | 84dc8295e084b224eae8ade8248a2f315ca949f7 | refs/heads/master | 2022-09-24T04:12:20.118185 | 2020-06-07T18:52:16 | 2020-06-07T18:52:16 | 224,290,980 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 <+YOU OR YOUR COMPANY+>.
#
# This 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, or (at your option)
# any later version.
#... | [
"eamedina@protonmail.com"
] | eamedina@protonmail.com |
92cc69a8178be7d1fb8e567c0f8df8bded8aeff3 | 687f8851cc36dea18f9ea7809d12154b223ffef0 | /ml_model/autoencoder/train.py | cf9971d91495c7b84242537958bb24f9b072e14e | [] | no_license | anencore94/mlops-sample | 745d8f31bfef2ec0571e30b14fbd1934bb02804c | 5ba892932928cb4a69ed860595ec5b5b1e8a6619 | refs/heads/master | 2023-05-31T02:02:10.749702 | 2020-07-01T07:45:42 | 2020-07-01T07:45:42 | 275,099,015 | 0 | 0 | null | 2021-06-08T09:30:32 | 2020-06-26T07:32:50 | Python | UTF-8 | Python | false | false | 786 | py | from model import *
### MSE loss
@tf.function
def loss(model, original_data, training=True):
if training:
reconstruction_error = tf.reduce_mean(
tf.square(
tf.subtract(model(original_data), original_data)),
axis=-1)
else:
reconstruction_error = tf.reduce_mean(
tf.square(
... | [
"jaeyeon_kim@tmax.co.kr"
] | jaeyeon_kim@tmax.co.kr |
ee785020aa381793b4e0b7aed7f711337db26c52 | 2dbf807d1455360adbf0891c5b930733a4a093c2 | /linguistic_style_transfer/linguistic_style_transfer_model/form_fastext_model.py | 7738706c7dead55d46bd116a773f0459572e6477 | [
"Apache-2.0"
] | permissive | Ulitochka/poetry | 15278f47594557c68668f8f6f6a68646d2ed320f | e5895b2a5c719a5aed625d908c2a267826e96336 | refs/heads/master | 2020-03-28T03:40:15.992013 | 2018-09-06T11:19:49 | 2018-09-06T11:19:49 | 147,662,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | from gensim.models import KeyedVectors
from tqdm import tqdm
from linguistic_style_transfer.linguistic_style_transfer_model.utils import data_processor
data_path = '/home/mdomrachev/work_rep/content_vs_style_problem/linguistic_style_transfer/dataset_forming/data_set_rew/'
w2v_vectors = KeyedVectors.load_word2vec_form... | [
"m.domrachev@2Gis.ru"
] | m.domrachev@2Gis.ru |
5c5e5b13dd66976454c3ad19e1fb0ed0450f944a | 76cd0b5f66c0cbcb41e730e51ba4e6563270991a | /intuitive_webscraper/process_stocks.py | fc34418a3ff3b876fb9f9b3a04d160ed49158b3b | [] | no_license | Forevershell/IntuitiveWebscraper | a82f7d40f89dd871def50e47b8b28e93c29d027b | 94008ce10e9faef2154e2b6a916264ced4a67447 | refs/heads/main | 2023-02-23T02:23:14.537766 | 2021-01-25T05:28:11 | 2021-01-25T05:28:11 | 329,645,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | # @file process_stocks.py
# @brief Interface to communicate with the app
#
# The interface that serves as the middleman between
# the webscraper backend and the application
import os.path
import re
from pathlib import Path
from intuitive_webscraper.parse_tickers import getTickers
from intuitive_webscrape... | [
"anc1@andrew.cmu.edu"
] | anc1@andrew.cmu.edu |
4f08298e5d228731ac2925f854d0d395c3b6430d | 2402b064492628d3c3d5046823af031719f433d3 | /bookreader/bookreader/pipelines.py | 94f4262526ea45a42bc019528b3a4b0fdfbe6c06 | [] | no_license | itttttta/Python | 49aa91f65aea17c382bc94ce322d296d939b9706 | cf4dfb2f0fc987b6ae0b68f8d1b6d891147e849d | refs/heads/master | 2021-06-04T10:11:28.282632 | 2016-09-28T09:13:41 | 2016-09-28T09:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class BookreaderPipeline(object):
def process_item(self, item, spider):
return item
| [
"11951691@qq.com"
] | 11951691@qq.com |
054cce398100c9ad83bf010a6bf2f807e6172c6d | 987e302042423645ea3edcc515cd742bc1e3ce6c | /FlaskApp/Dash/__init__.py | b7f91006fceb04742e1ca2c77e1fb2fefccdbc91 | [
"MIT"
] | permissive | HOTSONHONET/EasyBeat | 3a1da504a02dba61b93c366fe54915fe48d14249 | 75a52baf993597b9f944426c27e40103d08e7552 | refs/heads/master | 2023-04-30T03:31:18.085727 | 2021-05-25T07:27:48 | 2021-05-25T07:27:48 | 347,614,776 | 0 | 0 | null | 2021-05-25T07:27:48 | 2021-03-14T11:13:18 | HTML | UTF-8 | Python | false | false | 32 | py | print("Initializing dashboard")
| [
"hotsonhonet@gmail.com"
] | hotsonhonet@gmail.com |
ec87204759ce4393e3d44fab564182c100b7c2a3 | 384dcfeb9a61e55ba4861d631cc5f91ceddcffd9 | /feature/hero_player_winrate.py | 56b04af106578fde72091fef25840070cbfa19ea | [] | no_license | TzuRen/Dota2-Prediction | 104f4bc004f3ec9f286434c58cace306112e32b3 | d199a5cb9d3e4c5d48e9ec238493877d6afa0509 | refs/heads/master | 2022-02-13T23:35:57.730882 | 2019-08-21T07:04:17 | 2019-08-21T07:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,551 | py | import os
from pymongo import MongoClient
from progress.bar import Bar
from six.moves import cPickle
import numpy as np
from sklearn import preprocessing
num_heroes = 113
percentile = [{"bin":0,"bin_name":0,"count":1930,"cumulative_sum":1930},{"bin":1,"bin_name":100,"count":1056,"cumulative_sum":2986},{"bin":2,"bin_na... | [
"qintian@pku.edu.cn"
] | qintian@pku.edu.cn |
5b881edc96592f3e8992782ca468807a4468e750 | 953fba52bb8f05339786e108f60b05e57e3f2093 | /guia/examen/app_examen/apps.py | d64f34b62dcc6bc65750e3487a3f1c8e1fa76c56 | [] | no_license | student10github/primer_repositorio_cursdba | 2759eced078f97e0960cfb9031609dc125b5f5ed | 6b007c6c0e77bc4366473e9de1b6081f9b074159 | refs/heads/main | 2023-01-04T06:26:51.299247 | 2020-10-24T17:35:05 | 2020-10-24T17:35:05 | 306,871,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class AppExamenConfig(AppConfig):
name = 'app_examen'
| [
"student10github@gmail.com"
] | student10github@gmail.com |
f4116fb95c7d4870fd9a4bce93d983dbe5a20f85 | 95dfb905c112d9ed0b0cf85193eb0446fea6f705 | /build/lib/pyHydraulic/node_graphics_cutline.py | fced4cc07a508a6d641c995d2a874b271b440309 | [] | no_license | nanjing-institute-of-technology/pyHydraulic | e9fcfda332e8bd73026cefe4e894d9819717106c | 2e7e1831a4cda99776b6893058b9babae6c2bb1e | refs/heads/master | 2023-01-12T03:23:28.487120 | 2020-01-16T13:47:19 | 2020-01-16T13:47:19 | 234,043,053 | 2 | 0 | null | 2022-12-26T20:48:03 | 2020-01-15T09:16:06 | Python | UTF-8 | Python | false | false | 1,205 | py | from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class QDMCutLine(QGraphicsItem):
def __init__(self, parent=None):
super().__init__(parent)
# cutline的点集合,在QGraphicsview鼠标移动事件中添加
self.line_points = []
self._pen = QPen(Qt.yellow)
self._pen.... | [
"noreply@github.com"
] | noreply@github.com |
b1abce58ea0b8c1778eb52d4460c4b39051b3a84 | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/vulkan-memory-allocator/all/test_package/conanfile.py | 7ef741773e9b018c9294979a6fd565987ff4c823 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 453 | py | import os
from conans import ConanFile, CMake, tools
class VulkanMemoryAllocatorTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not to... | [
"noreply@github.com"
] | noreply@github.com |
e8eed13eedde2a1f73d5dd4d40462d475f7aef3f | a367a015dbc36287ca933955ded1ee58b5a2a61a | /swagger_client/models/fluid_consumption_rate_through_nozzle.py | 925475d390d001c905e9a980b4d6954c0d2df360 | [] | no_license | kerniee/inno_intership_1_test_task | 70211e153450011c427df595a02e3574dfe7ed9f | fc0619ef54b00806a3b59f3c07c1c1684682d65b | refs/heads/master | 2023-05-23T02:24:40.083723 | 2021-06-21T16:15:04 | 2021-06-21T16:15:04 | 365,855,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | # coding: utf-8
"""
Teleagronom
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"karapys.mor@gmail.com"
] | karapys.mor@gmail.com |
5b46941513ab894e0aee2da6df5afb50760a840f | bf07d72d410088d5bf6934db58459fe12080c7fc | /tree/binary_tree/binary_search_tree.py | 73e013a416d0298ba4555792e8708bc4b73338bd | [
"MIT"
] | permissive | ThePyProgrammer/dstructs | ed48d47dd1d86d9cb6019b6a6f5a52625981af35 | 21705c2f9b59d544bfc1a04d77d12af136ec30d2 | refs/heads/main | 2023-06-15T17:55:54.494406 | 2021-07-06T15:02:59 | 2021-07-06T15:02:59 | 316,861,668 | 0 | 0 | null | 2020-12-06T16:02:43 | 2020-11-29T02:35:26 | Python | UTF-8 | Python | false | false | 6,674 | py | """
A binary search Tree
"""
class Node:
def __init__(self, value, parent):
self.value = value
self.parent = parent # Added in order to delete a node easier
self.left = None
self.right = None
def __repr__(self):
from pprint import pformat
if se... | [
"noreply@github.com"
] | noreply@github.com |
7aeec444fe3ba90e5d5ed5656787c5901123d63e | f3179576d85369e9834df0810d57289c04c0b929 | /account/migrations/0001_initial.py | a779a9f50a0b638e654c6fe796a6aac162e6f182 | [] | no_license | kolamor/template_django_site | cadd75931b460790a162ee6d5e3371140fd2098e | ee7972ca1a65e006a750bbe67f6605ac89248956 | refs/heads/master | 2022-12-11T00:43:17.809358 | 2020-09-16T20:21:27 | 2020-09-16T20:21:27 | 295,774,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # Generated by Django 3.1.1 on 2020-09-14 20:20
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),
]
ope... | [
"kolamorev@mail.ru"
] | kolamorev@mail.ru |
87badbfbb09fe2b13c9abf56a69e958a801a41c4 | 0495aab289b42161b38e4c823d51e22a9039bbd2 | /multipleCameraModelling-master/vidTrans2.py | d63397ae2cc94d6dc6f48466188a6c9832ecc359 | [] | no_license | rahalnanayakkara/CCTV-suspicious-activity | 4b86db518e2f2323274290dfda8886dc3af6536d | e2bccb20df643ac79a8723d82864075e94e3b480 | refs/heads/main | 2023-07-16T17:02:10.532616 | 2021-08-20T18:30:08 | 2021-08-20T18:30:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,101 | py | import numpy as np
import cv2
import math
import random
#Version 2, imlements tracking, removes face detection
class Person:
prevPos = []
pos = []
colour = [0,0,0]
updated=0
def __init__(self, position):
self.pos = position
self.prevPos = position
self.colour = [random.ra... | [
"noreply@github.com"
] | noreply@github.com |
708ab9eef2cccbddb124fea05a9cee11eba71fbb | 394770b29cde17150be52c665c15554fc2ea89fb | /oddam_w_dobre_rece/wsgi.py | e895f9395b9def50e4ec8a4624cda6437977971d | [] | no_license | bartoszbad/oddam-w-dobre-rece | f66c191a25e2b55a01db52983ab1c77a7bb8c91a | eba4b0d7b6b25c5a902e5874944f0625304c9a0d | refs/heads/master | 2020-07-30T06:25:32.599119 | 2019-12-13T10:57:49 | 2019-12-13T10:57:49 | 210,117,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for oddam_w_dobre_rece 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"bartoszbad@gmail.com"
] | bartoszbad@gmail.com |
a1be92f9773850b2fb15a33da32c81a191883f7c | 2c8c415c1b386eb7e168a7cb17d55a73ab08ac36 | /UrlHandler/migrations/0001_initial.py | a28550bdde5c621735367268f25788211c6fe269 | [
"MIT"
] | permissive | TanimSk/Help-The-Helpless | 888b72b3faca9d307f5a0e41c05424050bc2c423 | bdf6ad2c1d873831cb80f09cb62e068cba43e203 | refs/heads/main | 2023-02-02T13:37:27.407966 | 2020-12-23T07:25:22 | 2020-12-23T07:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Generated by Django 3.1.4 on 2020-12-23 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UrlLinks',
fields=[
('id', models.AutoField... | [
"61817579+baseplate-admin@users.noreply.github.com"
] | 61817579+baseplate-admin@users.noreply.github.com |
28a9ef3e533c226aefda479bb8b0e46a24cb8edb | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/point-mutations/4b3ba2b7e4d141ba80593132e1355e5f.py | 353661c3c32ce019cb5d2a587d707fb05742eeeb | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 453 | py | class DNA(object):
"""Class representing DNA strand."""
def __init__(self, strand):
self.strand = strand
def hamming_distance(self, strand):
"""Method calculating Hamming distance between object's DNA strand
and given one."""
n = min(len(self.strand), len(strand))
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
72fbff2dad0d3d79ad8bdd6df76805a2ed6e37da | c3c8935a5381c4a755fea3fe4bbcc482e425d881 | /Tasks/lesson2.3_step4_alerts.py | fd0f9c21d9ef54a640cd8cae4a06d200560426c5 | [] | no_license | BulatGalimullin/stepik-auto-tests-course | b460cd7d07cbf421fccd5b5185e0dc36312b2b99 | bf72e0d62406339e0c6faa111d45943c3ccc97d3 | refs/heads/main | 2023-07-29T01:25:58.898900 | 2021-09-24T14:32:21 | 2021-09-24T14:32:21 | 408,795,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from selenium import webdriver
import time
import os
link = "http://suninjuly.github.io/alert_accept.html"
try:
browser = webdriver.Chrome()
browser.get(link)
browser.find_element_by_tag_name('button').click()
alert = browser.switch_to.alert
alert.accept()
time.sleep(10)
finally:
brow... | [
"bulat-003@yandex.ru"
] | bulat-003@yandex.ru |
0907ae94c38db351fbf6f156fc1abbd76c2ff892 | e14d1ecd673db3db1e65695a1c933182fb5aa699 | /Ex. 20 EstruturaDeRepeticao.py | d46acb97ab13df9acd67fbaca6b2af61abcb0b47 | [] | no_license | jessica-lemes/exercicios-python | 3428121a0b5585a330dc8c15b143c66c10f7a0b0 | 0b400abb40f10bd077c49540b8e3c44f05362b53 | refs/heads/main | 2023-02-27T05:16:22.378968 | 2021-02-01T22:52:40 | 2021-02-01T22:52:40 | 329,753,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | controle = True
def main(controle):
while controle == True:
num = int(input("Informe um número entre 0 e 16: "))
if num < 0 or num > 16:
controle = True
else:
controle = False
contador = 1
fat = 1
while contador <= num:
... | [
"jessica.costa.moraes@gmail.com"
] | jessica.costa.moraes@gmail.com |
f20c8a872358b9fb3614dae96f4a639ff2d38ed1 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /13_Deep_Learning_with_Python/13/decay_drop_based.py | 7a7df9ff76b941850db37b74bf66d0353ae9cb4f | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | # Drop-Based Learning Rate Decay
import math
from keras.callbacks import LearningRateScheduler
from keras.layers import Dense
from keras.models import Sequential
from keras.optimizers import SGD
from pandas import read_csv
from sklearn.preprocessing import LabelEncoder
# learning rate schedule
def step_decay(epoch):... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
4200f90b332c270c8cc30b894142509a4fc17a17 | 22676b813a32110a42abbf96e127de3e92e31ccb | /labwork5/1-2task/furniture.py | f3421a664d1684dd3f8ebcfc941ac2b6776da405 | [] | no_license | OlehPalka/Second_semester_labs | 17ca342152c6651106b91fe4bfe857a8b4734c00 | 09e9706c680016fd2b84a82f086d20bb3653dc43 | refs/heads/main | 2023-08-17T15:52:27.963504 | 2021-09-26T13:34:43 | 2021-09-26T13:34:43 | 410,556,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | """
This module contains two classes furniture and chair.
They are trainings to learn Classes.
"""
class Furniture:
"""
This class creates objectes - furniture.
>>> furniture1 = Furniture("empire", "bedroom")
>>> assert(furniture1.style == "empire")
"""
def __init__(self, style, assign):
... | [
"palka280617@gmail.com"
] | palka280617@gmail.com |
b1f1f6be9faa40e0f13ce7ab3d2239e8927187c9 | e6f03611089367f092800843b6966281d6486bff | /car_finder/items.py | 43950143f6fd20cdb100479e53379a28c20de985 | [] | no_license | ilov3/car_finder | e2d89c8f89760106370eb8f7259ec80ce66c807d | 0746d573c84f4162abbdaedb572c8c1bd3adab2a | refs/heads/master | 2021-06-25T04:03:50.663280 | 2020-12-14T08:38:09 | 2020-12-14T08:38:09 | 182,855,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import re
import scrapy
from itemloaders.processors import TakeFirst, MapCompose
from car_finder import settings
def extract_price(value):
if '$' in value:
... | [
"bulat.kurbangaliev@cinarra.com"
] | bulat.kurbangaliev@cinarra.com |
50634add889e0678fabe507b29cc0a307715c534 | cbbd2b0fa9250f7b9dc65720674fe457aa4f1fea | /venv/lib/python3.9/site-packages/testdata/path.py | 6734e7845e82fb9a562539d676e6c19b27376b8a | [] | no_license | yaswanth8/PythonSeleniumPytest | d74bb55a6143e4f4cc528218a648c6a619d996c5 | 87938581e3866f3e57f8222715707082da2f0884 | refs/heads/main | 2023-06-10T17:33:39.987577 | 2021-07-07T13:11:29 | 2021-07-07T13:11:29 | 380,410,627 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 28,326 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import os
import re
import tempfile
from distutils import dir_util, file_util
import codecs
import shutil
import sys
import pkgutil
import importlib
import stat
import inspect
#import glob
import fnmatch
import ha... | [
"yaswanthk722@gmail.com"
] | yaswanthk722@gmail.com |
a71cf58a1d51ec37c4e3d3e85cbb1d68290289a4 | 880a7a02175b7789d6116ba475e892ef5083bd2d | /whss/views.py | 71d20d43b9eff430b77925d851cd8e8af6aa1586 | [] | no_license | AnasA95/Warehouse | a0ce70afcb9fb0bc18472042c2c33ee08de8629b | 0ac27a3d4b9b672c45efbf873e061b81742d39cc | refs/heads/master | 2020-03-18T09:26:50.058094 | 2018-07-24T16:52:30 | 2018-07-24T16:52:30 | 134,563,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,666 | py | from rest_framework import generics
from .serializers import *
from .permissions import *
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
# from rest_framework import renderers
@api_view(['GET'])
def api_root(request, format=None):... | [
"341101422@std.qu.edu.sa"
] | 341101422@std.qu.edu.sa |
7ab87edf7fb834a8eaaf7973e70732fa4778a974 | 9dd33333caebc0b6f516ededa9aeebe707476852 | /qc/qc/middlewares.py | 78bd401ea4445eed71a7954552fa2c3aba118b7f | [] | no_license | zx490336534/spider-review | 4ef0cebd9d92bce0a42f4aeef5b03ae9695c2364 | c7a3cdf7abc74732c556bc4b8c9928a20e7c4c78 | refs/heads/master | 2020-04-09T02:20:26.533103 | 2018-12-03T15:04:15 | 2018-12-03T15:04:15 | 159,937,120 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
import random
import redis
import hashlib
from scrapy import signals
from scrapy.exceptions import IgnoreRequest
from qc.settings import USER_AGENT as u... | [
"490336534@qq.com"
] | 490336534@qq.com |
ebf4a1a93a43e70e379c629e7655ea0504e22e52 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp210_10000.py | 082ba610673f7da75273657839b7b5ca28e987a1 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,768 | py | ITEM: TIMESTEP
10000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7253288531241989e+02 2.1973288531246422e+02
-1.7253288531241989e+02 2.1973288531246422e+02
-1.7253288531241989e+02 2.1973288531246422e+02
ITEM: ATOMS id type xs ys zs
1454 1 0.695244 0.477366 0.481338
1279 1 0.312395 0.0513861 0.0145019
437 1 ... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
c85721734e624cc87ceb5ad6f0d8bd65975de78a | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /Щелчок/24/24_52.py | 69e3935c47b9be84d6bb1164ad23e1c9dffd7548 | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | f = open('shkolkovo_2.txt')
cnt = 0
cnt_max = 0
for s in f:
if s.count('A') < 25:
for i in range(ord('A'), ord('Z')+1):
cnt = s.rindex(chr(i)) - s.index(chr(i))
cnt_max = max(cnt, cnt_max)
print(cnt_max) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
7916f1c0dcf1066cc49205d234ec76a5db1cf997 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /daybook/forms.py | 78fc660f041185c9829b162003142e5d49f5e0cc | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 168 | py | from django import forms
from django.contrib.admin.widgets import AdminDateWidget
class daybookform(forms.Form):
date = forms.DateField(widget=AdminDateWidget())
| [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
85665dbe43d1c321ad12f2506b472e4a46306b5e | ac32e4a76b519a4f9d043ebb3835ad42b9ff6a3c | /tests/tokenize/test_tokenize_json.py | 80ca3e3ae813a3479c5e0bcd38471a72225a6e8e | [
"BSD-3-Clause"
] | permissive | rubbish822/typesystem | e63286f43672aa2d860c7dffe18431e3984f7439 | fe201aecf871b3995b2d73ef647d34c1fedb36f1 | refs/heads/master | 2023-04-02T15:11:43.780011 | 2019-03-11T14:07:46 | 2019-03-11T14:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,167 | py | from json.decoder import JSONDecodeError
import pytest
from typesystem.tokenize.tokenize_json import tokenize_json
from typesystem.tokenize.tokens import DictToken, ListToken, ScalarToken
def test_tokenize_object():
token = tokenize_json('{"a": [1, 2, 3], "b": "test"}')
expected = DictToken(
{
... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
6803bbee3280630ae29b66c3a142b8a762e3f0d6 | a12d2d99d6bbb00bf4dabcab8c3efe5ea4714648 | /Distracted - Prepare Data.py | 774fea000b90523ca2bc2cd6903777e4f9581cc1 | [] | no_license | devyhia/slim-backup | 01a702f65d4d5a2994cd2fac1ee225646e819fd9 | 26471cf66cf8e8ceff136a692ae6ba36fea90952 | refs/heads/master | 2021-01-12T00:14:25.456094 | 2017-10-17T09:54:35 | 2017-10-17T09:54:35 | 78,696,206 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py |
# coding: utf-8
# In[1]:
import DistractedDriver as dd
# In[2]:
import DistractedDriver as dd
X, y, Xt, yt = dd.load_data(True)
# In[3]:
X.shape
# In[4]:
y.shape
# In[5]:
Xt.shape
# In[6]:
yt.shape
# In[7]:
import numpy as np
# In[8]:
import Shared
# In[9]:
A = range(4331)
# In[22]:
# I... | [
"devyhia@aucegypt.edu"
] | devyhia@aucegypt.edu |
95fb465b6525f81c7c20790fd6309be0c2fd1dc8 | ab6686bcf0fbb63fa8247f5a8e0068b8d8a472d9 | /hawaii_app.py | 87c4c1849108b3fcb4cec9152ef2f368a3902fd8 | [] | no_license | aeb8614/adv_data | f98cec7d0f1e179f6aadcf390cab23abdfedb21f | 90c00d8516c21fb480374b666456dfbb6eb8b41f | refs/heads/master | 2020-03-15T23:11:54.352444 | 2018-05-07T01:01:35 | 2018-05-07T01:01:35 | 132,388,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import pandas as pd
import numpy as np
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#database
engine = create_engine("sqlite:///hawaii.sqlite")
Base = automap_base... | [
"noreply@github.com"
] | noreply@github.com |
6484fb00dcceff30de7f1df8e672b66959cf69be | 8998e4da64a41950d2f027df0290a2feae8f4cab | /SAR-PU/sarpu/sarpu/evaluation.py | b18030b2e33a44f93449b5e3b7cbe47f9dd9ae01 | [] | no_license | bjutliulei/Positive-and-Unlabeled-Learning | 323a825dd61995585d62472dbe9ad227527e0a65 | c52d2024d85548a8469a17b83c94fa5ba1f4b812 | refs/heads/main | 2023-02-25T18:16:23.284594 | 2021-01-28T09:48:34 | 2021-01-28T09:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | import numpy as np
def accuracy(true, pred):
return np.average(1 - abs(pred - true))
def tp(true, pred):
return (pred * true).mean()
#return sum(pred[true==1])
def fp(true, pred):
return (pred * (1 - true)).mean()
#return sum(pred[true==0])
def tn(true, pred):
return ((1 - pred) * (1 - t... | [
"noreply@github.com"
] | noreply@github.com |
83f1ea27b66bcbe761154a852de85c091dacaf82 | 19e360471f73bce938222e2c574f929c6d20c271 | /simple_web/bottle.py | afbae0ff2e5dba12c39d527e4633ba7d82c772a1 | [] | no_license | brijeshb42/simple_web | 00733b642806f3ee65fa5ca6bf691b0f6c42ff97 | 0c751bb3a2e9f98a2328870797856dcf9cb3a236 | refs/heads/master | 2021-09-09T14:54:12.801319 | 2018-03-17T05:09:06 | 2018-03-17T05:09:06 | 110,412,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | from functools import wraps
import bottle
from bottle import LocalRequest
from simple_web.base import BaseApp, BaseRequest as SwRequest
from simple_web.context import context
class Request(SwRequest, LocalRequest):
@property
def args(self):
return self.query.dict
@property
def form(self):
... | [
"717550+brijeshb42@users.noreply.github.com"
] | 717550+brijeshb42@users.noreply.github.com |
e7e539ccb3bd0bd015608271d93c17700a4cd18b | f60ff222c9a29da28f4dbf269be091d998a91135 | /scripts/runlog.py | eb3404ef976864ffed072d9a6609be9b53b3c99c | [
"MIT"
] | permissive | ABV-Hub/misc | dc67e579543518fa2e34f18e38d0822d3dad451c | f28f2b19a87f01b39606ee1e2da0a3ed785d58d7 | refs/heads/master | 2022-12-28T19:13:47.919945 | 2020-10-21T14:43:38 | 2020-10-21T14:43:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,841 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
import sys
import math
from datetime import date, timedelta
def make_df_from_csv(fname):
"""Make df"""
df = pd.read_csv(fname)
df.index = pd.to_... | [
"fracgeol@gmail.com"
] | fracgeol@gmail.com |
66fbbb5bfc50746622035772c297a65da87809b7 | 851b865584ff937d9d4457bc27b37bc2c57a2387 | /assignments/assignment2/src/obstacle.py | fd9f717b49e02a6de7cc12fe3c49cc0c8ff66c1e | [] | no_license | alexander-stimpsonkarlsson/INF-1400 | d33185d1a74854de059a7461637047ff335b4b34 | 45658be434dc97134926b5c0b0b497723fbf15e0 | refs/heads/master | 2023-02-08T14:19:11.658953 | 2023-01-25T13:28:51 | 2023-01-25T13:28:51 | 237,423,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import pygame
import math
import parameter as P
screen = pygame.display.set_mode([P.SCREEN_WIDTH, P.SCREEN_WIDTH])
# Class for obstacles
class Obstacle():
def __init__(self):
self.image = pygame.Surface([P.SCREEN_WIDTH, P.SCREEN_WIDTH])
self.image = pygame.image.load("pics/asteroid.png")
... | [
"alexstim@hotmail.no"
] | alexstim@hotmail.no |
d16b1b41a1fb590da1c4bb249c860c9a341c9b6b | 830465731dfda87b4141546262f20d74c29297bf | /CRYPTO/BambooFox/AttackOnHash/secret.py | d3cf7e8f7cd06fa222aa2906c4912017de846386 | [] | no_license | jchen8tw-research/CTF | f559d7ca0e16a730335b11caeeae208c42e8bf17 | f49615c24437a9cc6a2c20d6b30cb5abf7a32b71 | refs/heads/master | 2023-03-17T12:29:08.630613 | 2021-03-23T06:31:26 | 2021-03-23T06:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | flag = 'FAKE'
salt = 'a' * 40
| [
"cpr1014@gmail.com"
] | cpr1014@gmail.com |
d3a4c45ecbad74e68000c2c3a181d39744070ada | 26793e688615d8ad667279d0c279a08f6f03e8ec | /test/test.py | c6133c4d221e77105317d52740784a5688b2a3fc | [] | no_license | nphirning/WordBrain-Solver | 1259d7632d8b08a423d4a8d7348f2562f0bcbc1a | 422c71e5737557229cfbe54dce077de74e571828 | refs/heads/master | 2021-01-11T09:58:30.249470 | 2017-06-19T21:01:30 | 2017-06-19T21:01:30 | 77,880,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | # Test Harness for WordBrain puzzles
from os import sys, path
ADDED_WORDS = ['tv', 'haystack', 'crab', 'scooter', 'snowman', 'elk', 'chimney', 'cabin', 'biscuit', 'mince']
ADVANCED = False
# Solution from: http://stackoverflow.com/questions/11536764/how-to-fix-attempted-relative-import-in-non-package-even-with-init-... | [
"nphirning@gmail.com"
] | nphirning@gmail.com |
79bd62a1b4f6fec3f840c7edf572045ba70b363a | 09edcd04c51bab5a0811558bf31e068ff3efbe1f | /employee_orientation/models/employee_training.py | f757dc7f38e6a512a1dce7ef8ec89990f614271a | [] | no_license | niulinlnc/CybroAddons | b269b0ce794170215c66738c1854dc959dfe6809 | 7b931abc9050468851bfd403337cdb7bd6f5dca6 | refs/heads/11.0 | 2021-06-04T05:50:45.276751 | 2018-09-26T03:56:40 | 2018-09-26T03:56:40 | 131,250,562 | 0 | 0 | null | 2018-10-02T03:11:49 | 2018-04-27T05:42:02 | Python | UTF-8 | Python | false | false | 2,941 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class EmployeeTraining(models.Model):
_name = 'employee.training'
_rec_name = 'program_name'
_description = "Employee Training"
_inherit = 'mail.thread'
program_name = fields.Char(string='Training Program', required=True)
progra... | [
"sreejith@cybrosys.in"
] | sreejith@cybrosys.in |
f67ea32cf8865642c849ee621567a61ab630fa3d | 287b738749136838491758375f83985821665967 | /backend/reddit/views.py | f936eaae9f4dd05848e2643690c2a300eb5e3a68 | [] | no_license | MonsieurCellophane/ItalyInformatica-Project | e83f5e3e5a85fb69b25eb4debba27167a315f653 | e32a455dfc9c77126bc6bcc04dc67bf865bfd995 | refs/heads/master | 2020-06-10T17:41:06.626877 | 2017-03-07T17:18:35 | 2017-03-07T17:18:35 | 75,919,309 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
def index(request):
context={
#'description':"Hello, world. You're at the ItalyInformatica project index.",
'name':"The Italy Informatica Project - Backend",
}... | [
"MrC3llophane@gmail.com"
] | MrC3llophane@gmail.com |
99b8d312c2b0f1dd950dc13681e497b85cb2db8b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/305/78885/submittedfiles/testes.py | c9fd898511eec6ab3f5fd5d3e4799a1e4e204ad4 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # -*- coding: utf-8 -*-
import math
#COMECE A PARTIR DAQUI!
h = float(input('digite o valor de : '))
P = ((72.7*h) - 58)
print('%.2f' %P) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3faaa220fe69c5defad06e9717a0b8fc5b120f91 | 4ca2c250bb6d52e362833448a51a8a06c850c3e8 | /blog/migrations/0001_initial.py | c98cef5667ae9430308d5d779db12d4563e9ef4e | [] | no_license | zfreundtbenchmark/my-first-blog | 334ccf42cb3af9337101fe296ee0e10c1afa7cb4 | 869941a64f0e8d0bb5c62243eaa47132ca34da6b | refs/heads/master | 2023-05-02T15:52:35.636266 | 2020-02-09T20:53:57 | 2020-02-09T20:53:57 | 239,351,862 | 0 | 0 | null | 2023-04-21T20:46:47 | 2020-02-09T18:20:16 | Python | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.10 on 2020-02-09 18:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"zach.freundt@benchmarkanalytics.com"
] | zach.freundt@benchmarkanalytics.com |
a5f7f008271cc29ddfcff0585f68c9de0b543fbc | c03b0a750b30efdbc39dd9e58cad62e555182efa | /solution1.py | 1de2069fe48bcdfbd4a648af654437c22ada2e33 | [] | no_license | abbisk/python-assignment | 2eac3ea33b30861378c79e826afad039835cd74e | ca44f190b75d2fdad750fafadaa0afc59f8920b9 | refs/heads/main | 2023-02-28T17:15:02.085703 | 2021-02-07T06:15:25 | 2021-02-07T06:15:25 | 336,592,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # Write a Python program to read a file line by line and store it into a list.
def file_read(fname):
lines = []
with open(fname) as file:
for line in file:
lines.append(line)
return lines
file = file_read('file.txt')
print(file) | [
"abbiskpro@gmail.com"
] | abbiskpro@gmail.com |
28c941b2163520e34b7bd3a73126d9ea2a595777 | 43927453aad4c105b8dd88148958b6935898b292 | /node.py | c40a371f942f3fd66741cce6a0f06d766af2ca08 | [] | no_license | fantianwen/lifeGame | bacc84cf7a0b9aed11d70dc5903d435003e1d51c | 87912ed6a43adfcb0cbdf7ff544b7b69df0277eb | refs/heads/master | 2020-03-24T20:33:50.760013 | 2018-07-31T08:30:01 | 2018-07-31T08:30:01 | 142,985,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | class Node(object):
def __init__(self,id,rowNumber,columnNumber,status,nextStatus=False):
self.id = id
self.rowNumber = rowNumber
self.columnNumber = columnNumber
self.status = status
self.nextStatus = nextStatus
def update(self,newStatus):
self.nextStatus = ne... | [
"twfan_09@hotmail.com"
] | twfan_09@hotmail.com |
6376cf7a27747314a41fa0bf7424ae786aad29fb | 0cadef9919d903a0e312fdc56a5353473a612e72 | /tests/test_trade.py | 315427d495853a1e067331fa8af62bf1b6ef63b0 | [] | no_license | DianBahnev/super_simple_stock | f8691e7f720267e72d6c8a4b72179be5e612137f | 6847afbedcb19d26c84dcb94c09652c766c3caa7 | refs/heads/master | 2021-01-25T00:10:20.747737 | 2018-02-28T14:07:48 | 2018-02-28T14:07:48 | 123,160,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import unittest
from datetime import datetime
from super_simple_stocks import Trade
from super_simple_stocks import StockType
from super_simple_stocks import BuySellIndicator
class TestTrade(unittest.TestCase):
symbol = "AMZN"
quantity_0 = 0
quantity_1 = 100
price_per_share_0 = -1
pr... | [
"noreply@github.com"
] | noreply@github.com |
bc8d7e15ff10de70e94f298629d1a06c61e7c9e2 | 2e3f82e156d33293ef0cc22fb18173bb5d121ca9 | /cards/migrations/0009_auto_20191231_2220.py | f8f2120b09f882ae0610c5e711b55ac3d3bf3278 | [
"BSD-3-Clause",
"MIT",
"HPND",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | yun-mh/uniwalk | 93aa4a9c16407a77d2cfb423896a54c4fd7262e1 | f5307f6970b24736d13b56b4792c580398c35b3a | refs/heads/master | 2022-12-14T22:29:04.548403 | 2020-03-02T07:16:44 | 2020-03-02T07:16:44 | 216,805,710 | 0 | 0 | NOASSERTION | 2022-12-10T09:43:54 | 2019-10-22T12:14:11 | Python | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.5 on 2019-12-31 13:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cards', '0008_auto_20191231_2213'),
]
operations = [
migrations.RemoveField(
model_name='card',
name='stripe_custome... | [
"minhoyun.dev@gmail.com"
] | minhoyun.dev@gmail.com |
82037c643ef27e2ed8ebad5f7e521367051eb0fd | cc382cc8fc521c3427f582adedc1ff7b93a754de | /Python/Quiz/P_sum.py | 2797c7c578f859d95f4094f7d758468e6d29fb69 | [] | no_license | jbro321/Python | c33e899145ea47db41038fcc117789ce821c4131 | 36854890aefd0384567b05600cbb849094cd9f91 | refs/heads/main | 2023-06-05T19:53:40.144922 | 2021-06-24T13:29:24 | 2021-06-24T13:29:24 | 331,165,120 | 2 | 3 | null | 2021-04-05T03:46:58 | 2021-01-20T02:06:00 | Python | UTF-8 | Python | false | false | 755 | py | # 문제
# ***a,b,c,d 변수 4개를 초기 입력으로 받는다
# *** 출력문 작성 시 a+b를 직접 사용해서 합을 출력하지 않는다.
# *** 아래 출력을 그대로 출력한다. 대신 []안에 내용은 출력하지 않아도 된다.
# *** 수1 + 수2 = 합 문장을 출력하면 된다.
# 출력
# --------------------
# a[입력받은 값] + b[입력받은값] = 합
# c[입력받은 값] + d[입력받은값] = 합
#1
from datetime import datetime
now = datetime.now()
print(now)
import s... | [
"jaehyung0321@gmail.com"
] | jaehyung0321@gmail.com |
4d6f9c240b880e91b6bde6df0e9791126ee6eb3b | 71f7920181e051c0638c7e4bdbe24c677d4aa0e0 | /attendance/database/models/courses.py | cc9377a461cc261c2c3e79eab37efa733401414f | [] | no_license | mahbubcseju/attendance-by-face-recognition | 37b471c88bb068583ee01fd0013081a4f16f11c2 | e11264291a2dc50197aea052fb48a48068edd886 | refs/heads/master | 2022-05-09T10:32:24.261828 | 2020-05-15T15:56:51 | 2020-05-15T15:56:51 | 244,777,799 | 0 | 5 | null | 2022-04-22T23:18:44 | 2020-03-04T01:11:59 | Python | UTF-8 | Python | false | false | 810 | py | from django.db import models
from django.contrib.auth.models import User
class Course(models.Model):
name = models.CharField('Course Name', max_length=128)
supervisor = models.ForeignKey(User, on_delete=models.CASCADE)
def get_all_students_info(self):
students = self.coursestudent_set.all()
... | [
"mahbuburrahman2111@gmail.com"
] | mahbuburrahman2111@gmail.com |
86e6c20dc7cb353170ab2d53699455c1a710cd57 | bee81b22d9cdfcd4f027f761cede837823b47ef9 | /ScriptQiime2018/test.py | 608c40d8b7b4c06248985922cf82b422da759f2d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joesoftheart/Metagenomic | 14ac59c1d588b1de2052a52023a681e1c5a39730 | 9f78d84bb423ad1414070ca00e72fcff7a6a3382 | refs/heads/master | 2020-04-05T11:48:21.314814 | 2018-10-31T10:57:30 | 2018-10-31T10:57:30 | 81,178,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py |
from Bio import SeqIO
import sys
import subprocess
import os
dir=sys.argv[1]
outputFile=sys.argv[2]
saveFile = open(outputFile,"w")
os.chdir(dir)
p=subprocess.run(["ls"], stdout=subprocess.PIPE)
fileList=p.stdout.strip().decode('ascii').split('\n')
"""Initial sequence order"""
num = 0
"""Read Fasta File and proces... | [
"root@aum.local"
] | root@aum.local |
75acbe44935067a62df589333e0df7a0e4f4c2e8 | 6d340e1cabc97f22798e5af20428bb14caff9f66 | /events/migrations/0003_eventpage_meetup_image_url.py | 8cbf83852dc901beb36087c8ac7f989b17edc225 | [
"Apache-2.0"
] | permissive | python-chile/pythonchile_v2 | d3a42827902b109d2e19004323abaf4444130363 | d054ab4e4b40686387e412348cada9f001ecc39e | refs/heads/master | 2021-09-09T15:53:37.073225 | 2021-05-28T16:14:20 | 2021-05-28T16:14:20 | 214,560,684 | 6 | 5 | Apache-2.0 | 2021-09-08T01:25:19 | 2019-10-12T02:08:29 | JavaScript | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.2.15 on 2020-10-01 02:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0002_eventpage_event_url'),
]
operations = [
migrations.AddField(
model_name='eventpage',
name='meetup_im... | [
"cristian@kausana.cl"
] | cristian@kausana.cl |
96494d65b735f2b56baa0d19449ddb69bcacc03f | f03bd5bd7873c5cc33b4ef5199f219539f3a340e | /CAAPR/CAAPR_AstroMagic/PTS/pts/core/plot/scatter.py | 9fe0c5fd106f27cc39c302f413694a7e00a06ed3 | [
"MIT",
"GPL-1.0-or-later",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Stargrazer82301/CAAPR | 5f8a7033b16792f23abd5d07021b53b9228a5db4 | 62b2339beb2eb956565e1605d44d92f934361ad7 | refs/heads/master | 2022-08-29T02:53:33.658022 | 2022-08-05T19:06:46 | 2022-08-05T19:06:46 | 49,977,601 | 8 | 1 | MIT | 2022-08-05T19:06:47 | 2016-01-19T19:32:42 | Python | UTF-8 | Python | false | false | 10,466 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | [
"cjrc88@gmail.com"
] | cjrc88@gmail.com |
7b703bc2896e3cd0f8b426c39ecbb5420161c927 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/backends/host/test_relu6_op.py | e47927da98e69c262b7712e29005b73d40fe45f7 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 1,680 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | noreply@github.com |
1eb763e987a15d04de948393bb8c419dd6f7599a | d4b7c2f3dbf26942a83ab6cbd44c0df7a3dd11ef | /tutoriales/settings.py | 939e9b409ab1c71f330eed6f543aa8157af49fd2 | [] | no_license | marcelapaz/pbd2014 | a059a1b1d8a64acb57e5c47e4977994a3bc58f33 | c840c188df1d09c7d37c09be23f871ceb98efa3a | refs/heads/master | 2021-01-18T03:27:33.839922 | 2014-01-07T00:35:13 | 2014-01-07T00:35:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,539 | py | # Django settings for tutoriales project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Javier Campos', 'javier.camposo@usach.cl'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'orac... | [
"ricardocisterna@ubuntu.(none)"
] | ricardocisterna@ubuntu.(none) |
7e4eb4cede76a2192919390a5e088e5733029b09 | c959a626bfeca3e95566648c54688d3637e470a8 | /IITD-speech-vone/Transcript/transcript.py | 070bc6b120311d873b95684f945d0f459cad08bd | [] | no_license | thecapedcrusaderr/IITD-speech-vone | a19cf72adde73323ae1467e7294ee69acedd2c0b | ffc8f0a6fe95caf99dfa9873d4148b73b683377e | refs/heads/master | 2022-05-28T06:53:13.829818 | 2020-04-30T16:30:38 | 2020-04-30T16:30:38 | 259,306,514 | 0 | 0 | null | 2020-04-27T12:17:25 | 2020-04-27T12:17:25 | null | UTF-8 | Python | false | false | 2,848 | py |
from gcloud import storage
from oauth2client.service_account import ServiceAccountCredentials
import json
import glob
import re
#from tqdm import tqdm ## great tool to keep track of loop process
import os
# Imports the Google Cloud client library
from google.cloud import speech
from google.cloud.speech import enu... | [
"noreply@github.com"
] | noreply@github.com |
5d83e9f566fba4eac5dbe32b32a2a952e9f7359a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_049/ch71_2019_06_07_01_05_04_054986.py | 288d8e6e8a79edcd51e9bbbaa024bd8e1f5605da | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | def esconde_senha(string):
senha_nova="*" * len(string)
return senha_nova | [
"you@example.com"
] | you@example.com |
2d0cd0525159ae5e1377c4740c8768f22f13d77f | b2a1edf82dc29ec2a510c1ec2dbe8d06a8b5b84e | /test1.py | 5c3d8a6883f30154e5ae9eacf5cb5ceed8bd62a6 | [] | no_license | ccc117/py | 790ae542032a37aaba13ce1b8cfa3c10f60137a1 | bd5d15b8fef92315f3b85d9ce1bd4363c8802d02 | refs/heads/master | 2022-11-07T23:28:43.017283 | 2020-06-23T14:44:59 | 2020-06-23T14:44:59 | 268,842,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | lst=[]
lst=list()
lst=[10,20,30]
print(lst)
print(lst[2])
print(lst[:2])
print(lst[1:])
lst2=lst[:1]
print(lst2)
lst3=lst+lst2
print(lst3)
lst2*=3
print(lst2)
lst.append('a')
print(lst)
lst.insert(0,'b')
print(lst)
lst.pop()
print(lst)
lst.pop(0)
print(lst)
lst.remove(30)
print(lst)
lst[1]=100
print(lst)
print(lst.inde... | [
"ccc117@users.noreply.github.com"
] | ccc117@users.noreply.github.com |
c96ebeab3ec93603bfbe70fbec041ad533547e03 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201125123239.py | 55e05516581b090c070f2f6ce249d636eccf8f32 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | from django.db import models
from modelcluster.models import ParentalKey
from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.core.fields import RichTextFi... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.