seed
stringlengths
1
14k
source
stringclasses
2 values
// Register Neutrino Bonds $this->registerNeutrinoItems(); } /** * Register the publishable files. */ private function registerPublishableResources() { $publishablePath = dirname(__DIR__).'/publishable'; $publishable = [ 'config' => [ "{$publishablePath}/config/packagename.php" => config_path('packagename.php'),
ise-uiuc/Magicoder-OSS-Instruct-75K
for each in $(ls *.php | grep -v nolock); do touch locks/$each.lock
ise-uiuc/Magicoder-OSS-Instruct-75K
public class UseXML { static { ParseXML p = null; javax.xml.validation.Schema schema = null; org.w3c.dom.Node root = p.parse(null, schema); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
* be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
ise-uiuc/Magicoder-OSS-Instruct-75K
#[test] fn ninety_nine() { test_roman(99, "XCIX"); } #[test] fn one_hundred() { test_roman(100, "C"); } #[test]
ise-uiuc/Magicoder-OSS-Instruct-75K
mkdir x86_64 mv lib x86_64/lib cp acado/build/lib/* x86_64/lib/ rm -rf acado rm -r share
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Creates a rectangular extrusion using the ExtrudeHollowRectangle parametric component and checks that the volume is correct"""
ise-uiuc/Magicoder-OSS-Instruct-75K
keyword_plural = 'flavors' _columns = ['ID', 'Name', 'VCPU_count', 'VMEM_size', 'Disk_size',
ise-uiuc/Magicoder-OSS-Instruct-75K
fn vfmsub132pd_19() { run_test(&Instruction { mnemonic: Mnemonic::VFMSUB132PD, operand1: Some(Direct(YMM0)), operand2: Some(Direct(YMM11)), operand3: Some(IndirectScaledIndexed(RDX, RCX, Two, Some(OperandSize::Ymmword), None)), operand4: None, lock: false, rounding_mode: None, merge_mode: Some(MergeMode::Zero), sae: false, mask: Some(MaskReg::K2), broadcast: None }, &[98, 242, 165, 170, 154, 4, 74], OperandSize::Qword) } #[test] fn vfmsub132pd_20() { run_test(&Instruction { mnemonic: Mnemonic::VFMSUB132PD, operand1: Some(Direct(YMM23)), operand2: Some(Direct(YMM20)), operand3: Some(IndirectScaledDisplaced(RCX, Two, 1024056463, Some(OperandSize::Qword), None)), operand4: None, lock: false, rounding_mode: None, merge_mode: Some(MergeMode::Zero), sae: false, mask: Some(MaskReg::K7), broadcast: Some(BroadcastMode::Broadcast1To4) }, &[98, 226, 221, 183, 154, 60, 77, 143, 220, 9, 61], OperandSize::Qword) } #[test]
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env bash TOKEN=${1?Error: no name given}
ise-uiuc/Magicoder-OSS-Instruct-75K
impl Default for Tags { fn default() -> Self { Self::new()
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self,Note:str=""): pass class NothingFoundError(Exception): def __init__(self,Note:str=""):
ise-uiuc/Magicoder-OSS-Instruct-75K
@dataclass class GatewayConfig: """This file is to make maintaining the library its gateway configuration easier. """ socket_base_url: str = "wss://gateway.discord.gg/" version: int = 9
ise-uiuc/Magicoder-OSS-Instruct-75K
# string[2] = 'A' not change it # string.replace('a','A') we can replace it but it cannot change the our string variables. new_string = string.replace('a','A') print(new_string)
ise-uiuc/Magicoder-OSS-Instruct-75K
} return num < 0 ? -1 * (int)rev : (int)rev; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.routes(only=[Get('/test/@id', ControllerTest.param)]) self.assertTrue(self.get('/test/1').contains('1')) def test_custom_route_compiler_returns_param(self): self.routes(only=[Get('/test/@id:signed', ControllerTest.param)]) self.assertTrue(self.get('/test/1').contains('1')) def test_route_subdomain_ignores_routes(self): self.routes(only=[Get('/view', ControllerTest.test)]) with self.assertRaises(RouteNotFoundException): self.withSubdomains().get('/view', wsgi={ 'HTTP_HOST': 'subb.domain.com' }).assertIsStatus(404)
ise-uiuc/Magicoder-OSS-Instruct-75K
MyCSVFile2::getCurrentLine 5=>3|c|'e'
ise-uiuc/Magicoder-OSS-Instruct-75K
}) => {
ise-uiuc/Magicoder-OSS-Instruct-75K
while (std::chrono::system_clock::now() - time_point < std::chrono::seconds(2)) { processor.cycle(); ++ccount; } std::cout << ccount << std::endl; }
ise-uiuc/Magicoder-OSS-Instruct-75K
Rlist = [(R1, R2, R3) for R1 in range(-l1 // 2 + 1, l1 // 2 + 1) for R2 in range(-l2 // 2 + 1, l2 // 2 + 1) for R3 in range(-l3 // 2 + 1, l3 // 2 + 1)] return np.array(Rlist)
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>Basketee.API.ServicesLib/Services/Helpers/DriverHelper.cs using Basketee.API.DTOs.Driver; using Basketee.API.DTOs.Orders; using Basketee.API.Models;
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>tokibito/note-app-django-vue-javascript from rest_framework.routers import DefaultRouter from .views import PageViewSet router = DefaultRouter() router.register(r'page', PageViewSet, base_name='page') urlpatterns = router.urls
ise-uiuc/Magicoder-OSS-Instruct-75K
ano = int(input('Digite o ano: ')) if (ano%4) == 0: print ('Ele é bissexto') else: print ('Ele não é bissexto')
ise-uiuc/Magicoder-OSS-Instruct-75K
continent = i
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace={"employee": pd.DataFrame(columns=["emp_id", "name", "dep_id"])}) emp, dep = self._md_fixture()
ise-uiuc/Magicoder-OSS-Instruct-75K
def ema(data_in, smoothing=0): data_out = np.zeros_like(data_in) curr = np.nan
ise-uiuc/Magicoder-OSS-Instruct-75K
<h3>Import Status</h3> The status of the import jobs for the different managements is displayed here. <ul> <li>Last incomplete: The start time of an import actually running. Then a button may be displayed to Rollback the import.</li> <li>Errors: Is only filled with an error message, if the success flag is false</li> <li>Refresh: Updates the displayed data.</li> <li>Details: For each management a detailed view on Start/Stop times and errors of the first, last successful and last import.</li> </ul> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [ migrations.AlterField( model_name='service', name='visibility', field=models.CharField(choices=[('private', 'Private'), ('public', 'Public')], default='private', max_length=10),
ise-uiuc/Magicoder-OSS-Instruct-75K
class ImdFileParser: @staticmethod def read_imd_file(filepath): version = filepath.split("/")[-1].split('\\')[-1].replace(".imd", "") obj = { "version": version, "song_file": version.split("_")[0].split("-")[0].split(".")[0]+".mp3", "song_name": version.split("_")[0].split("-")[0].split(".")[0] } try: f = open(filepath, 'rb')
ise-uiuc/Magicoder-OSS-Instruct-75K
if (this.socket.existState(constant.stateNamespace(this.name))) { return this.socket.setState(constant.stateNamespace(this.name), action, setter) } else { throw new Error(errors.stateNotInitialized(this.name)) }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ m_database = database;
ise-uiuc/Magicoder-OSS-Instruct-75K
import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; /** * A model which hosts an array set of child {@link com.cube.storm.ui.model.list.ListItem} models. Used * for displaying a sub set of lists within the list view.
ise-uiuc/Magicoder-OSS-Instruct-75K
self.directory = None class SdmPathFixer(object): """ MAX IV pathfixer which takes a path from a Tango device. """ def __init__(self, sdm_device): self.device = DeviceProxy(sdm_device) self.TRIALS = 10 self.cache = None @property def directory(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
# r = requests.post(url, data=data, headers=headers) # print(r.text)
ise-uiuc/Magicoder-OSS-Instruct-75K
onSignRequest: @escaping JSONAPI.SignRequestBlock, networkInfo: NetworkInfoModel, completion: @escaping (UpdatePasswordRequestBuilderBuildResult) -> Void ) -> Cancelable } extension UpdatePasswordRequestBuilder: UpdatePasswordRequestBuilderProtocol { func buildChangePasswordRequest( for email: String, oldPassword: String, newPassword: String, onSignRequest: @escaping JSONAPI.SignRequestBlock, networkInfo: NetworkInfoModel, completion: @escaping (UpdatePasswordRequestBuilderBuildResult) -> Void
ise-uiuc/Magicoder-OSS-Instruct-75K
? "No description given for this command" : description; builder.addField(command.getName(), nonNullDescription, false);
ise-uiuc/Magicoder-OSS-Instruct-75K
debug.error("Invalid associativity.", -1) self.c = cache(cache_config, name) def config_write(self, paths):
ise-uiuc/Magicoder-OSS-Instruct-75K
public: constexpr condition_semaphore() noexcept = default; condition_semaphore(condition_semaphore const&) = delete; condition_semaphore& operator=(condition_semaphore const&) = delete; ~condition_semaphore() { my.load(memory_order_acquire); // barrier if(mysemaphore) CloseHandle(mysemaphore);
ise-uiuc/Magicoder-OSS-Instruct-75K
between the two time series. Parameters ----------
ise-uiuc/Magicoder-OSS-Instruct-75K
EntityObject.ClaimValue = source.ClaimValue; } if (props.Contains(nameof(EntityObject.Id))) { EntityObject.Id = source.Id; } if (props.Contains(nameof(EntityObject.UserId))) { EntityObject.UserId = source.UserId; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import Foundation /// Holds information about a expression parsed from a SQL instruction. public protocol ADSQLExpression { /** Decodes the expression from an Instance Dictionary that has been read from a Swift Portable Object Notation (SPON) stream. - Parameter dictionary: A `ADInstanceDictionary` representing the values for the expression.
ise-uiuc/Magicoder-OSS-Instruct-75K
def value(self): return (self.r, self.g, self.b)
ise-uiuc/Magicoder-OSS-Instruct-75K
df_graph_metrics.insert(4, "pagerank", pagerank) df_graph_metrics.insert(5, "olayer", olayer) pb.set_length(df_graph_metrics.shape[0]) def compute_row_feature(row): pb.progress(row.name)
ise-uiuc/Magicoder-OSS-Instruct-75K
}).on('error', error => reject(err(matcherSettingsURL, error))) );
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public function getDescription() : string {
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
license='Apache2.0', author='jarbasAi', author_email='<EMAIL>', description='metal archives, dark lyrics api' )
ise-uiuc/Magicoder-OSS-Instruct-75K
# def __init__(self, x): # self.val = x # self.next = None class Solution(object): def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ if not head: return head
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CyberUser', '0006_auto_20210219_2041'), ] operations = [ migrations.AlterField( model_name='news', name='published_date', field=models.DateTimeField(auto_now_add=True, default='2021-01-01'),
ise-uiuc/Magicoder-OSS-Instruct-75K
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { return true } }
ise-uiuc/Magicoder-OSS-Instruct-75K
"""A pull request is being created.""" template: github.Repository template_branch: str project_pull: github.PullRequest @dataclass class UpdatePullRequest(bus.Context): """A pull request is being updated."""
ise-uiuc/Magicoder-OSS-Instruct-75K
ServerSocket server = new ServerSocket(portNumber);
ise-uiuc/Magicoder-OSS-Instruct-75K
from dataset.dataset import DataSet class Visualization(DataSet): def __init__(self): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
self.divider = divider self.vehicle_count = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
void setDefaultOptions(Options& opt) { opt.inputFile = getExeDir() + L"\\..\\assets\\mov\\big_buck_bunny_trailer_iphone.m4v"; opt.outputFile = getExeDir() + L"\\big_buck_bunny_trailer_iphone"; } void help(primo::program_options::OptionsConfig<wchar_t>& optcfg) { wcout << L"Usage: demux_mp4_file -i <input_mp4_file> -o <output_mp4_file_name_without_extension>\n"; primo::program_options::doHelp(wcout, optcfg); } bool validateOptions(Options& opt) {
ise-uiuc/Magicoder-OSS-Instruct-75K
seed = (((((((((((seed & 0xFFFF) * const1) & 0xFFFF) * time) & 0xFFFF) * const2) & 0xFFFF) * next_domain) & 0xFFFF) ^ const1) & 0xFFFF) rem = seed % len(usdeclar)
ise-uiuc/Magicoder-OSS-Instruct-75K
import me.siavash.android.wotd.database.WordDatabase; import me.siavash.android.wotd.entities.Word; public class RemoveFavoriteCommand implements Command<Word> { private WeakReference<Context> contextWeakReference; public RemoveFavoriteCommand(Context context) { this.contextWeakReference = new WeakReference<>(context); }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public register(action: string, fn: Function): void { // && typeof this.message[action] === 'undefined' // 如果action存在,且长度大于等于1; // 并且action在消息队列中不存在 if (action && action.length >= 1 && !this.message[action]) {
ise-uiuc/Magicoder-OSS-Instruct-75K
nickname: member.nick.clone(), roles: member.roles.clone(), joined_at: member.joined_at.clone(), boosting_since: member.premium_since.clone(),
ise-uiuc/Magicoder-OSS-Instruct-75K
captures = devices.get_captures() for d in enumerate(captures, 1): print("{num} = {name}".format(num=d[0], name=d[1]['name'])) capture_choice = int(input("record from which device? "))
ise-uiuc/Magicoder-OSS-Instruct-75K
grpcurl -plaintext 192.168.100.1:9200 describe SpaceX.API.Device.Request grpcurl -v -plaintext -d '{"get_status":{}}' 192.168.100.1:9200 SpaceX.API.Device.Device/Handle https://www.reddit.com/r/Starlink/comments/m714q7/debug_data_valids/ http://ottawaphotos.com/starlink/v3/
ise-uiuc/Magicoder-OSS-Instruct-75K
//-------- Weapon related --------// //Identical to function @ 0x00475CE0 bool canWeaponTargetUnit(u8 weaponId, const CUnit *target, const CUnit *attacker) { if (weaponId >= WEAPON_TYPE_COUNT)
ise-uiuc/Magicoder-OSS-Instruct-75K
description = factory.Faker('text') def create_certifications_with_factory( num_of_data=7, display_name="certification", display_name_plural="certifications", delete_old_data=False ): return create_factory_data( factory=CertificationFactory, num_of_data=num_of_data, display_name=display_name, display_name_plural=display_name_plural, delete_old_data=delete_old_data,
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, path,n_values): frame = open(path,'r')
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env bash set -e docker build --cache-from cirrusci/web-front-end:latest --tag cirrusci/web-front-end:latest .
ise-uiuc/Magicoder-OSS-Instruct-75K
return nullptr; } // Show the window. window->show(); return window; } void EditorWindow::showEvent(QShowEvent *event) { updateWindowTitle(); QMainWindow::showEvent(event); }
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> </div> </div> </main> <script> function create() { location.href = '/times/create' }
ise-uiuc/Magicoder-OSS-Instruct-75K
return PersonPermissionsValidator(person_repo=create_person_repo())
ise-uiuc/Magicoder-OSS-Instruct-75K
result_file['latent'] = w_plus[0] torch.save(result_file, name) return w_plus[0]
ise-uiuc/Magicoder-OSS-Instruct-75K
@staticmethod def decode(x):
ise-uiuc/Magicoder-OSS-Instruct-75K
if debug: print("Executing statement: "+fix_tcga_case_barcodes, file=sys.stdout) else: print("[STATUS] Fixing TCGA case barcodes...", file=sys.stdout) cursor.execute(fix_tcga_case_barcodes) print("[STATUS] ...done.", file=sys.stdout) if debug: print("Executing statement: " + fix_ccle_case_barcodes, file=sys.stdout) else: print("[STATUS] Fixing CCLE case barcodes...", file=sys.stdout) cursor.execute(fix_ccle_case_barcodes)
ise-uiuc/Magicoder-OSS-Instruct-75K
'page_id' => $page->id, 'store_id' => $store->id, 'desc_ar' => $request->desc_ar, 'desc' => $request->desc, 'intro' => $request->intro, 'intro_ar' => $request->intro_ar, 'image' => $image, 'status'=>$request->status, ]); return redirect()->route('pages.index');
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod req_res_handler; pub mod util;
ise-uiuc/Magicoder-OSS-Instruct-75K
override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measureBlock { // Put the code you want to measure the time of here.
ise-uiuc/Magicoder-OSS-Instruct-75K
</ul> <?php } ?> </li> <?php } ?> </ul> <?php } ?> <div class="int-navigation"> <button class="btn next btn-skip">Skip</button> <img src="<?php echo plugins_url('../assets/style/images/ajax-loader.gif', __FILE__); ?>" width="25" height="35" alt="Loading . . ." style="display:none; vertical-align:middle;" class="img_loader loading" /> <div class="next btn unactive" id="open-intestes">Next Question</div>
ise-uiuc/Magicoder-OSS-Instruct-75K
# https://leetcode.com/problems/palindrome-number/ # Time Complexity: O(log(x) to base 10) # Space Complexity: O(1) class Solution: def isPalindrome(self, x: int) -> bool: temp = x rev = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
def rmse(a, b, dim): """ Root Mean Squared Error. Parameters ---------- a : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars Mix of labeled and/or unlabeled arrays to which to apply the function. b : Dataset, DataArray, GroupBy, Variable, numpy/dask arrays or scalars Mix of labeled and/or unlabeled arrays to which to apply the function. dim : str The dimension to apply the correlation along.
ise-uiuc/Magicoder-OSS-Instruct-75K
internal var prettyDescription: String { var output: [String] = ["\n["] for (index, element) in self.enumerated() { output.append("\t\(index): \(element)") } output.append("]\n") return output.joined(separator: "\n ") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import '@uifabric/icons/lib/version';
ise-uiuc/Magicoder-OSS-Instruct-75K
coordinates of the grid using specific functionality of the input grid. The grid_like objects `Grid2D` and `Grid2DIrregular` are input into the function as a slimmed 2D NumPy array of shape [total_coordinates, 2] where the second dimension stores the (y,x) values. If a `Grid2DIterate` is input, the function is evaluated using the appropriate iterated_*_from_func* function. The outputs of the function are converted from a 1D or 2D NumPy Array2D to an `Array2D`, `Grid2D`, `ValuesIrregular` or `Grid2DIrregular` objects, whichever is applicable as follows: - If the function returns (y,x) coordinates at every input point, the returned results are a `Grid2D` or `Grid2DIrregular` structure, the same structure as the input.
ise-uiuc/Magicoder-OSS-Instruct-75K
hint1 = " It is outside EU!" hint2 = " It is also the Largest country in the world!" title = "Question 5" q5choices = ["France","Germany","Russia","UK"] if count ==0:
ise-uiuc/Magicoder-OSS-Instruct-75K
print("_____________________________________") print("################_end_################")
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 LOG_LEVEL = "INFO"
ise-uiuc/Magicoder-OSS-Instruct-75K
.http .create_message(msg.channel_id)
ise-uiuc/Magicoder-OSS-Instruct-75K
@objc func longPressed() { FireClient.shared.delete(id) } @objc func doubleTapped() { FireClient.shared.clap(id, claps: claps) { } let clapView = UIView() clapView.backgroundColor = .clear let clapImage = UIImageView(image: UIImage(named: "clap_silhoute")) clapView.addSubviewForAutoLayout(clapImage)
ise-uiuc/Magicoder-OSS-Instruct-75K
int foodLeftInKilograms = int.Parse(Console.ReadLine()); double foodPerDayForFirstDog = double.Parse(Console.ReadLine()); double foodPerDayForSecondDog = double.Parse(Console.ReadLine()); double foodPerDayForThirdDog = double.Parse(Console.ReadLine()); double firstDog = numberOfDays * foodPerDayForFirstDog; double secondDog = numberOfDays * foodPerDayForSecondDog; double thirdDog = numberOfDays * foodPerDayForThirdDog; double totalFood = firstDog + secondDog + thirdDog;
ise-uiuc/Magicoder-OSS-Instruct-75K
this.view.layoutIfNeeded() }) } func dismissSpotlight() { dismiss(animated: true, completion: nil) delegate?.didDismiss() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
milestone=TEST_MILESTONE, branch='test-branch') expected = '''## Version test-milestone (2016-12-05)
ise-uiuc/Magicoder-OSS-Instruct-75K
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd) { pUi->Initialize(hInstance); InitMainWindow(); return pUi->MessageLoop(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
model_layers_info.append({"name":layer.__class__.__name__, "shape":model.input_shape[1:], "params":layer.count_params()}) else: model_layers_info.append({"name":layer.__class__.__name__, "shape":layer.output_shape[1:], "params":layer.count_params()}) # save basic info with open("model_general_info.json","w+",encoding="utf-8") as f: f.write(json.dumps({"total_num_layers":total_num_layers,"total_params":model.count_params(), "total_units":int(total_num_units)}))
ise-uiuc/Magicoder-OSS-Instruct-75K
cell.firstLabel?.text = Filter.categories[indexPath.row]["name"]!
ise-uiuc/Magicoder-OSS-Instruct-75K
-e MYSQL_USER=test -e MYSQL_PASSWORD=<PASSWORD> -e MYSQL_DATABASE=testdb \ --docker-image registry.access.redhat.com/rhscl/mysql-57-rhel7
ise-uiuc/Magicoder-OSS-Instruct-75K
api = tweepy.API(api_auth) api.verify_credentials()
ise-uiuc/Magicoder-OSS-Instruct-75K
], )
ise-uiuc/Magicoder-OSS-Instruct-75K
res = requests.get('https://automatetheboringstuff.com/files/rj.txt') print(res.status_code)
ise-uiuc/Magicoder-OSS-Instruct-75K
self[date(year, SEP, 16)] = name if self.observed and date(year, SEP, 16).weekday() == SAT: self[date(year, SEP, 16) + rd(days=-1)] = name + " (Observed)" elif self.observed and date(year, SEP, 16).weekday() == SUN: self[date(year, SEP, 16) + rd(days=+1)] = name + " (Observed)" # Revolution Day
ise-uiuc/Magicoder-OSS-Instruct-75K
if DATABASE_TYPE == "sqlite":
ise-uiuc/Magicoder-OSS-Instruct-75K
success: (response) => { if ($.isEmptyObject(response.error)) { console.log(response); Swal.fire({ title: 'ยืนยันอนุมัติการอ่าน E-Books สำเร็จแล้วค่ะ', icon: 'success', }).then((value) => { window.history.back(); }); } }, }); }else{
ise-uiuc/Magicoder-OSS-Instruct-75K
--server ${SERVER} \ --email ${EMAIL} \
ise-uiuc/Magicoder-OSS-Instruct-75K
def set_pids(self, pids): """Update list of monitored PIDs in the package context. @param pids: list of pids. """
ise-uiuc/Magicoder-OSS-Instruct-75K