hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f11fa446f5c128d63dab17202cbfa4c6043f4c7 | 3,135 | py | Python | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 57 | 2018-02-20T08:16:47.000Z | 2022-03-28T10:36:57.000Z | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 377 | 2018-07-19T11:56:27.000Z | 2021-07-09T13:08:12.000Z | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 24 | 2018-04-14T20:49:40.000Z | 2022-03-29T10:44:26.000Z | import os.path
import time
from moler.config import load_config
from moler.device.device import DeviceFactory
from moler.util.moler_test import MolerTest
if __name__ == '__main__':
test_network_outage()
"""
copy this file into workshop1/network_outage.py
*** calculating network outage time ***
1. run it
2. s... | 38.231707 | 118 | 0.686124 |
4f15458885d2ae78814572df9599b9ae72b6ee6c | 34 | py | Python | app/mashaller/__init__.py | yntonfon/dashboard | 287e7b2d895916102236243c1051da1e5ee3756e | [
"MIT"
] | null | null | null | app/mashaller/__init__.py | yntonfon/dashboard | 287e7b2d895916102236243c1051da1e5ee3756e | [
"MIT"
] | null | null | null | app/mashaller/__init__.py | yntonfon/dashboard | 287e7b2d895916102236243c1051da1e5ee3756e | [
"MIT"
] | null | null | null | from .user import user_marshaller
| 17 | 33 | 0.852941 |
4f155a9ab823ba33ff35f3612ec2e684b44b8924 | 2,782 | py | Python | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | 2 | 2021-04-10T19:22:15.000Z | 2022-03-08T19:37:56.000Z | from abc import ABC
from typing import Union, Optional, Iterable, Any
try: # Assume we're a sub-module in a package.
from utils import arguments as arg
from base.interfaces.context_interface import ContextInterface
from base.interfaces.contextual_interface import ContextualInterface
from base.interfac... | 37.093333 | 105 | 0.700935 |
4f1563734b81e35e89fdc77fb21035b9e52c5dfc | 1,880 | py | Python | snypy/snippets/rest/filters.py | sterapps/snypy-backend | e4733a1b7bf041c79c66ce74e64cc428d3c6ba5d | [
"MIT"
] | 2 | 2018-06-21T07:51:30.000Z | 2019-06-01T14:17:07.000Z | snypy/snippets/rest/filters.py | nezhar/snypy-backend | 0673b7dc7dc8b730639e0f634dcaa8b8178151e0 | [
"MIT"
] | 33 | 2018-05-10T10:37:46.000Z | 2021-10-30T11:07:22.000Z | snypy/snippets/rest/filters.py | sterapps/snypy-backend | e4733a1b7bf041c79c66ce74e64cc428d3c6ba5d | [
"MIT"
] | 3 | 2019-06-12T08:53:37.000Z | 2020-10-28T17:21:02.000Z | import django_filters
from snippets.models import File, Snippet, Label, SnippetLabel
| 24.102564 | 101 | 0.607447 |
4f15648cc786e557ca07ca52d78e1a5532cecf8b | 1,892 | py | Python | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | null | null | null | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | 51 | 2022-02-25T22:28:40.000Z | 2022-03-31T22:34:58.000Z | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | null | null | null | import json
import demistomock as demisto
from MyToDoTasksWidget import get_open_to_do_tasks_of_current_user
def test_open_to_do_tasks_of_current_user(mocker):
'''
Given:
- Mock response of 'internalHttpRequest' to '/v2/statistics/widgets/query' that includes an open task and
a close task
... | 28.238806 | 113 | 0.493129 |
4f168cadf59113f2c21dd814c3d020d96791fe21 | 1,669 | py | Python | Contest/LeetCode/BiweeklyContest27/2.py | WatsonWangZh/CodingPractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 11 | 2019-09-01T22:36:00.000Z | 2021-11-08T08:57:20.000Z | Contest/LeetCode/BiweeklyContest27/2.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | null | null | null | Contest/LeetCode/BiweeklyContest27/2.py | WatsonWangZh/LeetCodePractice | dc057dd6ea2fc2034e14fd73e07e73e6364be2ae | [
"MIT"
] | 2 | 2020-05-27T14:58:52.000Z | 2020-05-27T15:04:17.000Z | # 1461. Check If a String Contains All Binary Codes of Size K
# User Accepted:2806
# User Tried:4007
# Total Accepted:2876
# Total Submissions:9725
# Difficulty:Medium
# Given a binary string s and an integer k.
# Return True if any binary code of length k is a substring of s. Otherwise, return False.
# Example 1:
# ... | 27.360656 | 105 | 0.547633 |
4f1af3d08cbf530d538f0749b68ac8ba48af17e8 | 2,840 | py | Python | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 47 | 2016-04-21T19:51:17.000Z | 2022-02-25T14:13:30.000Z | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 421 | 2016-04-20T18:45:24.000Z | 2022-03-14T14:50:41.000Z | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 20 | 2016-09-10T20:25:27.000Z | 2021-10-06T16:02:47.000Z | import logging
import textwrap
import uuid
from typing import Any, Dict, Tuple, Union
import click
from globus_sdk import GlobusHTTPResponse, TransferClient
from .data import display_name_or_cname
from .recursive_ls import RecursiveLsResponse
log = logging.getLogger(__name__)
| 35.949367 | 88 | 0.634859 |
4f1c750bec0093c0c520c5d3c41ab1cdad36460f | 4,740 | py | Python | examples/issue_789/app.py | davidnateberg/Flask-AppBuilder | 3a6b45b1c12a52a794de27910896cbae61270d6b | [
"BSD-3-Clause"
] | 1 | 2022-03-18T19:00:29.000Z | 2022-03-18T19:00:29.000Z | examples/issue_789/app.py | davidnateberg/Flask-AppBuilder | 3a6b45b1c12a52a794de27910896cbae61270d6b | [
"BSD-3-Clause"
] | null | null | null | examples/issue_789/app.py | davidnateberg/Flask-AppBuilder | 3a6b45b1c12a52a794de27910896cbae61270d6b | [
"BSD-3-Clause"
] | null | null | null | import sys
from flask_appbuilder import SQLA, AppBuilder, ModelView, Model
from flask_appbuilder.models.sqla.interface import SQLAInterface
from sqlalchemy import Column, Integer, String, ForeignKey, Table
from sqlalchemy.orm import relationship
from flask import Flask
from flask_appbuilder.actions import action
confi... | 28.902439 | 84 | 0.665823 |
4f1cf95cec38d5a7764829af7a8a6cfbf0efd568 | 2,760 | py | Python | code/zeroinsertion_aging/plot-outofframe.py | andim/paper-tcellimprint | e89605e51014fa3f347f96bab3d3d84c2b013a2f | [
"MIT"
] | 2 | 2020-07-28T10:47:40.000Z | 2021-11-14T20:07:21.000Z | code/zeroinsertion_aging/plot-outofframe.py | andim/paper-tcellimprint | e89605e51014fa3f347f96bab3d3d84c2b013a2f | [
"MIT"
] | null | null | null | code/zeroinsertion_aging/plot-outofframe.py | andim/paper-tcellimprint | e89605e51014fa3f347f96bab3d3d84c2b013a2f | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import palettable
import pandas as pd
import sys
sys.path.append('..')
from lib import *
plt.style.use('../custom.mplstyle')
agebinsize = 20.0
agebins = np.arange(0.0, 90.0, agebinsize)
bin_ts = agebins[:-1]+agebinsize/2
bins = np.array([1, 1000, ... | 37.808219 | 166 | 0.640942 |
4f1d60a2d4237bbd3efae93314b622ddcfa12232 | 408 | py | Python | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | 2 | 2021-02-20T13:53:02.000Z | 2021-11-15T16:11:32.000Z | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | null | null | null | examples/ivis_job/docker_build.py | smartarch/qoscloud | 13b11b0baaad0d9b234d7defccdbd8756c2618a1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This script builds the docker images of image client and recognizer server and pushes them to dockerhub.
"""
from subprocess import call
print("Building the default docker image")
call("docker build -t d3srepo/qoscloud-default -f Dockerfile ../..", shell=True)
print(... | 31.384615 | 104 | 0.742647 |
4f1e7496b3483e64bf6a8b20b24344e523b362a7 | 808 | py | Python | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | 2 | 2015-01-06T09:29:29.000Z | 2015-01-06T09:50:15.000Z | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | # Py3 compatibility
from __future__ import print_function
from __future__ import unicode_literals
import tempfile
import os
import sys
import shutil
from .network import Network
from .util import Directory
from .shell import PyreneCmd
if __name__ == '__main__':
main()
| 21.263158 | 64 | 0.659653 |
4f1f838da92b0cfd903c819acc97f4f554c7837b | 22,204 | py | Python | Safe Marks/HelperLibrary/Student.py | mriduldhall/Safe-Marks | 3ea657c842fe30f084e0d70633d4319073bc82f0 | [
"MIT"
] | null | null | null | Safe Marks/HelperLibrary/Student.py | mriduldhall/Safe-Marks | 3ea657c842fe30f084e0d70633d4319073bc82f0 | [
"MIT"
] | null | null | null | Safe Marks/HelperLibrary/Student.py | mriduldhall/Safe-Marks | 3ea657c842fe30f084e0d70633d4319073bc82f0 | [
"MIT"
] | null | null | null | from Interface.StudentCommandLineInterface import CLI
from HelperLibrary.StorageFunctions import StorageFunctions
from HelperLibrary.MarkSheet import MarkSheet
from datetime import datetime
| 55.929471 | 370 | 0.650513 |
4f1fdfc8f0d95cc1bec3dc09896b940a6526f117 | 4,930 | py | Python | zhaopin/zhaopin/middlewares.py | Bruceey/PythonSpider | 4d64c45ca41d449f4950915887ef786ae812e7fa | [
"MIT"
] | 3 | 2021-05-21T03:31:35.000Z | 2021-07-03T11:39:05.000Z | zhaopin/zhaopin/middlewares.py | Bruceey/PythonSpider | 4d64c45ca41d449f4950915887ef786ae812e7fa | [
"MIT"
] | null | null | null | zhaopin/zhaopin/middlewares.py | Bruceey/PythonSpider | 4d64c45ca41d449f4950915887ef786ae812e7fa | [
"MIT"
] | 3 | 2021-04-14T15:09:00.000Z | 2021-12-13T14:37:54.000Z | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
from scrapy.http.response.html impo... | 42.869565 | 125 | 0.648479 |
4f20762324b6b2fc448e38806dd6a4f57cbf8e18 | 119 | py | Python | example/test_problem/ELBDM/DiscHeating/plot_script/FieldList.py | CliffLinTw/gamer | 6974d0b19133f253f2b867542f97b2acf1e9d756 | [
"BSD-3-Clause"
] | null | null | null | example/test_problem/ELBDM/DiscHeating/plot_script/FieldList.py | CliffLinTw/gamer | 6974d0b19133f253f2b867542f97b2acf1e9d756 | [
"BSD-3-Clause"
] | null | null | null | example/test_problem/ELBDM/DiscHeating/plot_script/FieldList.py | CliffLinTw/gamer | 6974d0b19133f253f2b867542f97b2acf1e9d756 | [
"BSD-3-Clause"
] | null | null | null | import yt
ds = yt.load("/work1/clifflin/gamer-fork/bin/Plummer/Data_000000")
for i in sorted(ds.field_list):
print(i)
| 23.8 | 66 | 0.747899 |
4f21df34e1d98ce1e3adaa44158d7fed8c12ff92 | 1,121 | py | Python | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 1 | 2019-11-22T11:02:52.000Z | 2019-11-22T11:02:52.000Z | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 4 | 2019-11-21T14:13:32.000Z | 2020-02-11T15:15:23.000Z | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 1 | 2020-02-11T06:19:45.000Z | 2020-02-11T06:19:45.000Z | import sys,os
from numpy import *
from subprocess import *
from glob import glob
doResume=1
showisq=1
showlen=0
rdelete=1
fixmasks=1
vmsFix=lambda wholeFile: '\\;'.join(wholeFile.split(';'))
megsize=lambda fileName: os.path.getsize(fileName)/1e6
if len(sys.argv)<2:
for rt,drs,files in os.walk(os.getcwd(),topdown=Fals... | 29.5 | 69 | 0.619982 |
4f222ada9c9e67ab5a6afc3a9166ea01cae912d9 | 6,642 | py | Python | winactivities/activities.py | forensicmatt/ActivitiesCacheParser | fc78c2b7ccb915e479a8a11be489afa14a025277 | [
"Apache-2.0"
] | 3 | 2018-09-11T04:00:33.000Z | 2020-08-08T01:10:35.000Z | winactivities/activities.py | forensicmatt/ActivitiesCacheParser | fc78c2b7ccb915e479a8a11be489afa14a025277 | [
"Apache-2.0"
] | null | null | null | winactivities/activities.py | forensicmatt/ActivitiesCacheParser | fc78c2b7ccb915e479a8a11be489afa14a025277 | [
"Apache-2.0"
] | null | null | null | import ujson
import binascii
from collections import OrderedDict
from winactivities.helpers import DbHandler, datetime_decode_1970_str
ACTIVITIES_SCHEMA = {
"tables": [
"Activity",
"Activity_PackageId",
"ActivityAssetCache",
"ActivityOperation",
"AppSettings",
"Manua... | 34.414508 | 85 | 0.560524 |
4f239f097e9b19538c2da8b9e6eb10b642787d4e | 3,219 | py | Python | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | custom_components/tuneblade/tuneblade.py | spycle/tune_blade | bce9847531f410634765df7391565e2094549eb6 | [
"Apache-2.0"
] | null | null | null | """TuneBlade API Client."""
import logging
import asyncio
import socket
from typing import Optional
import aiohttp
import async_timeout
TIMEOUT = 10
_LOGGER: logging.Logger = logging.getLogger(__package__)
HEADERS = {"Content-type": "application/json; charset=UTF-8"}
| 36.579545 | 141 | 0.581858 |
4f23e71ddb8ee1ace14dbb8e3bd3439af093af7d | 1,607 | py | Python | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | 16 | 2017-09-30T21:13:27.000Z | 2019-08-31T19:16:44.000Z | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | null | null | null | train.py | RuiShu/fast-style-transfer | abea698668aa070375afa488e490b93ba5bb9563 | [
"MIT"
] | 1 | 2021-08-05T08:59:58.000Z | 2021-08-05T08:59:58.000Z | from config import args
from utils import delete_existing, get_img, get_img_files
import tensorbayes as tb
import tensorflow as tf
import numpy as np
import os
| 35.711111 | 76 | 0.627878 |
4f24e90f804e495cead994aea15903dbefcdaca4 | 141 | py | Python | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | Semana 07/frequencia.py | heltonricardo/grupo-estudos-maratonas-programacao | 0c07d84a900858616647d07574ec56b0533cddfb | [
"MIT"
] | null | null | null | n = int(input())
v = []
for i in range(n): v.append(int(input()))
s = sorted(set(v))
for i in s: print(f'{i} aparece {v.count(i)} vez (es)')
| 23.5 | 55 | 0.574468 |
4f264c9af17a23440e1def56bb2ced5d575f4e4e | 1,543 | py | Python | TextGen/src/TextGen-2.py | fatemetkl/TextClassification-NLP-Forml_and_Informal | 4f79ecd7e860dabf83694230c2c52cd498869aaf | [
"MIT"
] | null | null | null | TextGen/src/TextGen-2.py | fatemetkl/TextClassification-NLP-Forml_and_Informal | 4f79ecd7e860dabf83694230c2c52cd498869aaf | [
"MIT"
] | null | null | null | TextGen/src/TextGen-2.py | fatemetkl/TextClassification-NLP-Forml_and_Informal | 4f79ecd7e860dabf83694230c2c52cd498869aaf | [
"MIT"
] | null | null | null | import random
import os
from decimal import *
os.getcwd()
os.chdir('..')
os.chdir('..')
parent=os.getcwd()
#seed = 15
path1="Model/label2.2gram.lm"
filename1=os.path.join(parent,path1)
with open(filename1,'r',encoding='utf-8') as f:
text=f.read().split('\n')
dict_val={}
words=[]
new_text=[]
for i in range (0,l... | 21.732394 | 71 | 0.562541 |
4f2700b6302c6b072cf15c607d2751cacf024b9d | 33,707 | py | Python | pyFAI/average.py | fpwg/pyFAI | cebf935b79333c9289a78b74ee99d550ebcdc549 | [
"MIT"
] | 1 | 2021-04-28T20:09:13.000Z | 2021-04-28T20:09:13.000Z | pyFAI/average.py | fpwg/pyFAI | cebf935b79333c9289a78b74ee99d550ebcdc549 | [
"MIT"
] | null | null | null | pyFAI/average.py | fpwg/pyFAI | cebf935b79333c9289a78b74ee99d550ebcdc549 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Project: Azimuthal integration
# https://github.com/silx-kit/pyFAI
#
# Copyright (C) 2003-2018 European Synchrotron Radiation Facility, Grenoble,
# France
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of... | 34.929534 | 135 | 0.632213 |
4f27e94364e886c37f053be2d331525eebc5847a | 74 | py | Python | constants.py | texdarkstar/py3bot | 05a60c49894415e00a59bbe086a58c4e6b331fb5 | [
"MIT"
] | 1 | 2021-11-21T02:02:44.000Z | 2021-11-21T02:02:44.000Z | constants.py | texdarkstar/py3bot | 05a60c49894415e00a59bbe086a58c4e6b331fb5 | [
"MIT"
] | null | null | null | constants.py | texdarkstar/py3bot | 05a60c49894415e00a59bbe086a58c4e6b331fb5 | [
"MIT"
] | 1 | 2021-11-21T02:02:47.000Z | 2021-11-21T02:02:47.000Z | from telnetlib import IAC, WILL, TTYPE, SB, SE
IS = chr(0).encode()
| 14.8 | 47 | 0.635135 |
4f2abc95f3e1e4c6346436b87adf5ac5fcac62da | 7,754 | py | Python | schedule/views.py | AndrewSaltz/Lab_Schedule | a71f3ddfd51661bac0dc1de72635df19a56f23c9 | [
"MIT"
] | null | null | null | schedule/views.py | AndrewSaltz/Lab_Schedule | a71f3ddfd51661bac0dc1de72635df19a56f23c9 | [
"MIT"
] | null | null | null | schedule/views.py | AndrewSaltz/Lab_Schedule | a71f3ddfd51661bac0dc1de72635df19a56f23c9 | [
"MIT"
] | null | null | null | from django.shortcuts import render
import datetime
from datetime import date
import calendar
from schedule.models import Event, period_choices, cart_choice
from django.views.generic import UpdateView, TemplateView, ListView
from schedule.forms import ReservationForm
from django.http import HttpResponseRedirect, HttpRe... | 39.764103 | 107 | 0.570415 |
4f2add3dfacdc457e8a021fc99bae54faa461b6f | 13,569 | py | Python | scripts/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/science-gothic | b5e8a73778fdb62c38a0ee81cbe923ae9e15fc9a | [
"Apache-2.0"
] | 104 | 2019-08-08T20:18:18.000Z | 2022-03-23T21:08:24.000Z | scripts/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/science-gothic | b5e8a73778fdb62c38a0ee81cbe923ae9e15fc9a | [
"Apache-2.0"
] | 269 | 2019-08-06T22:12:53.000Z | 2022-03-23T18:05:07.000Z | scripts/FontLab/sg-toolbox/SG-Glyph-CopyLayer.py | tphinney/bank-gothic | 5857f71c207ff9fd54899423304267339196ef21 | [
"Apache-2.0"
] | 5 | 2019-08-09T21:51:45.000Z | 2020-04-26T18:09:01.000Z | #FLM: Glyph: Copy Layer (TypeRig)
# ----------------------------------------
# (C) Vassil Kateliev, 2019 (http://www.kateliev.com)
# (C) Karandash Type Foundry (http://www.karandash.eu)
#-----------------------------------------
# www.typerig.com
# No warranties. By using this you agree
# that you use it at your own r... | 37.587258 | 191 | 0.67271 |
4f2c289d320d89598f93fc9d4f19d5ebb552c658 | 3,386 | py | Python | gen.nginx.py | Frozen12/OnlineIDE | be89c6f13846e48e0e97ed655ff13be414d326be | [
"Apache-2.0"
] | 2 | 2022-01-16T15:55:24.000Z | 2022-01-22T15:06:54.000Z | gen.nginx.py | Frozen12/OnlineIDE | be89c6f13846e48e0e97ed655ff13be414d326be | [
"Apache-2.0"
] | 1 | 2021-05-13T18:49:31.000Z | 2021-05-18T07:31:01.000Z | gen.nginx.py | Frozen12/OnlineIDE | be89c6f13846e48e0e97ed655ff13be414d326be | [
"Apache-2.0"
] | 6 | 2021-05-13T17:14:29.000Z | 2022-01-30T07:20:12.000Z | import os
print("""
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki... | 30.781818 | 80 | 0.603662 |
4f2d670c86eaa242941f2df0207696db4b4a23b2 | 2,202 | py | Python | pycmbs/tests/test_license.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 9 | 2015-04-01T04:22:25.000Z | 2018-08-31T03:51:34.000Z | pycmbs/tests/test_license.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 14 | 2015-01-27T20:33:10.000Z | 2016-06-02T07:23:25.000Z | pycmbs/tests/test_license.py | pygeo/pycmbs | 0df863e1575ffad21c1ea9790bcbd3a7982d99c6 | [
"MIT"
] | 8 | 2015-02-07T20:46:42.000Z | 2019-10-25T00:36:32.000Z | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""
import os
import glob
import unittest
def find_python_files():
"""
find all python files in pyCMBS installation
"""
# get path of current file and se... | 28.230769 | 95 | 0.637148 |
4f2d92497c994456f8956b4b8039fe058d34049f | 2,674 | py | Python | torch_geometric/utils/homophily.py | LingxiaoShawn/pytorch_geometric | 50b7bfc4a59b5b6f7ec547ff862985f3b2e22798 | [
"MIT"
] | 1 | 2022-02-21T13:23:19.000Z | 2022-02-21T13:23:19.000Z | torch_geometric/utils/homophily.py | LingxiaoShawn/pytorch_geometric | 50b7bfc4a59b5b6f7ec547ff862985f3b2e22798 | [
"MIT"
] | null | null | null | torch_geometric/utils/homophily.py | LingxiaoShawn/pytorch_geometric | 50b7bfc4a59b5b6f7ec547ff862985f3b2e22798 | [
"MIT"
] | null | null | null | from typing import Union
import torch
from torch import Tensor
from torch_scatter import scatter_mean
from torch_sparse import SparseTensor
from torch_geometric.typing import Adj, OptTensor
def homophily(edge_index: Adj, y: Tensor, batch: OptTensor = None,
method: str = 'edge') -> Union[float, Tensor]... | 36.135135 | 78 | 0.60546 |
4f2da43ba15b54e4aa7a9570b02b17a2b0fc1c6e | 22 | py | Python | tt/maxvol/__init__.py | rballester/ttpy | a2fdf08fae9d34cb1e5ba28482e82e04b249911b | [
"MIT"
] | null | null | null | tt/maxvol/__init__.py | rballester/ttpy | a2fdf08fae9d34cb1e5ba28482e82e04b249911b | [
"MIT"
] | null | null | null | tt/maxvol/__init__.py | rballester/ttpy | a2fdf08fae9d34cb1e5ba28482e82e04b249911b | [
"MIT"
] | 1 | 2021-01-10T07:02:09.000Z | 2021-01-10T07:02:09.000Z | from _maxvol import *
| 11 | 21 | 0.772727 |
4f2eed39bc85b82594221090c77cb7382ee39bd1 | 169 | py | Python | paxLibUL/convolution/__init__.py | PAX-ULaval/pax-libraries | 60e065ef480d85a3c03cfad4d2bbc1a70632c98b | [
"MIT"
] | null | null | null | paxLibUL/convolution/__init__.py | PAX-ULaval/pax-libraries | 60e065ef480d85a3c03cfad4d2bbc1a70632c98b | [
"MIT"
] | null | null | null | paxLibUL/convolution/__init__.py | PAX-ULaval/pax-libraries | 60e065ef480d85a3c03cfad4d2bbc1a70632c98b | [
"MIT"
] | null | null | null | # pylint: disable=wildcard-import
from .architectures import *
from .callbacks import *
from .datasets import *
from .visualisation import *
from .weights_init import *
| 24.142857 | 33 | 0.781065 |
4f309231478a6b77460cb55dce7f7772392ec78f | 11,543 | py | Python | mstrio/api/migration.py | czyzq/mstrio-py | b25fd19936b659d503a7eaaa96c8d0b4e118cb7c | [
"Apache-2.0"
] | 1 | 2022-02-15T13:18:04.000Z | 2022-02-15T13:18:04.000Z | mstrio/api/migration.py | czyzq/mstrio-py | b25fd19936b659d503a7eaaa96c8d0b4e118cb7c | [
"Apache-2.0"
] | null | null | null | mstrio/api/migration.py | czyzq/mstrio-py | b25fd19936b659d503a7eaaa96c8d0b4e118cb7c | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import requests
from mstrio.connection import Connection
from mstrio.utils.error_handlers import ErrorHandler
| 40.644366 | 98 | 0.664559 |
4f32878e0e19ae616ff00d05ec4a7c3db599966a | 3,437 | py | Python | lomap/examples/ijrr2014_rec_hor/environment.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | lomap/examples/ijrr2014_rec_hor/environment.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | lomap/examples/ijrr2014_rec_hor/environment.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Copyright (C) 2012-2015, Alphan Ulusoy (alphan@bu.edu)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any lat... | 48.408451 | 81 | 0.632528 |
4f343ede862d2971e0b163d9a064f189c0efa727 | 1,452 | py | Python | scripts/dialent/task3/test.py | victorbocharov/factRuEval-2016 | ad5ce5d753cee8307c79b0c4978caeed05ba7d07 | [
"MIT"
] | 52 | 2016-01-13T16:54:14.000Z | 2022-03-04T19:05:38.000Z | scripts/dialent/task3/test.py | bond005/factRuEval-2016 | 3a1b4540b1025fa73118d0e065c526437b37df12 | [
"MIT"
] | 147 | 2016-01-13T21:18:30.000Z | 2021-03-30T10:19:55.000Z | scripts/dialent/task3/test.py | bond005/factRuEval-2016 | 3a1b4540b1025fa73118d0e065c526437b37df12 | [
"MIT"
] | 37 | 2015-12-18T10:36:58.000Z | 2022-03-04T19:06:07.000Z | # This module deals with test data representation for the third task
#########################################################################################
import os
from dialent.common.util import normalize
from dialent.common.util import safeOpen
from dialent.objects.fact import Fact
#########################... | 30.25 | 89 | 0.451791 |
4f3441ef7f4d1a2370cb25d0b0057052c0eb45a0 | 8,490 | py | Python | resources/namespace-check/index.py | aws-samples/eks-configrules-with-cdk | 735658a0fe92c414d20314176d91e2c797defbd7 | [
"MIT-0"
] | 1 | 2022-03-23T18:18:49.000Z | 2022-03-23T18:18:49.000Z | resources/namespace-check/index.py | aws-samples/eks-configrules-with-cdk | 735658a0fe92c414d20314176d91e2c797defbd7 | [
"MIT-0"
] | null | null | null | resources/namespace-check/index.py | aws-samples/eks-configrules-with-cdk | 735658a0fe92c414d20314176d91e2c797defbd7 | [
"MIT-0"
] | null | null | null |
import authutils as auth
import os
import kubernetes
from kubernetes.client.rest import ApiException
import boto3
from botocore.exceptions import ClientError
from datetime import datetime, timedelta
from botocore import session
from awscli.customizations.eks.get_token import STSClientFactory, TokenGenerator, TOKEN_EXP... | 43.538462 | 195 | 0.634629 |
4f34a307cb9dfa5bbf4cfb31c065fa12965bf81c | 2,382 | py | Python | test/test_todos.py | rajasgs/flask-rest-math-simple | 3a4206be66f3e53e669daaca924eb32b34b28822 | [
"MIT"
] | null | null | null | test/test_todos.py | rajasgs/flask-rest-math-simple | 3a4206be66f3e53e669daaca924eb32b34b28822 | [
"MIT"
] | 2 | 2021-04-27T13:53:45.000Z | 2021-06-02T02:34:43.000Z | test/test_todos.py | rajasgs/flask-rest-math-simple | 3a4206be66f3e53e669daaca924eb32b34b28822 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# the above line is to avoid 'SyntaxError: Non-UTF-8 code starting with' error
'''
Created on
Course work:
@author: raja
Source:
https://realpython.com/testing-third-party-apis-with-mocks/
'''
# Standard library imports...
from unittest.mock import Mock, patch
# Th... | 26.764045 | 83 | 0.714945 |
4f353b795b25a90ac549d4048ded818484a8ed13 | 21,895 | py | Python | maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py | RyanXLi/OneshotDet | 77f629978d9d1739787b08de8cccea81341507bf | [
"BSD-2-Clause"
] | 16 | 2020-09-07T15:28:57.000Z | 2022-03-03T02:52:25.000Z | maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py | RyanXLi/OneshotDet | 77f629978d9d1739787b08de8cccea81341507bf | [
"BSD-2-Clause"
] | 3 | 2021-01-06T12:02:54.000Z | 2021-03-14T14:08:57.000Z | maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py | RyanXLi/OneshotDet | 77f629978d9d1739787b08de8cccea81341507bf | [
"BSD-2-Clause"
] | 4 | 2020-11-13T09:21:36.000Z | 2021-05-27T02:12:19.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
from torch.nn import functional as F
from maskrcnn_benchmark.layers import smooth_l1_loss, SigmoidFocalLoss
from maskrcnn_benchmark.modeling.box_coder import BoxCoder
from maskrcnn_benchmark.modeling.matcher import Matcher
from maskrc... | 46.191983 | 147 | 0.602147 |
4f355e9a0ec2580f7a7a369727ffb40554a5d73b | 1,108 | py | Python | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | morse_code.py | shwetabhsharan/leetcode | 6630592b1f962bb4c4bb3c83162a8ff12b2074b3 | [
"MIT"
] | null | null | null | """
Morse Code Implementation to tell unique pattern
Example:
Input: words = ["gin", "zen", "gig", "msg"]
Output: 2
Explanation:
The transformation of each word is:
"gin" -> "--...-."
"zen" -> "--...-."
"gig" -> "--...--."
"msg" -> "--...--."
There are 2 different transformations, "--...-." and "--...--.".
Notes
Th... | 22.16 | 64 | 0.624549 |
4f359427f72340bc616793906a52f0e28c61b07a | 5,622 | py | Python | nn.py | sumitsk/cspace_belief | 9cb9b14f39066461224690f2b815a9933cf58c89 | [
"MIT"
] | 3 | 2019-04-11T09:06:39.000Z | 2019-04-13T20:09:12.000Z | nn.py | sumitsk/cspace_belief | 9cb9b14f39066461224690f2b815a9933cf58c89 | [
"MIT"
] | null | null | null | nn.py | sumitsk/cspace_belief | 9cb9b14f39066461224690f2b815a9933cf58c89 | [
"MIT"
] | null | null | null | #!/usr/bin/env python -W ignore::DeprecationWarning
import numpy as np
import os
import knn
import warnings
warnings.filterwarnings("ignore")
from sklearn.neighbors import NearestNeighbors, LSHForest
if __name__ == '__main__':
files = (['env_shelf01', 'env_table1', 'env_table3',
'env_shelf02', 'e... | 43.581395 | 111 | 0.549804 |
4f35e5d4ae5344e336395cce9d435d980c9b8a4f | 1,771 | py | Python | src/genie/libs/parser/iosxr/tests/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/iosxr/tests/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/iosxr/tests/ShowOspfVrfAllInclusiveShamLinks/cli/equal/golden_output_1_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
"vrf": {
"VRF1": {
"address_family": {
"ipv4": {
"instance": {
"1": {
"areas": {
"0.0.0.1": {
"sham_links": {
... | 42.166667 | 74 | 0.197628 |
4f39fc5e401ac2bf156ceb867519dfcc3f4064b2 | 1,416 | py | Python | day03/path-02/code.py | zeddarn/advent-of-code-2021 | 09f45bf45156ee8f8df567a8e0fe43fd7b98a9df | [
"Apache-2.0"
] | null | null | null | day03/path-02/code.py | zeddarn/advent-of-code-2021 | 09f45bf45156ee8f8df567a8e0fe43fd7b98a9df | [
"Apache-2.0"
] | null | null | null | day03/path-02/code.py | zeddarn/advent-of-code-2021 | 09f45bf45156ee8f8df567a8e0fe43fd7b98a9df | [
"Apache-2.0"
] | null | null | null | import os
filename = os.path.dirname(__file__) + "\\input"
arrayList = []
with open(filename) as file:
for line in file:
arrayList.append(line.rstrip())
width = len(arrayList[0].rstrip())
print(f'len {width}')
gamma_nums = arrayList
for r in range(width):
start = 0
x = []
for line in gamma_num... | 24.413793 | 76 | 0.501412 |
4f3cddc3d48976524af037fa191a969e354eac83 | 193 | py | Python | keymaster/__main__.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | keymaster/__main__.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | keymaster/__main__.py | shiroyuki/spymaster | 1efee54427378394ab04d0e53247eb38c28bc97c | [
"Apache-2.0"
] | null | null | null | import os, sys
sys.path.insert(0, os.path.join(os.getcwd(), '..', 'Imagination'))
sys.path.insert(0, os.path.join(os.getcwd(), '..', 'xmode'))
from keymaster.starter import activate
activate() | 32.166667 | 66 | 0.689119 |
4f3d60508b961f3b5da0a3e216be2a3ee247021d | 198 | py | Python | Server/Python/src/dbs/dao/MySQL/DataTier/List.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/MySQL/DataTier/List.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/MySQL/DataTier/List.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | #!/usr/bin/env python
"""
This module provides DataTier.List data access object.
"""
from dbs.dao.Oracle.DataTier.List import List as OraDataTierList
| 19.8 | 64 | 0.727273 |
4f41108bae3999d613b16bce6c5067e9321c891a | 262 | py | Python | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | null | null | null | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | 1 | 2021-05-20T16:08:35.000Z | 2021-05-20T16:08:35.000Z | backoffice/utils/constant.py | MedPy-C/backend | 262834adb1f4f5714c4bd490595fdfa1f49c9675 | [
"MIT"
] | null | null | null | from enum import Enum
| 12.47619 | 51 | 0.614504 |
4f41b185490551ba17dfbc19cca9e3a24ae60285 | 1,309 | py | Python | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | pages/migrations/0018_auto_20171102_1809.py | Vicarium/amy_site | eeb779aae74dc3af96f2837d876bafb8e13522d2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-02 18:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
| 35.378378 | 191 | 0.624905 |
4f42b91985cac19e93890aa2355cfbf1f9b33619 | 5,647 | py | Python | baselineCorrection.py | sinaravi/Baseline-Correction | 9d2a016d07a65eeec40c464682ff4bd4aca44ad0 | [
"MIT"
] | 1 | 2022-03-12T03:46:18.000Z | 2022-03-12T03:46:18.000Z | baselineCorrection.py | sinaravi/Baseline-Correction | 9d2a016d07a65eeec40c464682ff4bd4aca44ad0 | [
"MIT"
] | null | null | null | baselineCorrection.py | sinaravi/Baseline-Correction | 9d2a016d07a65eeec40c464682ff4bd4aca44ad0 | [
"MIT"
] | null | null | null | import peakutils
from peakutils.plot import plot as pplot
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from scipy import sparse
import math
from scipy.sparse.linalg import spsolve
PATH = "PDha_1.csv" # csv or txt format
df = pd.read_csv( PATH, sep="\t", skiprows=[0, 1, 2, 3, 4],del... | 36.198718 | 164 | 0.554631 |
4f42f0318bdc9f9e318bf4c6ab8ff73477869c44 | 1,337 | py | Python | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 1,275 | 2020-11-19T14:18:25.000Z | 2021-08-13T07:31:39.000Z | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 62 | 2020-11-30T16:06:14.000Z | 2021-08-10T08:34:52.000Z | tests/core/test_base_component.py | strickvl/zenml | f1499e9c3fee00fd1d66de14cab66c4472c0085d | [
"Apache-2.0"
] | 75 | 2020-12-22T19:15:08.000Z | 2021-08-13T03:07:50.000Z | # Copyright (c) ZenML GmbH 2021. 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... | 33.425 | 70 | 0.735228 |
4f43d6d7f8cc17aa055442affd0c29f290e5addd | 591 | py | Python | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | 1 | 2022-02-20T16:03:04.000Z | 2022-02-20T16:03:04.000Z | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | courses/migrations/0009_alter_skills_program_duration_and_more.py | sisekelohub/sisekelo | 7e1b0de6abf07e65ed746d0d929c3de37fb421c3 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-02 21:51
from django.db import migrations, models
| 24.625 | 61 | 0.602369 |
4f44af0f9e10537a5a0a0cc8c62e5e6d33dff3dd | 12,427 | py | Python | model/utils.py | Gofinge/HF | 71baee1632cd0bf3562eed1e315b6a605699dbe9 | [
"MIT"
] | 7 | 2019-03-13T15:09:06.000Z | 2022-02-15T20:01:22.000Z | model/utils.py | Gofinge/HF | 71baee1632cd0bf3562eed1e315b6a605699dbe9 | [
"MIT"
] | null | null | null | model/utils.py | Gofinge/HF | 71baee1632cd0bf3562eed1e315b6a605699dbe9 | [
"MIT"
] | 5 | 2019-03-23T05:31:52.000Z | 2020-11-09T03:01:17.000Z | import numpy as np
from keras import backend as K
from sklearn.preprocessing import MinMaxScaler
import tensorflow as tf
import csv
from sklearn.neighbors import KDTree
import matplotlib.pyplot as plt
from model.config import *
from tensorflow.python.ops import *
import seaborn as sns
import pandas as pd
# ... | 30.162621 | 108 | 0.641345 |
4f44d34e791f88d9e4cf37473472b92bbf0299db | 2,378 | py | Python | phasor/optics/space.py | mccullerlp/OpenLoop | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | [
"Apache-2.0"
] | 5 | 2018-02-28T00:43:37.000Z | 2020-01-21T11:39:15.000Z | phasor/optics/space.py | mccullerlp/OpenLoop | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | [
"Apache-2.0"
] | 1 | 2019-09-07T23:15:43.000Z | 2019-09-07T23:15:43.000Z | phasor/optics/space.py | mccullerlp/OpenLoop | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | [
"Apache-2.0"
] | 1 | 2020-08-21T04:42:09.000Z | 2020-08-21T04:42:09.000Z | # -*- coding: utf-8 -*-
"""
"""
from __future__ import division, print_function, unicode_literals
#from phasor.utilities.print import print
import declarative as decl
from . import bases
from . import ports
from . import standard_attrs
| 32.135135 | 118 | 0.632044 |
4f4626181d8dc695cfa9958137d926bcace410eb | 12,106 | py | Python | tests/ci/release.py | BanditDangzw/ClickHouse | 6b62049a852149e151e57962044982aa6ba1b2ff | [
"Apache-2.0"
] | null | null | null | tests/ci/release.py | BanditDangzw/ClickHouse | 6b62049a852149e151e57962044982aa6ba1b2ff | [
"Apache-2.0"
] | null | null | null | tests/ci/release.py | BanditDangzw/ClickHouse | 6b62049a852149e151e57962044982aa6ba1b2ff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from contextlib import contextmanager
from typing import List, Optional
import argparse
import logging
from git_helper import commit
from version_helper import (
FILE_WITH_VERSION_PATH,
ClickHouseVersion,
VersionType,
git,
get_abs_path,
get_version_from_repo,
update_... | 35.922849 | 88 | 0.59392 |
4f474c8d10d4136625b4321c8b9558f07ac791aa | 1,938 | py | Python | src/controller.py | shaoeric/torch-atom | 7688fc38c0d19fe4d13a9773115df911ffe6eaaa | [
"MIT"
] | 28 | 2022-03-06T06:04:54.000Z | 2022-03-27T04:14:33.000Z | src/controller.py | shaoeric/torch-atom | 7688fc38c0d19fe4d13a9773115df911ffe6eaaa | [
"MIT"
] | null | null | null | src/controller.py | shaoeric/torch-atom | 7688fc38c0d19fe4d13a9773115df911ffe6eaaa | [
"MIT"
] | 3 | 2022-03-11T07:01:58.000Z | 2022-03-17T05:34:41.000Z | import torch
import torch.nn as nn
from torch import optim
from src.losses import LossWrapper
from typing import List
__all__ = ["Controller"]
| 33.413793 | 89 | 0.639319 |
4f4925b1458a2f02b808c03448a38b7a7bd10981 | 20 | py | Python | REDServer/gunicorn.conf.py | illusioneering/RED | 03ea52fabe318ef201c17943d293e95ff846baba | [
"MIT"
] | 1 | 2021-04-13T16:37:31.000Z | 2021-04-13T16:37:31.000Z | REDServer/gunicorn.conf.py | illusioneering/RED | 03ea52fabe318ef201c17943d293e95ff846baba | [
"MIT"
] | null | null | null | REDServer/gunicorn.conf.py | illusioneering/RED | 03ea52fabe318ef201c17943d293e95ff846baba | [
"MIT"
] | 1 | 2021-04-13T21:57:14.000Z | 2021-04-13T21:57:14.000Z | bind = "0.0.0.0:80"
| 10 | 19 | 0.5 |
4f4c269d8d1071e01fd3b6a4ed72884d440242d7 | 791 | py | Python | helper/cLog.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | helper/cLog.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | helper/cLog.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | from helper.cTime import MyDate
# ------------------ [ elog() ] ------------------ #
# Logs the error message into the "error_log.log" file
# States what file, call and exception created the error log
# ------------------ [ alog() ] ------------------ #
# Clears "activity_log.log" and writes when the exce... | 39.55 | 97 | 0.505689 |
4f4c95f74358defd6290b5df4ac0fc0d0ae3c8b4 | 867 | py | Python | src/pandas_profiling_study/report/structure/variables/__init__.py | lucasiscoviciMoon/pandas-profiling-study | 142d3b0f5e3139cdb531819f637a407682fa5684 | [
"MIT"
] | null | null | null | src/pandas_profiling_study/report/structure/variables/__init__.py | lucasiscoviciMoon/pandas-profiling-study | 142d3b0f5e3139cdb531819f637a407682fa5684 | [
"MIT"
] | null | null | null | src/pandas_profiling_study/report/structure/variables/__init__.py | lucasiscoviciMoon/pandas-profiling-study | 142d3b0f5e3139cdb531819f637a407682fa5684 | [
"MIT"
] | 1 | 2020-04-25T15:20:39.000Z | 2020-04-25T15:20:39.000Z | from ....report.structure.variables.render_boolean import render_boolean
from ....report.structure.variables.render_categorical import (
render_categorical,
)
from ....report.structure.variables.render_common import render_common
from ....report.structure.variables.render_complex import render_complex
from ....repo... | 54.1875 | 72 | 0.828143 |
4f4d2cdfa9f38dc5e7ffe58506d96f6ab3e292e3 | 2,324 | py | Python | pytorch/fnetar.py | q1park/tempformer-xl | 05be261ba2221dd7fd7adc39df78941eaa4937c2 | [
"Apache-2.0"
] | 2 | 2021-09-29T11:12:02.000Z | 2021-09-30T08:37:14.000Z | pytorch/fnetar.py | q1park/tempformer-xl | 05be261ba2221dd7fd7adc39df78941eaa4937c2 | [
"Apache-2.0"
] | null | null | null | pytorch/fnetar.py | q1park/tempformer-xl | 05be261ba2221dd7fd7adc39df78941eaa4937c2 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from modules.xlmask import XlMask
from modules.xlmemory import XlMemory
from modules.xlposition import XlPosition
from xllayer import XlLayer
from fnetarlayer import FnetarLayer | 33.681159 | 102 | 0.568417 |
4f4f6e6b80c56c5a27d1f21b5dbb08a35977376c | 362 | py | Python | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | null | null | null | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | 7 | 2021-05-07T23:17:55.000Z | 2022-02-26T14:37:28.000Z | nomad/images/migrations/0003_auto_20181218_2248.py | jss8882/nomad | 914fefe3a9bd47c6a252829f4cf5a30796ea4885 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2018-12-18 13:48
from django.db import migrations
| 19.052632 | 47 | 0.582873 |
4f5001e8746107e356347ba4628bb42d71a639be | 1,124 | py | Python | src/main.py | mmData/Hack4Good | 61d79a4c56872ed5fabb280b8e9f91c4c4f71ece | [
"RSA-MD"
] | null | null | null | src/main.py | mmData/Hack4Good | 61d79a4c56872ed5fabb280b8e9f91c4c4f71ece | [
"RSA-MD"
] | null | null | null | src/main.py | mmData/Hack4Good | 61d79a4c56872ed5fabb280b8e9f91c4c4f71ece | [
"RSA-MD"
] | null | null | null | """
Created on Wed Nov 07 2018
@author: Analytics Club at ETH internal@analytics-club.org
Example structure of the main file
"""
from src.data_extraction import load_data, save_data, merging, xml2df
from src.preprocessing import text_process, anonymization, clean_up, detect_language
def extract_data(program, mode):... | 18.42623 | 84 | 0.636121 |
4f514c4b037c5ec11c6ed2a7b923cc3c118b32f5 | 378 | py | Python | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | null | null | null | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | 2 | 2021-08-09T01:11:59.000Z | 2021-08-09T01:12:49.000Z | dcodex_lectionary/migrations/0031_auto_20201119_2140.py | rbturnbull/dcodex_lectionary | 9a4787eb353d09fef023cd82af8859a7ee041aee | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.11 on 2020-11-19 10:40
from django.db import migrations
| 19.894737 | 57 | 0.600529 |
4f530bbd9256fee9929035d49abd45c5563302e2 | 389 | py | Python | misc/context_processors.py | ilblackdragon/django-misc | 0accd2dc97de656a1c9e275be81e817f78a2eb9d | [
"MIT"
] | 6 | 2015-05-13T14:56:30.000Z | 2019-06-27T13:24:04.000Z | misc/context_processors.py | ilblackdragon/django-misc | 0accd2dc97de656a1c9e275be81e817f78a2eb9d | [
"MIT"
] | null | null | null | misc/context_processors.py | ilblackdragon/django-misc | 0accd2dc97de656a1c9e275be81e817f78a2eb9d | [
"MIT"
] | null | null | null | from django.conf import settings
def useful_constants(request):
"""
This workaround useful if you want use {% if var == None %}, because
{% if not var %} First {% else %} Second {% endif %} will show the result:
var = None => First
var = False => First
var = True => True
"""
retur... | 29.923077 | 78 | 0.59383 |
4f54da94c5e8d003456c1c27b57ad6a8d761118e | 355 | py | Python | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | ocdskingfisher/sources/digiwhist_germany.py | odscjames/lhs-alpha | d882cadfcf3464fd29529cb862567dc311d892e2 | [
"BSD-3-Clause"
] | null | null | null | from ocdskingfisher.sources.digiwhist_base import DigiwhistBaseSource
| 32.272727 | 74 | 0.771831 |
4f55bc18c7fbfc94620218322c5899ca0d5ca398 | 622 | py | Python | catfacts/facts03.py | mikerauer/pyb-class | b7f6202c58df654eb81263d12c2634fa37a27e07 | [
"MIT"
] | null | null | null | catfacts/facts03.py | mikerauer/pyb-class | b7f6202c58df654eb81263d12c2634fa37a27e07 | [
"MIT"
] | null | null | null | catfacts/facts03.py | mikerauer/pyb-class | b7f6202c58df654eb81263d12c2634fa37a27e07 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#import always go at the top of your code
import requests
def main():
'''run time code'''
#create r, which is out requests object
r = requests.get('http://cat-fact.herokuapp.com/facts')
#catfact is our iterable -- that just means it will take on the values found within
#r.json... | 29.619048 | 87 | 0.673633 |
4f55f613cbd24d99e81b7a754fe8f317fb9a58a4 | 2,731 | py | Python | train_isic18.py | brieberg/keras-deeplab-v3-plus | f2c5c8f4c03ceef2395dbf1e55001d293e295ae0 | [
"MIT"
] | null | null | null | train_isic18.py | brieberg/keras-deeplab-v3-plus | f2c5c8f4c03ceef2395dbf1e55001d293e295ae0 | [
"MIT"
] | null | null | null | train_isic18.py | brieberg/keras-deeplab-v3-plus | f2c5c8f4c03ceef2395dbf1e55001d293e295ae0 | [
"MIT"
] | null | null | null | import numpy as np
import os
from utils import *
from keras.preprocessing.image import ImageDataGenerator
from keras.preprocessing import image
from model import Deeplabv3
import keras
from tensorflow.python.keras.layers import *
from tensorflow.python.keras.layers.convolutional import Deconvolution2D
from numpy impor... | 35.934211 | 116 | 0.663493 |
4f5630ab38660bf275aba0281e617c57be524011 | 6,769 | py | Python | 3rd_party/nek5000/short_tests/lib/nekBinRun.py | RonRahaman/nekRS | ffc02bca33ece6ba3330c4ee24565b1c6b5f7242 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T16:16:08.000Z | 2022-01-06T16:16:08.000Z | 3rd_party/nek5000/short_tests/lib/nekBinRun.py | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | null | null | null | 3rd_party/nek5000/short_tests/lib/nekBinRun.py | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 1 | 2019-09-10T20:12:48.000Z | 2019-09-10T20:12:48.000Z | import os
import sys
from warnings import warn
from subprocess import call, check_call, PIPE, STDOUT, Popen, CalledProcessError
from pathlib import Path
| 30.628959 | 121 | 0.534495 |
4f56364fdae732161a7da9eee32d19ccc90073e6 | 909 | py | Python | main/cargo-bootstrap/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/cargo-bootstrap/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | main/cargo-bootstrap/template.py | RoastVeg/cports | 803c7f07af341eb32f791b6ec1f237edb2764bd5 | [
"BSD-2-Clause"
] | null | null | null | pkgname = "cargo-bootstrap"
pkgver = "1.60.0"
pkgrel = 0
# satisfy runtime dependencies
hostmakedepends = ["curl"]
depends = ["!cargo"]
pkgdesc = "Bootstrap binaries of Rust package manager"
maintainer = "q66 <q66@chimera-linux.org>"
license = "MIT OR Apache-2.0"
url = "https://rust-lang.org"
source = f"https://ftp.oct... | 33.666667 | 102 | 0.719472 |
4f5645014936668c159ef7897d13239bafc29c34 | 209 | py | Python | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | 1 | 2021-05-03T15:18:58.000Z | 2021-05-03T15:18:58.000Z | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/core/fb_checker.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
import importlib.util
IS_FB_ENVIRONMENT = is_fb_environment()
| 17.416667 | 57 | 0.727273 |
4f5660c2d05d0f34ee53240885a7bd79ea5cdbf5 | 5,284 | py | Python | src/looper.py | darklab8/darklab_darkbot | 2a6bb2f1a423989f3fce18371eb07f56c9e98bcd | [
"MIT"
] | 1 | 2022-03-17T05:55:56.000Z | 2022-03-17T05:55:56.000Z | src/looper.py | darklab8/darklab_darkbot | 2a6bb2f1a423989f3fce18371eb07f56c9e98bcd | [
"MIT"
] | 1 | 2022-02-23T11:31:43.000Z | 2022-02-23T11:31:43.000Z | src/looper.py | darklab8/darklab_darkbot | 2a6bb2f1a423989f3fce18371eb07f56c9e98bcd | [
"MIT"
] | null | null | null | "module for background tasks in the loop"
import datetime
import discord
from discord.ext import commands, tasks
from threading import Thread
import asyncio
import time
from src.views import View
from src.data_model import DataModel
import src.settings as settings
from src.storage import Storage
import logging
from .... | 37.475177 | 139 | 0.601438 |
4f57c9a375f9390d8eda45711f1d8f3c5ab13554 | 349 | py | Python | Python/FromUniversity/sqlite3/select.py | programmer-666/Codes | fdffe38a789ba3636dff7ceaa9f1b4113ae17c2b | [
"MIT"
] | null | null | null | Python/FromUniversity/sqlite3/select.py | programmer-666/Codes | fdffe38a789ba3636dff7ceaa9f1b4113ae17c2b | [
"MIT"
] | null | null | null | Python/FromUniversity/sqlite3/select.py | programmer-666/Codes | fdffe38a789ba3636dff7ceaa9f1b4113ae17c2b | [
"MIT"
] | 1 | 2021-09-16T14:24:29.000Z | 2021-09-16T14:24:29.000Z | import sqlite3 as slt
""" fetchone - tek tek alr. fetchmany - belirtilen say kadar alr. """
db = slt.connect("user.db")
print(db.cursor().execute("SELECT * FROM USERPASSWORDS").fetchall())
#print(db.cursor().execute("SELECT * FROM USERNAMES").fetchmany(2))
#print(db.cursor().execute("SELECT * FROM USERNAMES").fetchone(... | 43.625 | 72 | 0.710602 |
4f5a68bc57b03b9960b5f5024d7514c44569ccf0 | 18,957 | py | Python | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/joinprune/joinprune.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/joinprune/joinprune.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pimsm/router/interface/joinprune/joinprune.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | 49.238961 | 444 | 0.752862 |
4f5ab25c387c3616ec8ab3954a5dcc3b31c1386c | 2,022 | py | Python | tools/terminal.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 21 | 2017-10-08T23:19:47.000Z | 2020-01-16T20:02:08.000Z | tools/terminal.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 6 | 2020-06-03T05:30:52.000Z | 2022-01-13T00:44:26.000Z | tools/terminal.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 9 | 2017-10-09T22:58:31.000Z | 2021-11-20T15:20:18.000Z | # -*- coding: utf-8 -*-
import os
import sys
import time
import random
from subprocess import Popen, PIPE
from django.utils import termcolors
TYPING_SPEED = 50
| 27.69863 | 91 | 0.610287 |
4f5c130fd9494ec38edf458c7749a89304b4df07 | 8,012 | py | Python | tests/unit/local/lambdafn/test_config.py | torresxb1/aws-sam-cli | d307f2eb6e1a91a476a5e2ca6070f974b0c913f1 | [
"BSD-2-Clause",
"Apache-2.0"
] | 859 | 2020-08-25T03:53:17.000Z | 2022-03-31T12:33:07.000Z | tests/unit/local/lambdafn/test_config.py | torresxb1/aws-sam-cli | d307f2eb6e1a91a476a5e2ca6070f974b0c913f1 | [
"BSD-2-Clause",
"Apache-2.0"
] | 1,369 | 2020-08-25T10:57:03.000Z | 2022-03-31T23:00:25.000Z | tests/unit/local/lambdafn/test_config.py | torresxb1/aws-sam-cli | d307f2eb6e1a91a476a5e2ca6070f974b0c913f1 | [
"BSD-2-Clause",
"Apache-2.0"
] | 275 | 2020-08-25T19:33:50.000Z | 2022-03-26T08:32:52.000Z | from unittest import TestCase
from unittest.mock import Mock
from parameterized import parameterized
from samcli.lib.utils.packagetype import ZIP
from samcli.local.lambdafn.config import FunctionConfig
from samcli.commands.local.cli_common.user_exceptions import InvalidSamTemplateException
| 31.920319 | 88 | 0.594109 |
4f5c288f9e0f093a2231fc27d8381b1980cd1226 | 566 | py | Python | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | null | null | null | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | null | null | null | pronotepy/ent/test_ent.py | Bapt5/pronotepy | 8787d3f6b3d3062e598c74a40df4a3ebf759201b | [
"MIT"
] | 3 | 2022-03-11T20:51:23.000Z | 2022-03-31T20:03:13.000Z | import unittest
from inspect import getmembers, isfunction
from functools import partial
import pronotepy
from pronotepy import ent
if __name__ == "__main__":
unittest.main()
| 21.769231 | 87 | 0.680212 |
4f5cb8549eb68a8c6eb2d4195211dbccec0f0258 | 214 | py | Python | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 4,603 | 2015-07-16T20:11:28.000Z | 2022-03-21T23:51:47.000Z | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 90 | 2015-07-18T11:51:33.000Z | 2021-05-10T02:45:58.000Z | examples/lolcode_rockstar.py | hoojaoh/rockstar | 2cb911be76fc93692c180d629f0b282d672ea8f7 | [
"MIT"
] | 436 | 2015-07-16T22:10:50.000Z | 2022-02-15T04:53:19.000Z | from rockstar import RockStar
lolcode_code = """HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE"""
rock_it_bro = RockStar(days=400, file_name='helloworld.lol', code=lolcode_code)
rock_it_bro.make_me_a_rockstar()
| 21.4 | 79 | 0.780374 |
4f5f6798bc7cf3af00213c930680cdbb57013598 | 2,046 | py | Python | src/tests/integration/test_profile_admin_view.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 17 | 2019-05-11T22:15:34.000Z | 2022-03-26T22:45:33.000Z | src/tests/integration/test_profile_admin_view.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 390 | 2019-05-23T10:48:57.000Z | 2021-12-17T21:01:43.000Z | src/tests/integration/test_profile_admin_view.py | pradipta/back-end | 05895b051afc4c8e0cb17db708063d80102e9de5 | [
"MIT"
] | 40 | 2019-05-21T14:41:57.000Z | 2021-01-30T13:39:38.000Z | import humps
import pytest
from django import test
from django.contrib.auth.models import User
from django.urls import reverse
| 29.652174 | 86 | 0.711144 |
4f5fad3d63a59d5dec2ec21bc023ae1c47bc19d2 | 371 | py | Python | Scripts/console/script.py | sporiyano/graphiti | 56d85e5262b76dc6ce4f213a4d80486e015de1b7 | [
"BSD-2-Clause"
] | 93 | 2015-01-01T17:49:53.000Z | 2022-02-24T21:25:15.000Z | Scripts/console/script.py | sporiyano/graphiti | 56d85e5262b76dc6ce4f213a4d80486e015de1b7 | [
"BSD-2-Clause"
] | 13 | 2015-03-30T18:01:05.000Z | 2018-05-28T03:47:33.000Z | Scripts/console/script.py | ThibaultReuille/graphiti | 56d85e5262b76dc6ce4f213a4d80486e015de1b7 | [
"BSD-2-Clause"
] | 31 | 2015-01-14T12:16:13.000Z | 2022-02-24T21:25:16.000Z | from Scripts import graphiti as og
from Scripts import std
from Scripts import nx
import sys
import argparse
import os.path
import glob
import fnmatch
import itertools
import random
import math
import json | 14.84 | 58 | 0.770889 |
4f5ff30ca61fd37831eb16f637a4b5ec27844a14 | 6,857 | py | Python | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | 3 | 2015-09-07T00:16:16.000Z | 2019-01-11T20:27:56.000Z | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | fca/algorithms/exploration/examples/bi_unars.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import copy
import itertools
import fca
from fca.algorithms.exploration.exploration import (AttributeExploration,
ExplorationDB)
from fca import Implication
# from fca.algorithms.closure_operators import simple_closure as clos... | 31.027149 | 100 | 0.530407 |
4f61cbde4e5bed88e3b050cf3c9d906546413d2f | 3,267 | py | Python | test/Uds-Config-Tool/Profiling/test_profilingTestsOfDecodeMethods.py | J3rome/python-uds | fe0f7a9505cb7b87f693ab736d713d7871dff288 | [
"MIT"
] | 62 | 2019-02-13T20:26:12.000Z | 2022-02-23T19:47:34.000Z | test/Uds-Config-Tool/Profiling/test_profilingTestsOfDecodeMethods.py | J3rome/python-uds | fe0f7a9505cb7b87f693ab736d713d7871dff288 | [
"MIT"
] | 58 | 2018-07-09T10:58:33.000Z | 2022-01-31T20:27:13.000Z | test/Uds-Config-Tool/Profiling/test_profilingTestsOfDecodeMethods.py | J3rome/python-uds | fe0f7a9505cb7b87f693ab736d713d7871dff288 | [
"MIT"
] | 33 | 2019-03-25T07:30:34.000Z | 2022-03-08T12:55:35.000Z | #!/usr/bin/env python
__author__ = "Richard Clubb"
__copyrights__ = "Copyright 2018, the python-uds project"
__credits__ = ["Richard Clubb"]
__license__ = "MIT"
__maintainer__ = "Richard Clubb"
__email__ = "richard.clubb@embeduk.com"
__status__ = "Development"
import cProfile
import sys
from functools import reduce... | 26.560976 | 86 | 0.582798 |
4f62f46e41b738f931ac8f3b73de56c9e3e4c4fe | 7,474 | py | Python | server/app/api/v2.py | chanzuckerberg/single-cell-explorer | 51402e8befeca61311e6bd7a4127fa24b9f6e7be | [
"MIT"
] | 2 | 2021-08-30T16:32:16.000Z | 2022-03-25T22:36:23.000Z | server/app/api/v2.py | chanzuckerberg/single-cell-explorer | 51402e8befeca61311e6bd7a4127fa24b9f6e7be | [
"MIT"
] | 194 | 2021-08-18T23:52:44.000Z | 2022-03-30T19:40:41.000Z | server/app/api/v2.py | chanzuckerberg/single-cell-explorer | 51402e8befeca61311e6bd7a4127fa24b9f6e7be | [
"MIT"
] | 1 | 2022-01-21T09:20:15.000Z | 2022-01-21T09:20:15.000Z | import logging
from functools import wraps
from flask import (
current_app,
Blueprint,
request,
send_from_directory,
redirect,
)
from flask_restful import Api, Resource
import server.common.rest as common_rest
from server.app.api import ONE_WEEK, cache_control
from server.app.api.util import get_d... | 36.10628 | 119 | 0.713139 |
4f63016bb9522a154445cec3ae6be11a7a1c7cfa | 8,649 | py | Python | marathon_acme/tests/test_cli.py | praekeltfoundation/marathon-acme | b1b71e3dde0ba30e575089280658bd32890e3325 | [
"MIT"
] | 8 | 2016-12-15T14:49:17.000Z | 2019-03-11T19:52:22.000Z | marathon_acme/tests/test_cli.py | praekeltfoundation/marathon-acme | b1b71e3dde0ba30e575089280658bd32890e3325 | [
"MIT"
] | 129 | 2016-05-27T11:41:14.000Z | 2018-10-19T15:02:06.000Z | marathon_acme/tests/test_cli.py | praekeltfoundation/marathon-acme | b1b71e3dde0ba30e575089280658bd32890e3325 | [
"MIT"
] | 3 | 2016-12-15T19:47:18.000Z | 2017-04-10T20:41:46.000Z | import os
from fixtures import TempDir
from testtools import ExpectedException, TestCase, run_test_with
from testtools.assertions import assert_that
from testtools.matchers import (
Contains, DirExists, Equals, FileContains, FileExists, MatchesStructure)
from testtools.twistedsupport import (
AsynchronousDefe... | 36.961538 | 79 | 0.623772 |
4f639ad546becd053f95f292acd5d75f4f3f1148 | 1,270 | py | Python | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Lexical_Semantics/Repositories/Word2Vec_and_Fasttext/word2vec-and-fasttext.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | import numpy as np
import os
import re
import urllib.request
import zipfile
import lxml.etree
from gensim.models import FastText
from random import shuffle
#download the data
urllib.request.urlretrieve(
"https://wit3.fbk.eu/get.php?path=XML_releases/xml/ted_en-20160408.zip&filename=ted_en-20160408.zip", filename=... | 32.564103 | 137 | 0.685827 |
4f63a170f475f21430256af0098ee8caf3ec6b78 | 2,453 | py | Python | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | null | null | null | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | 2 | 2018-04-23T16:37:19.000Z | 2018-07-11T10:51:19.000Z | Source Code/Python API/multivent_client.py | D-TACQ/acq400_lv | 684e06a294ceb865511a7568e5038b209bdc3374 | [
"MIT"
] | 3 | 2018-04-20T11:53:29.000Z | 2018-04-25T15:25:55.000Z | #!/usr/local/bin/python
# UUT is running continuous pre/post snapshots
# subscribe to the snapshots and save all the data.
import threading
import epics
import argparse
import time
import datetime
import os
NCHAN = 16
# WF record, raw binary (shorts)
WFNAME = ":1:AI:WF:{:02d}"
# alt WF record, VOLTS. Kindof harder t... | 31.448718 | 105 | 0.593151 |
4f646c6d02363e90aa2470f4984748ec24fa0ff2 | 749 | py | Python | converter.py | almehady/Convert-Bijoy-to-Unicode-File | 0d3c5032c157d52c8153fbcc760e9644a5df8b5d | [
"MIT"
] | 1 | 2021-07-12T07:47:20.000Z | 2021-07-12T07:47:20.000Z | converter.py | almehady/Convert-Bijoy-to-Unicode-File | 0d3c5032c157d52c8153fbcc760e9644a5df8b5d | [
"MIT"
] | null | null | null | converter.py | almehady/Convert-Bijoy-to-Unicode-File | 0d3c5032c157d52c8153fbcc760e9644a5df8b5d | [
"MIT"
] | null | null | null | from bijoy2unicode import converter
from langdetect import detect
import unicodedata
read_file = open("bijoy.txt", "r")
write_file = open('unicode.txt', 'w')
# read_file = ["16. m~h`xNj "]
for line in read_file:
if not isLineEmpty(line):
nData = unicodedata.normalize('NFKD', line).encode('UTF-8', 'ignore')... | 25.827586 | 77 | 0.643525 |
4f64e638900b111178c25bd88e02cdd0ab944ded | 5,904 | py | Python | django_client_framework/models/abstract/serializable.py | kaleido-public/django-client-framework | cd755261e001a0d446a85407550648563511f61b | [
"MIT"
] | null | null | null | django_client_framework/models/abstract/serializable.py | kaleido-public/django-client-framework | cd755261e001a0d446a85407550648563511f61b | [
"MIT"
] | 3 | 2021-06-28T20:36:39.000Z | 2021-11-11T02:12:35.000Z | django_client_framework/models/abstract/serializable.py | kaleido-public/django-client-framework | cd755261e001a0d446a85407550648563511f61b | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import abstractmethod
from logging import getLogger
from typing import (
TYPE_CHECKING,
Any,
Dict,
Generic,
List,
Optional,
Type,
TypeVar,
cast,
)
from django.conf import settings
from django.core.cache import cache
from django.db import ... | 27.981043 | 104 | 0.568936 |
4f662368d20be96e521c2f61005ae8b7c981fe81 | 1,592 | py | Python | tests/test_util.py | KikeM/watchpoints | d101035efef45bab7670e1a05a141c74c34c1f9e | [
"Apache-2.0"
] | null | null | null | tests/test_util.py | KikeM/watchpoints | d101035efef45bab7670e1a05a141c74c34c1f9e | [
"Apache-2.0"
] | null | null | null | tests/test_util.py | KikeM/watchpoints | d101035efef45bab7670e1a05a141c74c34c1f9e | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/gaogaotiantian/watchpoints/blob/master/NOTICE.txt
import unittest
import inspect
from watchpoints.util import getline, getargnodes
| 30.037736 | 83 | 0.502513 |
4f6763749fb354d4c4d0e7e61af9289c8cd231d4 | 1,762 | py | Python | extraction/vahadane_stain_extractor.py | sebastianffx/stainlib | 6d79f165fc69e7599d14310c6f4d26e3d0d01543 | [
"MIT"
] | 3 | 2021-09-15T00:58:11.000Z | 2022-03-09T21:19:41.000Z | extraction/vahadane_stain_extractor.py | sebastianffx/stainlib | 6d79f165fc69e7599d14310c6f4d26e3d0d01543 | [
"MIT"
] | 1 | 2021-11-30T16:52:38.000Z | 2021-11-30T16:52:38.000Z | extraction/vahadane_stain_extractor.py | sebastianffx/stainlib | 6d79f165fc69e7599d14310c6f4d26e3d0d01543 | [
"MIT"
] | 2 | 2020-12-29T10:00:52.000Z | 2021-11-30T16:53:19.000Z | """
Stain normalization inspired by method of:
A. Vahadane et al., Structure-Preserving Color Normalization and Sparse Stain Separation for Histological Images, IEEE Transactions on Medical Imaging, vol. 35, no. 8, pp. 19621971, Aug. 2016.
Uses the spams package:
http://spams-devel.gforge.inria.fr/index.html
Use wi... | 40.045455 | 195 | 0.694665 |
4f69a0fe6181c30f0c8d3af0a05441d93724aee1 | 42 | py | Python | GithubApiDemo/__init__.py | eric-nord/githubApiDemo | ca9f05d60f099d6a35765f31cfdd1c6ad4618fde | [
"MIT"
] | null | null | null | GithubApiDemo/__init__.py | eric-nord/githubApiDemo | ca9f05d60f099d6a35765f31cfdd1c6ad4618fde | [
"MIT"
] | null | null | null | GithubApiDemo/__init__.py | eric-nord/githubApiDemo | ca9f05d60f099d6a35765f31cfdd1c6ad4618fde | [
"MIT"
] | null | null | null | """ Explicit is better than implicit """
| 14 | 40 | 0.666667 |
4f69d7b4a84ab28bb119ffd37322852c103af40b | 12,365 | py | Python | src/optim.py | CSI-ADS/OptimControl | 40c551348058335a27d022bb1938362b3ab68158 | [
"Apache-2.0"
] | 1 | 2022-02-28T16:22:26.000Z | 2022-02-28T16:22:26.000Z | src/optim.py | CSI-ADS/OptimControl | 40c551348058335a27d022bb1938362b3ab68158 | [
"Apache-2.0"
] | null | null | null | src/optim.py | CSI-ADS/OptimControl | 40c551348058335a27d022bb1938362b3ab68158 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
import torch
import numpy as np
from tqdm import tqdm, trange
from .utils import *
from .loss import compute_control_from_loss
import time
| 44.638989 | 152 | 0.591751 |
4f69fd9cc8113e6ef8df3f55cd4920361ce2a21d | 1,578 | py | Python | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | 4 | 2019-09-07T19:31:27.000Z | 2020-06-13T21:41:45.000Z | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | 21 | 2019-09-09T00:55:40.000Z | 2021-08-09T20:50:56.000Z | herramientas/zapador/zapador/zapadorapp.py | ZR-TECDI/Framework_ZR | 0fa994d4b3cbf19affab84695705d022adae872c | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.gridlayout import GridLayout
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
import zapador.constantes as cons
from zapador.metodos import pre_run
from zapador.clases import *
from kivy.factory import Factory
ubicacion = con... | 27.684211 | 72 | 0.707858 |
4f6a761a21c5baeb65fb9380c05c0978f29b2265 | 327 | py | Python | src/search_items/models.py | janakparajuli/Survey_Office | 1d5eb673eef67f923bf4c2b24156bea76f5fc32d | [
"Apache-2.0"
] | null | null | null | src/search_items/models.py | janakparajuli/Survey_Office | 1d5eb673eef67f923bf4c2b24156bea76f5fc32d | [
"Apache-2.0"
] | null | null | null | src/search_items/models.py | janakparajuli/Survey_Office | 1d5eb673eef67f923bf4c2b24156bea76f5fc32d | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.conf import settings
from django.db import models
# Create your models here.
| 19.235294 | 40 | 0.776758 |
4f6aa31c1d76802df396a9fb26baa8334a0f406b | 656 | py | Python | test/unit/agent/common/util/math.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 308 | 2015-11-17T13:15:33.000Z | 2022-03-24T12:03:40.000Z | test/unit/agent/common/util/math.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 211 | 2015-11-16T15:27:41.000Z | 2022-03-28T16:20:15.000Z | test/unit/agent/common/util/math.py | dp92987/nginx-amplify-agent | 1b2eed6eab52a82f35974928d75044451b4bedaf | [
"BSD-2-Clause"
] | 80 | 2015-11-16T18:20:30.000Z | 2022-03-02T12:47:56.000Z | # -*- coding: utf-8 -*-
from amplify.agent.common.util.math import median
from unittest import TestCase
from hamcrest import *
__author__ = "Raymond Lau"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ = "Raymond Lau"
__email__ = "raymond.lau@nginx.com"
| 26.24 | 65 | 0.641768 |
4f6ad6255e2873d522c35098c7488d053af1ac51 | 12,245 | py | Python | test_code/deep_vis/deep_vis_keras.py | mikaelbj/training-visualizer | e6b515672e77331a1d0eeb8469655004f13b0d42 | [
"MIT"
] | 1 | 2017-06-28T20:17:50.000Z | 2017-06-28T20:17:50.000Z | test_code/deep_vis/deep_vis_keras.py | mikaelbj/training-visualizer | e6b515672e77331a1d0eeb8469655004f13b0d42 | [
"MIT"
] | null | null | null | test_code/deep_vis/deep_vis_keras.py | mikaelbj/training-visualizer | e6b515672e77331a1d0eeb8469655004f13b0d42 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.misc import toimage
from scipy.ndimage.filters import gaussian_filter
from os import mkdir
from os.path import dirname, join
from time import time
from keras.models import Model
from keras.layers import Dense
from keras import backend as K
from keras.applications.vgg16 import VGG16
# de... | 35.699708 | 132 | 0.748387 |
4f6b27f239470833a1e11bf6ba509f896f48248b | 10,131 | py | Python | neatsociety/population.py | machinebrains/neat-society | 395c092083aa62ac8ad2a93a9afde659ecbd85fd | [
"BSD-3-Clause"
] | 2 | 2018-03-03T16:30:09.000Z | 2022-01-02T17:02:22.000Z | neatsociety/population.py | machinebrains/neat-society | 395c092083aa62ac8ad2a93a9afde659ecbd85fd | [
"BSD-3-Clause"
] | null | null | null | neatsociety/population.py | machinebrains/neat-society | 395c092083aa62ac8ad2a93a9afde659ecbd85fd | [
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import gzip
import pickle
import random
import time
import os
from neatsociety.config import Config
from neatsociety.indexer import Indexer, InnovationIndexer
from neatsociety.reporting import ReporterSet, StatisticsReporter, StdOutReporter
from neatsociety.species import Species... | 41.35102 | 143 | 0.640509 |
4f6cf46631873c3214fc65b73ffdf48157b6c8cb | 11,450 | py | Python | prediction/main_sementics.py | Anukriti12/OptumStratethon2.0 | b66dba07735bfa47d99e9907eb8bccdd3b77075c | [
"MIT"
] | 1 | 2021-03-04T05:49:01.000Z | 2021-03-04T05:49:01.000Z | prediction/main_sementics.py | ankitpriyarup/optum_carewheel | f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1 | [
"Apache-2.0"
] | null | null | null | prediction/main_sementics.py | ankitpriyarup/optum_carewheel | f6c66f293b2980501e8bca8ab7e26ebd3b26cdd1 | [
"Apache-2.0"
] | 1 | 2020-09-13T11:50:49.000Z | 2020-09-13T11:50:49.000Z | import os.path
import sys
import numpy as np
import pandas as pd
import sklearn
import argparse
from sklearn.ensemble import RandomForestClassifier
from sklearn.svm import SVC
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification... | 47.510373 | 151 | 0.62655 |
4f6dcaec2d498a6e7a2ab48120ce085ef871eca3 | 1,219 | py | Python | PLC/PRC/TPCs/tpc8/construct.py | luis1ribeiro/MEI---Majors-Degree | c3b6660703e07eea0506eac29e7eb9af2264fc7a | [
"MIT"
] | 1 | 2021-07-19T22:09:47.000Z | 2021-07-19T22:09:47.000Z | PLC/PRC/TPCs/tpc8/construct.py | luis1ribeiro/MEI-MajorsDegree | c3b6660703e07eea0506eac29e7eb9af2264fc7a | [
"MIT"
] | null | null | null | PLC/PRC/TPCs/tpc8/construct.py | luis1ribeiro/MEI-MajorsDegree | c3b6660703e07eea0506eac29e7eb9af2264fc7a | [
"MIT"
] | null | null | null | import json, urllib.parse
import requests as reqs
prefixes = '''
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX noInferences: <http://www.ontotext.com/explicit>
PR... | 33.861111 | 77 | 0.591468 |
4f6e2090924e84b3340baf9b6caee34a15b01328 | 4,518 | py | Python | src/gaze_estimation.py | gsamueil/OpenVino-Computer-Pointer-Controller | bb8c97a5ab4aac334b60f92b747cd3496c399841 | [
"MIT"
] | 1 | 2020-06-20T13:23:47.000Z | 2020-06-20T13:23:47.000Z | src/gaze_estimation.py | gsamueil/OpenVino-Computer-Pointer-Controller | bb8c97a5ab4aac334b60f92b747cd3496c399841 | [
"MIT"
] | null | null | null | src/gaze_estimation.py | gsamueil/OpenVino-Computer-Pointer-Controller | bb8c97a5ab4aac334b60f92b747cd3496c399841 | [
"MIT"
] | 4 | 2020-07-01T16:11:43.000Z | 2020-08-01T23:15:36.000Z | '''
This is a sample class for a model. You may choose to use it as-is or make any changes to it.
This has been provided just to give you an idea of how to structure your model class.
'''
import cv2
import numpy as np
import logging as log
from openvino.inference_engine import IENetwork, IECore
import warnings
import ... | 43.442308 | 114 | 0.679062 |
4f701be6860630646ec1eab6b85fb174acb20f92 | 813 | py | Python | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | 2 | 2022-03-16T04:09:53.000Z | 2022-03-16T09:38:52.000Z | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | null | null | null | api/routers/fetch.py | ThisIsBrainDamage/OSC-API | af361ebe72cd282d1a3e69924dde1a215816f0bd | [
"MIT"
] | null | null | null | # Standard library imports
import os
# Third party imports
from fastapi import Depends, APIRouter, HTTPException
from dotenv import load_dotenv
# Local imports
from ..auth.classes import User
from ..auth.authenticate import get_current_active_user
from ..data import fetch_all, fetch_item
load_dotenv()
fetch = APIR... | 22.583333 | 89 | 0.719557 |
4f70b4a59c8c55fded3663f5ef0848de16c340f1 | 2,990 | py | Python | driver/helper/SYNHelper_Kumar.py | qgking/FRGAN | b6a250c46981707c43c3889f80d8cc3ec31edaaf | [
"MIT"
] | 2 | 2021-08-10T02:38:23.000Z | 2021-08-10T03:04:22.000Z | driver/helper/SYNHelper_Kumar.py | qgking/FRGAN | b6a250c46981707c43c3889f80d8cc3ec31edaaf | [
"MIT"
] | 1 | 2022-02-21T15:57:03.000Z | 2022-02-21T15:57:03.000Z | driver/helper/SYNHelper_Kumar.py | qgking/FRGAN | b6a250c46981707c43c3889f80d8cc3ec31edaaf | [
"MIT"
] | 2 | 2021-11-07T13:25:51.000Z | 2022-01-18T07:09:30.000Z | from tumor_data.SYNDataLoader import *
from tensorboardX import SummaryWriter
from torchsummaryX import summary
from driver.helper.base_syn_helper import BaseTrainHelper
| 36.024096 | 101 | 0.593311 |
4f7163d43490c92cd3148ad70a2d3f997e7a8d13 | 1,769 | py | Python | models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 65 | 2019-10-16T13:31:06.000Z | 2022-03-14T11:52:58.000Z | models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 283 | 2019-09-23T15:48:34.000Z | 2022-03-31T21:44:41.000Z | models/wrf_hydro/ensemble_config_files/ens_setup_croton_gridded.py | hkershaw-brown/feature-preprocess | fe2bd77b38c63fa0566c83ebc4d2fac1623aef66 | [
"Apache-2.0"
] | 67 | 2019-09-19T22:13:24.000Z | 2022-03-20T15:58:26.000Z |
# m=wrf_hydro_ens_sim.members[0]
# dir(m)
# Change restart frequency to hourly in hydro namelist
att_tuple = ('base_hydro_namelist', 'hydro_nlist', 'rst_dt')
# The values can be a scalar (uniform across the ensemble) or a list of length N (ensemble size).
values = 60
wrf_hydro_ens_sim.set_member_diffs(att_tuple, valu... | 45.358974 | 109 | 0.79706 |
4f71b59f7fa424504c4850aad52c0fb59243156e | 1,475 | py | Python | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | 1 | 2020-07-11T10:28:33.000Z | 2020-07-11T10:28:33.000Z | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | null | null | null | graphium/graph_management/model/access.py | graphium-project/graphium-qgis-plugin | 480e90dc874522b4d4d36b0d7b909ef3144da8b2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/***************************************************************************
QGIS plugin 'Graphium'
/***************************************************************************
*
* Copyright 2020 Simon Grchenig @ Salzburg Research
* eMail graphium@salzburgresearch.at
*
* Licensed ... | 27.314815 | 77 | 0.568814 |
4f72fe87f0f555011e0abddaa2ff010aaadedc6e | 2,591 | py | Python | aea/cli/utils/formatting.py | bryanchriswhite/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 126 | 2019-09-07T09:32:44.000Z | 2022-03-29T14:28:41.000Z | aea/cli/utils/formatting.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 1,814 | 2019-08-24T10:08:07.000Z | 2022-03-31T14:28:36.000Z | aea/cli/utils/formatting.py | salman6049/agents-aea | d3f177a963eb855d9528555167255bf2b478f4ba | [
"Apache-2.0"
] | 46 | 2019-09-03T22:13:58.000Z | 2022-03-22T01:25:16.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2020 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the ... | 33.649351 | 85 | 0.592821 |
4f746f8a5d2093a7b2129bda73802e19923f5043 | 851 | py | Python | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | null | null | null | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | 2 | 2019-12-16T11:26:21.000Z | 2021-03-18T13:06:31.000Z | ocean_utils/agreements/utils.py | oceanprotocol/common-utils-py | f577f4762841496584e114baaec0d476e73c700e | [
"Apache-2.0"
] | null | null | null | """Agreements module."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
from ocean_utils.agreements.access_sla_template import ACCESS_SLA_TEMPLATE
from ocean_utils.agreements.compute_sla_template import COMPUTE_SLA_TEMPLATE
from ocean_utils.agreements.service_types import ServiceTy... | 35.458333 | 86 | 0.780259 |
4f74e6b364f85cdca76783ea050b55c4b0e2bf27 | 1,750 | py | Python | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | mobilenetv1.py | Monster880/pytorch_py | 9c5ac5974f48edb5ea3d897a1100a63d488c61d9 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F | 30.701754 | 123 | 0.566286 |